Repository navigation
test: answer the requests a reloaded document makes after its held ones are released - #7161
Merged
Merged
Conversation
…re released `reload_in_a_row` held every request a reloaded document made until its step ran, then released only the requests held at that moment. A request the document made after that release, such as `/api/state` arriving after the layer's `registry.json` on a loaded runner, stayed held forever. The document never got the answer that tells it to reload again, so the next `expect_navigation` timed out after 120 s. From the moment a document's step runs, the helper now answers every request that document makes, as `reload_with_its_answers_held` already does. The behavior the tests protect is unchanged. Refs #7160
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.
reload_in_a_row(tests/browser/startup/test_readiness.py) held every request a reloaded document made until the test had taken its step in that document. It then answered only the requests held at that moment. A request the document made after that release stayed held forever. That includes its/api/stateread, which on a loaded runner can arrive after the layer'sregistry.json. The document never got the answer that tells it another Leaf is serving, so it never reloaded again, and the helper's nextexpect_navigationtimed out. That is thetest_a_value_typed_into_the_page_rides_two_reloads_in_a_rowfailure in run 45573880821:Page.expect_navigation: Timeout 120000ms exceeded. The failure screenshot shows the reloaded document still on "Connecting…".From the moment a document's step runs, the helper now answers every request that document makes. The sibling helper
reload_with_its_answers_heldalready does this with itsreleasedflag. What the three callers assert is unchanged.Verification:
/api/statefetch by 3 s. Before the change the test times out with the CI error; after it, the test passes.leaf-dev suite flake, including--load 4 --cpu-throttle 4), so the race only shows on a slow enough runner. After the change, the helper's three callers each passed 8 of 8 copies under--load 2.The same run's other failure, the Firefox node of
test_a_card_s_turn_glided_into_sight_stays_there_as_the_transcript_above_grows, ran at65a23a6. That commit comes before #7132, which fixed it (see #7142), so this PR leaves it alone.Refs #7160 — automated triage