Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
AssigneesNone

Relationships

↔ sibling #4787

#4786 Test flake: v3 replication 'an owned sidecar whose owner's pid names another process stops' reads presence.supervisorPid of an undefined presence

Opened by stack72 · 11/16/2026· Shipped 11/16/2026

integration/datastore_v3_litestream_replication_test.ts "v3 replication: an owned sidecar whose owner's pid names another process stops" fails intermittently in verify-build.

Seen: 6 failures in 38 recorded verify-build runs across branches (counted from the main checkout's workflow-run logs, 2026-11-16). The latest was on the swamp-club#4784 branch (run 774554dd), which doesn't touch Litestream.

Error:

TypeError: Cannot read properties of undefined (reading 'supervisorPid')
  return !hostLitestreamProcesses.isAlive(presence.supervisorPid) &&
  at sidecarGone (integration/datastore_v3_litestream_replication_test.ts:829)
  at waitFor.timeoutMs (integration/datastore_v3_litestream_replication_test.ts:908)

Likely cause: the waitFor predicate at :908 passes a presence record that can be undefined, for example while the sidecar's presence file is being rewritten or has just been removed, and sidecarGone (:825) reads it without a guard. A guard that treats a missing presence as "not yet known" (keep waiting) would close it. Whether a missing presence can also mean "gone" needs a look at the sidecar's presence lifecycle.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPEDLINKED+ 4 MOREPR_LINKED+ 1 MORESESSION_SUMMARIZED

Shipped

11/16/2026, 11:43:00 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 linked sibling of #478711/16/2026, 7:36:03 AM

Sign in to post a ripple.