Skip to content

test: the lost-link test waits for the armed marker instead of fixed timers - #149

Merged
nyxene merged 2 commits into
masterfrom
test/141-remote-loss-race
Oct 26, 2026
Merged

nyxene merged 2 commits into
masterfrom
test/141-remote-loss-race

Conversation

@nyxene

@nyxene nyxene commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Closes #141

client::remote_tests::a_link_that_dies_after_the_arming_is_a_loss failed now and then under a loaded machine. The fake ssh cut the relay after a fixed second, and the stand-in server closed after a fixed three; when a fresh binary took longer than that to start and pass the armed marker on, the client saw "ssh failed" instead of a lost link. Only the test was wrong: the client decides by what it really received.

  • The fake ssh cuts the link only once the client has the armed marker (the test writes an armed file when it sees it).
  • The stand-in server stays open until that file is there (bounded at 60 s), then long enough for the cut.

No product code changes. Checks: scripts/gates.sh passes; the failure was reproduced 3 of 3 times under load before and 0 of 50 after; an audit passed, and its note about the remaining three-second timer is the second commit.

🤖 Generated with Claude Code

nyxene and others added 2 commits October 25, 2026 23:50
…armed marker

The fake ssh in `lost` mode killed the relay on a fixed one-second timer. When
the relay took longer than that to start, connect and forward the marker (a
freshly built binary pays about half a second on its first exec, more under a
full gates run), the client saw no byte and rightly reported an ssh failure.
The fake now waits for the client to see the marker, so the test always proves
what its name says.

Closes #141

Co-Authored-By: Claude <noreply@anthropic.com>
…he marker, not for a fixed 3 s

Part of #141

Co-Authored-By: Claude <noreply@anthropic.com>
@nyxene
nyxene merged commit dc97b98 into master Oct 26, 2026
1 check passed
@nyxene
nyxene deleted the test/141-remote-loss-race branch October 26, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The remote client test a_link_that_dies_after_the_arming_is_a_loss flakes under a full gates run

1 participant