Report warm worker startup failures without marking pipelines as bad #128

Merged
feanorsun merged 1 commit from upstream-pr/128 into main 2026-11-26 08:17:50 +00:00
feanorsun commented 2026-11-26 06:01:40 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by feanorsun on 2026-11-26T06:01:40Z.


Refs #26

When the parent could not locate or spawn the warm worker, or could not take its stdout, child returned the batch length with a successful outcome. That advanced the batch cursor past every remaining pipeline and allowed the CLI to exit successfully. The summary used the number of actual made reports, so the skipped pipelines did not increase the displayed completion count.

The batch loop now returns the first startup error through warm::run to the CLI, preserving the underlying cause. A worker without stdout is terminated and reaped. At that point the parent has no completion report or evidence that any particular pipeline caused a crash. The failed batch contributes zero completions and receives no entries in warm-done.txt or warm-bad.txt.

Workers check for a startup error before launching another process. Workers already running finish reporting before the parent returns. If a running worker exits abnormally, the parent still records its confirmed completions, marks the next pipeline as bad and continues with the remainder.

Windows CPU tests

cargo test --locked -j 1 -p victory --bin victory warm::tests:: -- --test-threads=1 --list
cargo test --locked -j 1 -p victory --bin victory warm::tests:: -- --test-threads=1

Both listings selected four tests. With the test entry point in place and the original startup fallbacks retained, one passed, three failed and ten were filtered out. After the fix, four passed, zero failed and ten were filtered out.

The tests feed synthetic pipeline IDs through the production batch loop. A missing executable verifies a single spawn attempt, the original OS error and zero completion or bad-pipeline callbacks. Short-lived cmd.exe built-ins exercise missing stdout, a reported completion followed by an abnormal exit, and a successful worker finishing the remainder. A two-worker test also verifies that a peer's confirmed completion survives a startup failure. These tests ran offline with the existing Cargo cache and required no graphics device or game data.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6620584622 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/128). Originally posted by [feanorsun](https://github.com/feanorsun) on 2026-11-26T06:01:40Z. --- Refs #26 When the parent could not locate or spawn the warm worker, or could not take its stdout, `child` returned the batch length with a successful outcome. That advanced the batch cursor past every remaining pipeline and allowed the CLI to exit successfully. The summary used the number of actual `made` reports, so the skipped pipelines did not increase the displayed completion count. The batch loop now returns the first startup error through `warm::run` to the CLI, preserving the underlying cause. A worker without stdout is terminated and reaped. At that point the parent has no completion report or evidence that any particular pipeline caused a crash. The failed batch contributes zero completions and receives no entries in `warm-done.txt` or `warm-bad.txt`. Workers check for a startup error before launching another process. Workers already running finish reporting before the parent returns. If a running worker exits abnormally, the parent still records its confirmed completions, marks the next pipeline as bad and continues with the remainder. ### Windows CPU tests ```text cargo test --locked -j 1 -p victory --bin victory warm::tests:: -- --test-threads=1 --list cargo test --locked -j 1 -p victory --bin victory warm::tests:: -- --test-threads=1 ``` Both listings selected four tests. With the test entry point in place and the original startup fallbacks retained, one passed, three failed and ten were filtered out. After the fix, four passed, zero failed and ten were filtered out. The tests feed synthetic pipeline IDs through the production batch loop. A missing executable verifies a single spawn attempt, the original OS error and zero completion or bad-pipeline callbacks. Short-lived `cmd.exe` built-ins exercise missing stdout, a reported completion followed by an abnormal exit, and a successful worker finishing the remainder. A two-worker test also verifies that a peer's confirmed completion survives a startup failure. These tests ran offline with the existing Cargo cache and required no graphics device or game data.
avatarmanz commented 2026-11-26 07:55:28 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:55:28Z.


Merged into main in the next push (tests pass); thanks.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7185984819 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/128#issuecomment-7185984819). Originally posted by [avatarmanz](https://github.com/avatarmanz) on 2026-11-26T07:55:28Z. --- Merged into main in the next push (tests pass); thanks.
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
avatarmanz/VIctory-7900XTX!128
No description provided.