Skip to content

CLI: add resumable pipeline preload - #3532

Open
tharun-37 wants to merge 2 commits into
Marvisak:mainfrom
tharun-37:cli/resumable-preload
Open

tharun-37 wants to merge 2 commits into
Marvisak:mainfrom
tharun-37:cli/resumable-preload

Conversation

@tharun-37

@tharun-37 tharun-37 commented Nov 27, 2026 •

Copy link
Copy Markdown

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 (comment)

AI-assisted (OpenCode).

Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com

Co-authored-by: andrewpozdnakov7-jpg <andrewpozdnakov7-jpg@users.noreply.github.com>
Co-authored-by: andrewpozdnakov7-jpg <andrewpozdnakov7-jpg@users.noreply.github.com>
@andrewpozdnakov7-jpg

Copy link
Copy Markdown
Contributor

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 <andrewpozdnakov7-jpg@users.noreply.github.com>.

AI-assisted with Codex.

@tharun-37

Copy link
Copy Markdown
Author

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).

@cloph-dsp

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants