The WARP tests cannot skip in silence any more #1360
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1360
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1360"
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?
@HailLucifer666 on GitHub · 2026-11-28 17:59 UTC · original
HailLucifer666:fix/warp-harness-loud→main· +3238 −46 · 22 files · 8 commits · openWarpHarness::new()returns anOption, and every acquire site didlet Some(...) = ... else { return }— eight sites, all inindirect.rs— so on a machine with no WARP adapter each GPU test returned as passed having run nothing, and a whole-suite green said nothing about whether the GPU tests executed. That is the false-green class the test-gate PR (#1294) exists for, at the harness level.The change: all eight sites are now
— a machine without WARP fails the GPU tests loudly instead of passing them silently.
Verification, and its honest hole. On this machine WARP exists: the indirect suite runs green with the expects in place (29 passed / 0 failed / 9 ignored, identical counts to before — nothing changes where WARP does exist), and the mechanical fact is counted: eight acquire sites, zero silent ones remaining. What cannot be tested here is the machine the change is for — a host without a WARP adapter would have to exist to watch the panic; the prime rule's written reason stands in for that test, in the commit.
Risk stated, not hidden: if CI's runner has no WARP adapter, CI goes red honestly — which is the point, and main's CI is red already (#1267). If the runner has one, nothing changes. Either way the answer stops being unknown; this is the follow-up #1294's body deferred until its first CI run could inform it.
Stacks on #1290 → #1294 → #1326 → #1328 → #1348 → #1357.
THE BUG. Three classes, all found on main today: (1) the GPU tests silently report as passed on any machine without a WARP adapter -- WarpHarness::new() returns an Option and every acquire site does `let Some(...) = ... else { return }` (indirect.rs around 894, 970, 1025 and more), so the suite's green says nothing about whether the GPU tests executed; (2) cargo reports a filter that matched no test as exit 0, so a narrowed command reads as a pass; (3) a workflow file GitHub cannot load produces no run at all, and nothing in CI reads ci.yml itself before GitHub does. The pre-commit hook was also committed 100644, which makes every POSIX clone skip it in silence (found with git ls-tree; the same defect the Marvisak line shipped and fixed). THE FIX. Port the checks our Marvisak PR #2854 lineage shipped there: `cargo xtask test-gate` counts what each test binary announced (running N tests) against what it reported (test result: ...), refuses a run that executed nothing, refuses reports it cannot attribute to a binary cargo named, and parses CI's colored output; `cargo xtask workflows` shape-checks every file under .github/workflows, including duplicate keys (yaml-rust2 keeps the later value; GitHub refuses the document outright) and typechanged entries; policy --staged now fails closed on a staged entry the index cannot serve (a gitlink, an unspellable name) instead of skipping it; the hook runs both checks and its skip message names both; the hook is committed 100755; CI builds first and runs the gated binaries after, so a red run cannot hide behind a compile. WHY NOT HYPOTHETICAL. Main is red right now (issue #1267) precisely because the suite's own account was unreadable; on our Marvisak twin the same tooling refused a green-but-empty run in CI and caught a lost hook mode a green run missed. SCOPE. The WARP skip is made loud in a follow-up, not here: turning skips into panics before we know whether CI's runner has a WARP adapter could turn CI red on machines that were honestly skipping. The first CI run of this PR answers that question. The gate parses cargo's output shapes as they exist today; a --format json run is refused rather than guessed at. PROVENANCE. Ported from our Marvisak/VIctory PR #2854 branch (staging-bounds and pipeline-library fixes from the same line landed upstream as #1658/#1660); carries that branch's second-review fixes: policy --staged fails closed like its sibling, duplicate keys are refused, typechanged staged entries are listed, and the hook's skip message names both checks.THE BUG. WarpHarness::new() returns an Option, and every acquire site did `let Some(...) = ... else { return }` (eight of them, all in indirect.rs): on a machine with no WARP adapter each GPU test returned as passed having run nothing, and a whole-suite green said nothing about whether the GPU tests executed. The repo's own docs name the class; the Marvisak line's test-gate (#2854) exists because a green run that ran nothing is read as safety. THE FIX. Every site is `WarpHarness::new().expect("no WARP adapter: the GPU tests did not run and must not read as passed")` -- a machine without WARP fails the GPU tests loudly instead of passing them silently. WHY NOT HYPOTHETICAL. The silent-skip shape is the code itself (counted: eight sites, zero loud ones before); on this machine WARP exists and the indirect suite runs green with the expects in place (29 passed), so nothing changes where WARP does exist. SCOPE AND THE HONEST HOLE. What cannot be tested here is the machine the change is FOR: a host without a WARP adapter would have to exist to watch the panic. The prime rule's written reason stands in for that test. Risk stated: if CI's runner has no WARP adapter, CI goes red honestly -- which is the gate's whole point, and main's CI is red already (#1267). If the runner has one, nothing changes. Either way the answer stops being unknown.928647bfe6to904c08902fView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.