Skip to content

parity-browser hosted gate: fix the two racy parity cells (waitfor deadline race, drag ended wait), then run it on PRs #168

Closed

Description

@SSFSKIM

Problem & intent

parity-browser, the hosted-macOS gate from #159, runs only on ci refs and dispatch. Two parity cells are racy, and they turned 3 of its first 8 runs red without any change to the code under test. The intent: fix both cells at the scenario, never with a comparison allowance that would hide them, then run the gate on PRs.

What to do

  1. api/browser-playwrightlocator/waitfor, cell locator-contract-diagnostics-no-matches.
    • The cell waits 100 ms for an absent selector, and two deadlines race: the locator's ("Playwright selector deadline exceeded") and the CDP command's ("Timed out after 1ms waiting for CDP command Runtime.evaluate").
    • Whichever fires first sets the error's first line, so the diff differs while both hosts' assertions pass. It made 2 of 8 hosted runs red, and was seen earlier on the GCE box.
    • Fix it in the scenario: compare only the diagnostics line, or give the cell a deadline the CDP command can't reach first.
  2. api/browser-cuaapi/drag.
    • It failed its case assertion once in 8 runs, on cua's host.
    • The likely cause is that the drag cell waits only 1.5 s for the page's ended (test/browser-parity/scenarios/input/coordinates.mjs). That is unconfirmed, because the public log withholds the detail.
    • Read the run directory on a rerun before widening the wait.
  3. Once both cells are fixed and the gate is green over repeated runs, add pr to parity-browser's on: in .github/ci-kit.yml.

Success criteria

parity-browser runs on path-filtered PRs and stays green over at least five consecutive runs.

Constraints

