Skip to content

File-editor example repeats an unchanged panel error-dot write #5183

Closed

Description

@leaf-agent

The scheduled run 41432142330 records this failing boundary. This report supplies CI evidence; it has not reproduced the failure on current main or established its cause.

Earlier test-name matches are #4256, #4245, #4246, #4582, #4581, #4474, #4937. Compare their deciding diagnostics and repairs before claiming recurrence; a name match alone is not shared ownership.

Reconcile against current main and active repair work, reproduce the focused boundary, and fix the highest incorrect owner while preserving the originating change’s intent and the user behavior. Reuse an existing owner when reproduction proves a shared mechanism. Follow normal review and landing gates.

tests.journeys.test_render_navigation::test_presses_and_fills_leave_no_element_naming_stale_keys[file-editor] — 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_presses_and_fills_leave_no_element_naming_stale_keys[file-editor]>>

    @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_presses_and_fills_leave_no_element_naming_stale_keys[file-editor]>

    @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:39221/versions/v1.html: unchanged write: data-shown on span.lf-fp-error-dot
E       assert not ['http://127.0.0.1:39221/versions/v1.html: unchanged write: data-shown on span.lf-fp-error-dot']

tests/render_harness.py:1305: AssertionError
tests.journeys.test_render_navigation::test_presses_and_fills_leave_no_element_naming_stale_keys[file-editor] — 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_presses_and_fills_leave_no_element_naming_stale_keys[file-editor]>>

    @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_presses_and_fills_leave_no_element_naming_stale_keys[file-editor]>

    @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:51078/versions/v1.html: unchanged write: data-shown on span.lf-fp-error-dot
E       assert not ['http://127.0.0.1:51078/versions/v1.html: unchanged write: data-shown on span.lf-fp-error-dot']

tests/render_harness.py:1305: AssertionError

Full diagnostics are in the 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 fixed in #5263.

    The menu's Fold to the leaf row closed the menu before running the fold. That close painted the open panel with an empty field, which says an error about nothing, so the error dot was removed. The fold then painted the folded panel and put the dot back in the same task. The sweep reaches that row after a failed copy has raised an error. The row now runs the fold directly, as the . key does, so the panel is drawn once, already folded. What the user sees after the press is unchanged.

    A new browser test (test_folding_from_the_menu_draws_the_panel_folded_at_once) and the file-editor sweep both fail on main and pass with the change. The PR's CI is green at 8df5b33, and its review recorded the head for landing; the tend-land run that makes the merge is in progress.

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