Repository navigation
chore: pin the release build tools with hashes (#348) - #355
Merged
Merged
Conversation
…e and pin build everywhere (#348)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #355 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 151 151
Lines 17816 17816
Branches 3599 3599
=========================================
Hits 17816 17816
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov
8000
by Harness. 🚀 New features to boost your workflow:
|
rafatahmed
marked this pull request as ready for review
November 27, 2026 22:43
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #348
This is H8, the last open part of #348 (H2 #352, H4 #353 and H5 #354 are merged).
Before. The release job ran
pip install --upgrade build twineand then built in an isolated environment that fetched the newest setuptools, so each release used whatever versions PyPI served that day. The test jobs installedbuildunpinned.Now
tools/requirements-release.inlistsbuild==1.6.1,twineandsetuptools>=77.0.3(the pyproject minimum);tools/requirements-release.txtis theuv pip compile --universal --generate-hashesresult: 38 pinned packages, 448 hashes, valid for Python 3.11 and later on Linux, macOS and Windows.publish.yml: thebuildjob runspip install --require-hashes -r tools/requirements-release.txtandpython -m build --no-isolation, so the artifacts are made by build 1.6.1, setuptools 84.2.1 and twine 7.0.0 and nothing else.--upgradeis gone.build(test.ymlthree places, thepublish.ymltest job) usesbuild==1.6.1; a test fails if they differ from the requirements file.pipentry for/tools, beside the existing GitHub Actions one.docs/publishing.md(how to regenerate), roadmap H8 marked done, changelog entry.Not changed:
tools/verify_distribution.pystill builds in an isolated environment, as a user of the sdist would; the published artifacts come from the hashed tools.Verified locally
--require-hashes, built the sdist and wheel with--no-isolation(flahax 0.7.1.dev0), andtwine check --strictpassed both. A Python 3.11 venv also installs the file.tests/test_release_tool_pins.py(5 tests); without the workflow changes 6 of its checks fail.tools/verify_distribution.pyPASS; changelog, manifest, release-hygiene and documentation tests; ruff check and format.Not run: the full pre-push suite (hours); the publish workflow itself runs only on a release, so its first real run with these pins will be 0.7.1. CI runs the full gate here. Dependabot's first
/toolsPR may also touchrequirements-benchmark-report.txt.