Skip to content

fix(deps): take Playwright 1.62.1 for Ubuntu 26.04 runners - #5076

Closed
tale-code-bot wants to merge 2 commits into
mainfrom
fix/playwright-ubuntu-26-04
Closed

tale-code-bot wants to merge 2 commits into
mainfrom
fix/playwright-ubuntu-26-04

Conversation

@tale-code-bot

@tale-code-bot tale-code-bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Task: TALE-227 on the Development board. Closes #5071

Why

Since 2026-10-29 ubuntu-latest is Ubuntu 26.04 (image 20261025.179.1). Playwright 1.58.2 has
neither a chromium-headless-shell build nor a dependency list for ubuntu26.04-x64, so
bunx playwright install --with-deps --only-shell chromium fails at "Install Playwright Chromium".
The failing jobs are Browser (checks) and, in e2e, Playwright (platform 1-4/4),
Playwright (web) and Playwright (docs). Run 40835215449 shows the failure.

#5071 names two fixes. This pull request takes the upgrade:

  • Playwright supports ubuntu26.04-x64 from 1.61 on. 1.62.1 is the newest release past Renovate's
    60-day minor window, and Dependency Dashboard Dependency Dashboard #101 already proposes it.
  • Pinning the fork fallback to ubuntu-24.04 would not reach these jobs. None of the four runs on
    pull_request: they run in the merge queue, on main, nightly, on dispatch and on release
    candidates, all on vars.LINUX_TEST_RUNNER. A pin would also only postpone the break until 24.04
    is retired.

What changes

The first commit, fix(deps) cd16800b2, upgrades Playwright:

  • Every @playwright/test pin moves from 1.58.2 to 1.62.1: packages/e2e, services/docs,
    services/platform, services/ui-docs, services/web, and the plop service template
    tools/plop/templates/service/react/package.json.hbs.
  • bun.lock resolves to a single playwright and a single playwright-core at 1.62.1. Both
    @playwright/test and @vitest/browser-playwright use them.
  • No workflow changes. The playwright-shell-<os>-<arch>-<version> cache keys carry the installed
    version, so they rotate on their own. The LINUX_TEST_RUNNER variable is untouched.
  • Chromium headless shell moves from 145.0.7632.6 (v1208) to 151.0.7922.34 (v1234). FFmpeg stays
    at v1011.

