cpp-migration: write .fail diagnostics and add read-only --refusals summary to compile_dxil #2983

Closed
opened 2026-11-27 02:44:17 +00:00 by stan495 · 1 comment
stan495 commented 2026-11-27 02:44:17 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-27T02:44:17Z.


Target branch cpp-migration. Refs #2935 (Tooling bullet: --refusals and .fail files for triage_run.py).

Scope

  1. .fail diagnostic lifecycle in compile_dxil --requests:
    • Atomically publish <key>.fail when a startup graphics or slot-67 compute request is refused in --requests batch mode (with no <key>.txt or stage .cso published).
    • Remove any stale <key>.fail when the same request succeeds on a subsequent run.
  2. Read-only compile_dxil --refusals REQUEST_DIRECTORY [--jobs N] [--json]:
    • Summarize first-refusal counts across startup graphics (req_<key>.a) and slot-67 compute (req_<key>.c67) requests without invoking DXC or writing any cache/output files.
    • Normalize and redact hex instruction words / register indices / file paths in reported reasons.
  3. tools/startup/triage_run.py classification:
    • Classify native .fail first lines under SHADER_REASONS using strictly allowlisted patterns without loosening redaction controls.

I am taking this slice.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6638870596 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2983). Originally posted by [stan495](https://github.com/stan495) on 2026-11-27T02:44:17Z. --- Target branch `cpp-migration`. Refs #2935 (Tooling bullet: `--refusals` and `.fail` files for `triage_run.py`). ### Scope 1. **`.fail` diagnostic lifecycle in `compile_dxil --requests`**: - Atomically publish `<key>.fail` when a startup graphics or slot-67 compute request is refused in `--requests` batch mode (with no `<key>.txt` or stage `.cso` published). - Remove any stale `<key>.fail` when the same request succeeds on a subsequent run. 2. **Read-only `compile_dxil --refusals REQUEST_DIRECTORY [--jobs N] [--json]`**: - Summarize first-refusal counts across startup graphics (`req_<key>.a`) and slot-67 compute (`req_<key>.c67`) requests without invoking DXC or writing any cache/output files. - Normalize and redact hex instruction words / register indices / file paths in reported reasons. 3. **`tools/startup/triage_run.py` classification**: - Classify native `.fail` first lines under `SHADER_REASONS` using strictly allowlisted patterns without loosening redaction controls. I am taking this slice.
MasterDomino commented 2026-11-27 03:17:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-27T03:17:33Z.


Completed by #2984, merged into cpp-migration as 4ff5e36d. Merges into a non-default branch do not close issues automatically.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7208865626 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2983#issuecomment-7208865626). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-27T03:17:33Z. --- Completed by #2984, merged into `cpp-migration` as 4ff5e36d. Merges into a non-default branch do not close issues automatically.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#2983
No description provided.