Skip to content

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

Done

Description

@leaf-agent

tests/journeys/test_interact_layer.py::test_a_command_re_vendors_its_sessions_page_an_older_leaf_vendored fails on Linux and macOS in the scheduled run 45598918111 (118f31f6d), and still fails at 90bc5d55c:

>       assert read.returncode == 0, read.stderr     (test_interact_layer.py:616)
E       assert 1 == 0
        … "page", "state", <page> … {"leaf": …, "protocol": 57, "recorded": 56}

On a page whose layer an older Leaf vendored, leaf page state now exits 1 with a protocol refusal. The test expects it to succeed and report the mismatch in source.error ("page protocol" in … ["source"]["error"]).

Introduced by #6954 (c076ce9c9), which made the layer record's format number the page protocol. Bisecting e7d5808f3..118f31f6d puts the first failure there; the test passes at its parent dc41f759a. #6954 states one comparison now decides whether a Leaf serves, renews or refuses a page. Whether page state, a read, should be refused on such a page or should still read it and name the re-vendor is that change's call, and it decides which side moves. The AGENTS.md "Pages across Leaf updates" section says a Leaf "serves and writes only pages at its own number", which by itself doesn't forbid the read.

Cause of a failure tracked in #7166.

Activity

  1. added
    tend-ci-cause
    on Nov 25, 2026
  2. leaf-agent commented on Nov 25, 2026

    @leaf-agent
    CollaboratorAuthor

    #7187 fixes this by updating the test. The refusal is what #6954 intended: its description says leaf page state now refuses a page at another protocol, where before it printed a reading with the refusal under source.error. The journey now expects that refusal. Its check that reads leave the layer alone now compares layer.json byte for byte, because layer_record refuses the older record too. The test fails on main at 32dc564a8 and passes on the branch. No product code changes. CI and landing now belong to the PR's workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions