From 202b95403a7d6b7b01390b6a90457fa76e1be439 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Fri, 9 Oct 2026 21:26:15 -0400 Subject: [PATCH] test(server): the ACP process-tree test no longer collides with the runner's own pid (#17647) Signed-off-by: Yordis Prieto --- .../src/provider/acp/AcpSessionRuntime.processTree.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/server/src/provider/acp/AcpSessionRuntime.processTree.test.ts b/apps/server/src/provider/acp/AcpSessionRuntime.processTree.test.ts index 81d499733caf17a47bd813d437dddc6564c4bcff..af7b77fd90e503537ef9de12156428f5f9cd9d0f 100644 --- a/apps/server/src/provider/acp/AcpSessionRuntime.processTree.test.ts +++ b/apps/server/src/provider/acp/AcpSessionRuntime.processTree.test.ts @@ -655,8 +655,11 @@ describe("terminatePosixOwnedProcessTree", () => { it.live("rotates more than 64 live parents without scanning retained tombstones", () => Effect.gen(function* () { + // The server fixture's process group is the runner's real pid, so a synthetic + // parent sharing it would be skipped as the server's own group. + const parentPidBase = process.pid < 500_000 ? 500_000 : 1_000; const parents = Array.from({ length: 130 }, (_, index) => - identity(1_000 + index, 100, 1_000 + index, 1_000 + index), + identity(parentPidBase + index, 100, parentPidBase + index, parentPidBase + index), ); let childListReads = 0; let identityCalls = 0; -- 2.54.0