Skip to content

ci: install Patchright's 24.04 Chromium on ubuntu-latest (experiment) - #639

Closed
tnunamak wants to merge 2 commits into
mainfrom
ci/latest-chromium-override
Closed

tnunamak wants to merge 2 commits into
mainfrom
ci/latest-chromium-override

Conversation

@tnunamak

@tnunamak tnunamak commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Experiment for #622: can the browser tests stay on ubuntu-latest (26.04)? Do not merge. If shard 3 passes here, #622 takes this approach instead of the pin.

Patchright publishes no Chromium build for ubuntu-latest (26.04), so its installer skips the download and the browser tests fail. This keeps ubuntu-latest and makes the installer fetch the 24.04 build with PLAYWRIGHT_HOST_PLATFORM_OVERRIDE.

Assisted-by: AI

…explicitly

The reference-implementation shard jobs and the Postgres workflow ran on
ubuntu-latest, which moved to ubuntu-26.04. Patchright publishes no Chromium
build for that image, so its install step logs "Skipping the optional browser
download" and `owner-connection-delete.test.ts` fails with "Executable doesn't
exist at ~/.cache/ms-playwright/chromium_headless_shell-1243".

The jobs only passed before because the shared node_modules cache restored a
browser downloaded on the older image. Two causes, two fixes:

- Pin the typecheck job, the test shards and the Postgres job to ubuntu-24.04,
  with a comment saying when to lift the pin. Key the node_modules cache by that
  image (v3) so a tree built on another image is never restored.
- Install Chromium with `npx patchright install chromium` before the tests,
  so the cache no longer decides whether a browser exists.

Tests are not changed to skip without a browser; a missing browser still fails.

Assisted-by: AI
Signed-off-by: Tim Nunamaker <tnunamak@gmail.com>
Patchright publishes no Chromium build for ubuntu-latest (26.04), so its installer skips the download and the browser tests fail. This keeps ubuntu-latest and makes the installer fetch the 24.04 build with PLAYWRIGHT_HOST_PLATFORM_OVERRIDE.

Assisted-by: AI
Signed-off-by: Tim Nunamaker <tnunamak@gmail.com>
@tnunamak

tnunamak commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Experiment done: shard 3 failed (installer fetched the root Patchright 1.64.1 browsers; the test needs the nested 1.63.0 headless shell). #622 uses the Chrome approach instead.

@tnunamak tnunamak closed this Nov 6, 2026
@tnunamak
tnunamak deleted the ci/latest-chromium-override branch November 6, 2026 03:54
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.

1 participant