Public logs carry labels, outcomes and counts only, as #159 set up (docs/evidence/2026-10-18-hosted-macos-gate/README.md).

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Oct 18, 2026
  2. SSFSKIM commented on Oct 22, 2026

    @SSFSKIM
    OwnerAuthor

    Additional #117 M2b evidence after PR #180 landed (squash b1174fae, 2026-10-22): the hosted parity-browser instability already tracked here remains relevant; no duplicate ticket registered.

    tech-debt-tracker.md at that pin records a broader vendor-lane timing recurrence on 2026-10-21:

    • Run 39676086123 (d00d2aa8): vendor API suite completed 290 cases with one failed assertion, api/browser-playwrightlocator/click; diff skipped. The commit changed no browser code.
    • Overlapping run 39674865466 (b79beac5): vendor assertions failed at api/browser-playwrightlocator/setchecked and api/browser-playwrightapi/waitforevent.
    • The existing locator-contract-diagnostics-no-matches waitfor case still has its two competing 100 ms deadlines. A shared timing family is a hypothesis, not proof that the click/setchecked/waitforevent failures have that exact cause.

    Include these run directories when investigating the scenario/runner timing boundary and validating the repeated-green PR gate. Preserve the rule in this ticket: fix the scenario/setup, not a broad comparison allowance. Workaround remains a rerun; recurrence on a browser-unchanged SHA is the check. The separate accept-compat-route cooperative-cancel and Swift pasteboard flakes remain in tech-debt-tracker.md as requested, not duplicated here.

    Sources:

    Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)

  3. SSFSKIM commented on Nov 1, 2026

    @SSFSKIM
    OwnerAuthor

    Recurred 2026-11-01 on #247's gate (d7a99ed, #244: engine and kit only, no browser change): run 41285392239 red on parity-browser with the waitfor cell locator-contract-diagnostics-no-matches as the one undeclared difference, both hosts' assertions passing; green on re-run 41286183578.

  4. SSFSKIM commented on Nov 1, 2026

    @SSFSKIM
    OwnerAuthor

    Recurred again 2026-11-01 on #252's gate (76be59e, #237: engine/client/CLI, no browser change): run 41291865985 red on parity-browser with the same waitfor cell locator-contract-diagnostics-no-matches as the one undeclared difference; re-running.

  5. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    Recurrence, 2026-11-14, twice on cua #171's feat/171-m4: ci-gate on ba0434f and run 43634922537 on 4d3085b, both docs- or evidence-only heads. The same undeclared semantic difference in api/browser-playwrightlocator/waitfor / locator-contract-diagnostics-no-matches appeared, and each passed on rerun.

  6. added
    priority:P2
    and removed
    priority:P3
    on Nov 15, 2026
  7. SSFSKIM commented on Nov 15, 2026

    @SSFSKIM
    OwnerAuthor

    Raised to P2 on 2026-11-14: the waitfor cell now fails about half of full gates. On cua #171's branches: 62a461f failed twice before passing on the third run; ba0434f and 4d3085b (M4) each failed once and passed on rerun. Each failure costs a 10-minute rerun and keeps a gate from reading clean the first time.

  8. SSFSKIM commented on Nov 15, 2026

    @SSFSKIM
    OwnerAuthor

    Routed 2026-11-14 to linux171 (cua #171's seat): the scenario fix in test/browser-parity, as a side task with its own PR to main. Step 3 (adding pr to parity-browser's on:) stays CI-opt's, once the cell holds green.

  9. SSFSKIM commented on Nov 15, 2026

    @SSFSKIM
    OwnerAuthor

    The waitfor race is fixed: PR #381 (squash 3972477 on main). The cell normalizes only the first line, which says which deadline won, and still asserts the rejection, its code, a deadline-named error, and the context and diagnostics lines byte for byte. parity-browser passed six runs in a row. Step 2's drag cell was out of scope and is untouched. Step 3 (adding pr to parity-browser's on:) is CI-opt's, as agreed.

  10. 15 remaining items

  11. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    Step 3 check, 2026-11-20: parity-browser is not yet holding green, so pr stays off its on:.

    Five runs of the gate at main f8f3465 (ci-gate --gates parity-browser, in parallel on hosted macOS): four green, one red.

    • Green: runs 44681945849, 44681950010, 44681956874, 44681967595.
    • Red: run 44681961859. The vendor host passed suite api (290 cases); cua's host failed one assertion, api/browser-cuaapi/double-click:
      • cell type: ok false ms 3331 error Error timeout false seen {"active":{"id":"","tag":"body"},"focused":false,"value":""}
      • cell double: ok false ms 3276 error Error timeout true selector-deadline true
      • cell drag: ok false ms 3113 error Error timeout true selector-deadline true
      • cell end-key and cell scroll ok.

    This is the type cell the 11-15 comment left open, now seen on cua's host as well as the vendor's, and with 0473d00's detail: after the type the active element is body, the document reports focused: false and the field is empty, so the keys went to a page that did not have focus; the two pointer cells after it then ran out their selector deadline. Together with the earlier count that is 2 reds in 20 unstressed runs.

    Next for step 3: a fix for this cell, then five consecutive green runs; I rerun the batch when a fix lands.

    Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

  12. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 20, 2026
  13. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: claimed by cursor235: diagnose the double-click type cell's focus race (CI-opt run 44681961859)

  14. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  15. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: harness fix PR open; step 3 (CI-opt five runs, pr trigger) after merge

  16. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] reviewer-low on 98a09e0: incorrect (P1 FCP presentation dependence in background tab; P2 vendor read-only evaluator; P2 focus after type). All fixed in 9f60aa4; parity-browser 3 consecutive greens (44692632997, 44694126969, 44695890738); plugin,test green 44697469361. PR #436

  17. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    Step 3: after #436 (main 215a07a) parity-browser passed five runs in a row (44701799398, 44701805988, 44701812687, 44701818812, 44701825338). PR #439 puts the gate on pull requests and closes this issue; its own check runs the gate once more.

    Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

  18. added a commit that references this issue on Nov 20, 2026
  19. removed
    status:in-review
    on Nov 20, 2026
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

    enhancementpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions