ci: consolidate test shard fanout

This commit is contained in:
Peter Steinberger
2026-04-22 14:23:33 +01:00
parent cd41bd1359
commit 0d12422418
4 changed files with 11 additions and 34 deletions

View File

@@ -39,7 +39,7 @@ function resolveContractFileWeight(file) {
export function createChannelContractTestShards() {
const rootDir = "src/channels/plugins/contracts";
const suffixes = ["a", "b", "c", "d", "e", "f", "g", "h"];
const suffixes = ["a", "b", "c", "d"];
const groups = Object.fromEntries(
["registry", "core"].flatMap((family) =>
suffixes.map((suffix) => [`checks-fast-contracts-channels-${family}-${suffix}`, []]),

View File

@@ -65,8 +65,15 @@ function createAutoReplyReplySplitShards() {
}
}
const shardCounts = {
"auto-reply-reply-agent-runner": 1,
"auto-reply-reply-commands": 2,
"auto-reply-reply-dispatch": 1,
"auto-reply-reply-state-routing": 1,
};
return Object.entries(groups).flatMap(([groupName, includePatterns]) => {
const shardCount = groupName === "auto-reply-reply-commands" ? 4 : 2;
const shardCount = shardCounts[groupName] ?? 1;
return Array.from({ length: shardCount }, (_, index) => ({
shardName: `${groupName}-${String.fromCharCode(97 + index)}`,
configs: ["test/vitest/vitest.auto-reply-reply.config.ts"],