




















@@ -591,11 +591,52 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
591591expect(new Set(commandShardFiles).size).toBe(commandShardFiles.length);
592592expect(agentShards).toEqual([
593593{
594-checkName: "checks-node-agentic-agents-core",
594+checkName: "checks-node-agentic-agents-core-auth",
595595configs: ["test/vitest/vitest.agents-core.config.ts"],
596+includePatterns: agentShards[0]?.includePatterns,
596597requiresDist: false,
597598runner: DEFAULT_NODE_TEST_RUNNER,
598-shardName: "agentic-agents-core",
599+shardName: "agentic-agents-core-auth",
600+},
601+{
602+checkName: "checks-node-agentic-agents-core-models",
603+configs: ["test/vitest/vitest.agents-core.config.ts"],
604+includePatterns: agentShards[1]?.includePatterns,
605+requiresDist: false,
606+runner: DEFAULT_NODE_TEST_RUNNER,
607+shardName: "agentic-agents-core-models",
608+},
609+{
610+checkName: "checks-node-agentic-agents-core-tools",
611+configs: ["test/vitest/vitest.agents-core.config.ts"],
612+includePatterns: agentShards[2]?.includePatterns,
613+requiresDist: false,
614+runner: DEFAULT_NODE_TEST_RUNNER,
615+shardName: "agentic-agents-core-tools",
616+},
617+{
618+checkName: "checks-node-agentic-agents-core-subagents",
619+configs: ["test/vitest/vitest.agents-core.config.ts"],
620+includePatterns: agentShards[3]?.includePatterns,
621+requiresDist: false,
622+runner: DEFAULT_NODE_TEST_RUNNER,
623+shardName: "agentic-agents-core-subagents",
624+},
625+{
626+checkName: "checks-node-agentic-agents-core-runner",
627+configs: ["test/vitest/vitest.agents-core.config.ts"],
628+includePatterns: agentShards[4]?.includePatterns,
629+requiresDist: false,
630+runner: DEFAULT_NODE_TEST_RUNNER,
631+shardName: "agentic-agents-core-runner",
632+},
633+{
634+checkName: "checks-node-agentic-agents-core-runtime",
635+configs: ["test/vitest/vitest.agents-core.config.ts"],
636+includePatterns: agentShards[5]?.includePatterns,
637+requiresDist: false,
638+runner: DEFAULT_NODE_TEST_RUNNER,
639+shardName: "agentic-agents-core-runtime",
599640},
600641{
601642checkName: "checks-node-agentic-agents-embedded",
@@ -675,6 +716,19 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
675716);
676717});
677718719+it("covers every flat agents-core test exactly once across split shards", () => {
720+const actual = createNodeTestShards()
721+.filter((shard) => shard.shardName.startsWith("agentic-agents-core-"))
722+.flatMap((shard) => shard.includePatterns ?? [])
723+.toSorted((a, b) => a.localeCompare(b));
724+const expected = listTestFiles("src/agents")
725+.filter((file) => !relative("src/agents", file).includes("/"))
726+.toSorted((a, b) => a.localeCompare(b));
727+728+expect(actual).toEqual(expected);
729+expect(new Set(actual).size).toBe(actual.length);
730+});
731+678732it("keeps expensive plugin shards release-only when normal CI asks for the cheaper plan", () => {
679733const shards = createNodeTestShards({ includeReleaseOnlyPluginShards: false });
680734const shardNames = shards.map((shard) => shard.shardName);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。