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

Manually merged
github merged 1 commit from github-bot/gh-213 into main 2026-11-26 08:27:38 +00:00 AGit
Owner

@⁠brainbudt on GitHub · 2026-11-26 05:41 UTC · original
brainbudt:fix/rank-recorded-refusal-reason → main · +32 −3 · 2 files · 1 commits · merged 2026-11-26 08:26 UTC

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).

**@⁠brainbudt** on GitHub · 2026-11-26 05:41 UTC · [original](https://github.com/brcly/TuxBox/pull/213) `brainbudt:fix/rank-recorded-refusal-reason` → `main` · +32 −3 · 2 files · 1 commits · merged 2026-11-26 08:26 UTC ## 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:38:37 +00:00
github manually merged commit c71d4d7a08 into main 2026-11-26 08:27:38 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.