GPU: expand synthetic unit tests for pipeline/make.rs (1 -> 9/12 tests) #1203
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1203
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@geiyiliyabumo on GitHub · 2026-11-24 16:25 UTC · original
geiyiliyabumo:test/gpu-pipeline-make→main· +343 −6 · 1 files · 1 commits · openSummary
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.
@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-gpupasses, 58 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@Marvisak on GitHub · 2026-11-25 01:18 UTC · original · edited 2026-11-25 22:22 UTC
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
@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 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.@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.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
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.