CLI: write pipeline key listings in stable pack order #1804
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1805"
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 EatCodeSleep2 on 2026-11-24T22:51:23Z.
When VICTORY_PREBUILD_KEYS is set, worker completion order currently determines the output order. That makes repeated listings noisy to diff, even on the same input. Record each line by its job and emit it in pack order: compute entries first, then graphics, each by record index. Pipeline scheduling and the listing format are unchanged.
On Windows, a synthetic pack with 80 compute records produced different listings with one and eight workers on main. With the patch, the files are byte-for-byte identical and both contain all 80 records. CLI unit tests and strict Clippy passed.
AI use: Codex wrote and tested the change.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T23:03:37Z.
Review: COMMENTED
Static review only: apps/Windows-only (CLI/run paths) — nothing compiles on macOS; source review of the diff.
Pipeline key listings in stable pack order: 2.4K CLI determinism fix — stable output ordering for cache tooling.
Imported from Marvisak/VIctory. Originally posted by DesertGamer on 2026-11-24T22:56:32Z.
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
Imported from Marvisak/VIctory. Originally posted by Melow-code on 2026-11-24T23:08:28Z.
Review: APPROVED
Deterministic pack order is correct — worker completion order was the wrong default for a listing.
upstream-sync referenced this pull request2026-11-25 07:03:16 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T06:28:33Z.
Automated triage for the maintainers.
Merge candidate. The
VICTORY_PREBUILD_KEYSlisting inapps/victory/src/prebuild.rsused to be written in whatever order the worker threads finished. It now collects lines in aBTreeMap<Job, String>, so the file comes out in pack order and two runs can be diffed.JobderivesOrd, and its variants are reordered so compute records sort first. That changes noDebugoutput, only the order, and the order is the purpose. The change is small and confined to the diagnostics listing.Note: #1806 and #1809 by the same author touch the same function. #1809 changes how
keys_onlyreachesrun, so the second and third to land will need a small rebase.CI:
checkfailing, but invictory-shadertests this PR does not touch (synthetic_tests::gathers_at_a_level_match_the_hardware,permutes_read_the_lane_named_…) on its older base. A re-run on currentmainwould confirm.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T11:09:16Z.
Independent local validation (Windows, Rust 1.100.0/MSVC, head
703d520, no game data):cargo test --locked -p victory-> 1 test passed (run::tests::loader_lock_is_reentrant_and_exclusive), exit 0. Limits: Scoop Rust has no clippy component, so-D warningslint validation was not run; CI red is from unrelated old-base shader tests; the behavioral repro needs a synthetic pack plusVICTORY_PREBUILD_KEYS, which I did not construct. Overlap with #1809/#1806 still needs a rebase decision. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only test). No game data used.Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T01:14:25Z.
Code review and Windows 11 verification at head
703d5204cee3merged cleanly ontomain(63bcca43c6a0):apps/victory/src/prebuild.rs:33-37, 202-223):Ordonenum Job { Compute(usize), Graphics(usize) }matches thejobsconstruction order (prebuild.rs:173-174), and collecting intoMutex<BTreeMap<Job, String>>removes multi-worker scheduling jitter fromVICTORY_PREBUILD_KEYSoutput. (Also verified zero merge conflict and full complementarity with#1809.)cargo xtask policy:191 files ok;cargo clippy -p victory --all-targets -- -D warnings: 0 warningscargo test --locked -p victory: 18/18 passed (14 unit + 4 integration).LGTM.
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.