authorgravatar for yordis.prieto@gmail.comYordis Prieto <yordis.prieto@gmail.com> 2026-10-09 21:26:15-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-09 22:26:15-03:00
log202b95403a7d6b7b01390b6a90457fa76e1be439
treeb59b67d7882f13711f198acc7fc27e8e3a3b8e1f
parent38571328a4bc3c30c56fc0cae299437fe9b53898
signature Signed by PGP key B5690EEEBB952194

test(server): the ACP process-tree test no longer collides with the runner's own pid (#17647)

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>

1 files changed, 4 insertions(+), 1 deletions(-)

apps/server/src/provider/acp/AcpSessionRuntime.processTree.test.ts+4-1
...@@ -655,8 +655,11 @@ describe("terminatePosixOwnedProcessTree", () => {...@@ -655,8 +655,11 @@ describe("terminatePosixOwnedProcessTree", () => {
655655
656 it.live("rotates more than 64 live parents without scanning retained tombstones", () =>656 it.live("rotates more than 64 live parents without scanning retained tombstones", () =>
657 Effect.gen(function* () {657 Effect.gen(function* () {
658 // The server fixture's process group is the runner's real pid, so a synthetic
659 // parent sharing it would be skipped as the server's own group.
660 const parentPidBase = process.pid < 500_000 ? 500_000 : 1_000;
658 const parents = Array.from({ length: 130 }, (_, index) =>661 const parents = Array.from({ length: 130 }, (_, index) =>
659 identity(1_000 + index, 100, 1_000 + index, 1_000 + index),662 identity(parentPidBase + index, 100, parentPidBase + index, parentPidBase + index),
660 );663 );
661 let childListReads = 0;664 let childListReads = 0;
662 let identityCalls = 0;665 let identityCalls = 0;