@@ -281,6 +281,26 @@ function isGatewayServerTestFile(file) {
|
281 | 281 | ); |
282 | 282 | } |
283 | 283 | |
| 284 | +function resolveGatewayStartupShardName(file) { |
| 285 | +const name = relative("src/gateway", file).replaceAll("\\", "/"); |
| 286 | +if (name.startsWith("server-startup-config") || name.startsWith("server-startup-early")) { |
| 287 | +return "agentic-control-plane-startup-config"; |
| 288 | +} |
| 289 | +if ( |
| 290 | +name.startsWith("server-runtime") || |
| 291 | +name.startsWith("server.health") || |
| 292 | +name.startsWith("server.lazy") || |
| 293 | +name.startsWith("server/health-state") || |
| 294 | +name.startsWith("server/readiness") |
| 295 | +) { |
| 296 | +return "agentic-control-plane-startup-health-runtime"; |
| 297 | +} |
| 298 | +if (name.startsWith("server-restart") || name === "server-close.test.ts") { |
| 299 | +return "agentic-control-plane-startup-restart-close"; |
| 300 | +} |
| 301 | +return "agentic-control-plane-startup-core"; |
| 302 | +} |
| 303 | + |
284 | 304 | function resolveGatewayServerShardName(file) { |
285 | 305 | const name = relative("src/gateway", file).replaceAll("\\", "/"); |
286 | 306 | if ( |
@@ -318,7 +338,7 @@ function resolveGatewayServerShardName(file) {
|
318 | 338 | name.startsWith("server/readiness") || |
319 | 339 | name === "server-close.test.ts" |
320 | 340 | ) { |
321 | | -return "agentic-control-plane-startup-runtime"; |
| 341 | +return resolveGatewayStartupShardName(file); |
322 | 342 | } |
323 | 343 | if (name.includes("cron")) { |
324 | 344 | return "agentic-control-plane-runtime-cron"; |
@@ -380,7 +400,10 @@ function createGatewayServerSplitShards() {
|
380 | 400 | "agentic-control-plane-runtime-shared-token", |
381 | 401 | "agentic-control-plane-runtime-state", |
382 | 402 | "agentic-control-plane-runtime-ui-tools", |
383 | | -"agentic-control-plane-startup-runtime", |
| 403 | +"agentic-control-plane-startup-config", |
| 404 | +"agentic-control-plane-startup-core", |
| 405 | +"agentic-control-plane-startup-health-runtime", |
| 406 | +"agentic-control-plane-startup-restart-close", |
384 | 407 | ] |
385 | 408 | .map((shardName) => ({ |
386 | 409 | configs: ["test/vitest/vitest.gateway-server.config.ts"], |
|