Skip to content

github/artifact/download: Retry transient github-script API failures - #5643

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:github-script-retry-transient
Nov 25, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:github-script-retry-transient

Conversation

@phlax

@phlax phlax commented Nov 25, 2026

Copy link
Copy Markdown
Member

The artifact download runs actions/github-script with no retries (its default), so a single transient failure — e.g. a ConnectTimeoutError reaching the GitHub API — fails the step.

In the github/env/load path 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, commit d7a0dcc): _load.yml could not evaluate its job outputs (Error reading JToken from JsonReader / Fail to evaluate job outputs) because the env artifact never downloaded after a ConnectTimeoutError.

Set retries: 3 so network errors and 5xx are retried with backoff. 4xx (incl. auth / not-found) stay exempt via the action's default retry-exempt-status-codes.

(bot assisted)

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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-script with 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

@phlax
phlax merged commit 087f4a1 into envoyproxy:main Nov 25, 2026
119 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants