Repository navigation
github/artifact/download: Retry transient github-script API failures - #5643
Merged
Merged
Conversation
The artifact download runs actions/github-script with no retries, so a single transient failure (e.g. a ConnectTimeoutError reaching the GitHub API) fails the step. In the env load path this fails the whole load job before the CI check is set, leaving the check with no result (seen on an Envoy postsubmit macOS run: _load.yml could not evaluate its outputs because the env artifact never downloaded). Set retries: 3 so network errors and 5xx are retried; 4xx stay exempt via the action default. Signed-off-by: Ryan Northey <ryan@synca.io>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the artifact downloader retry change.
No open issues 🎉
What changed in this PR
Improves the shared GitHub artifact downloader’s resilience to transient API failures, reducing interruptions to environment loading and downstream CI reporting.
Changes:
- Configures
actions/github-scriptwith three retries. - Adds comments explaining the environment-load impact and default retry exclusions.
| File | Description |
|---|---|
actions/github/artifact/download/action.yml |
Enables API retries and documents their purpose. |
Review effort: Balanced
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.
The artifact download runs
actions/github-scriptwith no retries (its default), so a single transient failure — e.g. aConnectTimeoutErrorreaching the GitHub API — fails the step.In the
github/env/loadpath this is load-bearing: that failure kills the whole load job before the CI check is set to in-progress, so the check is left with no result. Observed on an Envoy postsubmit macOS run (Envoy/macOS #65029, commitd7a0dcc):_load.ymlcould not evaluate its job outputs (Error reading JToken from JsonReader/Fail to evaluate job outputs) because the env artifact never downloaded after aConnectTimeoutError.Set
retries: 3so network errors and 5xx are retried with backoff. 4xx (incl. auth / not-found) stay exempt via the action's defaultretry-exempt-status-codes.(bot assisted)