tooling: list input view token refusals in the triage summary #3494
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3494
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3492"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Leyukaka on GitHub · 2026-11-29 17:49 UTC · original
Leyukaka:tooling-triage-input-view-reasons→main· +14 −1 · 2 files · 1 commits · merged 2026-11-30 02:19 UTCFollow-up to #3386.
COMPUTE_DISPATCH_REASONSintools/startup/triage_run.pyhad only one of the reasons returned byinput_view_token_refusal(src/startup_stubs/input_view_token.h). This adds the 11 missing ones, so the triage summary recognizes those refusals.The coverage check in
tests/startup_triage_run_check.pynow also scans the body ofinput_view_token_refusal, so a reason added there without an allowlist entry fails the test.Test:
python -B tests/startup_triage_run_check.py→0 failed.Mutation: removing one of the new strings from the allowlist →
FAIL source reasons missing from COMPUTE_DISPATCH_REASONS: 'an input view token is unknown'.Not covered: no runtime change, and no run of the application; only the triage tool and its check are touched.
@Not-Saii on GitHub · 2026-11-29 22:43 UTC · original · approved these changes
Reviewed at head
2a6e31a18f620fbd8ec319004a7008d1c314da33. It merges cleanly onto main2ff74a6a.Verdict: approve. No MUST or SHOULD findings, two NITs.
What I checked
'an input view token has an unrecognized slot'already on main, match the 12 return literals ofinput_view_token_refusal(src/startup_stubs/input_view_token.h:52-78) character for character. That includes the twotoken'sstrings with an ASCII apostrophe.indirect_table_bufferreturnsrefuse(token_reason)(src/startup_stubs/d3d12_draw.inl:2603).refuselambda stores the pointer into*whyas-is (d3d12_draw.inl:2569-2572).&reason(src/startup_stubs/d3d12_compute_dispatch.inl:1235) and logs it afterDispatch(x, y, z) refused:(d3d12_compute_dispatch.inl:1288).RE_COMPUTE_DISPATCH_REFUSED(tools/startup/triage_run.py:239) captures that text and counts it by exact set membership (triage_run.py:641), so the allowlist entries are all the parser needs.reason_start, and none is inlabels.function_bodyfinds the definition first in the header, and the brace walk handles the nestedif (slot == 17) { ... }.What the test proves
check_allowlist_covers_source_reasonsintests/startup_triage_run_check.pynow also scansinput_view_token_refusal. A reason added there without an allowlist entry fails the check. It does not catch stale allowlist entries; that was already true before this PR.Findings
MUST: none. SHOULD: none.
NIT:
tools/startup/triage_run.py:66names onlyd3d12_compute_dispatch.inlas the source of the reasons. The docstring ofcheck_allowlist_covers_source_reasonslists the scanned functions withoutinput_view_token_refusal. One line each would keep them in step with the scan.Run (AGENTS.md evidence)
2a6e31a18f620fbd8ec319004a7008d1c314da33, agit archiveexport, run from a writable copy inside Windows Sandbox with networking disabled (an unreachability probe confirmed it).python -B tests/startup_triage_run_check.py(Python 3.14.8). The check is pure Python, so nothing was built.startup_triage_run_check.py→startup triage_run checks: 0 failed, exit 0.Mutation and controls (scratch copy, never the PR branch)
triage_run.py0 failed1b8e2feeFAIL source reasons missing from COMPUTE_DISPATCH_REASONS:listing exactly the 11 new stringsThe mutation is caught, and C3 shows that the test change is what catches it.
CI
Run 46291716924 at this head: the Linux "Run platform-independent Python checks" job ran
tests/startup_triage_run_check.py (ok)with0 failed. The check is listed in thepython-linuxjob command in.github/workflows/windows.yml. The Windows PR job runsctest --preset pr, whose filter does not includestartup_triage_run, so CI ran this test on Linux only.