Repository navigation
Conversation
KelboLive
left a comment
There was a problem hiding this comment.
This is the same head (42957b26b) as #2908, where changes were requested, and the resubmission does not address them. Both blockers still apply:
- libtest captures stderr for passing tests, and
.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. - The sweep is still incomplete:
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.
|
You are right, and the resubmission does not address either blocker.
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. |
42957b2 to
e4b99e3
Compare
|
Rebased on
Checked with no device here (the test binary under Wine): Re-requesting review. |
|
One separate CI invocation still hides a GPU skip at e4b99e3. 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. |
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.
Host heaps say the same through `heap_or_skip`, and the tests that looked
the device up directly (the raw-view move test, the argument clamp, and
two resource tests) print the line themselves. Tests that already printed
their own reason keep it and are left as they were, and production
callers are untouched: `require_host` exists 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):
libtest hides the stderr of a passing test, so the SKIP lines were
invisible exactly where they matter.
e4b99e3 to
13844f2
Compare
|
Fixed in AI-assisted. |
|
Confirmed 13844f2 closes 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. |
Re-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 (gpu/ambient: LDS-tile gather compute pass and scope internal UAV barriers (D3D12-GPU-AMBIENT-LDS-GATHER) #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.