Repository navigation
ci: retry transient Go dependency and tool download failures - #459
Merged
Merged
Conversation
Retry only go mod download up to three total attempts with 10s and 20s delays. Keep provisioning and other prerequisite commands outside the retry loop and fail explicitly when attempts are exhausted. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Retry only the shared installer's go install command up to three total attempts with 10s and 20s delays. Preserve binary publication and cleanup behavior, and fail explicitly after exhaustion. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #459 +/- ##
==========================================
- Coverage 76.54% 76.33% -0.21%
==========================================
Files 77 77
Lines 7669 7669
==========================================
- Hits 5870 5854 -16
- Misses 1387 1399 +12
- Partials 412 416 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Use a shared POSIX retry script for the module download layer of all five Go images, preserving the existing BuildKit module cache and failing after three attempts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Reuse the same bounded retry for module downloads and tool installation across Azure DevOps and image builds. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the changes intended to reduce CI failures from transient Go downloads.
No open issues 🎉
What changed in this PR
This PR reduces CI failures caused by transient Go dependency and tool downloads by introducing a shared retry helper for pipelines, image builds, and tool installation.
Changes:
- Add a POSIX helper with up to three attempts, 10/20-second delays, and explicit failure after exhaustion.
- Apply retries to dependency downloads in Azure DevOps and all five Go image builds, preserving BuildKit module caches.
- Reuse the helper for tool installation while retaining publication and temporary-directory cleanup.
| File | Description |
|---|---|
hack/retry-go.sh |
Add shared Go command retry logic. |
hack/go-install.sh |
Retry tool installation using the shared helper. |
docker/net-crd-installer.Dockerfile |
Retry CRD installer dependency downloads. |
docker/member-net-controller-manager.Dockerfile |
Retry member controller dependency downloads. |
docker/mcs-controller-manager.Dockerfile |
Retry multi-cluster service controller dependency downloads. |
docker/hub-net-controller-manager.Dockerfile |
Retry hub networking controller dependency downloads. |
docker/hub-gateway-controller-manager.Dockerfile |
Retry hub gateway controller dependency downloads. |
.pipeline/e2e-tests.yaml |
Retry dependency downloads during E2E prerequisite checks. |
Review effort: Balanced
Yoo Bin Shin (nibooy)
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind test
/kind flake
What this PR does / why we need it:
Which issue(s) this PR fixes:
No linked issue.
How has this code been tested
Special notes for your reviewer
No live Azure tests or real full image builds were run. Existing in-flight pipelines are unaffected.