Skip to content

ci: Follow-ups to #185 (tracked bytecode, stale Tier 2 build dirs) - #187

Merged
zackees merged 4 commits into
masterfrom
ci/untrack-bytecode
Oct 11, 2026
Merged

zackees merged 4 commits into
masterfrom
ci/untrack-bytecode

Conversation

@zackees

@zackees zackees commented Oct 11, 2026

Copy link
Copy Markdown
Member

Two problems with #185 as merged, each shown red to green.

1. Tracked Python bytecode

./lint runs the ci/ tests, which write __pycache__, and nothing ignored it. #185 merged five ci/__pycache__/*.pyc files, and #178 had merged two tools/leaderboard/__pycache__/*.pyc.

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 /build volume fails at configure:

CMake Error at /build/rust-ON/_deps/corrosion-src/cmake/FindRust.cmake:23 (message):
  Could not find toolchain 'stable-x86_64-unknown-linux-gnu'

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.

  • RED 383da90f1: StaleBuildTest (4 tests) describes reset_stale_build. It fails because the helper does not exist. On the real stale volume, tier2-linux failed with the error above.
  • GREEN b25117ee3: rust/tools/linux-validate/stale-build.sh records rustc -V next to each build dir, and validate.sh removes 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 with ENABLE_RUST_LIBOBS OFF and 56 of 56 with it ON.

Local gate stamped on the head: lint, rust-test and tier2-linux all passed.

zackees and others added 4 commits October 10, 2026 19:58
./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"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant