Pipeline warm-up treats an unreadable journal as an empty cache #74
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from readmet3xt-lab/foxhound. Originally posted by Yoshi-233 on 2026-11-30T02:50:56Z.
On Foxhound
fafa3ad, the warm-up command gets the list of pipeline keys fromknown::keys. Its reader callsstd::fs::read(...).unwrap_or_default(), so a missing journal and an existing journal that cannot be read both produce zero keys. Someone investigating an unexpectedly empty warm-up gets no indication which path failed. Journal reader · Warm-up callerReproduction
In the existing
testsmodule ofcrates/victory-gpu/src/pipeline/known.rs, this test reproduces the reader behavior with a temporary directory. It only touches files under that directory.On a Windows build host, the in-tree test can be run with
cargo test --locked -p victory-gpu --lib unreadable_journal_looks_like_a_missing_journal. My Linux reproduction used the reader and key parser extracted unchanged from this revision. The filesystem returnedIsADirectorywhilekeysreturned[]. As a positive control, a journal containing a complete record returned its expected key.Expected behavior
A missing journal is a normal first run. If the path exists and cannot be read, warm-up should report that path and the underlying I/O error. An incomplete trailing record can still be handled separately. The equivalent NVIDIA discussion has a related fix, but Foxhound has its own warm-up call path. VIctory-NVIDIA #3588
Imported from readmet3xt-lab/foxhound. Originally posted by fromthemoonx on 2026-12-04T14:57:35Z.
I'd like to take this one. It is still there on main (
5e44415b), and it can also lose the record:open_recordcuts a torn end off at the place the walk got to, and a failed read counts as place 0. With a handle on the file that lets others write but not read,Seed::openleftknown-pipelines.binat 0 bytes (55 before), andknown-shaders.bintoo (50 before).Plan:
victory warmandtitle-profile pipelinesstop and say why, a run warns and leaves the record alone;#87 had the first part for the pipelines file; its author closed it. #589 touches
Seed::opentoo, so I'll give it the same return type.(Written with Claude Code, Claude Opus 5.5; the result above is from a test run on Windows 11.)