Skip to content

🐛 Explain cancelled browser operations - #30

Merged
Robdel12 merged 1 commit into
mainfrom
rd/capture-context-fix-20261111
Nov 11, 2026
Merged

Robdel12 merged 1 commit into
mainfrom
rd/capture-context-fix-20261111

Conversation

@Robdel12

@Robdel12 Robdel12 commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Why

Vizzly CI sometimes reports a screenshot cancelled in under a second as “cancelled or exceeded its deadline.” That hides the distinction between a real timeout and an invalidated execution, document, or viewport.

Approach

Keep the existing cancellation and stale-image checks. Report the actual abort reason, including which capture context fields changed and the actual observed viewport/DPR transition, while still redacting the private browser connection URL. This makes the underlying race diagnosable without retries or a longer deadline.

Evidence

The complete local suite passes: 239 tests, with the two WebKit-only cases skipped in the Chromium run. The real browser-pool cancellation test now verifies the reason reaches the caller. This improves diagnostics; it does not claim to fix the unresolved capture race.

Distinguish deadlines from invalidated capture contexts so real browser failures can be diagnosed without hiding races behind retries. Preserve cancellation behavior and redact the private browser connection.
@Robdel12
Robdel12 force-pushed the rd/capture-context-fix-20261111 branch from d10deb9 to dfa3329 Compare November 11, 2026 20:16
@Robdel12
Robdel12 merged commit ed0b987 into main Nov 11, 2026
47 of 50 checks passed
@Robdel12
Robdel12 deleted the rd/capture-context-fix-20261111 branch November 11, 2026 23:17
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