victory warm: workers' warnings go to warm-log.txt instead of nowhere #326

Open
github-bot wants to merge 1 commit from github-bot/gh-326 into main AGit
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-26 16:59 UTC · original
Jesper-Andersson:worktree-issue-302 → main · +22 −4 · 1 files · 1 commits · open

Helps #302.

When a pipeline gets no host pipeline in victory warm, the run only counts it ("4,550 made in 258 s, 1,720 with no host pipeline" in #302). The reason is lost because each worker's stderr goes to Stdio::null() (apps/victory/src/warm.rs, start_worker). That reason is the host's error (host pipeline refused error=...), the translator's (shader does not translate), or refuse's (no host pipeline: ...). So whoever reports a count like #302's can't say why.

Change

  • Workers append what they log to <cache>/pipelines/warm-log.txt, beside warm-done.txt and warm-bad.txt. All workers share one file, opened once for appending in run and passed to start_worker.
  • Workers log at warn unless VICTORY_LOG is set (every pipeline made is an info line), with NO_COLOR=1, so the file has no escape codes.
  • After each refusal, the worker (make) logs no host pipeline made pipeline=<n>. That ties the warning just before it to the pipeline's number in the book.
  • When anything was refused, the summary ends with why: <path of warm-log.txt>.
  • No new switch. child() is untouched, so this doesn't conflict with #186 (gh pr diff 186 | git apply --check passes on top of it).

Where it does nothing

  • Runs with no refusals: the file only gets what workers warn about, and no why: line is printed.
  • warm --these (the worker itself) still logs to its own stderr as before. Only the parent redirects it.

Measured

RTX 2070 SUPER 8 GB (driver 621.14), Ryzen 7 5800X, 32 GB, Windows 11, main @ c9c932c, diag build. The pipeline book is from a run with VICTORY_PORT_CBV=1 VICTORY_PIPELINE_BOOK=1 (83,557 pipelines, 2,128 drawn with).

victory warm --used --again, with VICTORY_PORT_CBV=0 and with =1: 2,030 made, 6 without a host pipeline in both. warm-log.txt now names all six: compute pipelines refused by CreateComputePipelineState with E_INVALIDARG (0x80070057), the same six in both runs. So on this NVIDIA card #302 doesn't reproduce, and these six are a separate problem. The 1,720 in #302 are probably specific to AMD and its raw twins (raw_twins=false here). Someone on a 7900 XTX can now run warm --used with port 3 on and read why in warm-log.txt.

Checks

  • cargo test -p victory --features diagnostics --locked warm: 4 passed (no new tests; the existing run_batches tests pass their own start closures and still pass)
  • cargo clippy -p victory --all-targets --no-deps --locked -- -D warnings, with and without --features diagnostics: clean. The workspace-wide clippy fails on main in victory-gpu (#280), not in this change.
  • cargo xtask policy (pre-commit hook): 1 file ok
  • In game: not needed (offline command); warm --used run as above

Not checked

  • An RX 7900 XTX with VICTORY_PORT_CBV=1, the case from #302. The most useful check: victory warm --used --again there, then the reasons in warm-log.txt.
  • #186 changes child() in the same file (watchdog wake-up). It doesn't overlap, and either can merge first.
  • #302: this doesn't fix it, but makes its cause visible.

This change was made with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-11-26 16:59 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/326) `Jesper-Andersson:worktree-issue-302` → `main` · +22 −4 · 1 files · 1 commits · open Helps #302. When a pipeline gets no host pipeline in `victory warm`, the run only counts it ("4,550 made in 258 s, 1,720 with no host pipeline" in #302). The reason is lost because each worker's stderr goes to `Stdio::null()` (`apps/victory/src/warm.rs`, `start_worker`). That reason is the host's error (`host pipeline refused error=...`), the translator's (`shader does not translate`), or `refuse`'s (`no host pipeline: ...`). So whoever reports a count like #302's can't say why. ## Change - Workers append what they log to `<cache>/pipelines/warm-log.txt`, beside `warm-done.txt` and `warm-bad.txt`. All workers share one file, opened once for appending in `run` and passed to `start_worker`. - Workers log at `warn` unless `VICTORY_LOG` is set (every pipeline made is an `info` line), with `NO_COLOR=1`, so the file has no escape codes. - After each refusal, the worker (`make`) logs `no host pipeline made pipeline=<n>`. That ties the warning just before it to the pipeline's number in the book. - When anything was refused, the summary ends with `why: <path of warm-log.txt>`. - No new switch. `child()` is untouched, so this doesn't conflict with #186 (`gh pr diff 186 | git apply --check` passes on top of it). ## Where it does nothing - Runs with no refusals: the file only gets what workers warn about, and no `why:` line is printed. - `warm --these` (the worker itself) still logs to its own stderr as before. Only the parent redirects it. ## Measured RTX 2070 SUPER 8 GB (driver 621.14), Ryzen 7 5800X, 32 GB, Windows 11, main @ c9c932c, diag build. The pipeline book is from a run with `VICTORY_PORT_CBV=1 VICTORY_PIPELINE_BOOK=1` (83,557 pipelines, 2,128 drawn with). `victory warm --used --again`, with `VICTORY_PORT_CBV=0` and with `=1`: 2,030 made, 6 without a host pipeline in both. `warm-log.txt` now names all six: compute pipelines refused by `CreateComputePipelineState` with `E_INVALIDARG (0x80070057)`, the same six in both runs. So on this NVIDIA card #302 doesn't reproduce, and these six are a separate problem. The 1,720 in #302 are probably specific to AMD and its raw twins (`raw_twins=false` here). Someone on a 7900 XTX can now run `warm --used` with port 3 on and read why in `warm-log.txt`. ## Checks - `cargo test -p victory --features diagnostics --locked warm`: 4 passed (no new tests; the existing `run_batches` tests pass their own start closures and still pass) - `cargo clippy -p victory --all-targets --no-deps --locked -- -D warnings`, with and without `--features diagnostics`: clean. The workspace-wide clippy fails on main in `victory-gpu` (#280), not in this change. - `cargo xtask policy` (pre-commit hook): 1 file ok - In game: not needed (offline command); `warm --used` run as above ## Not checked - An RX 7900 XTX with `VICTORY_PORT_CBV=1`, the case from #302. The most useful check: `victory warm --used --again` there, then the reasons in `warm-log.txt`. ## Related - #186 changes `child()` in the same file (watchdog wake-up). It doesn't overlap, and either can merge first. - #302: this doesn't fix it, but makes its cause visible. This change was made with AI assistance (Claude Code).
A warm worker's stderr was sent to null, so when a pipeline got no host
pipeline the run only counted it ("1,720 have no host pipeline" in #302):
the host's error (e.g. E_INVALIDARG from CreateComputePipelineState) and
the translator's were lost. Workers now append what they log to
<cache>/pipelines/warm-log.txt (warnings only unless VICTORY_LOG says
otherwise, no colour codes), with a "no host pipeline made pipeline=<n>"
line after each refusal, and the run's summary names the file.

child(), which #186 changes, is untouched.

Helps #302.

Claude-Session: https://claude.ai/code/session_0193mjQ8puxpTHvJTcioLPCU
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 16:59:36 +00:00
github-bot force-pushed github-bot/gh-326 from 8877ecbee1 to d2dc975572 2026-11-27 00:56:53 +00:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/326/head:github-bot/gh-326'
git switch 'github-bot/gh-326'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-326'
git switch 'github-bot/gh-326'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-326'
git switch 'github-bot/gh-326'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-326'
git switch 'main'
git merge --squash 'github-bot/gh-326'
git switch 'main'
git merge --ff-only 'github-bot/gh-326'
git switch 'main'
git merge 'github-bot/gh-326'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.