Skip to content

test(browser): run integration lanes in Firefox - #548

Closed
jonkwheeler wants to merge 36 commits into
octanejs:mainfrom
jonkwheeler:jon/generic-firefox-browser-runner
Closed

jonkwheeler wants to merge 36 commits into
octanejs:mainfrom
jonkwheeler:jon/generic-firefox-browser-runner

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The repository's existing real-browser evidence can now run unchanged in Chromium and Firefox. A validated repository-level selector launches the requested engine, while Octane, Dexie, Tiptap, and Three continue exercising the same consumer-observable assertions instead of maintaining package-specific browser lanes.

Why

The previous heavy-integration lane installed and launched Chromium directly, so bindings with cross-browser focus, event, hydration, canvas, or accessibility claims could not use repository-generic Firefox evidence. Installing Firefox alone would not close that gap because these Vitest suites use Playwright as a library and choose their engine in code.

Changes

  • The heavy browser matrix now runs the identical four-package suite selection once per engine, serially, while package-build and Astro remain single-run lanes.
  • A fail-closed selector defaults local runs to Chromium, rejects unsupported values, preserves unrelated launch errors, and reports an engine-specific install command when the selected executable is missing.
  • A negative ownership gate rejects direct runtime Playwright imports and Chromium launch paths in the four browser directories. Three retains its Chromium-only SwiftShader flags while Firefox launches with its native headless WebGL support.

Validation

  • focused selector and Three launch-normalization tests: 2 files, 15 tests passed
  • direct Chromium launch smoke: Playwright Chromium 149.0.7827.55
  • direct Firefox launch smoke: Playwright Firefox 151.0
  • Firefox headless WebGL/WebGL2 smoke passed without Chromium process flags
  • repository-equivalent targeted Prettier checks passed for every changed file
  • git diff --check
  • pnpm format:check
  • pnpm typecheck
  • pnpm test
  • complete four-package Chromium and Firefox lanes locally; this sparse checkout lacks the full frozen workspace dependency graph

pnpm sync regenerated binding status, parity-gap, and package inventories without a diff, then stopped at CLI-data generation because the sparse checkout does not contain Prettier. The pushed diff contains no generated-file drift from the completed stages.

Risk / follow-ups

The main residual risk is runner-image behavior: only the heavy-integration matrix can prove every existing browser assertion on GitHub's Ubuntu Chromium and Firefox images. Repository Actions intentionally skip expensive jobs while this PR is a draft; Cursor Bugbot feedback can still be resolved before a maintainer promotes it and starts the full matrix.

Post-Deploy Monitoring & Validation

No production monitoring is required because this changes test infrastructure only. For the first several ready-state CI runs, maintainers should watch both browser jobs for engine-specific flakes, unexpected suite-count differences, or Firefox WebGL failures. Revert the matrix/helper change if one engine silently omits suites or repeatedly fails before test execution.

Provenance

  • An agent produced this diff (agent-authored)

Compound Engineering


Note

Medium Risk
Changes CI matrix and many cross-browser integration tests; Firefox flakes or WebGL/composition differences could block merges without affecting production runtime.

Overview
Adds a repository-level PLAYWRIGHT_BROWSER selector and launchBrowser() helper so the same Vitest+Playwright heavy-integration browser suites (Octane, Dexie, Tiptap, Three) run in Chromium and Firefox instead of hard-coding Chromium.

CI splits the heavy_integration browser lane into two matrix entries (chromium / firefox), installs the selected engine, sets PLAYWRIGHT_BROWSER, and keeps the same four package browser directories with --maxWorkers=1. Full-CI required-job lists and workflow tests are updated to expect both engines.

Tests replace direct chromium.launch with the shared helper across those browser directories; Three adds webglLaunchOptions() so Chromium-only SwiftShader flags stay on Chromium only. Octane native-change uses CDP IME on Chromium and a DOM composition sequence on Firefox for the same assertions.

Root playwright is added for the helper, plus a playwright-browser-selector Vitest project and a static gate that forbids direct Playwright browser launches in the four browser trees (with an allowlisted ownership test).

Reviewed by Cursor Bugbot for commit 2338d22. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
octane-website Ready Ready Preview Aug 4, 2026 1:09am
octane-website-mcp Ready Ready Preview Aug 4, 2026 1:09am

Request Review

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only labels Aug 3, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 18:30 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 18:31 Inactive
- run Three launch normalization in ordinary CI shards
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 19:24 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 19:25 Inactive
Comment thread scripts/ci-workflow.test.mjs Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 4, 2026 01:08 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 4, 2026 01:09 Inactive
Comment thread .github/workflows/ci.yml Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Addressed branch currency: updated onto current main via update-branch (no rebase). Draft kept; Bugbot SUCCESS on the new head; merge state CLEAN; no unresolved review threads.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 3a134c5. Configure here.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Addressed the Cursor Bugbot finding on the React focus oracle: collapsed identical chromium/firefox branches into one unconditional assertion and dropped the unused browserName import.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Merging current origin/main to clear conflicts; prior ready signal is void until Bugbot finishes on the new head.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Resolve DIRTY conflicts in ci-workflow.test.mjs (keep both browser-lane
and parity-lane ownership tests) and regenerate evals manifest plus
react-parity support hashes via pnpm sync.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged origin/main (parity execution group + CommonJS conditions), kept both browser-lane and parity-lane CI workflow tests, and regenerated evals/parity digests via pnpm sync. Bugbot SUCCESS on current head; merge state CLEAN; no unresolved threads. Draft kept.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

origin/main advanced again; merging current main to restore branch currency. Prior ready signal is void until Bugbot finishes on the new head.

Merge current main (Version Packages + react-parity plan doc) and
regenerate user-apps evals corpus via pnpm sync after manifest conflict.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged origin/main (Version Packages batch + react-parity plan doc), resolved evals manifest conflict via pnpm sync. Bugbot SUCCESS on 2338d22; merge state CLEAN; no unresolved threads. Draft kept.

READY FOR REVIEW

@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit fc98f7b06852 through consolidated PR #699.

@leonidaz leonidaz closed this Aug 12, 2026
kotarotaniguchi0523 pushed a commit to kotarotaniguchi0523/octane that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent READY FOR REVIEW REVIEW COMPLETE test PR: tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants