Commit 7378d94
authored
Retry DownloadLibDatadog (#8014)
## Summary of changes
Add retry logic with exponential backoff to the `DownloadLibDatadog`
build step for Windows to handle transient network failures when vcpkg
downloads dependencies from GitHub.
## Reason for change
CI builds occasionally fail with 504 Gateway Timeout errors when vcpkg
attempts to download tools like `7zr.exe` from GitHub during the
`DownloadLibDatadog` step. These transient failures cause unnecessary
build failures.
Example error from CI:
` error: https://github.com/ip7z/7zip/releases/download/25.01/7zr.exe:
failed: status code 504`
## Implementation details
- Wrap the vcpkg install command in a retry loop (max 3 attempts)
- Apply exponential backoff between retries: 5s, 10s, 15s
- Add logging to track attempt numbers and failures
- Re-throw exception if all retries are exhausted
- Pattern matches existing `DownloadWafVersion` retry implementation
## Test coverage
Existing CI tests will validate the change. The retry mechanism only
activates on failures, so successful builds are unaffected.
## Other details
<!-- Fixes #{issue} -->
<!-- 1 parent 43d4334 commit 7378d94
1 file changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
625 | | - | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
626 | 651 | | |
627 | 652 | | |
628 | 653 | | |
| |||
0 commit comments