Commit 51282d7
committed
Reuse the restore step's cache key when saving CI venv caches
The save step recomputed the key via hashFiles('**/pyproject.toml',
'**/preset.toml'), but by the time save runs every .venvs/ is already
populated, so that glob walks all of site-packages too. hashFiles
times out at 120s over that much content, and could pick up
venv-internal files the restore step's key never saw — saving under a
key no later run would ever match and restore from. Use
steps.venvs_cache.outputs.cache-primary-key instead, the exact key the
restore step already computed before any install happened.1 parent d3c8566 commit 51282d7
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 | | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
194 | | - | |
| 198 | + | |
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
| |||
326 | 330 | | |
327 | 331 | | |
328 | 332 | | |
329 | | - | |
| 333 | + | |
| 334 | + | |
330 | 335 | | |
331 | 336 | | |
332 | 337 | | |
333 | 338 | | |
334 | 339 | | |
335 | 340 | | |
336 | 341 | | |
337 | | - | |
| 342 | + | |
0 commit comments