Skip to content

DRIVERS-3564 Migrate drivers-evergreen-tools Python dependency management to a uv workspace with a single lock file - #897

Merged
blink1073 merged 4 commits into
mongodb-labs:masterfrom
blink1073:final-DRIVERS-3564
Oct 29, 2026
Merged

blink1073 merged 4 commits into
mongodb-labs:masterfrom
blink1073:final-DRIVERS-3564

Conversation

@blink1073

@blink1073 blink1073 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

DRIVERS-3564

Summary

Cleanup for the uv workspace migration: one shared helper replaces the four activate scripts, each Dependabot ecosystem opens one grouped pull request, and a weekly workflow updates uv.lock.

Changes in this PR

  • Deduplicated the four feature activate-*.sh scripts into .evergreen/activate-uv-venv.sh; paths, names, and behavior are unchanged.
  • Added grouped gomod and npm Dependabot entries; the uv entry opens security updates only; the inactive Azure Functions app stays uncovered, noted for revival (DRIVERS-2883).
  • Added a weekly uv Lock Update workflow that opens one uv.lock pull request; CONTRIBUTING.md and AGENTS.md describe the split.

Test Plan

Checklist

Checklist for Author

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

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.

🟢 Approval recommended

No unresolved review comments were identified, and the reviewed changes are assessed as approval-ready.

No open issues 🎉

What changed in this PR

This pull request completes the uv workspace dependency-management cleanup by centralizing virtual-environment activation, adding automated lock-file maintenance, and documenting dependency-update responsibilities.

Changes:

  • Added a shared .evergreen/activate-uv-venv.sh helper with thin feature-specific wrappers.
  • Added scheduled uv lock-file updates and grouped Go/npm Dependabot configuration, with uv limited to security updates.
  • Updated contributor and agent documentation, including the inactive Azure Functions dependency exception.
File Description
CONTRIBUTING.md Documents uv lock updates, Dependabot coverage, and the Azure Functions exception.
AGENTS.md Updates repository guidance for the shared activation helper and lock workflow.
.github/​workflows/​uv-lock-update.yml Adds scheduled and manual uv lock-file update automation.
.github/​dependabot.yml Groups Go and npm updates and limits uv updates to security fixes.
.evergreen/​ocsp/​activate-ocspvenv.sh Delegates OCSP environment setup to the shared helper.
.evergreen/​csfle/​activate-kmstlsvenv.sh Delegates CSFLE environment setup to the shared helper.
.evergreen/​auth_oidc/​azure_func/​README.md Documents the inactive Azure Functions dependency manifest.
.evergreen/​auth_oidc/​activate-authoidcvenv.sh Delegates OIDC environment setup to the shared helper.
.evergreen/​auth_aws/​activate-authawsvenv.sh Delegates AWS environment setup to the shared helper.
.evergreen/​activate-uv-venv.sh Provides shared uv environment synchronization and activation logic.

Review effort: Lite

@blink1073

Copy link
Copy Markdown
Member Author

Amazon Linux failures are unrelated

@blink1073
blink1073 marked this pull request as ready for review October 27, 2026 18:16
@blink1073
blink1073 requested a review from a team as a code owner October 27, 2026 18:16

@PavelSafronov PavelSafronov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The script consolidation looks good. A question about deployment and a doc nit, but not blockers.

update:
name: Update uv.lock
runs-on: ubuntu-latest
environment: automation

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This environment doesn't exist yet. Is the environment being set up separately?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks for the remind, I just created it

Comment thread CONTRIBUTING.md Outdated
pull request that updates `uv.lock`. Dependabot handles Python security updates,
plus version updates for everything else: GitHub Actions, the Go modules
(`mongoproxy`, `perfcomp`), and the `github_app` and `mongodb-runner` npm
projects. Each Dependabot ecosystem opens one grouped pull request; see

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: not strictly true for uv. As configured, the only uv PRs will be security updates, and dependabot doesn't batch those.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed

PavelSafronov
PavelSafronov previously approved these changes Oct 27, 2026

@PavelSafronov PavelSafronov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good!

eramongodb
eramongodb previously approved these changes Oct 28, 2026

@eramongodb eramongodb 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.

One minor suggestion; otherwise, LGTM.

Comment thread CONTRIBUTING.md Resolved
@blink1073
blink1073 dismissed stale reviews from eramongodb and PavelSafronov via 0eb1923 October 29, 2026 13:51
@blink1073
blink1073 requested a review from eramongodb October 29, 2026 13:52
@blink1073

Copy link
Copy Markdown
Member Author

@PavelSafronov can you please re-review for the last commit?

@PavelSafronov PavelSafronov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good.

@blink1073
blink1073 merged commit d1e2f48 into mongodb-labs:master Oct 29, 2026
79 of 137 checks passed
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.

4 participants