victory warm: a number the pipelines' file does not hold is told as not made #1921

Open
DiosET3RN0 wants to merge 1 commit from upstream-pr/1921 into main
DiosET3RN0 commented 2026-11-29 02:37:59 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by DiosET3RN0 on 2026-11-29T02:37:59Z.


No issue. Related: #40 (closed for conflicts) went at the same lines another way.

What it changes

known::make skips a wanted number that has no entry in known-pipelines.bin and tells nothing (let Some(entry) = entries.get(n) else { continue };). victory warm names the pipeline a worker ended at by counting the made lines it heard, so after one skipped number a crash or a hang later in the same batch is blamed on the wrong pipeline in warm-bad.txt.

A number without an entry is now told before and after like any other, as one without a host pipeline, the way an entry that cannot be read already is. known.rs only (+36/−2, the test included); warm.rs is not touched.

What the parent does with it, as warm.rs stands: the line is counted (so the count stays in step), it joins "have no host pipeline", its 0.0 ms joins the timings, and it is not written to warm-done.txt, so it is tried again on the next run.

This is robustness, not a fix of something seen: with an append-only file an entry is missing only if the file was cut or replaced between the parent's read and the worker's. Not changed: when known-shaders.bin cannot be opened make still returns without telling anything.

How it was tested

  • GPU and profile: not a rendering change; unit test only, no device needed. Windows 11, Rust 1.98.1, on main 568c5e5. No game run.
  • Before: the new test fails (nothing is told for a missing number).
  • After: cargo test -p victory-gpu --lib --locked pipeline::known: 3 passed, the new a_number_the_file_does_not_hold_is_told_as_not_made included.
  • cargo test passed for the crates it touches: yes, for the pipeline::known tests; the whole victory-gpu suite was not run here.
  • cargo clippy -p victory-gpu --all-targets --locked -- -D warnings stops at main's own error in victory-shader (lower.rs:2356, #1855); nothing in known.rs.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1651, #1690 and #1268 change other parts of known.rs (the book's reading), not this loop; #40 is closed.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5546875607 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1921). Originally posted by [DiosET3RN0](https://github.com/DiosET3RN0) on 2026-11-29T02:37:59Z. --- No issue. Related: #40 (closed for conflicts) went at the same lines another way. ## What it changes `known::make` skips a wanted number that has no entry in `known-pipelines.bin` and tells nothing (`let Some(entry) = entries.get(n) else { continue };`). `victory warm` names the pipeline a worker ended at by counting the `made` lines it heard, so after one skipped number a crash or a hang later in the same batch is blamed on the wrong pipeline in `warm-bad.txt`. A number without an entry is now told before and after like any other, as one without a host pipeline, the way an entry that cannot be read already is. `known.rs` only (+36/−2, the test included); `warm.rs` is not touched. What the parent does with it, as `warm.rs` stands: the line is counted (so the count stays in step), it joins "have no host pipeline", its 0.0 ms joins the timings, and it is not written to `warm-done.txt`, so it is tried again on the next run. This is robustness, not a fix of something seen: with an append-only file an entry is missing only if the file was cut or replaced between the parent's read and the worker's. Not changed: when `known-shaders.bin` cannot be opened `make` still returns without telling anything. ## How it was tested - GPU and profile: not a rendering change; unit test only, no device needed. Windows 11, Rust 1.98.1, on `main` 568c5e5. No game run. - Before: the new test fails (nothing is told for a missing number). - After: `cargo test -p victory-gpu --lib --locked pipeline::known`: 3 passed, the new `a_number_the_file_does_not_hold_is_told_as_not_made` included. - `cargo test` passed for the crates it touches: yes, for the `pipeline::known` tests; the whole `victory-gpu` suite was not run here. - `cargo clippy -p victory-gpu --all-targets --locked -- -D warnings` stops at `main`'s own error in `victory-shader` (`lower.rs:2356`, #1855); nothing in `known.rs`. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1651, #1690 and #1268 change other parts of `known.rs` (the book's reading), not this loop; #40 is closed. AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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/1921:upstream-pr/1921'
git switch 'upstream-pr/1921'

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/1921'
git switch 'upstream-pr/1921'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1921'
git switch 'upstream-pr/1921'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1921'
git switch 'main'
git merge --squash 'upstream-pr/1921'
git switch 'main'
git merge --ff-only 'upstream-pr/1921'
git switch 'main'
git merge 'upstream-pr/1921'
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!1921
No description provided.