Repository navigation
Commit cdcc1d5
committed
ci: key the Playwright browser cache on the OS release
The cache key was `Linux-playwright-<version>`, which does not change when `ubuntu-latest` moves to a new Ubuntu release. Playwright downloads a different WebKit build per OS release, but installs it into the same `webkit-<revision>` directory, and `playwright install` skips a browser whose directory is already complete.
When `ubuntu-latest` rolled over to 26.04, the job restored a cache saved on 24.04, `playwright install` found `webkit-2388` and downloaded nothing, and the 24.04 build then failed to start (`libicudata.so.74: cannot open shared object file`). All 529 WebKit tests failed in the Playwright bucket.
Add the OS release to the key and to `restore-keys`, read from `/etc/os-release` on Linux and `sw_vers` on macOS (the runner images only export `ImageOS` through `.bashrc` on macOS, which a non-interactive step does not source). The first run on each new image does one cold browser download.1 parent a9f2e53 commit cdcc1d5
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
240 | 250 | | |
241 | 251 | | |
242 | 252 | | |
| |||
249 | 259 | | |
250 | 260 | | |
251 | 261 | | |
252 | | - | |
| 262 | + | |
253 | 263 | | |
254 | | - | |
| 264 | + | |
255 | 265 | | |
256 | 266 | | |
257 | 267 | | |
| |||
0 commit comments