Commit 7af486c
ci: run e2e-browser inside Playwright Docker image (#2053)
* ci: cache Playwright browsers in e2e-browser job
`playwright install` repeatedly hung post-download on GitHub Actions
runners (Chromium zip finished in <1s, then ~15min of silence until
the step timeout). Restoring `~/.cache/ms-playwright` from a
yarn.lock-keyed cache makes the install step a no-op on warm runs and
sidesteps the hang entirely. First run on a new lockfile still has to
populate the cache, but subsequent shards/runs reuse it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci: run e2e-browser inside Playwright Docker image
`yarn install:browsers` (i.e. `playwright install --with-deps`)
repeatedly hung post-download on plain ubuntu-latest runners — the
Chromium zip finished in <1s, then ~15min of total silence until the
step timeout fired. An earlier attempt to cache `~/.cache/ms-playwright`
didn't help because every shard starts cold simultaneously and
`actions/cache` only saves on workflow success.
Use the official `mcr.microsoft.com/playwright` image (the same approach
e2e-react already uses via its `run-in-docker.sh`): browsers and system
deps are pre-installed at /ms-playwright, so the `install:browsers`
step becomes unnecessary and the flake disappears.
The image tag must match `@playwright/test` in
packages/browser/e2e-tests/package.json; bump alongside any Playwright
upgrade.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci: set HOME=/root for Playwright tests in Docker
Inside `mcr.microsoft.com/playwright` we run as root, but GH Actions
overrides `\$HOME` to `/github/home` (owned by `pwuser`). Firefox
refuses to launch under those conditions ("Running Nightly as root in
a regular user's session is not supported"). Playwright surfaces the
exact workaround in its error message: set `HOME=/root`.
Chromium and webkit shards passed; only Firefox tests were affected.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 992dda0 commit 7af486c
2 files changed
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
79 | 94 | | |
80 | 95 | | |
81 | 96 | | |
| |||
94 | 109 | | |
95 | 110 | | |
96 | 111 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 112 | + | |
| 113 | + | |
101 | 114 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 115 | + | |
105 | 116 | | |
106 | 117 | | |
107 | 118 | | |
| |||
125 | 136 | | |
126 | 137 | | |
127 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
128 | 144 | | |
129 | 145 | | |
130 | 146 | | |
| |||
0 commit comments