Relationships
↔ sibling #4781#4780 Test teardown killSidecars throws EPERM when the Litestream group has already exited (macOS)
Opened by stack72 · 11/15/2026· Shipped 11/16/2026
Seen in verify-build run b3aaa9e5-870c-4710-bb36-a5aea08d87dd at commit 2763a0dd8 (branch for swamp-club#4777, which does not touch Litestream):
closeV3Datastores: a commit made after the sidecar exited is still reported as unconfirmed (integration/datastore_v3_closing_confirm_test.ts:109) failed with PermissionDenied: EPERM: Operation not permitted at Deno.kill(-pgid, signal), from signalGroup (src/infrastructure/datastore_v3/litestream/litestream_processes.ts:127) called by killSidecars (integration/datastore_v3_litestream_helpers.ts:185) in withReplicationEnv teardown.
Intermittent: the file passed 5 of 5 runs alone on the same commit with SWAMP_LITESTREAM_PATH set, and no earlier verify-build log shows it failing.
Likely cause: killSidecars sends SIGKILL to the group without the PermissionDenied guard that killSidecarAtTeardown (same file, line 72) has for exactly this case (macOS answers EPERM for a group that already exited, swamp-club#4148). The test kills the sidecar on purpose, so the group can be gone between the commandLine check and the kill. Fix: route killSidecars through killSidecarAtTeardown, or catch PermissionDenied the same way.
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.