Repository navigation
ci: Run the Tier 2 stale-build reset from Python (#962) - #2601
Merged
Merged
Conversation
zackees
enabled auto-merge
October 27, 2026 10:40
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 27, 2026
Port rust/tools/linux-validate/stale-build.sh (23 lines) to rust/tools/linux-validate/stale_build.py. Its only caller is validate.sh, which runs with uv mounted into the Tier 2 container, so the module is called through `uv run --script`; SRC (the source root) is passed as an argument rather than read from the environment, which is not exported. reset_stale_build removes BUILD_DIR when BUILD_DIR.rustc does not record the rustc version, or when the CMakeCache's CMAKE_HOME_DIRECTORY is not SRC, then records the version. Behaviour is unchanged across all eight cases the shell handled. The GEN-005 exception for the shell script is removed.
zackees
force-pushed
the
infra/962-gen-005-stale-build-python
branch
from
October 27, 2026 11:00
a33050a to
61bb23b
Compare
zackees
enabled auto-merge
October 27, 2026 11:00
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.
Ports
rust/tools/linux-validate/stale-build.sh(23 lines) to Python, per the GEN-005 burn-down in #962. Clean single-unit port: its only caller isvalidate.sh, which runs with uv mounted into the Tier 2 container (ci.yml:--mount ...$(command -v uv),dst=/usr/local/bin/uv) and already runs other ported helpers throughuv run --script.The shell's
reset_stale_buildread the ambientSRCshell variable, which is not exported invalidate.sh, so the port takes the source root as an argument instead:stale_build.py BUILD_DIR RUSTC_VERSION [SRC]. WithoutSRCthe source-path check is skipped, matching the shell's${SRC:-}.RED (
3385e413a)ci/test_tier2_run.py'sStaleBuildTestnow drives the port instead ofsource ... stale-build.sh; its cases and expectations are unchanged. On the unfixed tree the module does not exist, so the four cases error:uv run --script .../stale_build.py ... returned non-zero exit status 2. (18 tests, 4 errors.)GREEN (
a33050a7a)rust/tools/linux-validate/stale_build.py— the port.reset_stale_buildremovesBUILD_DIRwhenBUILD_DIR.rustcdoes not recordRUSTC_VERSION, or when theCMakeCache.txt'sCMAKE_HOME_DIRECTORYis notSRC(an old/srccopy, now/ro); it then records the version.rust/tools/linux-validate/validate.sh— thesourceline is gone; both call sites ($buildand$dbg) run the module throughuv run --script, passing"$SRC".stale-build.shdeleted; itsGEN-005exception removed fromci.toml.Verification
ci/test_tier2_run.py— 18 tests OK (was 4 errors on RED).SRCmatch/mismatch/absent branches: all match.ci.test_ci_toml19 OK,ci.test_uv_run5 OK,ci.test_no_sys_path_edits2 OK;uvx ruff checkclean../lint'stest_local_gate_proberust lane (the host's soldr is older than the repo pins); no container was started (the suite uses a temp dir, not Docker).Tiers: this is CI tooling, so there is no Rust/C tier to add — the only behaviour touched is the Python helper, covered by the suite above. No
docs/features.mdline (no user-visible change).Refs #962.