Skip to content

fix(ci): replace curl-based uv install with astral-sh/setup-uv action#405

Merged
danielmeppiel merged 1 commit intomainfrom
fix/ci-uv-setup-action
Mar 22, 2026
Merged

fix(ci): replace curl-based uv install with astral-sh/setup-uv action#405
danielmeppiel merged 1 commit intomainfrom
fix/ci-uv-setup-action

Conversation

@danielmeppiel
Copy link
Collaborator

Problem

The astral.sh/uv/install.sh URL intermittently returns HTTP 404, breaking macOS builds (and potentially other platforms). This caused the v0.8.4 release pipeline to fail on both macOS jobs.

Fix

Replace all curl -LsSf https://astral.sh/uv/install.sh | sh (and the Windows PowerShell equivalent) with the official astral-sh/setup-uv@v6 GitHub Action across all CI/CD workflows:

  • ci.yml (2 instances)
  • ci-integration.yml (2 instances)
  • build-release.yml (5 instances)
  • auth-acceptance.yml (bumped v4 → v6)
  • copilot-setup-steps.yml (bumped v4 → v6)

The setup-uv action:

  • Downloads directly from GitHub releases (no astral.sh CDN dependency)
  • Handles PATH setup automatically (no manual GITHUB_PATH manipulation)
  • Works reliably across Linux, macOS, and Windows
  • Net result: -56 lines, +14 lines

Context

This blocked the v0.8.4 release. After merging, we need to re-trigger the release pipeline for the v0.8.4 tag.

The astral.sh/uv/install.sh URL intermittently returns 404, breaking
macOS builds. The official setup-uv GitHub Action downloads directly
from GitHub releases, handles PATH setup automatically, and works
reliably across all platforms.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 22, 2026 09:40
@danielmeppiel danielmeppiel merged commit a69fc93 into main Mar 22, 2026
16 checks passed
@danielmeppiel danielmeppiel deleted the fix/ci-uv-setup-action branch March 22, 2026 09:42
Copy link
Contributor

Copilot AI left a comment

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 and stabilizes CI/CD by replacing the flaky curl | sh / PowerShell installer for uv with the official astral-sh/setup-uv@v6 action across workflows, addressing intermittent astral.sh/uv/install.sh 404 failures (notably on macOS release jobs).

Changes:

  • Replace curl -LsSf https://astral.sh/uv/install.sh | sh (and the Windows irm ... | iex equivalent) with uses: astral-sh/setup-uv@v6 in CI and release workflows.
  • Bump existing astral-sh/setup-uv usage in auxiliary workflows (auth-acceptance, copilot-setup-steps) from @v4 to @v6.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/ci.yml Switches uv installation in PR CI and Linux PR binary build to setup-uv@v6.
.github/workflows/ci-integration.yml Switches uv installation in workflow_run-based integration pipeline to setup-uv@v6.
.github/workflows/build-release.yml Replaces conditional Unix/Windows uv install scripts with a single setup-uv@v6 step across build/test/release jobs (incl. macOS).
.github/workflows/auth-acceptance.yml Bumps uv setup action from @v4 to @v6.
.github/workflows/copilot-setup-steps.yml Bumps uv setup action from @v4 to @v6.

Comment on lines 37 to +38
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
uses: astral-sh/setup-uv@v6
Copy link

Copilot AI Mar 22, 2026

Choose a reason for hiding this comment

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

CI now installs uv via astral-sh/setup-uv@v6 to avoid intermittent 404s from astral.sh/uv/install.sh, but the repo still documents the curl-based installer in docs/src/content/docs/getting-started/installation.md (contributors section) and in .github/workflows/cli-consistency-checker.md. Those instructions are likely to remain flaky for contributors/automation; please update them to a more reliable uv install method (or link to Astral’s official install docs) to keep documentation consistent with this change.

Copilot uses AI. Check for mistakes.
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