GPU: expand synthetic unit tests for pipeline/make.rs (1 -> 9/12 tests) #1203

Open
github-bot wants to merge 1 commit from github-bot/gh-1203 into main AGit
Owner

@⁠geiyiliyabumo on GitHub · 2026-11-24 16:25 UTC · original
geiyiliyabumo:test/gpu-pipeline-make → main · +343 −6 · 1 files · 1 commits · open

Summary

Closes #1051

Full verification details and change notes are documented in #1051 (commit 76291ef, based on main ffe310e).

 crates/victory-gpu/src/pipeline/make.rs | 427 +++++++++++++++++++++++++++++++-
 1 file changed, 421 insertions(+), 6 deletions(-)

Verification (Windows 11 x64 MSVC)

  • rustfmt --edition 2024 --check on edited files: PASS
  • cargo xtask policy: PASS (zero game files/data)
  • cargo clippy --all-targets --locked -- -D warnings (default + --features diagnostics where applicable): PASS
  • Targeted & crate unit/GPU tests: PASS

AI-assisted; synthetic tests only, no game files.

**@⁠geiyiliyabumo** on GitHub · 2026-11-24 16:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/1203) `geiyiliyabumo:test/gpu-pipeline-make` → `main` · +343 −6 · 1 files · 1 commits · open ### Summary Closes #1051 Full verification details and change notes are documented in #1051 (commit `76291ef`, based on `main` `ffe310e`). ```text crates/victory-gpu/src/pipeline/make.rs | 427 +++++++++++++++++++++++++++++++- 1 file changed, 421 insertions(+), 6 deletions(-) ``` ### Verification (Windows 11 x64 MSVC) - `rustfmt --edition 2024 --check` on edited files: **PASS** - `cargo xtask policy`: **PASS** (zero game files/data) - `cargo clippy --all-targets --locked -- -D warnings` (default + `--features diagnostics` where applicable): **PASS** - Targeted & crate unit/GPU tests: **PASS** *AI-assisted; synthetic tests only, no game files.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:23:30 +00:00
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 18:00 UTC · original

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-gpu passes, 58 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 18:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/1203#issuecomment-7140014709) 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-gpu` passes, 58 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:18 UTC · original · edited 2026-11-25 22:22 UTC

Automated triage for the maintainers.

Needs rebase. main has moved since the last triage, and this PR no longer merges cleanly into it (conflict in crates/victory-gpu/src/pipeline/make.rs). It will be reviewed again once it is rebased onto current main. The second-look comment above lists what to change while rebasing (bounded waits, and the third Pending::new parameter in diagnostics builds).

Previous verdict for this head: merge candidate.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/1203#issuecomment-7149413975) · edited 2026-11-25 22:22 UTC <!-- victory-triage v1 head=f38bd8fbc2459ee426fcd64f0b4c109c79945fc0 verdict=needs-rebase at=2026-11-25T22:22:30Z --> Automated triage for the maintainers. **Needs rebase.** `main` has moved since the last triage, and this PR no longer merges cleanly into it (conflict in `crates/victory-gpu/src/pipeline/make.rs`). It will be reviewed again once it is rebased onto current `main`. The second-look comment above lists what to change while rebasing (bounded waits, and the third `Pending::new` parameter in diagnostics builds). Previous verdict for this head: merge candidate. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠geiyiliyabumo on GitHub · 2026-11-25 02:22 UTC · original

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.

**@⁠geiyiliyabumo** on GitHub · 2026-11-25 02:22 UTC · [original](https://github.com/Marvisak/VIctory/pull/1203#issuecomment-7150644764) 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.
Author
Owner

@⁠geiyiliyabumo on GitHub · 2026-11-25 03:56 UTC · original

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.

**@⁠geiyiliyabumo** on GitHub · 2026-11-25 03:56 UTC · [original](https://github.com/Marvisak/VIctory/pull/1203#issuecomment-7152379220) 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.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 22:01 UTC · original

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.rs mod tests.

  1. Bound the waits. p.made.wait() and idle()'s while waiting() > 0 loop are unbounded and replace the 10 s bound that first_use_is_made_by_a_worker had, so a regression would hang CI instead of failing. Please give every wait a deadline that panics (10 s, say): idle(), and the made.wait() calls in first_use_is_made_by_a_worker, queueing_once_leaves_nothing_waiting, a_pipeline_whose_shaders_do_not_translate_is_refused_once and a_refused_pipeline_is_marked_used_on_first_use. One helper such as made_within(&p, Duration) serves all of them.
  2. Rebase onto main. #1320, merged today, gave Pending::new a third parameter in diagnostics builds, so each Pending::new call here needs #[cfg(feature = "diagnostics")] &[], or the --all-features test build fails.

Push the change and it will be reviewed again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 22:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/1203#issuecomment-7175838444) 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.rs` `mod tests`. 1. Bound the waits. `p.made.wait()` and `idle()`'s `while waiting() > 0` loop are unbounded and replace the 10 s bound that `first_use_is_made_by_a_worker` had, so a regression would hang CI instead of failing. Please give every wait a deadline that panics (10 s, say): `idle()`, and the `made.wait()` calls in `first_use_is_made_by_a_worker`, `queueing_once_leaves_nothing_waiting`, `a_pipeline_whose_shaders_do_not_translate_is_refused_once` and `a_refused_pipeline_is_marked_used_on_first_use`. One helper such as `made_within(&p, Duration)` serves all of them. 2. Rebase onto `main`. #1320, merged today, gave `Pending::new` a third parameter in diagnostics builds, so each `Pending::new` call here needs `#[cfg(feature = "diagnostics")] &[]`, or the `--all-features` test build fails. Push the change and it will be reviewed again. Thank you for the contribution.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/pipeline/make.rs
View 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.
git fetch -u origin '+refs/pull/1203/head:github-bot/gh-1203'
git switch 'github-bot/gh-1203'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1203'
git switch 'github-bot/gh-1203'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1203'
git switch 'github-bot/gh-1203'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1203'
git switch 'main'
git merge --squash 'github-bot/gh-1203'
git switch 'main'
git merge --ff-only 'github-bot/gh-1203'
git switch 'main'
git merge 'github-bot/gh-1203'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
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/Marvisak--VIctory!1203
No description provided.