63 open PRs call resource::track with three arguments and break cargo test once merged (since 6638098) #801
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#801
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@DeerSilver on GitHub · 2026-11-24 11:10 UTC · original
6638098("Shaders: per-lane descriptors chosen by control flow", merged with #566 on 2026-11-24 at 09:53) added a fourth parameter tovictory_shader::resource::track:mainitself builds and passes (342 passed / 6 ignored atffe310e). But 63 open PRs added new calls with the old three arguments. When this was filed, each of them brokecargo test --workspaceonce merged:The fix in each PR is to pass the fourth argument at the call the PR adds.
main's own tests passSome(&st)(the structured program);Nonekeeps the old behaviour the test was written against. I checkedNoneon 7 of these PRs (#200, #171, #166, #165, #142, #265, #160): with it, each PR's tests pass on an RTX 5060 and Clippy is clean.The risky ones: GitHub shows these as mergeable, because there is no text conflict. CI was added at 08:55 and only runs when an author pushes again, so when this was filed none of them showed a red check.
Updated 2026-11-24, 17:56 UTC, with the check below run on each PR's current head.
Still adding a three-argument call (4):
9fbd7e9efd02d5(two calls)ee037b0a3f219e, now a draftFixed since this was filed (11):
26bdec95ce85c5cee01b4b81071c9dc6a7eb7300eb93f052e964e3ad08b681c1bd52dc81fb96eEach of the 11 merges cleanly onto
ffe310eand passescargo check --locked -p victory-shader --tests. I also re-ran the full tests on the RTX 5060 for #265, #655 and #683: they pass with no local change. #164 had the same problem and was fixed earlier, ate469b7c.The CI run on the other mergeable PRs found more build breaks of the same kind, from other signature changes on
main.The other 48 already conflict with
main. When their authors rebase, git won't flag the old call, so it needs fixing by hand at the same time:#69, #91, #92, #109, #116, #138, #145, #156, #157, #162, #189, #192, #193, #223, #226, #231, #233, #269, #292, #294, #298, #305, #306, #309, #317, #320, #328, #329, #332, #342, #383, #385, #395, #404, #498, #499, #526, #542, #551, #576, #586, #645, #650, #660, #667, #704, #709, #710
How I found them: no build, just a diff check. For each open PR head, the lines it adds under
crates/victory-shader/src(diffed against its merge base withmain) were searched for atrack(call that ends at the stage argument. One match (#667) splits the call over several lines, and I checked it by hand. A PR author can check their own branch the same way:No game files involved. AI-assisted (Claude Code).
@muhammed-aksoy on GitHub · 2026-11-24 11:21 UTC · original
I hit the same E0061 error when integrating the tested heads of #683 (0b48633) and #705 (
4efabc4) on main atffe310e. PassingNoneas the fourth argument preserved the existing resource-tracking behavior of their synthetic tests:The two call sites are in
emit/mod.rs(#683) andemit/lower.rs(#705). Exact fixture patchAt combined head
17e9259, the Windows all-targets/all-features check passed and the serial workspace suite reported 363 passed, zero failed, and six ignored with the Windows SDK DXIL validator available. These are combined integration results, with no separate per-PR or title-level measurement.@andrewpozdnakov7-jpg on GitHub · 2026-11-24 11:33 UTC · original
An upstream compatibility option for #801 is to restore
resource::track(p, layout, stage)as a wrapper fortrack_with_structure(p, layout, stage, None). Main's callers that already supply the fourth argument use the explicittrack_with_structurename and keep passing exactly the same option.I checked local merges of #142, #160, and #200 onto
ffe310e. Each producedE0061before the wrapper and passedcargo check --locked -p victory-shader --testswith the patch and the PR's three-argument call intact. The patch applies cleanly to local merge trees for all 15 PRs originally listed as clean here.The current heads of #177 and #265 have already moved to four arguments. Such calls need the explicit name after this change. I checked #164 and #265 with that one-line migration and both passed the shader test build check.
On patched main, 102 shader library tests passed with the VALU and waterfall hardware groups filtered out. The CLI check and Clippy for the shader tests and CLI also passed with warnings denied.
AI-assisted. Tested on Windows with the repository's synthetic tests.
Compatibility patch on
ffe310e@Halfect on GitHub · 2026-11-24 13:50 UTC · original
Both of mine from the 15 listed are fixed at their current heads, each passing
Noneas the fourthresource::trackargument (no per-lane descriptors in those tests, so this keeps their old behaviour):1bd52dc(rebased ontoffe310e): CPU-only library suite 98 passed / 0 failed / 1 ignored (skippingdiff_tests,valu_tests,waterfall_tests,stub_pipeline_is_created);cargo check --locked -p victory-shader --tests, clippy with-D warnings, andcargo xtask policy(154 files) all clean.81fb96e(rebased ontoffe310e): same suite, 98 passed / 0 failed / 1 ignored; same checks clean. Confirmed independently by @CaravelaLabs on Linux (97 passed / 0 failed / 1 ignored).No GPU execution was used for these checks.
@muhammed-aksoy on GitHub · 2026-11-24 14:33 UTC · original
Follow-up on the two PRs I tested. On
mainatffe310e, #683 at81fb96enow passes the fourth argument itself. Its Windows shader suite passed 121 tests with one ignored and no local fixture edits. #705 at4efabc4still needed the one-line fourth-argument change inemit/lower.rs. With that change, the same suite passed 121 tests with one ignored. These were independent merges onto the same base.@MamaLeVrai on GitHub · 2026-11-24 17:06 UTC · original
Verification of shader PRs against
mainatffe310e, each merged alone. Windows 11, RX 6950 XT. Per PR:cargo clippy --workspace --all-targets --locked -- -D warningswith and without--all-features, thencargo test --workspace --locked. Main itself gives 342 passed invictory-shader.Merge cleanly, clippy clean, tests pass: #1074, #1073, #1084, #1057, #1103, #1083, #1056, #1055, #1015, #953, #563, #1004
Do not build: #694 (the
resource::trackarity from this issue; E0061, 3 arguments for 4)Conflict with
main: #667 (emit/lower.rs), #645 (emit/lower.rs,emit/valu_tests.rs,resource.rs)Merged together, in this order, onto
main: #1057, #1074, #1073, #1084, #1103, #1056, #1015, #563. They merge with no conflict, and the result passes both clippy runs andcargo test --workspace. Added on top of that set, #1083, #953 and #1004 conflict inemit/lower.rsand #1055 inemit/valu_tests.rs, so those four need a rebase after the others land, or a different order.The tests that matter here run on the GPU and WARP, and I did not run the title, so this says nothing about in-game effect.
AI-assisted (Claude Code); no game data.
@MamaLeVrai on GitHub · 2026-11-24 17:23 UTC · original
Follow-up: the ten PRs from the matrix above that merge cleanly together are bundled in #1319, with the two hand resolutions noted there. Clippy (both runs) and
cargo test --workspacepass on the bundle. AI-assisted (Claude Code); no game data.@Marvisak on GitHub · 2026-11-25 03:53 UTC · original
Automated triage for the maintainers.
This is accurate for
main:resource::trackincrates/victory-shader/src/resource.rstakes four arguments (lanes: Option<&Structured>). Open PRs that add three-argument calls stop building once merged. That is not a defect inmainitself. CI (.github/workflows/ci.yml,cargo clippy --workspace --all-targets) catches it on a PR's next push, and the list above shows many authors have already updated.Kept open as a coordination list for PR authors. Pass
None(keeps the old behaviour) orSome(&structured)at the new call. Whether to add a three-argument compatibility wrapper, as suggested in the comments, is left to the maintainers.Generated by Claude Code