Commit 5f16330
committed
ci(hub-client-e2e): cache + timeout/retry Playwright browser install
The chromium download (~175 MB from cdn.playwright.dev, Azure-fronted)
intermittently stalls mid-transfer on the path from the Azure-hosted
GitHub runners. Playwright's downloader has no stall-timeout, so it
hangs on the dead connection until the 6h job cap cancels the run.
Every E2E run since ~2026-05-27 died this way.
Fix:
- Cache ~/.cache/ms-playwright keyed on package-lock.json so most runs
skip the download; a Playwright bump invalidates the cache.
- Split install-deps (apt, no CDN) from the browser download.
- Wrap the browser download in timeout 240 + 5x retry so a stalled
connection is killed in ~4 min and retried instead of burning 6h.
Browser (full chromium) and Playwright version unchanged, so visual
regression baselines are unaffected.1 parent 4b07abe commit 5f16330
1 file changed
Lines changed: 37 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
131 | 156 | | |
132 | 157 | | |
133 | 158 | | |
134 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
135 | 170 | | |
136 | 171 | | |
137 | 172 | | |
| |||
0 commit comments