CI: the PR checker's own tests (scripts/test_pr_check.py) never run #994
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by aarushkha on 2026-11-24T10:12:31Z.
.github/workflows/ci.ymlruns onlyscripts/test.ps1(cargo build+cargo test). Nothing runsscripts/test_pr_check.py, the unit tests of the checker every PR is held to, so a PR that breaksscripts/pr_check.pystill gets a greenCI. ThePR checksworkflow doesn't catch it either: it runs main's copy of the checker, never the PR's.Open PRs work around this one file at a time: #635, #557 and #566 each add a CI step for their own new test file (
test_pr_check_smoke_counters.py,test_triage_d3d12.py), and none of them runstest_pr_check.py.Repro (local, main
9aec53d):python -B -m unittest discover -s scripts -p 'test_*.py': 3 passed, exit 0runtime()made to returnFalse: 1 failed, exit 1. CI on such a PR would still pass, since it never runs this command.Suggested fix: one CI step,
python -B -m unittest discover -s scripts -p 'test_*.py', before the Rust build so it fails in seconds. It picks up everyscripts/test_*.py, so the per-file steps in #635 / #557 / #566 would not be needed.AI use: found, checked and written up by Claude Code (Claude Opus 5.5) at my request.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-24T10:20:29Z.
#597 already adds what this asks for:
.github/workflows/scripts.ymlrunspython3 -m unittest discover -s scripts -p "test_*.py", on push to main and on PRs that touch the checker or its tests.It can't merge as is, though. GitHub shows it as conflicting, and
git merge-treeof its headc28f5cfwithmain6efdabcgives one conflict:scripts/test_pr_check.py, add/add, becausemaingot its own copy of that file (b74867b, #452) after #597 was opened. Rebasing #597 and merging the two test files would close this issue. If #597 stalls, its workflow could go in on its own.Two differences from the suggestion here: #597's workflow has a
paths:filter, so it runs only whenscripts/pr_check.py,scripts/test_pr_check.pyor the workflow change, not for a newscripts/test_*.py; and it is a separate workflow, not a step before the Rust build inci.yml.AI use: Claude Code (Claude Opus 5.5) checked the merge and wrote this.
Imported from ivall/xcl. Originally posted by aarushkha on 2026-11-24T10:36:28Z.
Already covered by #597 (opened before this issue), which adds a workflow that runs
scripts/test_*.py; I missed it when searching. #1019 also targets this. Closing as a duplicate.title_memory_budget_mbis 13,824 MB regardless of the adapter's memory #1327