victory warm: workers' warnings go to warm-log.txt instead of nowhere #326
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!326
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-326"
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?
@Jesper-Andersson on GitHub · 2026-11-26 16:59 UTC · original
Jesper-Andersson:worktree-issue-302→main· +22 −4 · 1 files · 1 commits · openHelps #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 toStdio::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), orrefuse's (no host pipeline: ...). So whoever reports a count like #302's can't say why.Change
<cache>/pipelines/warm-log.txt, besidewarm-done.txtandwarm-bad.txt. All workers share one file, opened once for appending inrunand passed tostart_worker.warnunlessVICTORY_LOGis set (every pipeline made is aninfoline), withNO_COLOR=1, so the file has no escape codes.make) logsno host pipeline made pipeline=<n>. That ties the warning just before it to the pipeline's number in the book.why: <path of warm-log.txt>.child()is untouched, so this doesn't conflict with #186 (gh pr diff 186 | git apply --checkpasses on top of it).Where it does nothing
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 withVICTORY_PORT_CBV=1 VICTORY_PIPELINE_BOOK=1(83,557 pipelines, 2,128 drawn with).victory warm --used --again, withVICTORY_PORT_CBV=0and with=1: 2,030 made, 6 without a host pipeline in both.warm-log.txtnow names all six: compute pipelines refused byCreateComputePipelineStatewithE_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=falsehere). Someone on a 7900 XTX can now runwarm --usedwith port 3 on and read why inwarm-log.txt.Checks
cargo test -p victory --features diagnostics --locked warm: 4 passed (no new tests; the existingrun_batchestests 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 invictory-gpu(#280), not in this change.cargo xtask policy(pre-commit hook): 1 file okwarm --usedrun as aboveNot checked
VICTORY_PORT_CBV=1, the case from #302. The most useful check:victory warm --used --againthere, then the reasons inwarm-log.txt.Related
child()in the same file (watchdog wake-up). It doesn't overlap, and either can merge first.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_0193mjQ8puxpTHvJTcioLPCU8877ecbee1tod2dc975572View 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.