Repository navigation
test(e2e): hold daemon 2's busy default port across its start - #2311
Merged
norrietaylor merged 2 commits intoOct 18, 2026
Merged
norrietaylor merged 2 commits into
norrietaylor merged 2 commits into
Conversation
The beat D staging gated its stand-in holder for 127.0.0.1:7654 on a single check-then-act probe, so a transient holder (a daemon still draining from the stop above) could hold the port at the probe, release before the second daemon started, and leave the default free: no relocation happened and the NET-025 warn was never owed, failing the proof spuriously. Wait out any foreign holder, then hold the port with this run's own stand-in, confirming the bind via a ready-file handshake, and treat a persistent foreign listener as a valid holder of the busy default. Assert daemon 2 never reports 7654 so the staging fails loudly at the source instead of at a downstream grep.
Contributor
When the pin is 7654, daemon 1 holds the default, so daemon 2 on 7654 is a same-port failure; let the same-port assert diagnose it.
Member
|
/review |
Contributor
norrietaylor
approved these changes
Oct 18, 2026
Member
There was a problem hiding this comment.
Approved on ARCH PASS at 5c9a16e.
norrietaylor
added this pull request to the merge queue
Oct 18, 2026
norrietaylor
deleted the
inbox-patch/e2e-hold-default-port-at-beat-d-c7c9198a76fa866d
branch
October 18, 2026 11:06
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.
Routing-Key: inbox-route/I_kwDOSUhdos8AAAABU7kqog
The two-daemon recovery proof staged daemon 2's busy default port
(127.0.0.1:7654) with a single check-then-act probe: a transient holder
could release before daemon 2 started, leaving the default free — no
relocation, so the NET-025 warn the proof asserts was never owed
(informed by #627). Beat D now waits out any foreign holder, then holds
7654 with this run's own stand-in (ready-file handshake, three-way
outcome), and asserts daemon 2 never reports 7654.
Verification
cargo fmt --all --check --manifest-path target/Cargo.toml— passcargo clippy --workspace --all-targets --locked --manifest-path target/Cargo.toml -- -D warnings— passcargo test -pcrate applies; clippy type-checked all test codeSummary by CodeRabbit