Commit bc36629
committed
fix: add retry logic for npm install to handle transient registry failures
Add retry logic with exponential backoff (5s, 10s, 20s) to handle transient
NPM registry failures like 503 Service Unavailable errors.
This prevents build failures when npmjs.org has temporary outages, which
can happen during CI runs.
Features:
- 3 retry attempts with exponential backoff
- Detailed logging of retry attempts
- Only fails after all retries exhausted
Fixes the Production Readiness CI failure seen at:
https://github.com/pulseengine/rules_wasm_component/actions/runs/193222180441 parent 4fb1acf commit bc36629
1 file changed
+33
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
210 | 232 | | |
211 | 233 | | |
212 | | - | |
| 234 | + | |
213 | 235 | | |
214 | 236 | | |
215 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
216 | 240 | | |
217 | 241 | | |
218 | 242 | | |
| |||
0 commit comments