Skip to content

test_a_state_read_never_materializes_a_revision_bundle: page state reads the active revision twice since #7109 #7176

Done

Description

@leaf-agent

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

>       assert active_metadata[marker] == 1
E       assert 2 == 1          (test_interact_document.py:781)

leaf page state on a fresh process now opens the active revision's document twice.

Introduced by #7109 (5fc5f86c3), which lists each visual's nameable parts in leaf page state from the render reading of the version the page shows. Bisecting e7d5808f3..118f31f6d puts the first failure there; the test passes at its parent 9482a7f22. The extra open is #7109's call in cmd_page_state (src/leaf/agent_state.py): it passes drawn_parts(page_dir, read_artifact(page_dir, active["revision"]).digest, stored_data["version"]), and read_artifact reads the active revision's document a second time to get the digest the served reading already read. Passing the digest from that first read keeps the test's promise that a state read opens each revision file once.

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

    #7181 fixes this: page_state (and the same call in thread.py's part check) now takes the digest from the held revision reading, which reads it from the manifest, rather than read_artifact, which read the document again. The journey test failed locally on main with assert 2 == 1 and passes on the branch. PR CI and landing are with the PR's workflows.

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