Skip to content

test: expect page state to refuse a page an older Leaf vendored - #7187

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7177
Nov 25, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-7177

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6954 made the layer record's format number the page protocol. Its description says leaf page state now refuses a page at another protocol in both directions, where before it printed a reading with the refusal under source.error. test_a_command_re_vendors_its_sessions_page_an_older_leaf_vendored still expected that reading. It also read the layer's generation through layer_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 state to exit non-zero and name the page protocol, as tests/model/test_interact_layer.py::test_page_state_refuses_a_layer_this_leaf_cannot_serve already does. Its check that reads don't renew the layer now compares layer.json byte for byte before and after page state and page 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 main at 32dc564a8 with assert 1 == 0 at the page state read, 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

#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
@leaf-agent
leaf-agent merged commit cad4b8e into main Nov 25, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7177 branch November 25, 2026 18:25
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.

test_a_command_re_vendors_its_sessions_page_an_older_leaf_vendored: page state exits 1 on an older-protocol page since #6954

1 participant