Repository navigation
Conversation
a_stuck_transport_loop_is_named_with_its_step holds the session lock and
expected the loop to be named stuck at its tick. The loop takes that lock at
the tick and again, after the tick's replies, at the second screen's step
(client_heard in second_screen::next_step). A hold that lands between the
two leaves the loop stuck in SecondScreen, and the watch rightly says so.
It happened once in candidate CI.
The test now takes either step that locks the session, and still requires
one stall of at least 2 s, then a move from the same step.
Holding the lock as the loop marks SecondScreen, the old test fails as in
CI: Stalled { phase: SecondScreen, silent_ms: 2059 }. The new one passes.
This branch has not been deployed
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.
What and why
transport_stall.rs'sa_stuck_transport_loop_is_named_with_its_stepfailed once in candidate macOS CI with[Stalled { phase: SecondScreen, silent_ms: 2009 }], where it expectedPhase::Tick.The test holds
shared.sessionand waits for the loop to be named stuck. The loop takes that lock in two places on every tick:session.lock().tick(…), markedTick);second_screen::next_stepcallsshared.client_heard(), markedSecondScreen.Both were already there before #192 and #220. A hold that lands between them leaves the loop stuck in its second screen step, and the watch names it correctly. That's product behaviour, not a bug: both holds of the lock are brief, and nothing in the step holds it longer.
Change
The test now takes either step that locks the session as the stuck one. It still requires exactly one stall of at least 2 s, then a
Movingverdict from the same step withstalled_ms >= 2000. No product change.How it was tested
SecondScreen(a local probe, not committed), the old test fails as in CI withStalled { phase: SecondScreen, silent_ms: 2059 }. The new test passes 3 of 3 with the probe.cargo clippy -p eternal-host --all-targets -- -D warnings: clean.