Repository navigation
isa_coverage: a stalled llvm-mc is reported next to the names, not a TimeoutExpired traceback - #4427
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 9d7a002d on Windows 11: python -I tests/test_isa_coverage.py -> 22 tests, OK (4 skipped); git diff --check clean.
A stalled llvm-mc is now reported as one error line next to the affected names instead of a TimeoutExpired traceback; the skipped cases are tool-dependent. No blocking issue.
|
Independent Windows check of I also exercised a real timeout rather than mocking |
|
Reviewed and tested 9d7a002 (already based on origin/main 03b09a0): looks good.
AI-assisted (Claude), on behalf of dev-ewann. No GPU used. |
Item: new, claimed here.
Depends on: none. #4426 edits the same
subprocess.run(...)line (addserrors="replace", a different fix); whichever lands second rebases a one-line conflict.Why
isa_coverage.py --llvm-mc EXEruns llvm-mc once per non-RDNA2 name with a 30 s timeout but only catchesOSError. A stalled llvm-mc raisedsubprocess.TimeoutExpiredout ofmain: traceback, no report. Expected: the report is still printed, with the stall named next to those entries.What
probe_llvm_mccatchesTimeoutExpiredand returns the same{"error": ...}shape it already returns when llvm-mc cannot be started, so the remaining names are not each given another 30 s. The timeout is the named constantPROBE_TIMEOUT.Tested
python -I tests/test_isa_coverage.pyon the pod: 22 tests, OK (4 skipped, they need the AMD XML). On main the two new tests (probe stall, andmainwith a stalled llvm-mc) fail withTimeoutExpired. The tests fake the stall withsubprocess.runraisingTimeoutExpired.AI-assisted. No game files.