Repository navigation
fix(setup): auto-detect Ubuntu 26.04 and set PLAYWRIGHT_HOST_PLATFORM_OVERRIDE - #2113
padmarajnidagundi wants to merge 1 commit into
Conversation
…_OVERRIDE Playwright does not yet ship a native chromium build for ubuntu26.04-x64. When setup detects Ubuntu 26.04, it now automatically sets PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=ubuntu24.04-x64 before calling bunx playwright install chromium. The ubuntu24.04 binary runs fine on ubuntu26.04 (same glibc lineage). Without this fix users see: Failed to install browsers Error: ERROR: Playwright does not support chromium on ubuntu26.04-x64 The override is scoped to the install subshell; it does not persist to the environment or affect subsequent setup steps. Fixes garrytan#2101
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
/trunk merge |
|
An error occurred while submitting your PR to the queue: |
…_OVERRIDE Playwright ships no native chromium build for ubuntu26.04 yet, so the install fails; the ubuntu24.04 build runs fine there (same glibc lineage). Re-expressed as an exported env var so the version-pinned install path inherits it without duplicating the bunx line. (garrytan#2113, closes garrytan#2101)
|
@padmarajnidagundi Please handle a missing VERSION_ID without failing under set -e. The current grep assignment aborts setup for valid rolling or non-Ubuntu os-release files. |
|
Thanks for this, @padmarajnidagundi. The fix is now on main: setup detects Ubuntu 26.04 and sets PLAYWRIGHT_HOST_PLATFORM_OVERRIDE (setup:1663-1680) (fixed in v1.64.0.0, #2571; made arch-aware in v1.91.2.0, #2959). Closing as superseded; if you still see the problem on the latest gstack, please open an issue with ./setup --status output. |
Summary
Fixes #2101
Playwright does not yet ship a native chromium build for ubuntu26.04-x64. Running ./setup on Ubuntu 26.04 fails immediately with:
\
Failed to install browsers
Error: ERROR: Playwright does not support chromium on ubuntu26.04-x64
\\
Fix
The setup script now reads /etc/os-release before calling �unx playwright install chromium. When it detects Ubuntu 26.04, it sets PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=ubuntu24.04-x64 for the install subshell only. The ubuntu24.04 binary runs correctly on ubuntu26.04 (same glibc lineage).
The override is scoped to the subshell — it does not persist to the caller's environment or affect any other setup step.
The workaround documented in #2101 (PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=ubuntu24.04-x64 ./setup) still works for users on other unsupported future Ubuntu versions.
Testing