Skip to content

Embedded gallery repeats unchanged marker label writes #5162

Closed

Description

@leaf-agent

The scheduled run 41432142330 records the following failing boundary. This is CI evidence, not a claim that the failure persists on current main or that its cause is established.

Reconcile current main, existing repairs and active work before reproducing. Diagnose the shared failing operation before choosing a fix; split ownership if reproduction establishes different mechanisms. Preserve the intended behavior from the originating changes and follow the repository’s focused verification, review and landing gates.

tests.journeys.test_render_startup::test_the_gallery_embeds_an_ordinary_stamped_page — Linux
_browser = <Browser type=<BrowserType name=chromium executable_path=/home/runner/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome> version=156.0.8078.4>
request = <SubRequest 'browser' for <Function test_the_gallery_embeds_an_ordinary_stamped_page>>

    @pytest.fixture
    def browser(_browser, request):
        """The shared browser process, with context ownership scoped to one test.
    
        `Browser.new_page` opens a fresh context, so local and session storage remain
        isolated. Rejecting browser problems and then closing every remaining context at
        teardown makes health and lifetime fixture guarantees instead of conventions
        repeated at the end of each journey. Closing may itself cancel outstanding requests,
        so it happens after the health reading. Unroute first so cancellations of handlers
        still in flight cannot reach the shared driver's next test.
    
        Handed over wrapped, because the health half of that guarantee has to be installed
        on each page before it navigates: a test that makes its own page gets one already
        reporting to the collector this reads (`render_harness.WatchedBrowser`).
        """
        from render_harness import WatchedBrowser, clean_browser
    
        try:
>           with clean_browser(request.node):

tests/conftest.py:830: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.12/contextlib.py:144: in __exit__
    next(self.gen)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

test = <Function test_the_gallery_embeds_an_ordinary_stamped_page>

    @contextmanager
    def clean_browser(test=None):
        """Reject every browser problem a test did not explicitly consume.
    
        The function-scoped browser fixture owns this collector along with its contexts.
        A worker runs one test at a time, so one process-local collector covers pages made
        by `WatchedBrowser`, render helpers, and tests that navigate a page
        themselves. The fixture hands over its `test` node to select shift coverage
        (`watches_shifts`); every problem a watch reports reaches this collector. A test
        that failed or left problems leaves a picture of each page (`_picture_pages`).
        """
        global _BROWSER_PROBLEM_LISTS, _TEST
        assert _BROWSER_PROBLEM_LISTS is None, "browser problem collector already active"
        captured = []
        _BROWSER_PROBLEM_LISTS = captured
        _TEST = test
        try:
            yield
        finally:
            _BROWSER_PROBLEM_LISTS = None
            _TEST = None
        problems = [
            f"{getattr(page, 'url', '<browser page>')}: {problem}"
            for page, problem_list in captured
            for problem in problem_list
        ]
        if test is not None and (problems or getattr(test, "lf_failed", False)):
            _picture_pages(test, [page for page, _ in captured])
>       assert not problems, "\n".join(problems)
E       AssertionError: http://127.0.0.1:35625/#bg-durable-embedding: unchanged write: aria-label on span.lf-margin-marker.lf-ui.lf-ui-face.lf-margin-entry.lf-holds-word
E         http://127.0.0.1:35625/#bg-durable-embedding: unchanged write: aria-label on span.lf-margin-marker.lf-ui.lf-ui-face.lf-margin-entry.lf-holds-word
E       assert not ['http://127.0.0.1:35625/#bg-durable-embedding: unchanged write: aria-label on span.lf-margin-marker.lf-ui.lf-ui-face.lf-margin-entry.lf-holds-word', 'http://127.0.0.1:35625/#bg-durable-embedding: unchanged write: aria-label on span.lf-margin-marker.lf-ui.lf-ui-face.lf-margin-entry.lf-holds-word']

