8000 chore: pin the release build tools with hashes (#348) by rafatahmed · Pull Request #355 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

chore: pin the release build tools with hashes (#348) - #355

Merged
rafatahmed merged 1 commit into
mainfrom
chore/pin-build-tools
Nov 27, 2026
Merged

rafatahmed merged 1 commit into
mainfrom
chore/pin-build-tools

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

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 twine and then built in an isolated environment that fetched the newest setuptools, so each release used whatever versions PyPI served that day. The test jobs installed build unpinned.

Now

  • tools/requirements-release.in lists build==1.6.1, twine and setuptools>=77.0.3 (the pyproject minimum); tools/requirements-release.txt is the uv pip compile --universal --generate-hashes result: 38 pinned packages, 448 hashes, valid for Python 3.11 and later on Linux, macOS and Windows.
  • publish.yml: the build job runs pip install --require-hashes -r tools/requirements-release.txt and python -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. --upgrade is gone.
  • Every other job that installs build (test.yml three places, the publish.yml test job) uses build==1.6.1; a test fails if they differ from the requirements file.
  • Dependabot gets a monthly pip entry for /tools, beside the existing GitHub Actions one.
  • Docs: a "Build-tool pinning" section in docs/publishing.md (how to regenerate), roadmap H8 marked done, changelog entry.

Not changed: tools/verify_distribution.py still builds in an isolated environment, as a user of the sdist would; the published artifacts come from the hashed tools.

Verified locally

  • A clean Python 3.13 venv installed with --require-hashes, built the sdist and wheel with --no-isolation (flahax 0.7.1.dev0), and twine check --strict passed 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.py PASS; 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 /tools PR may also touch requirements-benchmark-report.txt.

@rafatahmed rafatahmed added the github_actions Pull requests that update GitHub Actions code label Nov 27, 2026
@rafatahmed rafatahmed self-assigned this Nov 27, 2026
@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 Flahax | 🛠️ Build #36220899 | 📁 Comparing 3b2f4e8 against latest (bb879d1)

  🔍 Preview build  

1 file changed
± changelog.html

@codecov
codecov Bot commented Nov 27, 2026 •
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bb879d1) to head (3b2f4e8).
⚠️ Report is 2 commits behind head on main.

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           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov 8000 by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0.7.1: edge-case corpus, convergence diagnostics and rejection tests (H2, H4, H5)

1 participant

0