Skip to content

Commit 25c4723

Browse files
committed
ci(checks): shorten node shard names
1 parent e339038 commit 25c4723

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ jobs:
694694
EOF
695695
696696
checks-node-core-test:
697-
name: checks-node-core-test
697+
name: checks-node-core
698698
needs: [preflight, checks-node-core-test-shard]
699699
if: always() && needs.preflight.outputs.run_checks == 'true'
700700
runs-on: blacksmith-16vcpu-ubuntu-2404

scripts/lib/ci-node-test-plan.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ const EXCLUDED_FULL_SUITE_SHARDS = new Set([
88

99
const EXCLUDED_PROJECT_CONFIGS = new Set(["test/vitest/vitest.channels.config.ts"]);
1010

11+
function formatNodeTestShardCheckName(shardName) {
12+
const normalizedShardName = shardName.startsWith("core-unit-")
13+
? `core-${shardName.slice("core-unit-".length)}`
14+
: shardName;
15+
return `checks-node-${normalizedShardName}`;
16+
}
17+
1118
export function createNodeTestShards() {
1219
return fullSuiteVitestShards.flatMap((shard) => {
1320
if (EXCLUDED_FULL_SUITE_SHARDS.has(shard.config)) {
@@ -21,7 +28,7 @@ export function createNodeTestShards() {
2128

2229
return [
2330
{
24-
checkName: `checks-node-core-test-${shard.name}`,
31+
checkName: formatNodeTestShardCheckName(shard.name),
2532
shardName: shard.name,
2633
configs,
2734
},

0 commit comments

Comments
 (0)