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.
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.