Repository navigation
ci: Follow-ups to #185 (tracked bytecode, stale Tier 2 build dirs) - #187
Merged
Merged
Conversation
./lint runs the ci/ tests, which writes __pycache__ next to them. Nothing ignored it, so #185 merged five ci/__pycache__/*.pyc files and #178 two tools/leaderboard/__pycache__/*.pyc files. test_repo_hygiene fails while any .pyc is tracked or bytecode is not ignored. Also adds test_tier2_run.test_image_installs_pinned_toolchain, which guards #185's fix: run.sh must build the image with RUST_TOOLCHAIN set to the rust-toolchain.toml channel. It fails against run.sh before #185. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Untracks the seven .pyc files and ignores __pycache__/ and *.py[cod]. test_repo_hygiene passes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
After #185 the image installs only the pinned 1.98.1. A /build volume configured before that still has Corrosion's cached stable rustc and cargo paths, so tier2-linux fails at configure: Could not find toolchain 'stable-x86_64-unknown-linux-gnu' StaleBuildTest describes reset_stale_build in rust/tools/linux-validate/stale-build.sh, which does not exist yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
validate.sh records rustc -V (as rust-toolchain.toml selects it) next to each build dir and removes the dir when the recorded version differs or is missing. Volumes configured before #185 configure fresh once, and ccache keeps the C rebuild warm. On a volume that failed with "Could not find toolchain 'stable-x86_64-unknown-linux-gnu'", Tier 2 now passes 56/56 OFF and ON. Co-Authored-By: Claude Opus 5.5 <[email protected]> Local-Gate: v1 tree=9352bb02fa7a526522995edb192bdac0bcd99716 secs=98 lanes=lint:run,rust-test:run,tier2-linux:run Ci-Attestation: {"at":1791687870,"gate":"rust/all/fmt","host":"linux-x86_64","key":"140aee46b1af216c7062efbf15e418288557c3398bc5fe9f310e88c80d68adf7","lane":"lint","parents":["383da90f1706c1736e6161311f4f59b8655a88ff"],"secs":49,"stamp":"0dc371df353baa4e103cda50b6b21fe5","tree":"9352bb02fa7a526522995edb192bdac0bcd99716","v":1,"via":"run"} Ci-Attestation: {"at":1791687870,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"140aee46b1af216c7062efbf15e418288557c3398bc5fe9f310e88c80d68adf7","lane":"lint","parents":["383da90f1706c1736e6161311f4f59b8655a88ff"],"secs":49,"stamp":"85994b7bab4201c1f8f4163e9da40ef6","tree":"9352bb02fa7a526522995edb192bdac0bcd99716","v":1,"via":"run"} Ci-Attestation: {"at":1791687870,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"67cbe18565c80dacfa02d7037f1b56293a8e1985b1039ebd5214937321fbd80e","lane":"rust-test","parents":["383da90f1706c1736e6161311f4f59b8655a88ff"],"secs":27,"stamp":"d1cc3bb5ab18062f1a0f068325fff882","tree":"9352bb02fa7a526522995edb192bdac0bcd99716","v":1,"via":"run"} Ci-Attestation: {"at":1791687870,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"ec4a1bdadaf00d07a3280aac5db6702d7ed9ea2cd2cc22e50347bdb0d39782cc","lane":"tier2-linux","parents":["383da90f1706c1736e6161311f4f59b8655a88ff"],"secs":22,"stamp":"76d463846177524d418e835bd6bf3bea","tree":"9352bb02fa7a526522995edb192bdac0bcd99716","v":1,"via":"run"}
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.
Two problems with #185 as merged, each shown red to green.
1. Tracked Python bytecode
./lintruns theci/tests, which write__pycache__, and nothing ignored it. #185 merged fiveci/__pycache__/*.pycfiles, and #178 had merged twotools/leaderboard/__pycache__/*.pyc.b5602cb29:ci/test_repo_hygiene.pyfails while any.pycis tracked or bytecode is not ignored (2 of 2 failed on master). The commit also addstest_image_installs_pinned_toolchain, a guard for rust: Pin the toolchain to the soldr-supported 1.98.1 and enforce it in lint #185's Dockerfile fix. It fails againstrun.shfrom before rust: Pin the toolchain to the soldr-supported 1.98.1 and enforce it in lint #185.0d88bd516: untracks the seven files and ignores__pycache__/and*.py[cod].2. Tier 2 fails on any build volume configured before #185
The image now has only 1.98.1. Corrosion caches the configuring toolchain's rustc and cargo paths, so an existing
/buildvolume fails at configure:CI starts from a fresh volume each time, so CI is unaffected. Every local checkout that ran tier2-linux before #185 is affected, which broke the local gate here.
383da90f1:StaleBuildTest(4 tests) describesreset_stale_build. It fails because the helper does not exist. On the real stale volume, tier2-linux failed with the error above.b25117ee3:rust/tools/linux-validate/stale-build.shrecordsrustc -Vnext to each build dir, andvalidate.shremoves a dir whose recorded version differs or is missing. ccache keeps the C rebuild warm. On the same volume, Tier 2 passes 56 of 56 withENABLE_RUST_LIBOBSOFF and 56 of 56 with it ON.Local gate stamped on the head: lint, rust-test and tier2-linux all passed.