Skip to content

tests: reviewer follow-ups for merged #3978, #4427 and #4514 (skip text, stall asserts, branch_index) - #5686

Open
tedin7 wants to merge 3 commits into
ItsNotRexed:mainfrom
tedin7:followup-3978-4427-4514
Open

tedin7 wants to merge 3 commits into
ItsNotRexed:mainfrom
tedin7:followup-3978-4427-4514

Conversation

@tedin7

@tedin7 tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Claimed in #5581 (comment).

Follow-up to #3978, #4427 and #4514, which were merged before their reviewers' last notes were applied. Tests only, three files:

Tests (Linux, Python 3.13, on top of current main):

  • test_f32_fuzz.py: OK, 1 skipped.
  • test_isa_coverage.py: OK, 4 skipped.
  • test_cfg_structure.py: 18,228 graphs structured and run.

No game files. AI-assisted.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 23a07df merged with main 561b65a on Linux (WSL2), Python 3.12.16 -I: pass

Test-only PR (3 files). tests/test_cfg_structure.py: ran, ok (18228 graphs structured and run). tests/test_f32_fuzz.py: 29 run, 28 passed, 0 failed, 1 skipped (test_on_hardware, no hardware oracle here, so the reworded skip message was not executed). tests/test_isa_coverage.py: 22 run, 18 passed, 0 failed, 4 skipped. Negative control: the new test_isa_coverage assertions also pass on main's tools (they pin existing behaviour); changing the message in tools/isa_coverage.py from 'did not answer within {PROBE_TIMEOUT} s for' to 'did not answer for' makes the new 'within 30 s' assertion fail (1 failure; file restored afterwards). test_cfg_structure's branch_index swap uses the helper defined at the top of that file and builds the same random.Random(f'{seed}/{block}/{visit}') choice as the removed inline expression. Note: the new skip message cites FUZZ-23; I found no FUZZ-23 definition in the repo, while the gfx1170+ fixed-MODE skip elsewhere is FUZZ-43 (asm.py, docs/shader_validation.md), so please check the id.

@BlazeXYZ

Copy link
Copy Markdown

Tested 23a07df applied on main dde82f2 on native Windows 11 (no WSL), Python 3.14.8 -I, CPU only: pass

The PR patch applies cleanly on current main.

  • tests/test_cfg_structure.py: ok, 18228 graphs structured and run (1772 irreducible, 1755 split-structured, 17 capped). branch_index(seed, block, visit, count) returns exactly random.Random(f"{seed}/{block}/{visit}").randrange(count), so the split-graph walk makes the same choices as before.
  • tests/test_f32_fuzz.py: OK, 1 skipped (no GPU oracle here). The new skip text agrees with tools/hw_oracle/asm.py: rdna23_skip_reason fires for the same gfx1170+ set as mode_skip_reason, which documents the fixed MODE fields. I couldn't run it on a gfx1170+ GPU to see the skip itself.
  • tests/test_isa_coverage.py: OK, 22 tests, 4 skipped. I checked that the new assertions catch a real regression: with the mnemonic removed from probe_llvm_mc's error text, test_stalled_llvm_mc_is_one_error_not_a_traceback fails on 's_endpgm' not found. Restored, it passes. PROBE_TIMEOUT is what subprocess.run gets as timeout=, so the call_args.kwargs["timeout"] assertion is checking the right value.

Optional, not blocking: the f32 skip string is hand-written next to the asm helpers. If asm.mode_skip_reason ever gets a mode-free form, calling it would keep the wording in one place.

No game data.

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.

3 participants