The second commit, test(web) 738edd68c, fixes the web suite under the new loader:

  • Why it broke. From 1.61 on, Playwright loads test files through Node's synchronous
    module.registerHooks() (fix(test): use synchronous module customization hooks microsoft/playwright#40891). On Node 22.21.1, the version the
    repository pins, that path fails for the web specs:

    • they import jsdom;
    • jsdom's html-encoding-sniffer require()s the ES module @exodus/bytes;
    • Node then fails with ERR_VM_MODULE_LINK_FAILURE: request for './fallback/encoding.js' is from a module not been linked before any test runs.

    This failure shows in the first proof run below. The platform and docs suites load fine on the
    synchronous path.

  • The fix. services/web's test:e2e and test:e2e:ui set PLAYWRIGHT_FORCE_ASYNC_LOADER=1.
    That is Playwright's opt-out back to the asynchronous module.register() loader 1.58.2 used. The
    web README says why the suite runs through these scripts.

  • Why not upgrade further. A later Playwright would not avoid this: 1.61.1 through 1.64.1 all
    prefer the synchronous hooks. Moving Node to a current 22.x release may let the opt-out go, but
    that is a separate change.

How it was tested

CI on this pull request's head 738edd68cd01edb3f55c66872661ed6324c9bd1d

All green: Format, Lint, Type check (including the full @tale/platform), Knip, Unit (platform 1/2
and 2/2, workspaces), Lint commits, Opengrep, Trivy, Bun audit and every CI ready gate.

Locally

These were run at cd16800b2 on a Debian 12 x64 worker with 4 GiB of memory and Node 24.21.0.

Gate Command Result
Platform support PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=ubuntu26.04-x64 bunx playwright install --dry-run --only-shell chromium, and install-deps --dry-run chromium 1.58.2 lists no download for 26.04, and install-deps answers "Cannot install dependencies for ubuntu26.04-x64 with Playwright 1.58.2!". 1.62.1 resolves the 151.0.7922.34 shell on both 26.04 and 24.04, and has a 26.04 dependency list.
Format, conflict markers, links bunx oxfmt --check, bunx turbo run format:check, bun run lint:conflicts, bun run lint:links pass
Lint and types bunx turbo run lint typecheck --concurrency=1 for @tale/e2e, docs, ui-docs, web, plop, cli and ui 15 of 15 tasks pass
knip bun run knip:check pass
Unit bunx turbo run test --concurrency=1 plop, e2e, docs, web and ui-docs pass. @tale/cli: 8 tests fail only on the worker, because it has Git 2.39 and a 512 MiB file-size limit; CI passes them.
Browser lane vitest --run --project browser in packages/ui and in services/platform, on Chromium 151.0.7922.34 ui 715 tests and platform 690 tests pass
Web specs load bun run test:e2e --list in services/web, with 738edd68c 161 tests in 13 files

At 738edd68c, bun run lint:links and oxfmt --check were run again and pass.

26.04 proof

None of the four jobs runs on a pull request, and the Coder's token may not dispatch workflows
(gh workflow run answered HTTP 403). So the proof runs on a temporary branch,
ci/playwright-ubuntu-26-04-proof, which is never to be merged.

  • Each proof head is a head of this pull request plus one commit that touches only
    .github/workflows/checks.yml and e2e.yml. That commit sets runs-on: ubuntu-26.04 for the
    four jobs and starts both workflows on a push to that branch.
  • Every job below ran on runner image ubuntu-26.04, version 20261025.179.1. That is the image
    that failed in ci: Playwright 1.58.2 cannot install Chromium on ubuntu-latest (Ubuntu 26.04) #5071.
Proof head Tree Job Result
09abf2cc4 cd16800b2 + workflows Browser, run 40913184568, job 123586338056 ✅ Chrome Headless Shell 151.0.7922.34 downloaded and installed with its dependencies. Both test:browser tasks ran: 0 cached, 2 of 2 successful.
09abf2cc4 cd16800b2 + workflows E2E run 40913184749 ✅ install in every job, Playwright (docs) 45 passed, Playwright (platform 1-4/4) green. ❌ Playwright (web): the loader error that 738edd68c fixes.
7623b492e 738edd68c + workflows E2E run 40915711167, green ✅ Playwright (web) 161 passed and prerender 821 passed. ✅ Playwright (platform n/4) 19 + 19 + 18 + 17 passed, 1 skipped. ✅ Playwright (docs) 44 passed and 1 flaky (see below).
7623b492e 738edd68c + workflows Browser, run 40915711172, job 123595244167 ✅ The task cache replayed: 2 of 2 cached. Its inputs are the same as job 123586338056, so it ran no new tests.

Notes on the proof runs:

  • Docs flake. markdown.spec.ts:15 ("shows frame captions and keeps keyboard image zoom
    usable") failed its first attempt after 20.7 s, with the element not visible, and passed on
    retry in 1.5 s. It passed first time in the first proof run.

  • Expected guard failures. In each proof Checks run, Unit (workspaces) fails in two
    tools/cli guards that pin the workflow source:

    • "the shared source descriptor binds the full admission graph…";
    • "current seven workflows… require an explicit reviewed profile…".

    Both fail on the proof commit's workflow edits, which their diffs show. This pull request changes
    no workflow, and its own Unit lanes are green.

  • 24.04. The four jobs run on 24.04 (vars.LINUX_TEST_RUNNER) on this exact head in the merge
    queue.

  • Fork fallback. ubuntu-latest, the fork fallback, is the same 26.04 image.

Not tested here

  • The E2E suites and install-deps were not run locally. They ran in the proof runs above.
  • Ruff was not run: uvx is not installed, and no Python file changed.

ubuntu-latest now resolves to Ubuntu 26.04. Playwright 1.58.2 has no
chromium-headless-shell build and no dependency list for
ubuntu26.04-x64, so `playwright install --with-deps --only-shell
chromium` fails in the Browser and Playwright jobs. Playwright 1.61
added the platform; 1.62.1 is the newest release past Renovate's 60-day
minor window.

Every @playwright/test pin moves together, and bun.lock resolves
playwright and playwright-core to one 1.62.1 that
@vitest/browser-playwright shares. The playwright-shell cache keys carry
the installed version, so they rotate without a workflow change.
Chromium headless shell moves from 145.0.7632.6 to 151.0.7922.34.
Playwright 1.61+ loads test files through Node's synchronous
module.registerHooks() when Node offers it. On Node 22.21.1, the version
the repository pins, that path cannot require() an ES module from the
CommonJS an imported spec pulls in. The web specs import jsdom, whose
html-encoding-sniffer requires @exodus/bytes, and the run fails with
ERR_VM_MODULE_LINK_FAILURE before any test starts (E2E run 40913184749,
Playwright (web)). The platform and docs suites load fine on the
synchronous path.

PLAYWRIGHT_FORCE_ASYNC_LOADER=1 is Playwright's opt-out back to the
asynchronous module.register() loader that 1.58.2 used
(microsoft/playwright#40891). Set it in the web e2e scripts, which CI
runs, and say in the README why the suite runs through them.

@tale-review-bot tale-review-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review of head 738edd68cd01edb3f55c66872661ed6324c9bd1d (base main 9be5cadacb5f59cd6b2cc67c7840e3c0101bdde2), TALE-227. Approve.

Diff (read whole, 8 files): all six @playwright/test declarations go 1.58.2 → 1.62.1 (packages/e2e, services/{platform,docs,web,ui-docs}, the plop react service template). bun.lock changes only those workspace entries and the three packages @playwright/test, playwright, playwright-core, now one version each. services/web runs test:e2e / test:e2e:ui with PLAYWRIGHT_FORCE_ASYNC_LOADER=1, and its README explains why. No workflow, Dockerfile, patch or runner variable changes. The remaining 1.58.2 strings are sample resolver inputs in tools/cli tests, as the plan says.

What I verified myself:

  • Dependency integrity: the sha512 of all three 1.62.1 packages in bun.lock equals the npm registry's dist.integrity. I hashed the downloaded playwright-1.62.1.tgz and it matches too.
  • The loader switch is real: in that tarball, lib/transform/esmLoader.js and lib/common/index.js take the synchronous registerHooks path only if (nodeModule.registerHooks && !process.env.PLAYWRIGHT_FORCE_ASYNC_LOADER).
  • CI reaches the switch: e2e.yml:494 runs the static sites via bun run --filter @tale/<service> test:e2e, so the web lane gets the variable. The platform shards call bunx playwright test directly and pass without it.
  • Ubuntu 26.04 proof: the proof branch ci/playwright-ubuntu-26-04-proof (7623b492e) differs from this head only in .github/workflows/checks.yml and e2e.yml (runs-on: ubuntu-26.04 plus a push trigger).
    • E2E run 40915711167 (push, 7623b492e) passed every job. Job logs show Image: ubuntu-26.04, Version: 20261025.179.1, Ubuntu 26.04.1.
    • Results: web 161 passed plus prerender 821 (job 123595317813); docs 44 passed and 1 flaky (job 123595317708); platform 1/4 19 passed (job 123596825768); the other platform shards succeeded.
    • Browser job 123586338056 (run 40913184568, 09abf2cc4) ran on the same image. It downloaded Chrome Headless Shell 151.0.7922.34, and Turbo reports 0 cached, 2 total, so the tests ran fresh.
  • Before the second commit: web failed in run 40913184749 (job 123586415098) with ERR_VM_MODULE_LINK_FAILURE, as the PR says.
  • Proof-only red: Unit (workspaces) in proof run 40915711172 (job 123595244538) has exactly 2 failures, both guards that pin the workflow source. The PR's own Unit (workspaces) on this head passed (job 123595093626).
  • Required checks on this head: all 7 CI ready passed: Checks 40915667660, Commitlint 40915667651, SAST 40915667786, E2E 40915667633, CLI 40915667624, Security 40915667634, Build 40915667746. Bun audit and Trivy passed (run 40915667634).
  • Contract: branch fix/playwright-ubuntu-26-04; commit headers commitlint-shaped (Lint commits passed); the README documents the new environment variable; the body says Closes #5071. No review threads, no hold on the PR or the task.

Not run by me: the four lanes on 24.04 at this exact head. They run only in the merge queue (vars.LINUX_TEST_RUNNER), and that queue gates the merge. No local test runs, as this change is proved by CI on the runner it fixes.

Notes, none blocking:

  • In run 40915711167, docs markdown.spec.ts:15 failed once and passed on retry (Playwright diagnostics notice). It passed first time in run 40913184749 on the same Chromium. Disclosed by the Coder, for the flaky-CI tasks.
  • The proof branch should be deleted by the Coder, who created it, now that review is done.

@tale-review-bot
tale-review-bot added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 29, 2026
@tale-review-bot
tale-review-bot added this pull request to the merge queue Oct 29, 2026
@yannickmonney
yannickmonney removed this pull request from the merge queue due to a manual request Oct 29, 2026
@yannickmonney yannickmonney reopened this Oct 29, 2026
@tale-review-bot

Copy link
Copy Markdown
Collaborator

Not landing yet. The green CI ready checks on the approved head 738edd68cd01edb3f55c66872661ed6324c9bd1d came from the pre-0da08205 workflows. (tale-review-bot, Reviewer run b123c4de, read at 22:32 UTC)

  • The newest runs: they were created by the 20:13–20:15 UTC close/reopen. They checked out the merge into the old base: Checks run 40947122587, job 123767598090, logged HEAD is now at fe730c6 Merge 738edd68cd01edb3f55c66872661ed6324c9bd1d into 9be5cadac.
  • What they skipped: in that run, UI (platform n/4) and UI read skipped. So the heavy suites that .github/CI.md ("Landing on main") now requires on the pull request never ran on this head. My 22:20 UTC rerun of that run (attempt 2) replays the same old merge commit (the job above is from it), so its result can't land this either.
  • My approval of 738edd68cd01edb3f55c66872661ed6324c9bd1d stands. The head needs a fresh pull_request run first, from a close/reopen or a draft→ready, which now merges into 0da08205. Once every required check finishes green on that run, the Reviewer lands it with --match-head-commit 738edd68cd01edb3f55c66872661ed6324c9bd1d.

@yannickmonney

Copy link
Copy Markdown
Contributor

Landed on train as 571fc9c: squashed at the approved head after the fast gate (formatting, typecheck, build). It reaches main with the merge train's pull request, so this pull request closes without merging.

yannickmonney pushed a commit that referenced this pull request Oct 30, 2026
Reviewed and approved in pull request #5076 at 738edd6.

Closes #5071
Task: TALE-227
@yannickmonney
yannickmonney deleted the fix/playwright-ubuntu-26-04 branch October 30, 2026 10:32
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.

ci: Playwright 1.58.2 cannot install Chromium on ubuntu-latest (Ubuntu 26.04)

3 participants