mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 16:40:24 +00:00
ci(checks): shorten node shard names
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -694,7 +694,7 @@ jobs:
|
||||
EOF
|
||||
|
||||
checks-node-core-test:
|
||||
name: checks-node-core-test
|
||||
name: checks-node-core
|
||||
needs: [preflight, checks-node-core-test-shard]
|
||||
if: always() && needs.preflight.outputs.run_checks == 'true'
|
||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||
|
||||
@@ -8,6 +8,13 @@ const EXCLUDED_FULL_SUITE_SHARDS = new Set([
|
||||
|
||||
const EXCLUDED_PROJECT_CONFIGS = new Set(["test/vitest/vitest.channels.config.ts"]);
|
||||
|
||||
function formatNodeTestShardCheckName(shardName) {
|
||||
const normalizedShardName = shardName.startsWith("core-unit-")
|
||||
? `core-${shardName.slice("core-unit-".length)}`
|
||||
: shardName;
|
||||
return `checks-node-${normalizedShardName}`;
|
||||
}
|
||||
|
||||
export function createNodeTestShards() {
|
||||
return fullSuiteVitestShards.flatMap((shard) => {
|
||||
if (EXCLUDED_FULL_SUITE_SHARDS.has(shard.config)) {
|
||||
@@ -21,7 +28,7 @@ export function createNodeTestShards() {
|
||||
|
||||
return [
|
||||
{
|
||||
checkName: `checks-node-core-test-${shard.name}`,
|
||||
checkName: formatNodeTestShardCheckName(shard.name),
|
||||
shardName: shard.name,
|
||||
configs,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user