Skip to content

Add explicit dependency cooldowns - #27796

Merged
woodruffw merged 1 commit into
mainfrom
oss-remediation/01-cooldowns
Aug 16, 2026
Merged

woodruffw merged 1 commit into
mainfrom
oss-remediation/01-cooldowns

Conversation

@woodruffw

Copy link
Copy Markdown
Member

Summary

Adds explicit 7d cooldowns to all of our PEP 723 scripts, as well as similar cooldowns via .npmrc.

Test Plan

NFC.


Stack created with GitHub Stacks CLI • Give Feedback 💬

@woodruffw
woodruffw requested review from a team and AlexWaygood as code owners August 16, 2026 16:32
@astral-sh-bot

astral-sh-bot Bot commented Aug 16, 2026

Copy link
Copy Markdown

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 97.68%. The percentage of expected errors that received a diagnostic held steady at 93.44%. The number of fully passing files held steady at 109/136.

@astral-sh-bot

astral-sh-bot Bot commented Aug 16, 2026

Copy link
Copy Markdown

Memory usage report

Memory usage unchanged ✅

@astral-sh-bot

astral-sh-bot Bot commented Aug 16, 2026

Copy link
Copy Markdown

ecosystem-analyzer results

No diagnostic changes detected ✅

Large timing changes:

Project Old Time New Time Change
pycryptodome 0.16s 0.25s +60%

Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.

Full report with detailed diff (timing results)

@woodruffw

Copy link
Copy Markdown
Member Author

Note: This is intentionally lower than our Renovate cooldown, which is 30d. The rationale is that we want a longer cooldown for automated updates, while maintainers should have more latitude/discretion when making manual updates.

(And of course, exclusions/exceptions remain possible.)

@astral-sh-bot

astral-sh-bot Bot commented Aug 16, 2026

Copy link
Copy Markdown

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(And of course, exclusions/exceptions remain possible.)

I had to check how we would do this -- it looks like we'd need to add explicit exclusions to the inline metadata, e.g.

exclude-newer-package = { some-package = false }

(that seems totally fine)

#
# [tool.uv]
# exclude-newer = "7 days"
# exclude-newer = "P7D"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I find the previous spelling more readable, but don't care that much :P

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.

I like the PnD format since it's the ISO duration format, but I'm happy to do a follow up to change to the human format!

@AlexWaygood AlexWaygood added the internal An internal refactor or improvement (not for changelogs) label Aug 16, 2026
@woodruffw
woodruffw merged commit bfc9036 into main Aug 16, 2026
84 checks passed
@woodruffw
woodruffw deleted the oss-remediation/01-cooldowns branch August 16, 2026 17:19
zanieb pushed a commit that referenced this pull request Aug 19, 2026
Older `npm` releases silently ignore the seven-day dependency cooldown
added in #27796. Require `npm` 11.10.0 or newer in the playground,
playground API, and ty benchmark projects, and enable `engine-strict` so
unsupported clients fail during `npm install` or `npm ci`. The lockfile
changes only record that requirement; dependency versions and the
existing cooldown are unchanged.

Pin Node.js to `24.19.0` for the playground CI and publishing jobs,
which provides a compatible bundled `npm`. The separate script-default
changes are in #27837, and the locked playground deployment tool is in
#27838.

Related: #27855 pins the remaining WebAssembly test and
publication runtimes. astral-sh/setup-uv#1026 and
astral-sh/ruff-action#411 enforce the same legacy-aware `npm` version
floor. astral-sh/uv#21193 applies it to uv's locked formatter toolchain.

---------

Co-authored-by: zaniebot <242828183+zaniebot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement (not for changelogs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants