fix(test): use preinstalled Chromium in immutable containers - #1504
fix(test): use preinstalled Chromium in immutable containers#1504BigSimmo wants to merge 3 commits into
Conversation
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughAdds a Playwright Chromium fallback for download-disabled environments. Preflight scans compatible preinstalled shells, the runner passes the selected path when managed Chromium is unavailable, tests cover precedence and safety, and documentation records issue 121 as resolved. ChangesPlaywright container fallback
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant run_playwright as run-playwright.mjs
participant resolver as resolvePlaywrightBrowserExecutable
participant browsers_root as PLAYWRIGHT_BROWSERS_PATH
participant Playwright
run_playwright->>resolver: Resolve Chromium executable
resolver->>browsers_root: Scan preinstalled shells when downloads are disabled
browsers_root-->>resolver: Return newest compatible shell
resolver-->>run_playwright: Return executable path and fallback metadata
run_playwright->>Playwright: Set executable path and launch browser
Possibly related PRs
Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
Comment |
This pull request has been ignored for the connected project Preview Branches by Supabase. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:90d5eee16e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uh oh!
There was an error while loading. Please reload this page.
BigSimmo
commented
Jul 30, 2026
Temporarily paused during the owner-authorized ordered merge sweep so |
BigSimmo
commented
Jul 31, 2026
@cursoragent this PR will be re-opened soon. Please resolve any failing CI, run bugbot and resolve any bugbot comments against current repo and fix any merge conflicts and also fix any errors and address and fix all comments or suggestions that are likely to improve the PR and Codebase. Please implement smallest required fix according to best code practices. Check your work. Leave this PR closed for now but still make all these changes and run the review. I want it ready to go for when I re-open it. |
BigSimmo
commented
Jul 31, 2026
@cursoragent this PR will be re-opened soon. Please resolve any failing CI, run bugbot and resolve any bugbot comments against current repo and fix any merge conflicts and also fix any errors and address and fix all comments or suggestions that are likely to improve the PR and Codebase. Please implement smallest required fix according to best code practices. Check your work. Leave this PR closed for now but still make all these changes and run the review. I want it ready to go for when I re-open it. |
BigSimmo
commented
Jul 31, 2026
@coderabbitai please run a new review of this closed PR for me |
1 similar comment
BigSimmo
commented
Jul 31, 2026
@coderabbitai please run a new review of this closed PR for me |
✅ Action performedReview finished.
|
✅ Action performedReview finished.
|
BigSimmo
commented
Jul 31, 2026
@cursoragent please reopen this pull request |
BigSimmo
commented
Jul 31, 2026
@cursoragent why can't I open this PR |
Summary
PLAYWRIGHT_BROWSERS_PATH, select the newest installed platform-compatible headless shell and pass its exact executable to the Playwright childVerification
npm run test -- tests/playwright-browser-preflight.test.ts tests/test-runner-safety.test.ts— 2 files, 37 tests passednpm run verify:cheap— 443 files passed; 4,631 tests passed; 3 skippednpm run ensureathttp://localhost:3662, thennode scripts/run-playwright.mjs tests/ui-style-contract.spec.ts --project=chromium --grep "tap-sized minimum heights survive the rendered cascade"— 1 passed (26.9s); verified server stopped afterwardnpm run check:rag:fixtures— 36 golden cases, 23 suites passednpm run check:outstanding-issues -- --base-ref origin/mainnpm run check:branch-review-ledgergit diff --check origin/main...HEADThe first broad-gate attempt exposed two missing
NODE_ENVfields in test fixtures and was corrected. A subsequent 120-second wrapper timed out during the full suite and broke the reporter pipe; the same unmodified gate was rerun with the proper allowance and passed in full.Risk and rollback
Low-to-moderate test-infrastructure risk. A download-disabled image may run an older browser than the client; the chosen path is logged and only activates when the exact managed browser is absent. Revert this PR to restore strict exact-revision failure and the manual environment override requirement.
RAG impact: no retrieval behaviour change — Playwright browser discovery and test documentation only.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests