Skip to content

parity: the strict-mode sampling cell gets a 10 s budget, not 1 s (#606) - #609

Merged
SSFSKIM merged 1 commit into
mainfrom
fix/606-sampling-budget
Nov 28, 2026
Merged

SSFSKIM merged 1 commit into
mainfrom
fix/606-sampling-budget

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Part of #606. This is the narrow fix. The broader one, which pins the hosted harness Chrome, is #608.

What changed

The cell api/browser-playwrightlocator/click / locator-contract-diagnostics-sampling called click({timeoutMs:1000}). Every other cell in that case uses the 3000 ms default, so this cell had a third of their budget. It also does the heaviest work in the case: it resolves 251 matches on the suite's densest page (/visible-dom-dense.html), in a scratch tab opened inactive.

It is the cell that failed most often on hosted Chrome 158. It failed in 5 of the 9 failing parity-browser jobs, among them both of #601's runs (46103868033, attempts 1 and 2). In each failure its first resolution's Runtime.evaluate ran past the 1000 ms budget (the cell took 1.6 to 3.5 s in total), and the cell got a CDP timeout instead of the strict-mode violation it expects. Its neighbours in the same case passed.

Is this a timing-dependent cell?

No. A strict-mode violation is thrown on the locator's first resolution (src/browser-service/selectors.mjs), not retried until the deadline. So the budget only bounds how long that first resolution may take, and the answer the cell checks (the error's context and diagnostics lines, byte for byte) is the same at any budget. 10000 ms is the host's own bound on a CDP command (HOST_CDP_TIMEOUT_MS), so the locator's budget is no longer the tighter of the two. A timeout still fails the cell, and a different answer on either host still fails the diff.

test/repl-parity/locator-contracts.test.mjs passes.

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

api/browser-playwrightlocator/click's locator-contract-diagnostics-sampling
clicked with timeoutMs 1000, a third of every other cell's budget, on the
suite's densest page (251 matches) in a scratch tab opened inactive. It was
the cell that failed most often on hosted Chrome 158: in 5 of the 9 failing
parity-browser jobs, among them both of #601's runs, its first resolution's
Runtime.evaluate ran past 1000 ms before the violation came back. A
strict-mode violation is thrown on the first resolution, so the budget does
not shape the answer; 10000 ms is the host's own bound on a CDP command.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T05:02:15.302445Z 40ffa1e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 3a2bec1 into main Nov 28, 2026
7 checks passed
@SSFSKIM
SSFSKIM deleted the fix/606-sampling-budget branch November 28, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant