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

Manually merged
github merged 1 commit from github-bot/gh-128 into main 2026-11-26 08:21:45 +00:00 AGit
Owner

@⁠feanorsun on GitHub · 2026-11-26 06:01 UTC · original
feanorsun:fix/warm-child-startup-errors → main · +196 −57 · 1 files · 1 commits · merged 2026-11-26 08:17 UTC

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.

**@⁠feanorsun** on GitHub · 2026-11-26 06:01 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/128) `feanorsun:fix/warm-child-startup-errors` → `main` · +196 −57 · 1 files · 1 commits · merged 2026-11-26 08:17 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:12:45 +00:00
Author
Owner

@⁠avatarmanz on GitHub · 2026-11-26 07:55 UTC · original

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

**@⁠avatarmanz** on GitHub · 2026-11-26 07:55 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/128#issuecomment-7185984819) Merged into main in the next push (tests pass); thanks.
github manually merged commit 930a35cf98 into main 2026-11-26 08:21:45 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.