Repository navigation
[CI] An allowlisted route test that regresses fails the route job - #421
Merged
Merged
Conversation
The route job's sweep runs every test (--all) and already exits 1 when a test on triton_route_passing.txt fails, but triton_route_in_container.sh swallowed that status and the workflow step only warned, so run 39743567221 (e27b64a) logged "REGRESSION: 3 allowlisted test(s) failed" and stayed green (#420). The in-container script now exits with the sweep's status, and the step fails with it after the summary and artifacts are written. A test off the allowlist still only reports: the sweep counts as regressions only allowlisted tests. The coverage report lists the regressed tests first, so the summary says why the job failed. An allowlisted test also regresses when it still exits 0 but emits no kernel: the allowlist is the tests that pass through the route, and one that falls back to eager no longer does. With --all the sweep also runs every allowlist entry that discover() does not find under tests/, so a deleted or renamed listed file fails (python cannot open it) instead of leaving the gate. The regression list is computed once and handed to the report.
triton_route_passing.txt:2 (and the header --update-allowlist writes) said "Gated by triton_route_sweep.py" while nothing gated; it now names the route job that fails on it. pytorchsim_test.yml said its matrix IS the allowlist; it is mirrored from it by hand and differs: Gemma's presets run as one file, and test_compiler_failure, test_reduction_tiling and test_select run there but are not on the allowlist. .claude/CLAUDE.md said the sweep is not gated, and that the PR matrix is a matrix over the allowlist; both now say what the workflows do.
…ails on route regressions alone test_patch_scope, test_togsim_exit and test_togsim_result pass without emitting a kernel, which the allowlist's own header excludes and --update-allowlist never writes. With the gate counting an allowlisted test that emits no kernel as a regression, they made every run red. They leave the allowlist and stay in the PR matrix, whose comment and .claude/CLAUDE.md now name them. Checked against the route job of run 39743567221 (job 119707734642, 88 results): regressions() over the new allowlist gives exactly the three real failures, test_yolov5, test_clip and test_convnextv2 (#420).
This was referenced Oct 23, 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.
Closes #420.
The route job's allowlist now gates. Until now an allowlisted test that regressed only produced a warning, and the job stayed green. Runs 39743567221 and the next push both did this with
test_yolov5,test_clipandtest_convnextv2failing.What changed
triton_route_in_container.shandpytorchsim_triton_backend.yml: the sweep's exit status reaches the job.::error::names the cause.--allstays report-only for tests that are not on the allowlist.triton_route_sweep.py:regressions()is computed once. It counts an allowlisted test that fails, or that passes without emitting a kernel (it no longer passes through the route). An allowlist entry thatdiscover()does not return (deleted or renamed) is still run, and fails.test_patch_scope,test_togsim_exitandtest_togsim_resultemit none. They leave the allowlist and stay in the PR matrix.triton_route_passing.txtsaid "Gated by…".pytorchsim_test.ymlsaid the matrix "IS" the allowlist..claude/CLAUDE.mdsaid "reported not gated".Verification
bash -n,shellcheckandactionlintpass. actionlint warns only about the self-hosted labels, the same warnings as on the base.The step script was dry-run with a faked sweep rc:
::error::printed, summary writtenReal CI results: I fed the 88 results of job 119707734642 into
regressions()with the new allowlist. It returns exactly the three real failures.Expect red until the compiler is fixed. All three failures are PTB compiler bugs, not PyTorchSim ones:
test_yolov5andtest_clip: schedule-vpu-stream clones the MXU result pop when it rebuilds x for stage 1 (yolov5, clip) PyTorchSim-Triton-Backend#324.schedule-vpu-streamclones the MXU result pop.test_convnextv2: fit-to-numel splits a linalg.generic when a row gather's collapse feeds it (convnextv2) PyTorchSim-Triton-Backend#325.fit-to-numelsplits a generic behind a row gather's collapse.They stay on the allowlist, so the gate reports them honestly. The job turns green with the pin bump that brings the fixes.
🤖 Generated with Claude Code
https://claude.ai/code/session_01UnJWSTNtd6944XAzy4bhk5