Warm-up: a worker's watchdog wakes when the worker is done, not at its next 500 ms tick (port of readmet3xt-lab/foxhound #98) #4778

Open
xiepeixuan wants to merge 1 commit from upstream-pr/4778 into main
xiepeixuan commented 2026-12-01 07:39:49 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by xiepeixuan on 2026-12-01T07:39:49Z.


Refs #1060 and #1976 for workload sizes, not as fixes for either report.

What it changes

After a compiler worker closes stdout, warm::child has to join its watchdog before the slot can take another batch or the launcher can continue. The old watchdog could spend the remainder of a 500 ms sleep doing nothing. Port Yoshi-233's Foxhound PR #98, implementation b20c5ed, merged on Foxhound main as 152376e. At EOF the reader stores over with Release and unparks the watchdog. After park_timeout, the watchdog checks over with Acquire before checking for silence. The 500 ms polling interval and 180 s silence limit do not change. Neither do output parsing, killing a hung process, exit accounting, or pipeline selection.

The original one-file Foxhound hunk applies cleanly to target main. The only adaptation is exposing the wait loop, completion signal and existing exit-status decision to no-game tests. If #1923 or #1931 lands first, keep its reporting/retry behavior when rebasing; this port changes only how the watchdog stops. No other production site is changed.

How much time can it save on this target?

Use pipelines “to make”, not “known” or “in the library.” Let N be what remains after quarantine, optional used-list filtering, done marks, name deduplication and the limit. On target main, a successful no-retry warm launches B = ceil(N / 40) processes: one child() per chunk, zero if N is zero. The number running together is P = min(B, max(1, jobs)). Without an override, jobs = floor(2 × available logical processors / 3) (uses four processors if detection fails). Preload also accepts VICTORY_PRELOAD_JOBS. A partial failure can launch another process for the rest of a chunk; unanswered work can enter another round, up to five rounds in total. In those cases count actual launched children instead.

Per joined child the old sleep costs between zero and nearly 0.5 s, about 0.25 s if completion is uniformly phased against the tick. Thus worker-time saved is approximately 0.25 × B seconds, up to 0.5 × B. At full, balanced utilization the wall-time estimate is 0.25 × B / P; a high-side illustration is 0.5 × ceil(B / P). The latter is a balanced-wave estimate, not a guarantee for uneven batches. Real phase alignment, scheduling, retries and the last partially filled wave matter. This is avoided waiting, not faster shader compilation.

For 84,000 actually to make → 2,100 child calls: summed over slots, 8 min 45 s expected, up to 17 min 30 s. Do not count that sum as elapsed time with parallel workers:

Active child slots Typical wall saving (model) If each wait nearly fills a tick, balanced waves
1 (--jobs 1) 525 s 1,050 s
8 (e.g. 12 logical processors, default) ~65.6 s ~131.5 s
10 (e.g. 16 logical processors, default) 52.5 s 105 s

#1060 reports 88,577 warmed; #1976 reports 83,844 known. These give scale, not measured savings. The library pass caps library_workers(jobs, n) at its selected pipeline count (same two-thirds default) and calls known::make in-process. It adds zero child() calls, as does the optional shared-library fill. A player waiting for a pre-game warm can benefit; a fully reused cache, library-only work and in-game FPS do not.

Other scoped sleeps checked

Only warm::child had all three properties: a scoped thread, a periodic sleep to observe completion, and a player-facing caller joining it. No second site is changed.

  • apps/victory/src/run.rs title watchdog/log sampling, GPU pipeline::known::book (periodic flush), pipeline::make::workers (periodic sampling), watch::ask_early and HLE dstorage/xasync/xmem monitors: detached threads, not a scope-exit delay.
  • Warm/library, translation and replay scopes join workers doing real work. Resource readbacks, storage backoff, fences and pacing wait on data or time, not a completed child's stop flag.
  • The other apparent matches in GPU host, descriptor::host, indirect, land::tests, pool, shadow, watch, HLE xmem and pipeline cache exercise races, mock latency or benchmark load in tests/benches. Those sleeps do not hold up a player's warm.

How it was tested

  • GPU and profile: No game, pipeline cache or GPU used for the local regression tests; Series X/S, resolution, DLSS, frame generation and ray tracing are not applicable.
  • Before / after — Foxhound's measurements, not ours: Yoshi-233's report used an RTX 4070 Ti SUPER, the same primed cache, --again --jobs 1, four runs per binary in balanced order. Medians: 1 pipeline 817 → 730 ms; 160 pipelines 2,348 → 2,316 ms (ranges 2,332–2,352 and 2,250–2,589 ms overlap). Their separate immediate-worker harness measured 507 → 14 ms median. None of these is a measured full target warm.
  • Before — target: cargo test --locked -p victory --bin victory warm::tests on 5fabb46: 12 passed. For a negative control, compile the three new tests with the same helpers, changing only park_timeout(tick) to sleep(tick). The wakeup timed out at its 350 ms bound; the other two passed.
  • After — target: The same Cargo command on 5993f4f: 15 passed, 0 failed. The wake test waits for thread readiness before signalling completion; it also passed 50/50 isolated repetitions. A silent worker is flagged after a 40 ms test limit (5 ms tick, 5 s test deadline). Successful exits still count the full batch; code 7 and wait errors retain partial progress and their messages; a hung failure retains the 180 s reason.
  • For shader changes, wave sizes: Not applicable; no shader code changed.
  • cargo test for the touched crate: Yes. cargo test --locked -p victory on Windows x64, Rust 1.98.1 GNU: 94 unit + 3 integration tests passed. cargo xtask policy --staged and cargo xtask policy both passed. The warm module declaration is already guarded by #[cfg(windows)], so the exit-status test and its Windows import are excluded on other targets.
  • MSVC CI could not run in my fork (GitHub Actions disabled there); tested locally on Windows x64 GNU only. Upstream CI will check MSVC.

Checked for overlap

  • Re-ran the 900-PR query and searched the full target inventory (2,098 PRs, 939 open at this check) by title, body and changed path: Foxhound, #98, both source SHAs, child, watchdog, sleep, park/unpark and warm.rs. Rechecked the triage map, #1138, and fully paginated the two open file lists longer than 100 (#1577 and #3617). No equivalent on the pinned target main or in an open PR.
  • Read all 12 open diffs touching apps/victory/src/warm.rs. #1923 changes result reporting, #1931 changes attribution of early failures, and #4198 changes cache marks/library defaults. None changes the watchdog wait. Also checked #730, #1001, #2289, #3588, #3617, #3622, #4192, #4256 and #4410; none wakes the watcher on EOF.
  • Repeated the 900-PR query before handoff and checked the complete file lists of new #4769 and #4771 (94 files). Neither touches warm.rs or proposes this mechanism.

Opened as a draft early so others know this is being worked on (README: 'Opening a draft pull request early works too'). Quoted README · Current contribution guide.

