d3d12-gpu: a test that needs a card says SKIP when there is none #2963
Closed
github-bot
wants to merge 1 commit from
github-bot/gh-2963 into main
AGit
pull from: github-bot/gh-2963
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2963
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2963"
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?
@aznohonza on GitHub · 2026-12-01 21:55 UTC · original
aznohonza:gpu/test-require-host→main· +115 −95 · 24 files · 1 commits · closed without mergingRe-created from the original #2908.
aznohonza/mandy-contribwas made private at 21:41 UTC on 2026-12-01, which detached the fork and permanently closed its pull requests; GitHub refuses to reopen them (422 state cannot be changed). Same branch, rebased onmainat913b88b90; current head13844f2f2. The original review thread is at #2908.Tests that need the host device mostly read
let Some(host) = crate::host::host() else { return };and return without a word when the machine has no D3D12 device, so a run where they were skipped looks exactly like a run where they passed.host::require_host()is the same lookup with one stderr line when there is none:The test call sites that used the silent form now call it. Host heaps say the same through
heap_or_skip(SKIP: no host descriptor heap), and the tests that looked the device up directly print the line themselves. Sites that already print their own reason (e.g.sampler,pool::small,compose,indirect/bench) are left as they were, and production callers are untouched —require_hostandheap_or_skipexist in test builds only.Both CI steps that can skip for want of a device now run with
--nocapture(the workspace tests and the diagnostics replay test), because libtest hides the stderr of a passing test: without it, CI showed none of these lines.Review follow-up (all on this head):
--nocaptureon the no-GPUcargo teststep and on the diagnostics replay step (no adapter: skippedis now visible too).descriptor/host.rs(the raw-view move test and every test-gatedHostHeap::new),indirect.rs(argument clamp),resource.rs(two tests that looked the device up directly).ambient.rshas no silent site left on this base (#2893 is still open; whichever of the two lands second sweeps its new test).hostimport and the six doubleSKIPlines inhost.rsare gone.Verification:
cargo xwin test --target x86_64-pc-windows-msvc -p leonida-gpu --lib --no-runcompiles;cargo xwin checkwithout--testsis clean of new warnings (require_host/heap_or_skipare#[cfg(test)]).--nocaptureprints 63SKIP:lines, including every site listed in the review; the replay integration test printsno adapter: skippedwith the flag and nothing without it. The three failures arewatch::*tests that fail identically on unmodifiedmainunder Wine (checked by running the same three frommain).Claimed in #2570 (RUST-SILENT-SKIP; the Python half is Neutron-0's
PY-TEST-HARDLINK-GUARD-SKIP). AI-assisted.The original review thread is #2908.
Most tests that need the host device read let Some(host) = crate::host::host() else { return }; and return without a word when the machine has no D3D12 device, so a run that skipped them reads as if they passed. `require_host()` is the same lookup with one line on stderr when there is none; the tests that use the pattern now call it. Sites that already print their own reason keep it (left as they were), and production callers are untouched: `require_host` exists in test builds only.@KelboLive on GitHub · 2026-12-01 22:19 UTC · original · requested changes
This is the same head (
42957b26b) as #2908, where changes were requested, and the resubmission does not address them. Both blockers still apply:.github/workflows/d3d12.yml:76still runscargo testwithout--nocaptureon a no-GPU runner — soSKIP: no D3D12 deviceremains invisible exactly where it matters. Add the flag or count skips in a summary.descriptor/host.rs:7625,indirect.rs:2377,resource.rs:4657, and 14HostHeap::new(...) else { return }sites still pass silently under a no-device run.Also, main has churned four of the swept files since this base (
host.rs+372/−84, reaper work), so the sweep needs redoing after a rebase regardless. Please rebase and address the two points, then I'll re-check.@aznohonza on GitHub · 2026-12-01 22:28 UTC · original
You are right, and the resubmission does not address either blocker.
cargo testwithout--show-output/--nocapture(.github/workflows/d3d12.yml:76), so the lines are captured. I will add--show-outputthere, or a skip count if the log volume is a problem.descriptor/host.rs:7625,indirect.rs:2377,resource.rs:4657, the 14HostHeap::new(...) else { return }sites,ambient.rs, and #2893's newgather_dispatches_the_partial_groupare still silent.hostimport athost.rs:5761and the six double-line sites are also mine.Main's churn in four of those files means I will rebase first, then redo the sweep and the CI flag on the rebased tree, and re-request review. The PR body now carries this gap note so the claim is not repeated.
AI-assisted.
42957b26b1toe4b99e3ab1@aznohonza on GitHub · 2026-12-01 23:14 UTC · original
Rebased on
main(913b88b90) and both blockers are addressed ine4b99e3ab:cargo test ... -- --skip ... --nocapture, so theSKIP:lines are in the CI log.indirect::tests::argument_clamp_builds, the tworesourcetests that looked the device up directly, and every test-gatedHostHeap::newnow go through a line-printing helper.ambient.rshas no silent site left here; #2893 is still open, so its new test is the only cross-PR piece I cannot sweep yet.hostimport and the six double lines inhost.rsare gone.Checked with no device here (the test binary under Wine):
--nocaptureprints 63SKIP:lines, including all the sites you listed. 641 passed / 3 failed / 59 ignored; the three arewatch::*tests that fail identically on unmodifiedmainunder Wine (ran those three frommainto confirm).Re-requesting review.
e4b99e3ab1to13844f2f23@andrew-ai on GitHub · 2026-12-01 23:19 UTC · original
One separate CI invocation still hides a GPU skip at
e4b99e3ab. The workspace step has --nocapture, but the following “Replay test (diagnostics)” step invokes --test replay with default libtest capture. The replay integration test already prints "no adapter: skipped" before its early return.I compiled that integration test on Windows with only the device creation call omitted to simulate an unavailable device. Running the same binary with the replay step's default output showed "1 passed" with no diagnostic. With --nocapture it printed "no adapter: skipped" and then "1 passed". Adding -- --nocapture to that second cargo invocation would expose the reason there too. This checks output visibility only. Codex-assisted.
@aznohonza on GitHub · 2026-12-01 23:22 UTC · original
Fixed in
13844f2f2: the diagnostics replay step now runs with-- --nocapturetoo. Checked with the same binary under Wine (no adapter here): default output is just1 passed, with--nocaptureit printsno adapter: skippedfirst. The workspace step keeps its flag, and the body now lists both.AI-assisted.
@andrew-ai on GitHub · 2026-12-01 23:23 UTC · original
Confirmed
13844f2f2closes my replay CI visibility finding. I extracted the libtest arguments from both workflow revisions and ran the same Windows replay binary with simulated unavailable device. The old arguments hid the reason; the revised arguments emitted "no adapter: skipped" on stderr. Both processes exited successfully, as expected. Codex-assisted.@ammonium231 on GitHub · 2026-12-02 01:19 UTC · original
RTX 3090 / 621.47,
13844f2f2merged onto main5d06e4793: cargo test -p leonida-gpu --locked is 656 passed, 0 failed, 59 ignored on both trees, with no SKIP lines. With a card present the tests run and pass. The diagnostics replay test is 1/1 passed on both.@MoonEyes on GitHub · 2026-12-02 12:19 UTC · original
Closing: this pull request no longer applies to current
main(merge conflict in.github/workflows/d3d12.yml), and open pull requests that have fallen out of step withmainare being closed so the list stays workable. If you still want this change, rebase it on currentmainand reopen it (or open a new pull request); it will be looked at again.AI-assisted (Claude Code).
Pull request closed