ci(checks): shorten node shard names

This commit is contained in:
Vincent Koc
2026-04-11 11:12:15 +01:00
parent e339038cc0
commit 25c47231bb
2 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -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,
},