mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:30:45 +00:00
ci: consolidate test shard fanout
This commit is contained in:
@@ -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}`, []]),
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user