GPU: expand synthetic unit tests for pipeline/make.rs (1 -> 9/12 tests) #1203
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1203"
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?
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T16:25:03Z.
Summary
Closes #1051
Full verification details and change notes are documented in #1051 (commit
76291ef, based onmainffe310e).Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --checkon edited files: PASScargo xtask policy: PASS (zero game files/data)cargo clippy --all-targets --locked -- -D warnings(default +--features diagnosticswhere applicable): PASSAI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:11Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
76291ef:cargo test -p victory-gpupasses, 58 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
upstream-sync referenced this pull request2026-11-24 19:03:41 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:18:28Z.
Automated triage for the maintainers.
Needs rebase.
mainhas moved since the last triage, and this PR no longer merges cleanly into it (conflict incrates/victory-gpu/src/pipeline/make.rs). It will be reviewed again once it is rebased onto currentmain. The second-look comment above lists what to change while rebasing (bounded waits, and the thirdPending::newparameter in diagnostics builds).Previous verdict for this head: merge candidate.
Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-25T02:22:42Z.
Rebased cleanly onto \main\ (\
ccfb029), updating the two early-start tests to match \main's mark-used-on-first-draw semantics. \cargo test -p victory-gpu --locked pipeline::make::tests\ (10 passed, 0 failed), \cargo clippy -p victory-gpu --all-targets --locked -- -D warnings, and \cargo xtask policy\ all pass.Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-25T03:56:19Z.
Updated per triage feedback: reverted the unrelated \wait\ reformat (diff is now strictly confined to \mod tests), dropped \ he_wait_budget_is_spent_once_per_frame, and removed all wall-clock timing assertions while keeping the deterministic key and worker-completion tests. Rebased onto \main\ (\
940d32f); \cargo test -p victory-gpu --locked pipeline::make::tests\ (9 passed, 0 failed), \cargo clippy -p victory-gpu --all-targets --locked -- -D warnings, and \cargo xtask policy\ all pass.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T22:01:28Z.
Automated triage for the maintainers, second look (a review against
main, with the PR built and tested).The key-completeness tests are worth having, and this can be merged after two changes in
crates/victory-gpu/src/pipeline/make.rsmod tests.p.made.wait()andidle()'swhile waiting() > 0loop are unbounded and replace the 10 s bound thatfirst_use_is_made_by_a_workerhad, so a regression would hang CI instead of failing. Please give every wait a deadline that panics (10 s, say):idle(), and themade.wait()calls infirst_use_is_made_by_a_worker,queueing_once_leaves_nothing_waiting,a_pipeline_whose_shaders_do_not_translate_is_refused_onceanda_refused_pipeline_is_marked_used_on_first_use. One helper such asmade_within(&p, Duration)serves all of them.main. #1320, merged today, gavePending::newa third parameter in diagnostics builds, so eachPending::newcall here needs#[cfg(feature = "diagnostics")] &[], or the--all-featurestest build fails.Push the change and it will be reviewed again. Thank you for the contribution.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.