mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 12:30:24 +00:00
ci(checks): shorten node shard names
This commit is contained in:
@@ -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