Repository navigation
test(util): the fake bridge waits through the reads a just-started pid cannot answer (#867) - #909
Merged
Merged
Conversation
…d cannot answer (#867) TestTwoSessionsShareOneBridge flaked under gate -j5 load where bridgeProc read the fresh fake bridge exactly once. The read of a just-started pid answers two transients: #409's doubt — the kernel read cannot answer for a live pid — and the fork/exec publish window, where the child is forked but has not exec'd yet and the read answers certainly-not-ours with the argv it still carries from the parent (caught under load: pid alive, cmdline still the parent test binary's). A one-shot check obeys either answer; production treats both as alive and retries, and never reads a bridge it just started inside that window. bridgeProc now waits through both under a 2s deadline and fails only when certainly-not-ours outlasts it; doubt that never lifts stays not fatal, as #409 ruled. Production is untouched: answers()' doubt-as-alive stays as it landed. The regression test drives both answers through the argvOfPID seam — it fails against main's one-shot — and lands in make gate, so a rewrite back to one shot fails the gate. Closes #867 Co-Authored-By: Claude Code <noreply@anthropic.com>
akleizor
force-pushed
the
hive/867-land
branch
from
November 25, 2026 16:51
ce9ada8 to
00a4272
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #867
TestTwoSessionsShareOneBridge flaked under gate -j5 load where bridgeProc
read the fresh fake bridge exactly once. The read of a just-started pid
answers two transients: #409's doubt — the kernel read cannot answer for
a live pid — and the fork/exec publish window, where the child is forked
but has not exec'd yet and the read answers certainly-not-ours with the
argv it still carries from the parent (caught under load: pid alive,
cmdline still the parent test binary's). A one-shot check obeys either
answer; production treats both as alive and retries, and never reads a
bridge it just started inside that window. bridgeProc now waits through
both under a 2s deadline and fails only when certainly-not-ours outlasts
it; doubt that never lifts stays not fatal, as #409 ruled. Production is
untouched: answers()' doubt-as-alive stays as it landed. The regression
test drives both answers through the argvOfPID seam — it fails against
main's one-shot — and lands in make gate, so a rewrite back to one shot
fails the gate.
Closes #867
Co-Authored-By: Claude Code noreply@anthropic.com