Repository navigation
fix(ci): retry setup-env uv install on transient download failure - #411
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens the CI environment bootstrap by adding a retry around astral-sh/setup-uv inside the local composite action .github/actions/setup-env, reducing flakiness from transient GitHub Releases/CDN download errors (per issue #407).
Changes:
- Make the first
uvinstall attempt non-fatal, then conditionally sleep and retry once on failure. - Update the composite action
uv-versionoutput to prefer the retry step’s output when it ran. - Add a changelog entry for the fix (and sync it into the workspace template changelog).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/actions/setup-env/action.yml |
Adds a conditional 15s wait + single retry for setup-uv, and updates uv-version output fallback logic. |
CHANGELOG.md |
Documents the CI hardening fix under the active release section. |
assets/workspace/.devcontainer/CHANGELOG.md |
Syncs the same changelog entry into the workspace template. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Hardens
.github/actions/setup-envso a transient failure whileastral-sh/setup-uvdownloadsuvfrom GitHub Releases (e.g. HTTP 404 from CDN) does not immediately fail the job. The first attempt usescontinue-on-error; on failure we wait 15s and run a second identical install step. The composite action outputuv-versionprefers the retry step output when present.Addresses the Publish Release failure described in #407 (RCA posted on the issue).
Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/actions/setup-env/action.ymlInstall uvstep:continue-on-error: trueWait before retrying uv install(sleep 15) when first attempt failsInstall uv (retry)step (sameastral-sh/setup-uvinputs), idsetup-uv-retryoutputs.uv-version:steps.setup-uv-retry.outputs.uv-version || steps.setup-uv.outputs.uv-versionCHANGELOG.mdFixed entry under
## [0.3.1] - TBDfor Release 0.3.1-rc10 failed -- automatic rollback #407assets/workspace/.devcontainer/CHANGELOG.mdCHANGELOG.mdvia pre-commit manifest syncChangelog Entry
This branch targets
release/0.3.1; per project changelog rules, the entry is under## [0.3.1] - TBD(not## Unreleased).Fixed
continue-on-errorplus a delayed second attempt forastral-sh/setup-uvin.github/actions/setup-env/action.ymlTesting
just test)Manual Testing Details
N/A — workflow behavior is validated on GitHub Actions after merge; change mirrors existing retry patterns in
release.yml(SBOM / attestation).Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the active release section (## [0.3.1] - TBD; see entry above)Additional Notes
N/A
Refs: #407