Skip to content

browser: avoid test browser panic on missing browser#5685

Draft
inancgumus wants to merge 1 commit intoadd/testbrowser-sample-drain-optfrom
fix/test-browser-panic-on-nil-browser
Draft

browser: avoid test browser panic on missing browser#5685
inancgumus wants to merge 1 commit intoadd/testbrowser-sample-drain-optfrom
fix/test-browser-panic-on-nil-browser

Conversation

@inancgumus
Copy link
Contributor

What?

newTestBrowser no longer panics when the browser executable isn't available.

Why?

Browser tests panic on ARM CI runners (and any environment without Chromium installed) instead of failing cleanly. This makes CI output harder to read and masks the actual problem behind a huge stack trace.

Replace Fatalf with Errorf + early return so newTestBrowser always
returns a non-nil *testBrowser. Fatalf calls runtime.Goexit which
terminates the goroutine without returning, leaving callers in parent
scopes with a nil pointer that panics on field access.
@inancgumus inancgumus force-pushed the fix/test-browser-panic-on-nil-browser branch from ed90eaa to 3b2ed1a Compare February 19, 2026 18:05
@inancgumus inancgumus changed the base branch from master to add/testbrowser-sample-drain-opt February 19, 2026 18:10
@inancgumus inancgumus self-assigned this Feb 19, 2026
@inancgumus inancgumus temporarily deployed to azure-trusted-signing February 19, 2026 18:11 — with GitHub Actions Inactive
@inancgumus inancgumus force-pushed the add/testbrowser-sample-drain-opt branch from b37c358 to 4e0eb2e Compare February 19, 2026 18:11
@inancgumus inancgumus temporarily deployed to azure-trusted-signing February 19, 2026 18:13 — with GitHub Actions Inactive
@inancgumus inancgumus closed this Feb 19, 2026
@inancgumus inancgumus removed their assignment Feb 19, 2026
@inancgumus inancgumus reopened this Feb 19, 2026
@inancgumus inancgumus temporarily deployed to azure-trusted-signing February 19, 2026 18:20 — with GitHub Actions Inactive
@inancgumus inancgumus temporarily deployed to azure-trusted-signing February 19, 2026 18:23 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant