Skip to content

Commit b2626aa

Browse files
authored
ci(e2e): skip apt deps in Playwright install (#3444)
## Summary E2E setup no longer depends on the Ubuntu apt mirror. In a recent CI run, one shard's setup took 15 minutes because `playwright install --with-deps` downloaded 23 MB from `azure.archive.ubuntu.com` at 30 kB/s. The other five shards in that run finished the same step in about 20 seconds. On this runner image, `--with-deps` installs nothing the suite uses. The `ubuntu-24.04` image already has every library Chromium needs (apt reported each one as "already the newest version"). The step only added CJK, Cyrillic and unifont fonts plus `xvfb`. Our tests run headless and have no screenshot assertions. | | Before | After | |---|---|---| | Install step, browser cache hit | ~20s (apt update + dpkg) | under 1s | | Install step, slow mirror | 13+ min, no timeout | doesn't use apt | On a browser cache miss, Chromium still downloads from Playwright's CDN, which has its own per-request timeout and retries. If a future runner image drops a library Chromium needs, the first test fails with Playwright's "missing libraries" error. The fix then is a separate `npx playwright install-deps chromium` step. ### How to test 1. Check that every E2E shard on this PR passes. 2. In any shard's "E2E setup" log, check that "Install Playwright browsers" runs no `apt-get` and finishes in a few seconds. --- [![Compound Engineering](https://img.shields.io/badge/Built_with-Compound_Engineering-6366f1)](https://github.com/EveryInc/compound-engineering-plugin) ![OpenCode](https://img.shields.io/badge/Claude_Opus_5.5-D97757?logo=claude&logoColor=white)
1 parent 0444e3e commit b2626aa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/actions/e2e-setup/action.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ runs:
4646
# version, so it isn't re-downloaded every shard/run. Browser versions are
4747
# pinned to the Playwright package version, so the version is the correct
4848
# cache key. On a hit, `playwright install` finds the browser present and
49-
# only installs OS deps.
49+
# does nothing.
5050
- name: Resolve Playwright version
5151
id: playwright-version
5252
shell: bash
@@ -62,9 +62,11 @@ runs:
6262
${{ runner.os }}-playwright-${{
6363
steps.playwright-version.outputs.version }}
6464

65+
# No --with-deps: the ubuntu-24.04 image already ships Chromium's shared
66+
# libs, and the apt step it adds can stall for 10+ min on a slow mirror.
6567
- name: Install Playwright browsers
6668
shell: bash
67-
run: cd packages/app && npx playwright install --with-deps chromium
69+
run: cd packages/app && npx playwright install chromium
6870

6971
- name: Start E2E Docker Compose
7072
shell: bash

0 commit comments

Comments
 (0)