Skip to content

Build(deps): Add uv exclude-newer cooldown - #102

Merged
zxiiro merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:ci/uv-exclude-newer
Jun 11, 2026
Merged

Build(deps): Add uv exclude-newer cooldown#102
zxiiro merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:ci/uv-exclude-newer

Conversation

@ModeSevenIndustrialSolutions

Copy link
Copy Markdown
Contributor

Adds a [tool.uv] exclude-newer = "7 days" resolver cooldown and refreshes uv.lock.

Why: uv refuses to lock any dependency published within the last 7 days, giving the community time to catch a compromised release before it enters the lockfile. Complements the existing Dependabot uv cooldown (which only gates update PRs, not local or agent uv lock resolutions).

Notes:

  • Re-locking may roll a recently published dependency back to the newest release older than the 7-day window (visible in the uv.lock diff); it returns on a later lock once it ages past the window.
  • uv 0.11.x records the cooldown as a relative span (exclude-newer-span = "P7D"); the lockfile carries a backwards-compatible no-op placeholder so older uv in CI still reads it.
  • Requires uv >= 0.9.17 for the relative-duration form.
  • Part of an organisation-wide rollout across uv-managed repositories.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds an exclude-newer “cooldown” to uv’s resolver configuration so that dependency resolution avoids packages published in the last 7 days, and refreshes the generated uv.lock metadata to reflect this setting (including the relative-span encoding used by newer uv versions).

Changes:

  • Add [tool.uv] exclude-newer = "7 days" to enforce a 7-day supply-chain cooldown during dependency resolution.
  • Refresh uv.lock to include the corresponding recorded lock options (exclude-newer-span = "P7D", plus the compatibility placeholder).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Introduces the uv resolver cooldown configuration via [tool.uv] exclude-newer = "7 days".
uv.lock Records the cooldown in lock metadata (exclude-newer-span = "P7D") and includes a compatibility placeholder field.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add a [tool.uv] exclude-newer = "7 days" resolver cooldown so uv does
not lock any dependency published within the last 7 days, giving the
community time to catch a compromised release before it enters the
lockfile. This complements the existing Dependabot uv cooldown, which
only gates update PRs rather than fresh resolutions.

uv records the cooldown as a relative span (exclude-newer-span = P7D).
Re-locking may roll a recently published dependency back to the newest
release older than the window; it returns once that version ages past
the cooldown. Needs uv 0.9.17 or newer.

Co-authored-by: Claude <claude@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>

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

🤖 Dependamerge
Approved this pull request ✅

@zxiiro
zxiiro merged commit da6709b into lfreleng-actions:main Jun 11, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants