|
7 | 7 | import { commandsLightTestFiles } from "../../test/vitest/vitest.commands-light-paths.mjs"; |
8 | 8 | import { |
9 | 9 | gatewayServerExcludedTestFiles, |
| 10 | + gatewayServerIsolatedTestFiles, |
10 | 11 | isGatewayServerBackedHttpTestFile, |
11 | 12 | isGatewayServerTestFile, |
12 | 13 | } from "../../test/vitest/vitest.gateway-server-paths.mjs"; |
@@ -264,6 +265,8 @@ const COMPACT_GROUP_SECONDS_HINTS = new Map<string, number>([ |
264 | 265 | ["agentic-gateway-core-1", 99], |
265 | 266 | ["agentic-gateway-core-2", 99], |
266 | 267 | ["agentic-gateway-core-3", 99], |
| 268 | + // One small file that pays a full cold module graph because it runs isolated. |
| 269 | + ["agentic-gateway-server-isolated", 30], |
267 | 270 | ["agentic-gateway-methods", 157], |
268 | 271 | ["agentic-plugin-sdk", 45], |
269 | 272 | ["auto-reply-core-top-level", 27], |
@@ -1637,7 +1640,10 @@ function createCoreRuntimeMediaUiSplitShards(): NodeTestSplitShard[] { |
1637 | 1640 |
|
1638 | 1641 | function createAgenticGatewayCoreSplitShards(): NodeTestSplitShard[] { |
1639 | 1642 | const unitFastFiles = new Set(getUnitFastTestFiles()); |
1640 | | - const excludedGatewayFiles = new Set(gatewayServerExcludedTestFiles); |
| 1643 | + const excludedGatewayFiles = new Set([ |
| 1644 | + ...gatewayServerExcludedTestFiles, |
| 1645 | + ...gatewayServerIsolatedTestFiles, |
| 1646 | + ]); |
1641 | 1647 | const gatewayFiles = listTestFiles("src/gateway").filter( |
1642 | 1648 | (file) => |
1643 | 1649 | isStripeEligibleTestFile(file, unitFastFiles) && |
@@ -1747,6 +1753,11 @@ const SPLIT_NODE_SHARDS = new Map<string, NodeTestSplitShard[]>([ |
1747 | 1753 | "agentic", |
1748 | 1754 | [ |
1749 | 1755 | ...createGatewayServerSplitShards(), |
| 1756 | + { |
| 1757 | + shardName: "agentic-gateway-server-isolated", |
| 1758 | + configs: ["test/vitest/vitest.gateway-server-isolated.config.ts"], |
| 1759 | + requiresDist: false, |
| 1760 | + }, |
1750 | 1761 | // Split per config: the combined pair owned a ~206s hosted wall that no |
1751 | 1762 | // bin packing could shorten, while the halves fit normal lanes. |
1752 | 1763 | { |
|
0 commit comments