Skip to content

fix(ci): retry setup-env uv install on transient download failure - #411

Merged
c-vigo merged 1 commit into
release/0.3.1from
bugfix/407-retry-uv-setup
Mar 22, 2026
Merged

c-vigo merged 1 commit into
release/0.3.1from
bugfix/407-retry-uv-setup

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

Description

Hardens .github/actions/setup-env so a transient failure while astral-sh/setup-uv downloads uv from GitHub Releases (e.g. HTTP 404 from CDN) does not immediately fail the job. The first attempt uses continue-on-error; on failure we wait 15s and run a second identical install step. The composite action output uv-version prefers the retry step output when present.

Addresses the Publish Release failure described in #407 (RCA posted on the issue).

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • .github/actions/setup-env/action.yml
    • First Install uv step: continue-on-error: true
    • New Wait before retrying uv install (sleep 15) when first attempt fails
    • New Install uv (retry) step (same astral-sh/setup-uv inputs), id setup-uv-retry
    • outputs.uv-version: steps.setup-uv-retry.outputs.uv-version || steps.setup-uv.outputs.uv-version
  • CHANGELOG.md
  • assets/workspace/.devcontainer/CHANGELOG.md
    • Synced from root CHANGELOG.md via pre-commit manifest sync

Changelog Entry

This branch targets release/0.3.1; per project changelog rules, the entry is under ## [0.3.1] - TBD (not ## Unreleased).

Fixed

  • setup-env retries uv install on transient GitHub Releases download failures (#407)
    • Add continue-on-error plus a delayed second attempt for astral-sh/setup-uv in .github/actions/setup-env/action.yml
    • Reduce flaky release publish failures when GitHub CDN returns transient HTTP errors for uv release assets

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

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

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the active release section (## [0.3.1] - TBD; see entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

N/A

Refs: #407

@c-vigo c-vigo self-assigned this Mar 22, 2026
@c-vigo
c-vigo requested a review from Copilot March 22, 2026 12:32

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.

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 uv install attempt non-fatal, then conditionally sleep and retry once on failure.
  • Update the composite action uv-version output 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.

@c-vigo
c-vigo merged commit eefc95a into release/0.3.1 Mar 22, 2026
16 checks passed
@c-vigo
c-vigo deleted the bugfix/407-retry-uv-setup branch March 22, 2026 12:38
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