From 2013b22829a01d3efffd7a8dfaf88ae4ca164137 Mon Sep 17 00:00:00 2001 From: yiliang114 Date: Thu, 3 Sep 2026 00:27:10 +0900 Subject: [PATCH] fix(test): give the serve routes daemon a CI-sized ACP handshake budget The ACP child's initialize handshake gets 10s by default, a budget sized for an interactive desktop rather than for a shard sharing a 128-core ECS host. The sandbox:docker leg loses a route test to three ~10s handshake timeouts and a 504 while the same commit's sandbox:none shards pass. Nothing in the file asserts the handshake budget, so raise it to 60s for the daemon the harness spawns. Claude-Session: https://claude.ai/code/session_01MCE9CXnMVrX4fUxHpQoUr8 --- integration-tests/cli/qwen-serve-routes.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) 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'],