Repository navigation
tests: guard the compute done rule of pending_keys for slot 67 requests - #2229
Merged
Merged
Conversation
With compilation on, pending_keys keeps a compute request pending with a
manifest alone, with graphics .vs.cso/.ps.cso, or with an empty .cs.cso, and
treats it as done with a manifest and a non-empty .cs.cso. Changing the
compute stage tuple to ('.vs.cso',) or () now fails the check.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
tedin7
reviewed
Nov 25, 2026
tedin7
left a comment
Collaborator
There was a problem hiding this comment.
Review of head f15bf80 (tests-only, one Python file).
Result: 0 P1, 0 P2.
Logic check: the new assertions match pending_keys in tools/startup/gfx2hlsl.py. A c67 request needs <key>.txt plus a non-empty <key>.cs.cso. Graphics .vs.cso / .ps.cso files do not count, and an empty .cs.cso does not count. Each case is asserted separately.
Commands executed locally:
python3 tests/startup_compute_translate_check.py-> PASSpython3 tests/docs_links_check.py-> PASS (414 links)python3 tests/bidi_controls_check.py-> PASSgit diff --check origin/main...HEAD-> clean- Mutation 1: c67 stages changed to
('.vs.cso', '.ps.cso')-> test FAILS ("graphics bytecode made a compute request done") - Mutation 2: done condition forced to
True-> test FAILS ("a manifest alone made the request done") - Both mutations reverted.
Only a .py file is touched, so the pure-Python path applies.
AI-assisted; commands listed were executed locally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Follow-up to #2223: the re-review there left one test gap open. In
gfx2hlsl.pending_keys, a slot 67 compute request counts as done when its manifest and a non-empty<key>.cs.csoexist, but no check consulted that stage rule: the existing "done" assertion runs withX2W_FXC=""(manifest-only), where the stage list is not read, so changing the stage tuple from('.cs.cso',)to('.vs.cso',)survived.This adds the missing assertions to
tests/startup_compute_translate_check.py, withX2W_FXCunset. A compute request stays pending with:.vs.cso/.ps.cso;.cs.cso.It becomes done with a manifest plus a non-empty
.cs.cso.Test only; no translator or runtime change. Refs #1412.
Verification
Commit f15bf80 on main 1d6381d. Windows 11 build 26300.
3 of 3 passed, no skips; the pure-Python check passes on its own (it needs no Windows or D3D12 and is already in the Linux list).
Evidence and follow-up
Mutations, each run and then reverted:
('.cs.cso',)→('.vs.cso',): the check fails with "graphics bytecode made a compute request done";(): the check fails with "a manifest alone made the request done".Follow-up: the runtime slot 67 slice described on #1412 (real PSO, dispatch through the shim, fenced UAV read-back) is in preparation; it needs the slot 14 handler and compute root state of #1974, #1803 and #1975.
Checklist
AI-assisted (Claude Code); the commands above were run locally.
🤖 Generated with Claude Code