Repository navigation
fix(browser): name the step opening DevTools stopped on - #1195
Merged
Merged
Conversation
TestChromeDevToolsDrawsInThePaneWhileTheAgentDrivesThePage failed once on macos-latest (#1193) with a bare context deadline exceeded from Service.DevTools. Twenty-three timed runs on macos-latest did not reproduce it, every step under a second, so the cause is still open. The error now says which step ran out: opening the window, watching the page's debugger, loading the front-end or showing it in the pane. Drops the temporary timings and the devtools-flake workflow.
omartelo
marked this pull request as ready for review
November 17, 2026 19:21
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.
Summary
TestChromeDevToolsDrawsInThePaneWhileTheAgentDrivesThePagefailed once on macos-latest, in #1193's CI, with a barecontext deadline exceededfromService.DevTools(the 30 spageWait). That error does not say which step ran out of time.Measured
An earlier commit on this branch timed each step and ran a temporary job on macos-latest. The test passed 20 times alone and 3 times with the whole
internal/browserpackage beside the full suite: 0 failures in 23 runs. Worst case per step:newDevTools689 ms,loadDevTools295 ms,present870 ms. On Linux at 25% of a core it did not fail either. The one failure ran on a runner that had just waited 15 min in a macOS arm64 capacity queue. The cause is still open, and a deadline change would be a guess.Change
chromePage.DevToolsnames the step it stopped on:open the DevTools window,watch the page's debugger,load the DevTools front-endorshow DevTools in the pane. Each wraps with%w, soerrors.IsagainsterrDialogOpen,errPausedandcontext.DeadlineExceededstill holds. The next occurrence then says where it got stuck.TestChromeDevToolsPastItsDeadlineNamesTheStepItWasOn: with a deadline already past, the error isopen the DevTools window: context deadline exceeded, and nothing is shown in the pane.devtools-flakeworkflow are gone; the squash leaves only this change.Test plan
go vet,go fix -diffandgo test ./...clean.