Skip to content

fix(browser): name the step opening DevTools stopped on - #1195

Merged
omartelo merged 2 commits into
mainfrom
fix/devtools-open-deadline-macos
Nov 17, 2026
Merged

omartelo merged 2 commits into
mainfrom
fix/devtools-open-deadline-macos

Conversation

@omartelo

@omartelo omartelo commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

TestChromeDevToolsDrawsInThePaneWhileTheAgentDrivesThePage failed once on macos-latest, in #1193's CI, with a bare context deadline exceeded from Service.DevTools (the 30 s pageWait). 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/browser package beside the full suite: 0 failures in 23 runs. Worst case per step: newDevTools 689 ms, loadDevTools 295 ms, present 870 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.DevTools names the step it stopped on: open the DevTools window, watch the page's debugger, load the DevTools front-end or show DevTools in the pane. Each wraps with %w, so errors.Is against errDialogOpen, errPaused and context.DeadlineExceeded still holds. The next occurrence then says where it got stuck.
  • TestChromeDevToolsPastItsDeadlineNamesTheStepItWasOn: with a deadline already past, the error is open the DevTools window: context deadline exceeded, and nothing is shown in the pane.
  • The timings and the devtools-flake workflow are gone; the squash leaves only this change.

Test plan

  • The five DevTools live tests pass locally.
  • Backend gate: gofmt, go vet, go fix -diff and go test ./... clean.

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 omartelo changed the title fix(browser): find where opening DevTools loses its 30 s on macos-latest fix(browser): name the step opening DevTools stopped on Nov 17, 2026
@omartelo
omartelo marked this pull request as ready for review November 17, 2026 19:21
@omartelo
omartelo merged commit a34e9d8 into main Nov 17, 2026
8 checks passed
@omartelo
omartelo deleted the fix/devtools-open-deadline-macos branch November 17, 2026 19:51
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