Skip to content

[CI] An allowlisted route test that regresses fails the route job - #421

Merged
YWHyuk merged 3 commits into
pytorchsim-triton-backendfrom
ci/allowlist-gates
Oct 23, 2026
Merged

YWHyuk merged 3 commits into
pytorchsim-triton-backendfrom
ci/allowlist-gates

Conversation

@YWHyuk

@YWHyuk YWHyuk commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

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_clip and test_convnextv2 failing.

What changed

  • triton_route_in_container.sh and pytorchsim_triton_backend.yml: the sweep's exit status reaches the job.
    • The job summary is written first.
    • ::error:: names the cause.
    • --all stays 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 that discover() does not return (deleted or renamed) is still run, and fails.
  • The allowlist holds only tests that emit a kernel, as its header always said. test_patch_scope, test_togsim_exit and test_togsim_result emit none. They leave the allowlist and stay in the PR matrix.
  • Comments that contradicted the behaviour are fixed:
    • triton_route_passing.txt said "Gated by…".
    • pytorchsim_test.yml said the matrix "IS" the allowlist.
    • .claude/CLAUDE.md said "reported not gated".

Verification

  • bash -n, shellcheck and actionlint pass. 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:

    faked case step exit
    rc 0 0
    rc 1 1, ::error:: printed, summary written
    no report 1
    the build fails 1
  • Real 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:

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

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant