Require build, test, and review checks before merging to main #1902
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Ondra97 on 2026-11-29T02:04:11Z.
Why this is needed
At
d148613, themainpush workflow failed at Clippy and skipped the test step. The branch had no active protection rules when checked. In #1571, the merge brought in the PR template while the/claiminstructions present on the PR branch were absent from the resulting README. Both cases point to the same gap: we need to review and test the result that goes intomain. CI run · Branch settings · Merge #15711. Protect
mainmainbefore merging. Build GitHub’s PR merge ref and record the base SHA, PR head SHA, and tested merge SHA in the job summary.CONTRIBUTING.md: after a rebase, usegit range-diffto check how the patch changed. After any conflict resolution, inspect the final diff againstmainand verify that changes from both sides survived.For batches of interacting PRs, add a manual integration build based on AnyPS5’s workflow. A maintainer supplies the ordered PR list. The job records the exact base and heads, combines them in a temporary checkout, and runs the same CI checks. A conflict or a changed head fails the run. GitHub branch protection · AnyPS5 build workflow
2. Make Windows build, test, and lint results independent
Use the repository’s pinned Rust toolchain and
--locked. Start with these four required jobs:cargo build --locked --release -p victory, followed byvictory.exe --help. Upload the executable with its tested revision and SHA-256.cargo build --locked --profile diag -p victory --features diagnostics.cargo test --workspace --locked, including the existing asset policy test.Restore green CI before making the checks required. #1855 already addresses the observed
manual_checked_opsfailure. Current CI · PR #18553. Verify rendering changes on a real GPU
For changes to shader lowering, pipeline creation or scheduling, lighting, or RT, require a maintainer to review a GPU result for the tested revision before approving. Record the GPU and driver, wave size, Series X/S profile, rendering settings, and cache state. Use the same save and scene for base and candidate.
Run synthetic shader regressions and supported WARP tests in CI where practical. Include the adapter and any skipped cases in the result. Post a sanitized summary in the PR and keep title data, captures, and raw logs local. wgpu CI · VIctory-NVIDIA asset policy
4. Add labels that make review actionable
shaders,rendering,lighting,RAYTRACINGpipelines,cineeds-rebasemainand remove it when the conflict clears.needs-gpu-testregressionKeep the existing title-label workflow and use AnyPS5’s path and conflict labeling as references. VIctory-NVIDIA title labels · AnyPS5 area labels · AnyPS5 conflict labels
The first milestone is a green
mainwith required checks and review. A direct push should be rejected, and a PR with stale or failed checks should be blocked. The manual batch build and label automation can follow once that path works.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T02:23:59Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Ondra97 on 2026-11-29T02:31:51Z.
Thanks. The direct reproduction for this proposal is the Windows CI run for
d148613. Clippy failed withmanual_checked_ops, and the diagnostics lint and workspace tests were skipped.For runtime context, I also ran a clean release build of upstream
mainat568c5e5d2b19f97a9e5562c0e6923581eb6fa360.Selected play-log lines, with local paths omitted:
After the recent merges, I started seeing visual glitches and large FPS drops on clean
main.This run generated no crash log and recorded no device removal or reset. The excerpts illustrate why a GPU smoke test should record startup and pipeline readiness. The issue itself proposes changes to the merge and validation process.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kalberts0089-hash on 2026-11-29T08:00:40Z.
I checked the "restore green CI first" part at
e1f2eb6. Fixing the onemanual_checked_opserror is not enough. #1855 as it stands fixes clippy and the policy test on currentmain. The workspace tests still fail intermittently because ofvictory-gpuwatchtests, which matters if Tests becomes a required check.Current state
pushruns ofci.ymlon record have failed, from the first (df2daaf, 2026-11-27) to the latest (e1f2eb6, run 46224434436). That run stopped at Clippy oncrates\victory-shader\src\emit\lower.rs:2356:26, and the other two steps were skipped.mainstill has no protection and 0 rulesets.pull_requestruns never ran: 70 of the last 200 wereaction_requiredwhen I checked (fork PRs waiting for approval, 0 jobs, e.g. 46236180492). With required checks, each of those PRs would need a maintainer to approve its run first.What fails after the first error (Windows 11, Rust 1.98.1 from
rust-toolchain.toml)lower.rs:2356changed tospare.checked_div(per).unwrap_or(0),cargo clippy --workspace --all-targets --locked --keep-going -- -D warningsstill fails invictory-gpuwith 23 errors (9 in the lib, 14 in lib test, 14 distinct locations): Thehost.rsones look like a real bug and not just a lint. From reading the code (I have not exercised the path):present_planestakesself.presenter.lock()(astd::sync::Mutex) athost.rs:10928. On the three fallback paths it callsdrop(presenter)on a reference, then recurses intopresent_planeswith the guard still held.std::sync::Mutexdoesn't allow that: the second lock deadlocks or panics. #1855's commit8212e47changes these todrop(presentation), so that PR changes behaviour as well as lints.cargo test --locked -p xtaskate1f2eb6:xtask/src/policy.rs:14setsMAX_FILE_SIZE = 640 * 1024.lower.rsfirst went over that limit atdea9857(2026-11-28). No push run onmainhas shown it because Tests never ran there. #1855's0f5d52braises the limit to 768 KiB.#1855 merged onto
e1f2eb6#1855's own run (46209020338, head
0f5d52b) passed all three steps on GitHub. 15 commits have landed onmainsince then, so I mergedpull/1855/headintoe1f2eb6locally. There were no conflicts.cargo clippy --workspace --all-targets --locked -- -D warnings→Finishedcargo clippy --workspace --all-targets --all-features --locked -- -D warnings→Finishedcargo test --workspace --locked --no-fail-fast: one run passed (1394 passed, 60 ignored). A second run failed:Flaky
watchtestscargo test --locked -p victory-gpu --libon the merge failed 3 of 16 runs. The failures were either the test above orfaults_that_take_no_lock_tell_the_same, which panics atwatch.rs:4534(assertion failed: writable(two) && !writable(one)) inside thea_write_opens_the_view_it_goes_throughit calls. Each test passes when run alone. With-- --test-threads=1the lib suite passed 8 of 8 runs. The comment atwatch.rs:4971-4978already describes this interference between tests that change mappings ("4 and 1 of 100 runs failed so"). That rate is too high for a required check. Possible options are running thewatchtests single-threaded or serialised, or fixing the address reuse first.For the job split (section 2)
ci.yml:19-33is a singlecheckjob with sequential steps. That is why the Clippy error has hidden the policy failure onmainsincedea9857.--profile diagbuild or--helpstep yet.target\release\victory.exe --helpate1f2eb6exits 0 and prints the command list without a game, so it works as a smoke step.Tested on an RTX 4070 Ti, Windows 11 Pro build 26300. I didn't run any GPU or game tests.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-30T15:39:33Z.
Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.
If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:
victory-nvidia-play-<date>-<time>-<number>.login%LOCALAPPDATA%\victory\logs\.%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\if there is one from that run.