Repository navigation
👷 ci(check): pin test tool downloads and bump them weekly - #3293
Merged
Merged
Conversation
gaborbernat
force-pushed
the
ci/pin-test-tool-downloads
branch
from
September 23, 2026 00:10
6250034 to
ba1cd37
Compare
gaborbernat
force-pushed
the
ci/pin-test-tool-downloads
branch
from
September 23, 2026 00:13
ba1cd37 to
4d3616a
Compare
gaborbernat
force-pushed
the
ci/pin-test-tool-downloads
branch
from
September 23, 2026 00:14
4d3616a to
18a16c3
Compare
The rp test legs ran the newest RustPython release and the Windows legs the newest Nushell release, with no integrity check. A swapped release asset would run on our runners unnoticed. Dependabot cannot bump release downloads. The check workflow reads each tag and per-asset SHA-256 from tasks/ci-tools.json. A Monday schedule of the upgrade workflow, and manual dispatches, rewrite that file from the read-only generate job after comparing each computed hash with the digest GitHub reports. Daily runs bump the wheels and skip the file. Keeping the pins in a data file lets the publish job validator accept one extra JSON path, and automation never edits a workflow file. A tag that has not moved keeps its recorded hashes, so an asset replaced under the same tag fails CI.
gaborbernat
force-pushed
the
ci/pin-test-tool-downloads
branch
from
September 23, 2026 00:14
18a16c3 to
3a4e2e6
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
rptest legs downloaded the newest RustPython release, and the Windows legs the newest Nushell release, then ran both binaries with no integrity check. 🔒 A swapped release asset would run on our runners unnoticed, and an upstream release could change CI results without a commit here.The check workflow now reads each tag and per-asset SHA-256 from
tasks/ci-tools.jsonand runssha256sum -cbefore installing. The pins match what CI resolves today: RustPython2025-03-05-upd-webpack-19and Nushell0.115.1. Dependabot cannot bump release downloads, so the upgrade workflow rewrites the file every Monday and on manual dispatch, and its daily runs bump the wheels and leave the file alone. On the Monday and manual runs the read-only generate job runstasks/upgrade_ci_tools.py, which finds the newest releases (RustPython through GraphQL, since the REST release listing for that repository returns nothing), downloads the assets, hashes them, compares each hash with the digest GitHub reports when one exists, and rewrites the data file. An unchanged tag keeps its recorded hashes, so an asset replaced under the same tag fails CI. The publish job acceptstasks/ci-tools.jsonas one more allowed path in the upgrade patch, and no workflow file changes through automation. 🤖I folded the bump into the existing embedded-wheel pull request instead of opening a second one. It reuses the patch validator, the
upgradeenvironment and the deploy key, and a second publish job would double that credential surface for a one-file change. The trade-off: when a new pip, setuptools or wheel sits inside the seven-day age window on a Monday, the tool bump waits a week with it, and a later daily run that finds new wheels rebuilds the pull request without the tool bump until the next Monday. The bump step gets the read-only job token, and runs outsidetox -e upgradeso the third-party tools that environment installs cannot read it.