Repository navigation
Commit b2626aa
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.
---
[](https://github.com/EveryInc/compound-engineering-plugin)
1 parent 0444e3e commit b2626aa
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | | - | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
0 commit comments