Skip to content

🐛 fix(cooled-prek): read hook dates from repo - #67

Closed
gaborbernat wants to merge 1 commit into
tox-dev:mainfrom
gaborbernat:fix/cooled-hooks-committed-cutoffs
Closed

gaborbernat wants to merge 1 commit into
tox-dev:mainfrom
gaborbernat:fix/cooled-hooks-committed-cutoffs

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

A turbohtml PR failed before its hooks ran: the shared check timed out reading a pinned package's upload date from PyPI. A transient metadata outage can therefore block an unrelated PR.

The dependency update job now records upload dates for exact hook pins in .github/hook-pin-cutoffs.json, together with a hash of the hook configuration. PR checks validate that committed record and use it to admit the pinned release ahead of the seven-day cutoff, without fetching metadata. 🔒 Ranges, transitive dependencies, and later releases remain under the cutoff.

Repositories with a .pre-commit-config.yaml must commit .github/hook-pin-cutoffs.json. A missing or stale file stops the check with an instruction to run refresh-pins.

An unrelated turbohtml PR failed when a PyPI metadata request timed out
before any hook ran. Record exact-pin upload dates during dependency updates
and validate the committed manifest in PR checks, so hook runs do not depend
on registry metadata availability.

BREAKING CHANGE: Callers must commit a refreshed hook-pin manifest before
updating this action.
@gaborbernat gaborbernat added the bug Something isn't working label Nov 11, 2026
@gaborbernat
gaborbernat deleted the fix/cooled-hooks-committed-cutoffs branch November 11, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant