Use setup-uv in Release test container job - #183
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix uv installation in Release workflow
Use May 14, 2026
setup-uv in Release test container job
ppenna
marked this pull request as ready for review
May 14, 2026 19:13
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes the Release workflow’s containerized Linux test job by replacing the unreliable shell-based uv installer with the same official astral-sh/setup-uv@v7 action used elsewhere in the repository workflows.
Changes:
- Replaces
curl ... | shuv installation in the Releasetestjob. - Configures
setup-uvwith Python 3.12 for consistency with other jobs.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/release.yml |
Updates the Linux Release test job to install uv via astral-sh/setup-uv@v7. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 0
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 Release workflow’s Linux
testjob failed before dependency sync because the shell-baseduvinstaller was not reliable in the containerized environment. This change aligns that job with the workflow’s existinguvsetup pattern souvis available to subsequent steps.What changed
testjob’s manualcurl ... | shinstall path withastral-sh/setup-uv@v7.python-version: "3.12"in that step, matching the other jobs inrelease.yml.Workflow consistency
testjob now uses the same officialuvinstallation action already used inlint-and-typecheck,test-windows, andrelease.Original prompt
The GitHub Actions workflow has a failing job in the Release workflow.
Repository:
nanvix/zutilsWorkflow file:
.github/workflows/release.ymlFailing job URL: https://github.com/nanvix/zutils/actions/runs/25878918232/job/76053939367
Observed failure:
testjob, the manual shell-based uv installation does not makeuvavailable to subsequent steps./__w/_temp/98215ee3-a711-4bb9-9f04-e62600b1cbf3.sh: 1: uv: not founduv sync --python 3.12.Requested fix:
.github/workflows/release.ymlso the containerizedtestjob installs uv in a reliable way.astral-sh/setup-uv@v7) instead of the current manual installer.Acceptance criteria:
testjob no longer relies oncurl ... | shfor uv installation.testjob usesastral-sh/setup-uv@v7consistently with the other jobs in this workflow.testjob can invokeuvsuccessfully.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The failure is in the
testjob’s Install project and dev dependencies path, and the root cause is earlier:/__w/_temp/...sh: 1: uv: not found.github/workflows/release.ymluvuse: line 61Why it failed
In the containerized
testjob,uvis installed with:This assumes:
uvin$HOME/.local/bin, and$GITHUB_PATHupdatesPATHcorrectly in this container environment.But the next step cannot find
uv, so that path update is not taking effect as expected for the job container.Fix
Use the official
setup-uvaction in the Linux test job too, instead of manually installinguvinside the container.Recommended change
Replace lines 55–59 with:
So the
testjob becomes:If you want to keep the shell installer
Make the installed binary available immediately in the same shell and for later steps:
If the container uses a different install location, a more robust variant is:
Best solution
The cleanest fix is to standardize on
astral-sh/setup-uv@v7for this job, since the same workflow already uses it successfully in:lint-and-typecheck(lines 30–34)test-windows(lines 76–80)release(lines 105–108)That removes the inconsistency that caused this failure.
User: Create a PR with this fix
Assistant: I’ve started the pull request creati...
This pull request was created from Copilot chat.