From 2a758c7ddee5f0394f3428ac52817bdbcf1a185f Mon Sep 17 00:00:00 2001 From: Devin Foley Date: Thu, 12 Nov 2026 21:08:48 -0800 Subject: [PATCH] Allow ACP Stop integration tests time for process startup CI exhausted the five-second outer timeout in both interrupted-session fallback cases. These tests start and stop multiple real ACP clients, while cancellation alone has a five-second grace period. The same-session case also finished at 4.9 seconds in that job. Give these multi-process cases the existing fifteen-second budget used by the interrupted-write test. Keep all cancellation and resume assertions, product grace periods, and the dedicated forced-exit deadline test unchanged. Validation: CI supplied the red reproduction. The current Stop suite passed all six cases before the timeout-only change. Focused Stop, process-control, and engine checks passed after the change. Co-Authored-By: Paperclip --- packages/adapter-utils/src/acpx-engine/operator-stop.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/adapter-utils/src/acpx-engine/operator-stop.test.ts b/packages/adapter-utils/src/acpx-engine/operator-stop.test.ts index 304ed26bb7f..5022968d7a4 100644 --- a/packages/adapter-utils/src/acpx-engine/operator-stop.test.ts +++ b/packages/adapter-utils/src/acpx-engine/operator-stop.test.ts @@ -46,7 +46,7 @@ it('stops an actual ACP process and resumes its established session with the new const launches = (await fs.readFile(path.join(root, 'run-env'), 'utf8')).trim().split('\n').map(line => JSON.parse(line)); expect(launches.map(launch => launch.runId)).toEqual(['stop-test', 'follow-up']); expect(launches[1].tokenHash).toBe(createHash('sha256').update('follow-up-test-token').digest('hex')); -}); +}, 15000); it('continues after an interrupted write without replaying that write', async () => { const { root, ctx, abort, started, execute } = await setup('write'); const running = execute(ctx); @@ -89,7 +89,7 @@ it.each(['missing session', 'changed configuration'])('starts a new turn when th } expect(next.exitCode, JSON.stringify(next)).toBe(0); expect((await fs.readFile(path.join(root, 'prompts'), 'utf8')).trim().split('\n')).toHaveLength(2); -}); +}, 15000); it('keeps the Stop deadline active after cancellation returns until provider exit', async () => { const { ctx, abort, started, execute } = await setup();