Skip to content

PYTHON-6084 Allow python/setup action to pin the uv version - #137

Merged
blink1073 merged 2 commits into
mongodb-labs:mainfrom
blink1073:PYTHON-6084
Sep 10, 2026
Merged

blink1073 merged 2 commits into
mongodb-labs:mainfrom
blink1073:PYTHON-6084

Conversation

@blink1073

@blink1073 blink1073 commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

PYTHON-6084

Summary

The python/setup composite action calls astral-sh/setup-uv without selecting a uv version, so it auto-detects a version or installs the latest. In PYTHON-6084 we're adding a requirements/uv.txt file to ensure consistent versions across CI and local. This change allows us to pass that version to the uv setup action.

Changes

  • Added a uv-version input to python/setup.
  • Forwarded it to astral-sh/setup-uv's version input.

Test Plan

Validated the action YAML parses.

@blink1073
blink1073 requested a lite review from Copilot September 10, 2026 20:45
@blink1073
blink1073 marked this pull request as ready for review September 10, 2026 20:47
@blink1073
blink1073 requested a review from a team as a code owner September 10, 2026 20:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Passing an empty version value to astral-sh/setup-uv may override its default behavior and break installs when callers do not set uv-version.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the python/setup composite GitHub Action to allow callers to pin the installed uv version for reproducible builds, while keeping default behavior unchanged when not specified.

Changes:

  • Added a new uv-version input to python/setup.
  • Forwarded uv-version to astral-sh/setup-uv via its version input.
File summaries
File Description
python/setup/action.yml Adds a uv-version input and passes it through to the setup-uv step.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread python/setup/action.yml Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The action currently always passes an empty version value to setup-uv by default, which can change or break the installer’s default version-selection behavior.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (1)

python/setup/action.yml:53

  • version is always passed to astral-sh/setup-uv even when uv-version is the default empty string; many actions treat an empty string as “set”, which can bypass the action’s normal default/auto-detect behavior (and may error). Consider omitting version entirely unless the caller provided a non-empty uv-version.
    - name: Install uv
      uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
      with:
        version: ${{ inputs.uv-version }}
        enable-cache: ${{ inputs.enable-cache }}
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread python/setup/action.yml Resolved
@blink1073
blink1073 merged commit f137fdd into mongodb-labs:main Sep 10, 2026
8 checks passed
aclark4life pushed a commit to aclark4life/drivers-github-tools that referenced this pull request Oct 9, 2026
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.

3 participants