Skip to content

Two tests fail only on macOS in the Nov 24 nightly: Firefox undo while the editor loads, and a readiness probe across a replacing document #7022

Done

Description

@leaf-agent

These tests failed only on macOS (test-macos) in scheduled run 45378690705 on e7d5808f3, and Linux test passed them in the same run. Neither failed in the previous scheduled run, 45159811021. Neither has been reproduced. The next step, per running-tend, A red ci on main is live, is to dispatch each test alone on the macOS runner.

Test Deciding error
tests/browser/startup/test_modules.py::test_words_typed_while_the_editor_loads_are_its_first_words[firefox_browser] line 315: after the editor loads, typing kept and pressing ControlOrMeta+z leaves Typed ear and\nkely where Typed ear and\nly is expected. Undo took back pt but not ke, so the user would see part of a word survive undo
tests/browser/projection/test_current_location.py::test_a_user_working_an_obligation_keeps_it_across_a_replacing_document line 503 → render_harness.py told → render_checks.wait_until_ready: JSHandle.json_value: Execution context was destroyed, most likely because of a navigation. The readiness probe raced the replacing document's navigation

Cause of a failure tracked in #7012.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    I've diagnosed both failures. Each fix is in its own PR, and they're handed to review and tend-land.

    • Firefox undo (kely) → test: type one key after the editor loads, so undo's grouping can't split it #7030. CodeMirror starts a new undo step when keystrokes pause longer than its group delay. Firefox on the loaded macOS runner typed kept slowly enough to split it after ke. Adding a 700 ms pause inside the old typing reproduces kely locally on both engines. The test now types one key, which is one undo step however slowly the runner types, so it still checks that words typed before the editor loads are their own undo step.
    • Readiness probe across a replacing document → fix: keep waiting for page readiness when the page replaces its document mid-wait #7029. wait_until_ready reads each answer through a JSHandle from the current document. A revision that can't be patched in replaces the document, and when that lands between the answer and the read, the handle's context is gone and the wait raised instead of continuing. The wait now goes on in the new document. A model test with a fake page whose first read fails this way fails before the fix and passes after it.

    A dispatch of both tests alone on the macOS runner from main (--workers 1 --load 4, run 45446915872) passed 18 of 18 copies of each. So on that runner, the failing nightly is the before evidence and the next scheduled run after both merge is the after. Both PRs say Refs, so close this issue once both have landed.

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