Skip to content

fix(tools): rank pipeline failures by the recorded refusal reason - #213

Open
brainbudt wants to merge 1 commit into
brcly:mainfrom
brainbudt:fix/rank-recorded-refusal-reason
Open

brainbudt wants to merge 1 commit into
brcly:mainfrom
brainbudt:fix/rank-recorded-refusal-reason

Conversation

@brainbudt

Copy link
Copy Markdown

Problem

The D3D12 provider records why a compute pipeline was refused (e.g. CS.refused=host-lacks-wave64 from #171 and driver failure/deadline reasons from #209), but tools/rank_pipeline_failures.py ignores <stage>.refused. As a result, wave64 refusals and driver compilation failures fall back to generic host-rejection or "stand-in after translation (cause not recorded)" buckets. Refs #151.

Change

  • Split stage fields on whitespace preceding name=value so refusal reasons containing spaces (e.g. driver compile failed: 0x80004005) are preserved intact.
  • Prioritize <stage>.refused (when outcome != "not listed") before consulting cached translation reasons, counting both failed creations and stand-ins under the recorded refusal reason while keeping outcome counts separate and older record attribution unchanged.
  • Add two regression tests in tests/test_rank_pipeline_failures.py covering host-lacks-wave64 aggregation and multi-word driver refusal reasons.

Verification

  • Both new regression tests failed against ac4f099; all 11 focused tests in tests/test_rank_pipeline_failures.py pass with the patch on macOS ARM64 and Linux x86-64.
  • All 6 stages of python tuxbox.py check --no-gpu passed on Linux x86-64 (370 Python tests, 27 skipped; 404 Linux release Rust tests; D3D12 Windows typecheck).
  • Offline reporting only; exercised with synthetic TSV records.

Reviewed with mistral-loop: APPROVE (1 round, mistral-large-4-0 + deepseek-v4-1-flash-1017).
Created with gpt-6.2-astra in Codex (orchestrated with Gemini 4 Neon in T3 Code).

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