tests/render_harness.py:1305: AssertionError
tests.journeys.test_render_startup::test_the_gallery_embeds_an_ordinary_stamped_page — macOS
_browser = <Browser type=<BrowserType name=chromium executable_path=/Users/runner/Library/Caches/ms-playwright/chromium-1248/chrome-mac-arm64/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing> version=156.0.8078.4>
request = <SubRequest 'browser' for <Function test_the_gallery_embeds_an_ordinary_stamped_page>>

    @pytest.fixture
    def browser(_browser, request):
        """The shared browser process, with context ownership scoped to one test.
    
        `Browser.new_page` opens a fresh context, so local and session storage remain
        isolated. Rejecting browser problems and then closing every remaining context at
        teardown makes health and lifetime fixture guarantees instead of conventions
        repeated at the end of each journey. Closing may itself cancel outstanding requests,
        so it happens after the health reading. Unroute first so cancellations of handlers
        still in flight cannot reach the shared driver's next test.
    
        Handed over wrapped, because the health half of that guarantee has to be installed
        on each page before it navigates: a test that makes its own page gets one already
        reporting to the collector this reads (`render_harness.WatchedBrowser`).
        """
        from render_harness import WatchedBrowser, clean_browser
    
        try:
>           with clean_browser(request.node):
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/conftest.py:830: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/contextlib.py:144: in __exit__
    next(self.gen)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

test = <Function test_the_gallery_embeds_an_ordinary_stamped_page>

    @contextmanager
    def clean_browser(test=None):
        """Reject every browser problem a test did not explicitly consume.
    
        The function-scoped browser fixture owns this collector along with its contexts.
        A worker runs one test at a time, so one process-local collector covers pages made
        by `WatchedBrowser`, render helpers, and tests that navigate a page
        themselves. The fixture hands over its `test` node to select shift coverage
        (`watches_shifts`); every problem a watch reports reaches this collector. A test
        that failed or left problems leaves a picture of each page (`_picture_pages`).
        """
        global _BROWSER_PROBLEM_LISTS, _TEST
        assert _BROWSER_PROBLEM_LISTS is None, "browser problem collector already active"
        captured = []
        _BROWSER_PROBLEM_LISTS = captured
        _TEST = test
        try:
            yield
        finally:
            _BROWSER_PROBLEM_LISTS = None
            _TEST = None
        problems = [
            f"{getattr(page, 'url', '<browser page>')}: {problem}"
            for page, problem_list in captured
            for problem in problem_list
        ]
        if test is not None and (problems or getattr(test, "lf_failed", False)):
            _picture_pages(test, [page for page, _ in captured])
>       assert not problems, "\n".join(problems)
E       AssertionError: http://127.0.0.1:52605/#bg-durable-embedding: unchanged write: aria-label on span.lf-margin-marker.lf-ui.lf-ui-face.lf-margin-entry.lf-holds-word
E         http://127.0.0.1:52605/#bg-durable-embedding: unchanged write: aria-label on span.lf-margin-marker.lf-ui.lf-ui-face.lf-margin-entry.lf-holds-word
E       assert not ['http://127.0.0.1:52605/#bg-durable-embedding: unchanged write: aria-label on span.lf-margin-marker.lf-ui.lf-ui-face.lf-margin-entry.lf-holds-word', 'http://127.0.0.1:52605/#bg-durable-embedding: unchanged write: aria-label on span.lf-margin-marker.lf-ui.lf-ui-face.lf-margin-entry.lf-holds-word']

tests/render_harness.py:1305: AssertionError

The full tracebacks are in that run’s pytest-results-* JUnit artifacts.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Reproduced on current main and opened #5207 with the fix. The render named each marker's position against main's box while the layout pass's lf-margin-layout listener renamed it against the prose box; since #4724 both run in one script, so the marker's label went 7% → 6% → 7% within it. The render now uses the same prose box. The failing journey passes locally with the change; PR CI and review are pending.

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