diff --git a/integration-tests/cli/qwen-serve-routes.test.ts b/integration-tests/cli/qwen-serve-routes.test.ts index 627c56dc71a..89a8dd01c6d 100644 --- a/integration-tests/cli/qwen-serve-routes.test.ts +++ b/integration-tests/cli/qwen-serve-routes.test.ts @@ -58,6 +58,15 @@ const CLI_BIN = process.env['TEST_CLI_PATH'] ?? path.resolve(__dirname, '../../packages/cli/dist/index.js'); const TOKEN = 'integration-test-token'; +// The ACP child's `initialize` handshake gets 10s by default, which is a +// budget for an interactive desktop, not for a shard sharing a 128-core ECS +// host with ~30 other jobs. Run 33633418567 lost `honors and reserves a +// normalized caller-supplied session ID` to three ~10s +// `AcpSessionBridge initialize timed out` attempts and a 504 on the +// sandbox:docker leg while the same commit's sandbox:none shards passed — +// the same signature #10605 diagnosed in run 33351032808. Nothing here +// asserts the handshake budget, so raise it for the spawned daemon only. +const ACP_INITIALIZE_TIMEOUT_MS = 60_000; const REPO_ROOT = path.resolve(__dirname, '../..'); let daemon: ChildProcess; @@ -148,6 +157,8 @@ beforeAll(async () => { // / IDE-launcher environments. '--workspace', REPO_ROOT, + '--initialize-timeout-ms', + String(ACP_INITIALIZE_TIMEOUT_MS), ], { stdio: ['ignore', 'pipe', 'pipe'],