Repository navigation
ci: Port the Tier 2 build-error reporter to Python (#962) - #2599
Merged
Merged
Conversation
zackees
enabled auto-merge
October 27, 2026 10:37
Member
Author
|
Handed off to the coordinator.
|
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 27, 2026
…he shell script (#962) ci/test_tier2_build_errors.py drove bash build-errors.sh. Point it at the ported rust/tools/linux-validate/build_errors.py and load it by path (the suite already loads ci/ modules that way). The extracted recovery block runs the ported helper through this suite's interpreter. RED: the module does not exist yet, so every case errors with FileNotFoundError.
rust/tools/linux-validate/build_errors.py reproduces every section the shell script printed, in the same order and with the same limits: the zccache cache-infrastructure reasons (grep -E '^zccache(\[|:)'), the C/C++ ": error" and "FAILED:" lines (deduplicated, first 80), then the rustc error and build-script panic blocks with their "--> " location (the awk rule: a block ends at a blank line, the next FAILED:, a Compiling/Checking/Finished line, a warning, a progress line, or 12 lines). validate.sh runs it through `uv run --no-project`, the same call it already makes for serial-tests.py and check-plan.py; build-errors.sh is deleted and its ci.toml GEN-005 exception removed. No user-visible change.
zackees
force-pushed
the
infra/962-gen-005-build-errors-python
branch
from
October 27, 2026 10:59
cd21f7a to
975e5b9
Compare
zackees
enabled auto-merge
October 27, 2026 10:59
This was referenced Oct 27, 2026
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/build-errors.sh(36 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 --no-project.RED
ci/test_tier2_build_errors.pynow drives the port (rust/tools/linux-validate/build_errors.py) instead ofbash build-errors.sh, loading it by path the way the otherci/test_*.pysuites load their modules. On the unfixed tree the module does not exist, so every case errors (458813719): 10 errors,FileNotFoundError: .../build_errors.py.GREEN (
cd21f7aff)rust/tools/linux-validate/build_errors.py— the port, shebang#!/usr/bin/env -S uv run --script.validate.shcalls it throughuv run --no-projectat all three call sites.build-errors.shdeleted; theci.tomlGEN-005 exception for it removed.validate.shreaches it viauv run --no-project.The port keeps every section the shell printed, in the same order and with the same limits:
grep -E '^zccache(\[|:)', deduplicated, first 40) — printed first so hundreds of FAILED edges cannot crowd them out (mac-capture: Wait for SCK stop and fence callbacks before free #125);: error/: fatal error/FAILED:lines (deduplicated, first 80);-->location and code excerpt, by the awk rule: a block ends at a blank line, the nextFAILED:, aCompiling/Checking/Finishedline, awarning:line, a[i/n]progress line, or 12 lines, whichever comes first (first 200 lines).Validation
uv run python -m unittest ci/test_tier2_build_errors.py— 10 tests pass (RED: 10 errors before the module existed).uv run python -m unittest ci.test_ci_toml ci.test_uv_run ci.test_ci_tests_stdlib_only ci.test_no_sys_path_edits— 28 pass.ruff checkon both files: clean../lint's rust lane: the only failure isci/test_local_gate_probe.py, the environmental soldr-version probe on this host, unrelated to these files.Refs #962