Repository navigation
👷 ci(release): verify the zipapp served by bootstrap.pypa.io - #3309
Merged
Merged
Conversation
The release verify job checked the files on PyPI and the GitHub Release, but the install docs point users at bootstrap.pypa.io, which pypa/bootstrap builds from get-virtualenv. Nothing confirmed that copy matched what the release workflow built and attested. Add a job after verify that downloads the root, /virtualenv/ and per-Python paths, compares each byte for byte with the release asset and checks it against the release provenance. pypa/bootstrap polls get-virtualenv every 15 minutes before it rebuilds and purges the CDN, so the job retries for up to two hours. It only reads, so a failure leaves PyPI, the GitHub Release and get-virtualenv untouched and does not start the recovery job. The roadmap listed this check as planned work; drop the entry.
gaborbernat
force-pushed
the
ci/verify-bootstrap-zipapp
branch
from
September 23, 2026 00:54
a00b209 to
24baffa
Compare
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.
The release
verifyjob compares the PyPI files and the GitHub Release zipapp with the build output, but the install docs send users tohttps://bootstrap.pypa.io/virtualenv.pyzandhttps://bootstrap.pypa.io/virtualenv/x.y/virtualenv.pyz. No step checked that those URLs serve the attested file. 🔍bootstrap.pypa.io is a container that pypa/bootstrap builds from
pypa/get-virtualenv: itsDockerfilecopiespublic/to/virtualenv/andpublic/virtualenv.pyzto the root, a monitor workflow polls get-virtualenv every 15 minutes, andpurge.shpurges the CDN after each deploy. A newverify-bootstrapjob runs afterverify, downloads the root,/virtualenv/and every per-Python path that get-virtualenv symlinks to the latest zipapp, compares each byte for byte with the release asset, and runsgh attestation verifywith the same signer, ref and digest checks as the release zipapp step. Each download has a five minute timeout and three retries, and the job polls once a minute for up to two hours before it fails with the versionbootstrap.pypa.io/virtualenv/version.txtreports. The job only reads, so a failure changes no published file and does not trigger therecoveryjob. It reads get-virtualenv only to list paths, so it works however the release updates that repository, including the change in #3301. The roadmap listed this check as planned work, so I dropped that entry.buildout/buildoutdeleted the branch it polled. bootstrap.pypa.io served 21.7.4 during that time. That PR pinned buildout's script, and the rootvirtualenv.pyznow matches the 21.10.0 release asset byte for byte.