Commit c35adfb
authored
feat: add cache-restore-timeout to cap entire restore operation (#156)
The existing segmentTimeoutInMs (5 min) only covers individual download
segments. If the extraction phase (gtar/unzstd) hangs, there is no
timeout — we observed a macOS runner hang for 1h25m on cache extraction.
Add a cache-restore-timeout input (in milliseconds, default 0/disabled)
that wraps the entire restoreCache() call with Promise.race, covering
both download and extraction.1 parent 3156a5f commit c35adfb
7 files changed
Lines changed: 52 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| 144 | + | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128381 | 128381 | | |
128382 | 128382 | | |
128383 | 128383 | | |
| 128384 | + | |
| 128385 | + | |
128384 | 128386 | | |
128385 | 128387 | | |
128386 | 128388 | | |
128387 | 128389 | | |
128388 | 128390 | | |
128389 | 128391 | | |
| 128392 | + | |
128390 | 128393 | | |
128391 | 128394 | | |
128392 | 128395 | | |
| |||
128581 | 128584 | | |
128582 | 128585 | | |
128583 | 128586 | | |
| 128587 | + | |
128584 | 128588 | | |
128585 | 128589 | | |
128586 | | - | |
128587 | 128590 | | |
128588 | 128591 | | |
128589 | 128592 | | |
128590 | 128593 | | |
128591 | 128594 | | |
128592 | 128595 | | |
128593 | | - | |
| 128596 | + | |
128594 | 128597 | | |
128595 | | - | |
| 128598 | + | |
128596 | 128599 | | |
128597 | 128600 | | |
| 128601 | + | |
| 128602 | + | |
| 128603 | + | |
| 128604 | + | |
| 128605 | + | |
| 128606 | + | |
| 128607 | + | |
| 128608 | + | |
| 128609 | + | |
| 128610 | + | |
| 128611 | + | |
| 128612 | + | |
| 128613 | + | |
| 128614 | + | |
| 128615 | + | |
| 128616 | + | |
128598 | 128617 | | |
128599 | 128618 | | |
128600 | 128619 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127583 | 127583 | | |
127584 | 127584 | | |
127585 | 127585 | | |
| 127586 | + | |
| 127587 | + | |
127586 | 127588 | | |
127587 | 127589 | | |
127588 | 127590 | | |
127589 | 127591 | | |
127590 | 127592 | | |
127591 | 127593 | | |
| 127594 | + | |
127592 | 127595 | | |
127593 | 127596 | | |
127594 | 127597 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
172 | 188 | | |
173 | 189 | | |
174 | 190 | | |
| |||
0 commit comments