CLI: add resumable pipeline preload #3532

Open
github-bot wants to merge 2 commits from github-bot/gh-3532 into main AGit
Owner

@⁠tharun-37 on GitHub · 2026-11-27 15:14 UTC · original
tharun-37:cli/resumable-preload → main · +153 −0 · 3 files · 2 commits · open

Adds victory preload, an unattended wrapper around the existing offline warm-up.

translate --cache --pipelines already saves completed pipelines as it goes. preload runs that command in a child process and, after a failed child, starts a fresh one that resumes from the saved library. It stops after two consecutive attempts with no new pipeline keys, so a deterministic compile failure cannot loop forever.

  • --jobs is forwarded to the existing translator.
  • --attempts defaults to 16.
  • README documents the command beside the existing warm-up example.
  • Unit tests cover the saved key-list format and the progress/stagnation logic; they use synthetic data only.

Verification:

  • cargo clippy --workspace --all-targets --locked -- -D warnings passes.
  • cargo test -p victory --bin victory --locked: 19 passed, 0 failed.
  • cargo test --workspace --locked: the same 3 pre-existing victory-gpu failures remain (228 passed, 3 failed, 1 ignored in that crate).

Claim: #1633

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-27 15:14 UTC · [original](https://github.com/Marvisak/VIctory/pull/3532) `tharun-37:cli/resumable-preload` → `main` · +153 −0 · 3 files · 2 commits · open Adds `victory preload`, an unattended wrapper around the existing offline warm-up. `translate --cache --pipelines` already saves completed pipelines as it goes. `preload` runs that command in a child process and, after a failed child, starts a fresh one that resumes from the saved library. It stops after two consecutive attempts with no new pipeline keys, so a deterministic compile failure cannot loop forever. - `--jobs` is forwarded to the existing translator. - `--attempts` defaults to 16. - README documents the command beside the existing warm-up example. - Unit tests cover the saved key-list format and the progress/stagnation logic; they use synthetic data only. Verification: - `cargo clippy --workspace --all-targets --locked -- -D warnings` passes. - `cargo test -p victory --bin victory --locked`: 19 passed, 0 failed. - `cargo test --workspace --locked`: the same 3 pre-existing `victory-gpu` failures remain (228 passed, 3 failed, 1 ignored in that crate). Claim: https://git.gtahub.st/github/Marvisak--VIctory/issues/1633 AI-assisted (OpenCode).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:22:36 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 15:33 UTC · original

On Windows 10 (19045.6456, Rust 1.98.1 MSVC), the frame-clock test on cfafc80 failed in 5 of 20 fresh processes. Three failed at the same zero-timeout assertion as the first CI job. The frame.rs source is identical to main 63bcca4.

I merged current #3532 8d37394 and #2877 8616219 in ed88d18, preserving both original histories. All three frame tests passed in each of 20 fresh processes. Strict GPU Clippy in both feature configurations and the asset policy passed. The current #3532 CI job is already green.

On the exact 8d37394 head, all 24 app tests passed. I also ran the actual preload command under an isolated configuration. Empty synthetic input finished on the first attempt, zero attempts started no child, one allowed attempt stopped after one failure, and a three-attempt budget stopped after two consecutive failures with no new keys. These checks cover the supervisor and child startup. They do not exercise a real driver crash or saved GPU pipeline recovery.

The next step is review of #3532 and #2877. If you reuse this integration, please retain the original Git authors for both PRs. If folding my integration work into another commit, please use Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

AI-assisted with Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 15:33 UTC · [original](https://github.com/Marvisak/VIctory/pull/3532#issuecomment-7222195391) On Windows 10 (19045.6456, Rust 1.98.1 MSVC), the frame-clock test on `cfafc80` failed in 5 of 20 fresh processes. Three failed at the same zero-timeout assertion as the [first CI job](https://github.com/Marvisak/VIctory/actions/runs/46023084382/job/140587421867). The `frame.rs` source is identical to main `63bcca4`. I merged current #3532 `8d37394` and #2877 `8616219` in [`ed88d18`](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/ed88d18cbac96f3f44d5f69febe89643e1658965), preserving both original histories. All three frame tests passed in each of 20 fresh processes. Strict GPU Clippy in both feature configurations and the asset policy passed. The [current #3532 CI job](https://github.com/Marvisak/VIctory/actions/runs/46024955830/job/140593837990) is already green. On the exact `8d37394` head, all 24 app tests passed. I also ran the actual `preload` command under an isolated configuration. Empty synthetic input finished on the first attempt, zero attempts started no child, one allowed attempt stopped after one failure, and a three-attempt budget stopped after two consecutive failures with no new keys. These checks cover the supervisor and child startup. They do not exercise a real driver crash or saved GPU pipeline recovery. The next step is review of #3532 and #2877. If you reuse this integration, please retain the original Git authors for both PRs. If folding my integration work into another commit, please use `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`. AI-assisted with Codex.
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-27 15:48 UTC · original

Thanks for isolating it. Agreed: the frame-clock failure is unrelated to this PR (frame.rs is unchanged here), and the current #3532 CI is green. I’ll keep #3532 scoped to resumable preload and leave #2877 as the place for the deterministic virtual clock; no integration or rebase needed here.

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-27 15:48 UTC · [original](https://github.com/Marvisak/VIctory/pull/3532#issuecomment-7222500421) Thanks for isolating it. Agreed: the frame-clock failure is unrelated to this PR (`frame.rs` is unchanged here), and the current #3532 CI is green. I’ll keep #3532 scoped to resumable preload and leave #2877 as the place for the deterministic virtual clock; no integration or rebase needed here. AI-assisted (OpenCode).
Author
Owner

@⁠cloph-dsp on GitHub · 2026-11-27 15:48 UTC · original

Independent CPU-only verification on Windows / Rust 1.100.0 / MSVC.

  • PR head: 8d37394fe227ec9b9dbe9c9de5402b2b018e8eac, merge base 63bcca43c6a00a758510398fa43096ce7e4f7df0.
  • Command: cargo test --locked -p victory --bin victory -- preload::tests::progress_counts_keys_without_a_trailing_newline --exact --test-threads=1 --quiet
  • Result: test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 19 filtered out, exit 0.
  • Negative control: git grep -F -c progress_counts_keys_without_a_trailing_newline 63bcca43 -- . → exit 1 / 0 hits; present on PR head.
  • git diff --check 63bcca43 HEAD → exit 0.
  • Caveat: only the named synthetic CLI test was replayed; no real prebuild supervisor run and no full crate suite.
  • GPU/driver: N/A (CPU-only test). No game data, assets, extracted shaders or DRM involved.
  • AI-assisted: Hy4 flash.
**@⁠cloph-dsp** on GitHub · 2026-11-27 15:48 UTC · [original](https://github.com/Marvisak/VIctory/pull/3532#issuecomment-7222505430) Independent CPU-only verification on Windows / Rust 1.100.0 / MSVC. - PR head: `8d37394fe227ec9b9dbe9c9de5402b2b018e8eac`, merge base `63bcca43c6a00a758510398fa43096ce7e4f7df0`. - Command: `cargo test --locked -p victory --bin victory -- preload::tests::progress_counts_keys_without_a_trailing_newline --exact --test-threads=1 --quiet` - Result: `test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 19 filtered out`, exit 0. - Negative control: `git grep -F -c progress_counts_keys_without_a_trailing_newline 63bcca43 -- .` → exit 1 / 0 hits; present on PR head. - `git diff --check 63bcca43 HEAD` → exit 0. - Caveat: only the named synthetic CLI test was replayed; no real prebuild supervisor run and no full crate suite. - GPU/driver: N/A (CPU-only test). No game data, assets, extracted shaders or DRM involved. - AI-assisted: Hy4 flash.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3532/head:github-bot/gh-3532'
git switch 'github-bot/gh-3532'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3532'
git switch 'github-bot/gh-3532'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3532'
git switch 'github-bot/gh-3532'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3532'
git switch 'main'
git merge --squash 'github-bot/gh-3532'
git switch 'main'
git merge --ff-only 'github-bot/gh-3532'
git switch 'main'
git merge 'github-bot/gh-3532'
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!3532
No description provided.