Repository navigation
test: expect page state to refuse a page an older Leaf vendored - #7187
Merged
Merged
Conversation
#6954 made the layer record's format number the page protocol and, as its description says, made `leaf page state` refuse a page at another protocol instead of printing a reading with the refusal under source.error. The journey still expected the old reading, and read the layer's generation through layer_record, which now refuses that record too. It now expects the refusal, and checks that the reads leave the layer file byte for byte as it was before the next write re-vendors it. Closes #7177
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.
#6954 made the layer record's format number the page protocol. Its description says
leaf page statenow refuses a page at another protocol in both directions, where before it printed a reading with the refusal undersource.error.test_a_command_re_vendors_its_sessions_page_an_older_leaf_vendoredstill expected that reading. It also read the layer'sgenerationthroughlayer_record, which now refuses the older record as well. Since #6954 the test fails in the scheduled run on Linux and macOS.The journey now expects
page stateto exit non-zero and name the page protocol, astests/model/test_interact_layer.py::test_page_state_refuses_a_layer_this_leaf_cannot_servealready does. Its check that reads don't renew the layer now compareslayer.jsonbyte for byte before and afterpage stateandpage export. The rest is unchanged: the reply refused with the re-vendor named, then the next write re-vendoring and the reply going through. This repair keeps #6954's intent, and no product code changes.The test fails on
mainat32dc564a8withassert 1 == 0at thepage stateread, and passes with this change (uv run pytest tests/journeys/test_interact_layer.py::test_a_command_re_vendors_its_sessions_page_an_older_leaf_vendored --run-nightly).Closes #7177 — automated triage