Skip to content

PYTHON-5980 Update exclude-newer docs for the uv-lock-update action - #2989

Open
blink1073 wants to merge 1 commit into
mongodb:mainfrom
blink1073:PYTHON-5980-3
Open

PYTHON-5980 Update exclude-newer docs for the uv-lock-update action#2989
blink1073 wants to merge 1 commit into
mongodb:mainfrom
blink1073:PYTHON-5980-3

Conversation

@blink1073

@blink1073 blink1073 commented Aug 14, 2026

Copy link
Copy Markdown
Member

PYTHON-5980

Changes in this PR

The 7 day exclude-newer cutoff never actually lived in pyproject.toml — it now comes
from the uv-lock-update action's exclude_newer input (defaulting to 7 days, passed
as UV_EXCLUDE_NEWER), per mongodb-labs/drivers-github-tools#118.
Updates CONTRIBUTING.md's local uv lock instructions to set UV_EXCLUDE_NEWER="7 days"
explicitly, since that cutoff is not applied automatically outside the scheduled workflow.

Test Plan

Documentation-only change; verified with just lint and just typing.

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage? (N/A)
  • Is any followup work tracked in a JIRA ticket? If so, add link(s).

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?

The 7 day cutoff moved from a nonexistent pyproject.toml setting to the
uv-lock-update action's exclude_newer input (mongodb-labs/drivers-github-tools#118).
Document that local uv lock runs need UV_EXCLUDE_NEWER set explicitly to get it.
@blink1073
blink1073 marked this pull request as ready for review August 14, 2026 21:39
@blink1073
blink1073 requested a review from a team as a code owner August 14, 2026 21:39
@blink1073
blink1073 requested review from aclark4life and a lite review from Copilot August 14, 2026 21:39

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.

Pull request overview

Updates contributor documentation to reflect that the 7-day exclude-newer behavior for uv lock is enforced by the scheduled uv-lock-update GitHub Action (via exclude_newer / UV_EXCLUDE_NEWER), not by pyproject.toml, and instructs developers to set UV_EXCLUDE_NEWER="7 days" when generating uv.lock locally to match CI/workflow behavior.

Changes:

  • Clarifies where the 7-day cutoff is configured (the uv-lock-update action input, not pyproject.toml).
  • Updates local uv lock instructions to run with UV_EXCLUDE_NEWER="7 days".
  • Updates the conflict-resolution snippet to use the same UV_EXCLUDE_NEWER setting.

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

@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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