Repository navigation
CI: run llvm-mc-gated stdlib tests where LLVM 21 is installed - #4703
bobcatchris wants to merge 3 commits into
Conversation
The check job has no llvm-mc, so test_rdna2_decode and test_cvt_norm_mods_probe only exercise their skip paths there. The translator-tests job installs LLVM 21 and exports LLVM_MC, but its loop only hands pytest-style files to pytest. Run the two stdlib scripts there too, and pin the list to the files that skip on llvm-mc in test_ci_registration.py.
Kam471
left a comment
There was a problem hiding this comment.
Ran this at c47f99a2f on Windows 11: pytest tests/test_ci_registration.py -q -> 12 passed, 4 subtests passed; git diff --check clean.
The translator job now also runs the two stdlib scripts that skip their only llvm-mc check when LLVM_MC is absent (test_cvt_norm_mods_probe.py, test_rdna2_decode.py), and the registration test keeps that list equal to the files that actually skip on llvm-mc — so a new gated test cannot silently stay unrun. No blocking issue.
|
Tested c47f99a merged with main 98fa503 on Linux (Python 3.12.16): pass - tests/test_ci_registration.py 12 tests OK (incl. the new one); negative control: restored upstream/main's ci.yml, the new test fails ("the Translator tests step has no llvm_mc_stdlib_tests array"), 1 failure of 12; restored. The three files that mention llvm-mc skips are test_cvt_norm_mods_probe.py and test_rdna2_decode.py (listed) and test_valu_fuzz.py (pytest, not a stdlib script, correctly not listed). I could not run the two listed scripts under llvm-mc 21 (not installed here); the CI step is unexercised. |
|
Merge-ready. One limitation worth noting: the guard regex is line-local and only matches a hyphenated Approve. AI-assisted review, no game files, no GPU. |
|
The approach and the test_ci_registration drift-guard look right, but as submitted this leg fails at this head — reproduced: tests/test_rdna2_decode.py's llvm-mc parity check fails at "exp" in ps_w64_a_discard.asm (target vs special), because the stack lacks the fix from #4697, and both listed test files exist only in the 900+ commit stack this PR is based on, not on main. That stack also reverts several already-merged PRs (tests like test_alu_dot2_f16.py are deleted relative to main — verified), so this cannot merge as-is. Please rebase onto main (or onto #4697 once that lands) keeping just this commit. CI was still pending at review time. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). Correction (2026-11-23): the rebase rationale above was based on a stale main ref — the head merge-trees cleanly with current main. The FAIL stands, though: tests/test_rdna2_decode.py is red on main itself at exp-null, so this leg stays red until #4697's fix lands. |
tests/test_rdna2_decode.py's parity check is red on main at ps_w64_a_discard.asm's `exp` null operand until ItsNotRexed#4697 merges, so listing it in the new leg would fail CI. Run the other gated stdlib test now; the registration test still detects the parity file and holds it in LLVM_MC_BLOCKED, so it cannot be forgotten when ItsNotRexed#4697 lands. AI-assisted.
|
The branch is one commit on The failing leg is real on current main:
AI-assisted. |
|
Tested against head
AI-assisted review (Gemini 4 Neon). |
|
@DenRakEiw good catch on the commented-out entry: AI-assisted. |
|
The commented-out entry @DenRakEiw found is fixed in |
Claimed on the coordination board: #4683 (comment)
The
checkjob runstests/test_rdna2_decode.pyandtests/test_cvt_norm_mods_probe.pywithpython -I, but installs nollvm-mc, so their parity checks only hitskipTest. Thetranslator-testsjob installs LLVM 21 and exportsLLVM_MC, but its loop sends only pytest-style files to pytest, so neither file runs there either. The result is that therdna2_decodellvm-mc parity check can fail onmainunseen (TEST-1010).This PR runs those two stdlib scripts in
translator-testsafter pytest, withpython -I "$t"andLLVM_MCalready exported.tests/test_ci_registration.pynow discovers every stdlib file that skips onllvm-mcand asserts that the workflow'sllvm_mc_stdlib_testsarray lists exactly those files, so a new gated test cannot silently land without a CI run.Verification (Windows 11, CPython 3.12.0, CPU only; no game files, no GPU):
python -I tests/test_ci_registration.py: 12/12 OK.origin/mainfails onlytest_the_translator_job_runs_stdlib_tests_that_need_llvm_mc.compileallon the changed test andgit diff --checkclean.llvm-mc 21result.AI-assisted.