Repository navigation
parity: the strict-mode sampling cell gets a 10 s budget, not 1 s (#606) - #609
Merged
Merged
Conversation
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)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-samplingcalledclick({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.evaluateran 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.mjspasses.Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)