Commit e8afa11
authored
fix: update post-processor regex, backoff, and msg (#708)
- Adjust `hostnameRegex` to enforce full-string matching by adding grouping and anchors, fixing a validation bug.
- Extract backoff configuration into a variable and use Exponential backoff (InitialBackoff=200ms, MaxBackoff=30s, Multiplier=2) for retries.
- Improve error handling by wrapping the underlying error with %w and returning an explicit error when the remote command exits with a non-zero status.
These changes improve retry behavior and provide clearer diagnostics for uploads.
Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>1 parent d5031fc commit e8afa11
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
313 | 318 | | |
314 | 319 | | |
315 | 320 | | |
316 | 321 | | |
317 | 322 | | |
318 | | - | |
| 323 | + | |
319 | 324 | | |
320 | 325 | | |
321 | 326 | | |
322 | | - | |
323 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
324 | 332 | | |
325 | 333 | | |
326 | 334 | | |
| |||
0 commit comments