AI-assisted (Codex). Not run in the game.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5581253166 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4778). Originally posted by [xiepeixuan](https://github.com/xiepeixuan) on 2026-12-01T07:39:49Z. --- Refs [#1060](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1060) and [#1976](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1976) for workload sizes, not as fixes for either report. ## What it changes After a compiler worker closes stdout, `warm::child` has to join its watchdog before the slot can take another batch or the launcher can continue. The old watchdog could spend the remainder of a 500 ms sleep doing nothing. Port [Yoshi-233's Foxhound PR #98](https://github.com/readmet3xt-lab/foxhound/pull/98), implementation [b20c5ed](https://github.com/readmet3xt-lab/foxhound/commit/b20c5ed7d8c52de7ad49804c92bb3976806989ab), merged on Foxhound main as [152376e](https://github.com/readmet3xt-lab/foxhound/commit/152376eb5c78ff0016fd9d9d52f8bbc7d65cfc76). At EOF the reader stores `over` with Release and unparks the watchdog. After `park_timeout`, the watchdog checks `over` with Acquire **before** checking for silence. The 500 ms polling interval and 180 s silence limit do not change. Neither do output parsing, killing a hung process, exit accounting, or pipeline selection. The original one-file Foxhound hunk applies cleanly to target main. The only adaptation is exposing the wait loop, completion signal and existing exit-status decision to no-game tests. If #1923 or #1931 lands first, keep its reporting/retry behavior when rebasing; this port changes only how the watchdog stops. No other production site is changed. ### How much time can it save on this target? Use **pipelines “to make”**, not “known” or “in the library.” Let `N` be what remains after quarantine, optional used-list filtering, done marks, name deduplication and the limit. On [target main](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/5fabb46eaf6ed8771321787f8871051abde69b9b/apps/victory/src/warm.rs#L179-L231), a successful no-retry warm launches **B = ceil(N / 40)** processes: one `child()` per chunk, zero if N is zero. The number running together is **P = min(B, max(1, jobs))**. Without an override, `jobs = floor(2 × available logical processors / 3)` (uses four processors if detection fails). Preload also accepts `VICTORY_PRELOAD_JOBS`. A partial failure can launch another process for the rest of a chunk; unanswered work can enter another round, up to five rounds in total. In those cases count actual launched children instead. Per joined child the old sleep costs between zero and nearly 0.5 s, about 0.25 s **if** completion is uniformly phased against the tick. Thus worker-time saved is approximately `0.25 × B` seconds, up to `0.5 × B`. At full, balanced utilization the wall-time estimate is `0.25 × B / P`; a high-side illustration is `0.5 × ceil(B / P)`. The latter is a balanced-wave estimate, not a guarantee for uneven batches. Real phase alignment, scheduling, retries and the last partially filled wave matter. This is avoided waiting, not faster shader compilation. For **84,000 actually to make → 2,100 child calls**: summed over slots, **8 min 45 s** expected, up to **17 min 30 s**. Do not count that sum as elapsed time with parallel workers: | Active child slots | Typical wall saving (model) | If each wait nearly fills a tick, balanced waves | | --- | ---: | ---: | | 1 (`--jobs 1`) | 525 s | 1,050 s | | 8 (e.g. 12 logical processors, default) | ~65.6 s | ~131.5 s | | 10 (e.g. 16 logical processors, default) | **52.5 s** | **105 s** | [#1060](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1060) reports 88,577 warmed; [#1976](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1976) reports 83,844 **known**. These give scale, not measured savings. The [library pass](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/5fabb46eaf6ed8771321787f8871051abde69b9b/apps/victory/src/warm.rs#L415-L465) caps `library_workers(jobs, n)` at its selected pipeline count (same two-thirds default) and calls `known::make` **in-process**. It adds **zero** `child()` calls, as does the optional shared-library fill. A player waiting for a pre-game warm can benefit; a fully reused cache, library-only work and in-game FPS do not. ### Other scoped sleeps checked Only `warm::child` had all three properties: a scoped thread, a periodic sleep to observe completion, and a player-facing caller joining it. No second site is changed. - `apps/victory/src/run.rs` title watchdog/log sampling, GPU `pipeline::known::book` (periodic flush), `pipeline::make::workers` (periodic sampling), `watch::ask_early` and HLE `dstorage`/`xasync`/`xmem` monitors: detached threads, not a scope-exit delay. - Warm/library, translation and replay scopes join workers doing real work. Resource readbacks, storage backoff, fences and pacing wait on data or time, not a completed child's stop flag. - The other apparent matches in GPU `host`, `descriptor::host`, `indirect`, `land::tests`, `pool`, `shadow`, `watch`, HLE `xmem` and pipeline `cache` exercise races, mock latency or benchmark load in tests/benches. Those sleeps do not hold up a player's warm. ## How it was tested - **GPU and profile:** No game, pipeline cache or GPU used for the local regression tests; Series X/S, resolution, DLSS, frame generation and ray tracing are not applicable. - **Before / after — Foxhound's measurements, not ours:** [Yoshi-233's report](https://github.com/readmet3xt-lab/foxhound/pull/98) used an RTX 4070 Ti SUPER, the same primed cache, `--again --jobs 1`, four runs per binary in balanced order. Medians: **1 pipeline 817 → 730 ms; 160 pipelines 2,348 → 2,316 ms** (ranges **2,332–2,352** and **2,250–2,589 ms** overlap). Their separate immediate-worker harness measured **507 → 14 ms** median. None of these is a measured full target warm. - **Before — target:** `cargo test --locked -p victory --bin victory warm::tests` on `5fabb46`: 12 passed. For a negative control, compile the three new tests with the same helpers, changing only `park_timeout(tick)` to `sleep(tick)`. The wakeup timed out at its 350 ms bound; the other two passed. - **After — target:** The same Cargo command on `5993f4f`: **15 passed, 0 failed**. The wake test waits for thread readiness before signalling completion; it also passed 50/50 isolated repetitions. A silent worker is flagged after a 40 ms test limit (5 ms tick, 5 s test deadline). Successful exits still count the full batch; code 7 and wait errors retain partial progress and their messages; a hung failure retains the 180 s reason. - **For shader changes, wave sizes:** Not applicable; no shader code changed. - **`cargo test` for the touched crate:** Yes. `cargo test --locked -p victory` on Windows x64, Rust 1.98.1 GNU: **94 unit + 3 integration tests passed**. `cargo xtask policy --staged` and `cargo xtask policy` both passed. The [`warm` module declaration](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/5fabb46eaf6ed8771321787f8871051abde69b9b/apps/victory/src/main.rs#L15-L16) is already guarded by `#[cfg(windows)]`, so the exit-status test and its Windows import are excluded on other targets. - MSVC CI could not run in my fork (GitHub Actions disabled there); tested locally on Windows x64 GNU only. Upstream CI will check MSVC. ## Checked for overlap - [x] Re-ran the 900-PR query and searched the full target inventory (2,098 PRs, 939 open at this check) by title, body and changed path: Foxhound, #98, both source SHAs, `child`, watchdog, sleep, park/unpark and `warm.rs`. Rechecked [the triage map, #1138](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1138), and fully paginated the two open file lists longer than 100 (#1577 and #3617). No equivalent on the pinned target main or in an open PR. - Read all 12 open diffs touching `apps/victory/src/warm.rs`. [#1923](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1923/files) changes result reporting, [#1931](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1931/files) changes attribution of early failures, and [#4198](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4198/files) changes cache marks/library defaults. None changes the watchdog wait. Also checked #730, #1001, #2289, #3588, #3617, #3622, #4192, #4256 and #4410; none wakes the watcher on EOF. - Repeated the 900-PR query before handoff and checked the complete file lists of new [#4769](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4769/files) and [#4771](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4771/files) (94 files). Neither touches `warm.rs` or proposes this mechanism. Opened as a draft early so others know this is being worked on (README: 'Opening a draft pull request early works too'). [Quoted README](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/d4599073159082b0eba33c711ab25e2977ef3458/README.md#L34-L36) · [Current contribution guide](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/5fabb46eaf6ed8771321787f8871051abde69b9b/CONTRIBUTING.md#L29-L35). AI-assisted (Codex). Not run in the game.
andrewpozdnakov7-jpg commented 2026-12-01 08:51:50 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T08:51:50Z.


Independent Windows x64 / MSVC check (Rust 1.98.1) on the exact head 5993f4fd2113fa06b3df8af0ef68cc34450ffe70 and main at 5fabb46eaf6ed8771321787f8871051abde69b9b.

  • cargo test --offline --locked --jobs 2 -p victory --bin victory warm::tests passed 15/15 on the PR and 12/12 on main. The exact staged warm.rs diff passed cargo xtask policy --staged.
  • In a standalone harness using each revision's unchanged warm::child and a synthetic subprocess, all 24 paired runs made the same callbacks and returned the expected full success or partial failure with exit code 7. The time from the last output record to child() returning was 62.8–498.4 ms on main and 0.18–5.56 ms on the PR. The PR was faster in all 24 pairs. This measures worker completion, with synthetic delays of 0–350 ms. In-game and full shader warm-up performance remain unmeasured here.
  • The two CI / check logs have the same five Clippy diagnostics and source locations in font.rs, menu.rs and panel.rs. The shared lint fix is #4707. Main check · PR check

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7305884742 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4778#issuecomment-7305884742). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T08:51:50Z. --- Independent Windows x64 / MSVC check (Rust 1.98.1) on the exact head `5993f4fd2113fa06b3df8af0ef68cc34450ffe70` and `main` at `5fabb46eaf6ed8771321787f8871051abde69b9b`. - `cargo test --offline --locked --jobs 2 -p victory --bin victory warm::tests` passed 15/15 on the PR and 12/12 on main. The exact staged `warm.rs` diff passed `cargo xtask policy --staged`. - In a standalone harness using each revision's unchanged `warm::child` and a synthetic subprocess, all 24 paired runs made the same callbacks and returned the expected full success or partial failure with exit code 7. The time from the last output record to `child()` returning was 62.8–498.4 ms on main and 0.18–5.56 ms on the PR. The PR was faster in all 24 pairs. This measures worker completion, with synthetic delays of 0–350 ms. In-game and full shader warm-up performance remain unmeasured here. - The two `CI / check` logs have the same five Clippy diagnostics and source locations in `font.rs`, `menu.rs` and `panel.rs`. The shared lint fix is #4707. [Main check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) · [PR check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46600204560/job/142479252352) AI-assisted with OpenAI Codex.
andrewpozdnakov7-jpg commented 2026-12-01 13:58:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T13:58:38Z.


Follow-up on 5993f4fd: a worker process that fails to start leaves its batch unanswered, and warm can still exit successfully. Automatic preload can then write its completion marker. #4785 covers the separate case where the shader book cannot be opened.

e920f356 keeps the operating-system error for a worker that cannot start. If the last warm-up round leaves batches pending because of a start error, it returns that error after saving completed work. A failed process start leaves the batch eligible for retry.

I ran the exact warm-up loop and watchdog on Windows with a synthetic pipeline book and a deliberately absent worker executable. The author head returned success with zero or two of four completion records. The patch returned Windows error 2 in both cases and kept those records. A transient start failure recovered within the next round, and the all-success run still finished with four records. All cases kept the quarantine file empty. The staged asset check passed, and git merge-tree combined the change cleanly with #4785.

Please keep the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change in.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7313492269 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4778#issuecomment-7313492269). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T13:58:38Z. --- Follow-up on `5993f4fd`: a worker process that fails to start leaves its batch unanswered, and `warm` can still exit successfully. Automatic preload can then write its completion marker. #4785 covers the separate case where the shader book cannot be opened. [e920f356](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/commit/e920f356dbbf61e0d2217f2ebaa2c42b7a222afc) keeps the operating-system error for a worker that cannot start. If the last warm-up round leaves batches pending because of a start error, it returns that error after saving completed work. A failed process start leaves the batch eligible for retry. I ran the exact warm-up loop and watchdog on Windows with a synthetic pipeline book and a deliberately absent worker executable. The author head returned success with zero or two of four completion records. The patch returned Windows error 2 in both cases and kept those records. A transient start failure recovered within the next round, and the all-success run still finished with four records. All cases kept the quarantine file empty. The staged asset check passed, and `git merge-tree` combined the change cleanly with #4785. Please keep the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change in. AI-assisted with OpenAI Codex.
cloph-dsp commented 2026-12-01 18:47:28 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by cloph-dsp on 2026-12-01T18:47:28Z.


Verification (independent, AI-assisted: Hy4 flash). Windows, Rust 1.100.0 (Scoop rust-msvc), MSVC, commit-scoped shallow worktree.

Base 5fabb46eaf6ed8771321787f8871051abde69b9b, head 5993f4fd2113fa06b3df8af0ef68cc34450ffe70. git diff --numstat → apps/victory/src/warm.rs 102/11.

All three tests are new on the base (git grep -F <name> 5fabb46e -- . exit 1 for each):
a_finished_worker_wakes_its_watchdog_before_the_next_tick, a_silent_worker_is_flagged_after_the_silence_limit, child_result_keeps_success_status_and_partial_failures.

git diff --check "5fabb46e..5993f4fd" → no output, exit 0.

$env:CARGO_TARGET_DIR='D:\Victory-Contrib\NVIDIA-Contrib\target-4778'
cargo test --locked -p victory --bin victory -- warm::tests::a_finished_worker_wakes_its_watchdog_before_the_next_tick --exact --test-threads=1 --quiet
cargo test --locked -p victory --bin victory -- warm::tests::a_silent_worker_is_flagged_after_the_silence_limit --exact --test-threads=1 --quiet
cargo test --locked -p victory --bin victory -- warm::tests::child_result_keeps_success_status_and_partial_failures --exact --test-threads=1 --quiet

Result, each: running 1 test, test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 93 filtered out.

What they pin, from reading the bodies: the first spawns the real watchdog on a scoped thread and calls finish_watchdog after the worker starts, asserting watchdog_hung returns false without waiting a tick (the started.recv() is there to exclude thread creation, since an early unpark would leave a token); the second drives watchdog_hung with a 5 ms tick and a 40 ms silence limit against a last_line that is never updated, and asserts both that it reports hung and that the observed silence is at least the limit; the third is a pure table over child_result — success stays (40, None) whether or not the child hung, a non-zero status becomes (3, Some("exit code: 7")), a hung but failed child becomes (3, Some("hung for 180 s")) which takes precedence over the exit status, and a wait error is carried through.

Two things worth naming. The first two are timing-based (channels with 350 ms and 5 s bounds, threads spawned in scope); they passed in 0.00 s and 0.06 s here and did not flake in this run, but they are the kind of test that can be slow on a loaded CI box. And the third uses std::os::windows::process::ExitStatusExt, so it only compiles on Windows — fine given ci.yml is runs-on: windows-latest, but it does tie that test to the platform.

No title data, no device; GPU/driver N/A. No game data.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321551345 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4778#issuecomment-7321551345). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-12-01T18:47:28Z. --- Verification (independent, AI-assisted: Hy4 flash). Windows, Rust 1.100.0 (Scoop rust-msvc), MSVC, commit-scoped shallow worktree. Base `5fabb46eaf6ed8771321787f8871051abde69b9b`, head `5993f4fd2113fa06b3df8af0ef68cc34450ffe70`. `git diff --numstat` → apps/victory/src/warm.rs 102/11. All three tests are new on the base (`git grep -F <name> 5fabb46e -- .` exit 1 for each): `a_finished_worker_wakes_its_watchdog_before_the_next_tick`, `a_silent_worker_is_flagged_after_the_silence_limit`, `child_result_keeps_success_status_and_partial_failures`. `git diff --check "5fabb46e..5993f4fd"` → no output, exit 0. ``` $env:CARGO_TARGET_DIR='D:\Victory-Contrib\NVIDIA-Contrib\target-4778' cargo test --locked -p victory --bin victory -- warm::tests::a_finished_worker_wakes_its_watchdog_before_the_next_tick --exact --test-threads=1 --quiet cargo test --locked -p victory --bin victory -- warm::tests::a_silent_worker_is_flagged_after_the_silence_limit --exact --test-threads=1 --quiet cargo test --locked -p victory --bin victory -- warm::tests::child_result_keeps_success_status_and_partial_failures --exact --test-threads=1 --quiet ``` Result, each: `running 1 test`, `test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 93 filtered out`. What they pin, from reading the bodies: the first spawns the real watchdog on a scoped thread and calls `finish_watchdog` after the worker starts, asserting `watchdog_hung` returns `false` without waiting a tick (the `started.recv()` is there to exclude thread creation, since an early unpark would leave a token); the second drives `watchdog_hung` with a 5 ms tick and a 40 ms silence limit against a `last_line` that is never updated, and asserts both that it reports hung and that the observed silence is at least the limit; the third is a pure table over `child_result` — success stays `(40, None)` whether or not the child hung, a non-zero status becomes `(3, Some("exit code: 7"))`, a hung but failed child becomes `(3, Some("hung for 180 s"))` which takes precedence over the exit status, and a wait error is carried through. Two things worth naming. The first two are timing-based (channels with 350 ms and 5 s bounds, threads spawned in scope); they passed in 0.00 s and 0.06 s here and did not flake in this run, but they are the kind of test that can be slow on a loaded CI box. And the third uses `std::os::windows::process::ExitStatusExt`, so it only compiles on Windows — fine given `ci.yml` is `runs-on: windows-latest`, but it does tie that test to the platform. No title data, no device; GPU/driver N/A. No game data.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/4778:upstream-pr/4778'
git switch 'upstream-pr/4778'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/4778'
git switch 'upstream-pr/4778'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/4778'
git switch 'upstream-pr/4778'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/4778'
git switch 'main'
git merge --squash 'upstream-pr/4778'
git switch 'main'
git merge --ff-only 'upstream-pr/4778'
git switch 'main'
git merge 'upstream-pr/4778'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA!4778
No description provided.