Preparation: a failed preload pipeline or worker no longer stops the launch #3670

Open
Prime1997 wants to merge 1 commit from upstream-pr/3670 into main
Prime1997 commented 2026-12-02 05:54:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-12-02T05:54:29Z.


Requested by Prime

Before a title starts, XCL builds the shader pack's compute pipelines and the graphics pipelines of earlier runs (the history) in worker processes. Any history graphics recipe the driver refused, and any compute or graphics worker that failed, made preparation return an error, and the host then exited with 2 without starting the title. With thousands of cold pipelines, one bad recipe or one driver crash in a worker cost the whole start. The history is a head start, not a promise: such pipelines and failed workers are now logged ("F of N history pipelines not prepared ...; the title builds them at first use") and the title starts. A staged corpus stays mandatory, and cancelling from the window still quits without starting.

Related: #3210 also stops a history recipe from aborting the start, for a different cause (a recipe whose shader is not in the title archive); this one covers driver refusals and failed workers. #2712 adds recovery for failed compute workers and still returns an error when pipelines remain; both change what happens when a compute worker fails, so they will need reconciling.

What is in it

  • crates/xcl/src/shaders.rs: pipelines_in_workers and graphics_in_workers log failed workers and refused history pipelines and go on, unless XCL_PRELOAD_KEEP_GOING=0 (with one worker, compute pipelines are built in-process and a failure there still stops the launch). The graphics check is a pure function, history_outcome, with a test (history_failures_do_not_stop_the_launch). The setting is logged once.

Tested

  • RTX 3060 Ti 8 GB, Windows 11, release build: the change has been in our test builds since 30 Nov (no measured before/after on its own).
  • This branch (on main 1c8b5514): cargo check -p xcl --lib --tests --target x86_64-pc-windows-gnu passes. The test suite was not run on this exact branch.

Regression run

  • Not run yet: testers welcome.

Not tested

  • The suite and scripts/smoke.ps1 on this branch; AMD.
  • The compute worker path has no unit test: it needs real worker processes.

Switches

  • XCL_PRELOAD_KEEP_GOING (default on): =0 restores the old behavior, where a refused history pipeline or a failed worker stops the launch.

AI use

  • Claude Code wrote the change and this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5600750307 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3670). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-12-02T05:54:29Z. --- <!-- claude-projects-attribution: {"github_login":"Prime1997"} --> _Requested by **Prime**_ Before a title starts, XCL builds the shader pack's compute pipelines and the graphics pipelines of earlier runs (the history) in worker processes. Any history graphics recipe the driver refused, and any compute or graphics worker that failed, made preparation return an error, and the host then exited with 2 without starting the title. With thousands of cold pipelines, one bad recipe or one driver crash in a worker cost the whole start. The history is a head start, not a promise: such pipelines and failed workers are now logged ("F of N history pipelines not prepared ...; the title builds them at first use") and the title starts. A staged corpus stays mandatory, and cancelling from the window still quits without starting. Related: #3210 also stops a history recipe from aborting the start, for a different cause (a recipe whose shader is not in the title archive); this one covers driver refusals and failed workers. #2712 adds recovery for failed compute workers and still returns an error when pipelines remain; both change what happens when a compute worker fails, so they will need reconciling. **What is in it** - `crates/xcl/src/shaders.rs`: `pipelines_in_workers` and `graphics_in_workers` log failed workers and refused history pipelines and go on, unless `XCL_PRELOAD_KEEP_GOING=0` (with one worker, compute pipelines are built in-process and a failure there still stops the launch). The graphics check is a pure function, `history_outcome`, with a test (`history_failures_do_not_stop_the_launch`). The setting is logged once. **Tested** - RTX 3060 Ti 8 GB, Windows 11, release build: the change has been in our test builds since 30 Nov (no measured before/after on its own). - This branch (on main 1c8b5514): `cargo check -p xcl --lib --tests --target x86_64-pc-windows-gnu` passes. The test suite was not run on this exact branch. **Regression run** - Not run yet: testers welcome. **Not tested** - The suite and `scripts/smoke.ps1` on this branch; AMD. - The compute worker path has no unit test: it needs real worker processes. **Switches** - `XCL_PRELOAD_KEEP_GOING` (default on): `=0` restores the old behavior, where a refused history pipeline or a failed worker stops the launch. **AI use** - Claude Code wrote the change and this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Foniass commented 2026-12-02 09:21:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T09:21:28Z.


Review (head 123146f2, diff read, not a merge-check; checks red):

  • PR description check is red. The PR changes crates/xcl/src and has no xcl-smoke blocks under Regression run ("Not run yet"), which scripts/pr_check.py refuses. Tested also has no test-suite counts: only cargo check for the gnu target, and the description says the suite was not run on this branch.
  • Even a run where every worker fails goes on to the title. pipelines_in_workers (crates/xcl/src/shaders.rs ~3524) and history_outcome (~3813) never stop on their own, and the test asserts history_outcome([0, 0, 0, 0], 4, 10, true) == Ok((0, 10)) ("every worker failed", ~4845). in_workers (~3606) also counts workers that never started as failed. So a cause that hits every worker, such as no pipeline device, a wrong XCL_ADAPTER or no commit left, now starts the title with the whole history and pack still cold. The log does not say why the workers failed: their stdout is null, and in_workers keeps only the progress and summary lines from stderr, so the warning says only "worker i ended with exit code". Stopping when failed == workers (or when nothing was confirmed), or logging each failed worker's last stderr line, would keep the "one bad recipe" case without hiding failures that hit every worker.
  • A recipe that crashes the driver now crashes the title. The doc on graphics_in_workers (~3624) says "a driver that ends a worker ends no title". With this change, a history recipe that kills its worker is logged and then built in the title's own process when the title first uses it, so the same driver fault happens in the game. Before, the launch stopped. The recipe also stays in the history, so every launch pays for the failing worker again. Neither point is in the description.
  • XCL_PRELOAD_KEEP_GOING covers only the multi-worker paths. With one worker (workers_for gives 1 at 5 or fewer logical processors or under 6 GB of free commit), compute pipelines are built in the same process, and precompile still stops on any record failure, refused pipeline or pipeline over the size cap (~4488). The opt-in XCL_PREPARE_HISTORY_PRESENT path still stops on a refused history recipe (prepare_history_graphics ~3685). So the same failure stops one machine and not another. In the worker path, the cap hint ("Raise XCL_PIPELINE_MAX_KB") is also lost and only shows as a failed worker. The description's "any history graphics recipe the driver refused" claims more than the code does.
  • The tests cover only the arithmetic. history_failures_do_not_stop_the_launch tests the pure function. Nothing tests the compute-worker change (the description says so), and nothing tests how preload_keeps_going reads the environment.

Fine: cancelling still returns an error on both paths. A failed worker's slice does not save its pack proof, so it gets prepared again on the next launch. The staged corpus path (corpus.prepare / check_corpus_complete) stays mandatory. in_workers polls try_wait, so a worker that dies or panics is reaped and nothing waits on it. Reading the code, there is no textual conflict with #3633/#3655/#3664/#3669. #3633 changes prepare_for_launch, not these failure paths. #2712 (open), as the description notes, changes the same compute-worker failure handling in the other direction.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7340765815 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3670#issuecomment-7340765815). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T09:21:28Z. --- Review (head 123146f2, diff read, not a merge-check; checks red): - **PR description check is red.** The PR changes `crates/xcl/src` and has no `xcl-smoke` blocks under **Regression run** ("Not run yet"), which `scripts/pr_check.py` refuses. **Tested** also has no test-suite counts: only `cargo check` for the gnu target, and the description says the suite was not run on this branch. - **Even a run where every worker fails goes on to the title.** `pipelines_in_workers` (`crates/xcl/src/shaders.rs` ~3524) and `history_outcome` (~3813) never stop on their own, and the test asserts `history_outcome([0, 0, 0, 0], 4, 10, true) == Ok((0, 10))` ("every worker failed", ~4845). `in_workers` (~3606) also counts workers that never started as failed. So a cause that hits every worker, such as no pipeline device, a wrong `XCL_ADAPTER` or no commit left, now starts the title with the whole history and pack still cold. The log does not say why the workers failed: their stdout is null, and `in_workers` keeps only the progress and summary lines from stderr, so the warning says only "worker i ended with exit code". Stopping when `failed == workers` (or when nothing was confirmed), or logging each failed worker's last stderr line, would keep the "one bad recipe" case without hiding failures that hit every worker. - **A recipe that crashes the driver now crashes the title.** The doc on `graphics_in_workers` (~3624) says "a driver that ends a worker ends no title". With this change, a history recipe that kills its worker is logged and then built in the title's own process when the title first uses it, so the same driver fault happens in the game. Before, the launch stopped. The recipe also stays in the history, so every launch pays for the failing worker again. Neither point is in the description. - **`XCL_PRELOAD_KEEP_GOING` covers only the multi-worker paths.** With one worker (`workers_for` gives 1 at 5 or fewer logical processors or under 6 GB of free commit), compute pipelines are built in the same process, and `precompile` still stops on any record failure, refused pipeline or pipeline over the size cap (~4488). The opt-in `XCL_PREPARE_HISTORY_PRESENT` path still stops on a refused history recipe (`prepare_history_graphics` ~3685). So the same failure stops one machine and not another. In the worker path, the cap hint ("Raise XCL_PIPELINE_MAX_KB") is also lost and only shows as a failed worker. The description's "any history graphics recipe the driver refused" claims more than the code does. - **The tests cover only the arithmetic.** `history_failures_do_not_stop_the_launch` tests the pure function. Nothing tests the compute-worker change (the description says so), and nothing tests how `preload_keeps_going` reads the environment. Fine: cancelling still returns an error on both paths. A failed worker's slice does not save its pack proof, so it gets prepared again on the next launch. The staged corpus path (`corpus.prepare` / `check_corpus_complete`) stays mandatory. `in_workers` polls `try_wait`, so a worker that dies or panics is reaped and nothing waits on it. Reading the code, there is no textual conflict with #3633/#3655/#3664/#3669. #3633 changes `prepare_for_launch`, not these failure paths. #2712 (open), as the description notes, changes the same compute-worker failure handling in the other direction. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Foniass commented 2026-12-02 09:37:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T09:37:45Z.


Test report (not a merge-check: PR description red)
base: 1c8b551475
head: 123146f20b
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2910 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read by one reviewer at this same head; the review is at https://github.com/xcl-dev/xcl/pull/3670#issuecomment-7340765815 and its findings stand. Most serious: the launch goes on even when every worker fails, and no reason is logged.
performance: 60 s smoke of a retail title, main 1c8b5514 vs this merge (123146f2): 1652 -> 1685 frames shown (101 %; last presents per 2 s: 61 60 60), peak commit 18228 -> 17259 MB, 0 device removals, 0 crashes.
assessment: merges, builds and passes the whole suite on current main, and the smoke run is clean; the blocking point is in the review: the launch goes on even when every worker fails, and no reason is logged
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

AI-written and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7341232624 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3670#issuecomment-7341232624). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T09:37:45Z. --- Test report (not a merge-check: `PR description` red) base: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f head: 123146f20b1bf3a60dcf8548070257430dddb3fd merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2910 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none review: read by one reviewer at this same head; the review is at https://github.com/xcl-dev/xcl/pull/3670#issuecomment-7340765815 and its findings stand. Most serious: the launch goes on even when every worker fails, and no reason is logged. performance: 60 s smoke of a retail title, main 1c8b5514 vs this merge (123146f2): 1652 -> 1685 frames shown (101 %; last presents per 2 s: 61 60 60), peak commit 18228 -> 17259 MB, 0 device removals, 0 crashes. assessment: merges, builds and passes the whole suite on current main, and the smoke run is clean; the blocking point is in the review: the launch goes on even when every worker fails, and no reason is logged hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and posted by Foniass without a human check of each point.
bmjask commented 2026-12-02 20:47:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-12-02T20:47:06Z.

Review: COMMENTED


Review of 123146f2: 2 finding(s) (2 medium), most severe first.

  1. Medium crates/xcl/src/shaders.rs:3392: see below.
  2. Medium crates/xcl/src/shaders.rs:3685: see below.

On lines outside the diff:

  1. Medium crates/xcl/src/shaders.rs:3392: Keep-going applies only when compute pipelines are built in worker processes. The in-process path (workers == 1, or loose shaders/ files) still runs a mandatory precompile in which any refused pipeline stops the launch, so the new default behaves differently depending on the hardware. On a machine with 4 or fewer logical processors or under 6 GB of free commit, workers_for returns 1 (as it does for any title with loose .dxbc shaders), precompile(..., pipelines=true, startup) is mandatory, and one refused compute pipeline returns Err and the host exits with 2. The same title on a 16-thread machine starts with a warning. Applying XCL_PRELOAD_KEEP_GOING at the mandatory decision in precompile would make it consistent.

  2. Medium crates/xcl/src/shaders.rs:3685: The history-milestone path (prepare_history_graphics, and milestone::prepare_launch for compute) still aborts the launch when the driver refuses one history graphics recipe, contrary to the PR's claim that a refused history recipe no longer stops the start. With XCL_PREPARE_HISTORY_PRESENT=N set, prepare_for_launch takes the milestone branch, and one refused exact graphics recipe hits if !ok { return Err("Graphics history recipe ... failed") }, so the host exits with 2 even though XCL_PRELOAD_KEEP_GOING defaults to on. Routing that path through the same keep-going check would match the description.


These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it.

<!-- greyfinch-sync:ivall/xcl:review:6158714894 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3670#pullrequestreview-6158714894). Originally posted by [bmjask](https://github.com/bmjask) on 2026-12-02T20:47:06Z. **Review:** COMMENTED --- Review of `123146f2`: 2 finding(s) (2 medium), most severe first. 1. **Medium** `crates/xcl/src/shaders.rs:3392`: see below. 2. **Medium** `crates/xcl/src/shaders.rs:3685`: see below. **On lines outside the diff:** 1. **Medium** `crates/xcl/src/shaders.rs:3392`: Keep-going applies only when compute pipelines are built in worker processes. The in-process path (workers == 1, or loose `shaders/` files) still runs a mandatory precompile in which any refused pipeline stops the launch, so the new default behaves differently depending on the hardware. On a machine with 4 or fewer logical processors or under 6 GB of free commit, `workers_for` returns 1 (as it does for any title with loose .dxbc shaders), `precompile(..., pipelines=true, startup)` is mandatory, and one refused compute pipeline returns Err and the host exits with 2. The same title on a 16-thread machine starts with a warning. Applying XCL_PRELOAD_KEEP_GOING at the `mandatory` decision in `precompile` would make it consistent. 2. **Medium** `crates/xcl/src/shaders.rs:3685`: The history-milestone path (`prepare_history_graphics`, and `milestone::prepare_launch` for compute) still aborts the launch when the driver refuses one history graphics recipe, contrary to the PR's claim that a refused history recipe no longer stops the start. With XCL_PREPARE_HISTORY_PRESENT=N set, `prepare_for_launch` takes the milestone branch, and one refused exact graphics recipe hits `if !ok { return Err("Graphics history recipe ... failed") }`, so the host exits with 2 even though XCL_PRELOAD_KEEP_GOING defaults to on. Routing that path through the same keep-going check would match the description. --- _These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it._
Foniass commented 2026-12-03 06:19:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T06:19:55Z.


merge-check
base: 078358a058
head: 123146f20b
merge: clean
build: ok
tests: 3007 passed, 0 failed, 52 ignored; 28 skipped, the same as on main
review: 1 high, 6 medium (below)
performance: 60 s smoke run: 1669 → 1674 frames (100 % of main), peak commit 17577 → 17609 MB, no device removal, no crash
title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 234 s there, 0 device removals, 0 crashes, 2.9 presents/s; run with XCL_SKIP_CS=95cc13288a27a96e (the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590)
verdict: not yet: 1 blocking finding (critical or high, below); also PR description is red
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5


In short: Lets the launch go on when a history graphics pipeline is refused or a preparation worker fails; XCL_PRELOAD_KEEP_GOING=0 brings back the old stop. The head is the one reviewed and test-reported on 2 December and nothing has changed, so every earlier finding is still open. The blocking one: a run where every worker fails still starts the title, and no reason is logged.

High

  1. A run where every worker fails still starts the title. pipelines_in_workers (shaders.rs ~3524) and history_outcome (~3813) never stop on their own, and the test asserts history_outcome([0, 0, 0, 0], 4, 10, true) == Ok((0, 10)) (~4845). in_workers (~3606) also counts workers that never started as failed. So a cause that hits every worker (no pipeline device, a wrong XCL_ADAPTER, no commit left) starts the title with the pack and the history still cold. Stop when failed == workers, or when nothing was confirmed.

Medium

  1. Failed workers log no reason. Worker stdout is discarded and in_workers keeps only progress and summary lines from stderr, so the warning says only "worker i ended with" an exit code. Log each failed worker's last stderr line.
  2. A recipe that crashes the driver now crashes the title. The doc on graphics_in_workers (~3624) says a driver that ends a worker ends no title. With this change the failing recipe is built in the title's own process at first use. It also stays in the history, so every launch pays for the failing worker again. The description mentions neither.
  3. XCL_PRELOAD_KEEP_GOING covers only the multi-worker paths. With one worker (workers_for gives 1 at 5 or fewer logical processors or under 6 GB free commit), precompile still stops on any failure (~4488). The opt-in XCL_PREPARE_HISTORY_PRESENT path still stops on a refused recipe (prepare_history_graphics ~3685). So the same failure stops the launch on one machine and not on another, and in the worker path the "Raise XCL_PIPELINE_MAX_KB" hint is lost. The description claims more than the code does.
  4. Compute-worker change and env switch untested. history_failures_do_not_stop_the_launch tests only the arithmetic. Nothing covers the pipelines_in_workers change or how preload_keeps_going reads the environment.
  5. AI use names no model. "Claude Code wrote the change" names the tool but not the model.
  6. Goes the opposite way to open #2712. #2712 changes the same compute-worker failure handling and still returns an error when pipelines remain, and #3210 covers a related history case. They need reconciling before either lands.
Checked and fine
  • Cancelling from the window still returns an error on both paths, and the staged corpus stays mandatory
  • A failed worker's slice saves no pack proof, so it is prepared again on the next launch
  • in_workers polls try_wait, so a worker that dies or panics is reaped and nothing waits on it
  • Merges cleanly into current origin/main even though its base (1c8b5514) is behind
How this was tested
  • Merged onto main 078358a0, then cargo build --workspace and cargo test --workspace --no-fail-fast -- --test-threads=4.
  • The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar).
  • scripts/smoke.ps1: 60 s of a retail title on main 078358a0 and on this merge; presents per 2 s at the end: 60 61 60.
  • Title run: the release build of this merge launched the retail title with XCL_RUN_SECONDS=300 and scripted A presses counted from the first frame (XCL_PRESS_BASE=frame, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7369715549 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3670#issuecomment-7369715549). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T06:19:55Z. --- merge-check base: 078358a058f7ba5d16690dba8dc4e55d2c88ae0a head: 123146f20b1bf3a60dcf8548070257430dddb3fd merge: clean build: ok tests: 3007 passed, 0 failed, 52 ignored; 28 skipped, the same as on main review: 1 high, 6 medium (below) performance: 60 s smoke run: 1669 → 1674 frames (100 % of main), peak commit 17577 → 17609 MB, no device removal, no crash title run: retail title on the RTX 5070 Ti (driver 621.14), into the world by scripted presses: 234 s there, 0 device removals, 0 crashes, 2.9 presents/s; run with `XCL_SKIP_CS=95cc13288a27a96e` (the NVIDIA hang at the end of loading, #3541) and NVIDIA's 2048 MB shader heap (#2590) verdict: not yet: 1 blocking finding (critical or high, below); also `PR description` is red hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 --- **In short:** Lets the launch go on when a history graphics pipeline is refused or a preparation worker fails; XCL_PRELOAD_KEEP_GOING=0 brings back the old stop. The head is the one reviewed and test-reported on 2 December and nothing has changed, so every earlier finding is still open. The blocking one: a run where every worker fails still starts the title, and no reason is logged. #### High 1. **A run where every worker fails still starts the title.** pipelines_in_workers (shaders.rs ~3524) and history_outcome (~3813) never stop on their own, and the test asserts history_outcome([0, 0, 0, 0], 4, 10, true) == Ok((0, 10)) (~4845). in_workers (~3606) also counts workers that never started as failed. So a cause that hits every worker (no pipeline device, a wrong XCL_ADAPTER, no commit left) starts the title with the pack and the history still cold. Stop when failed == workers, or when nothing was confirmed. #### Medium 2. **Failed workers log no reason.** Worker stdout is discarded and in_workers keeps only progress and summary lines from stderr, so the warning says only "worker i ended with" an exit code. Log each failed worker's last stderr line. 3. **A recipe that crashes the driver now crashes the title.** The doc on graphics_in_workers (~3624) says a driver that ends a worker ends no title. With this change the failing recipe is built in the title's own process at first use. It also stays in the history, so every launch pays for the failing worker again. The description mentions neither. 4. **XCL_PRELOAD_KEEP_GOING covers only the multi-worker paths.** With one worker (workers_for gives 1 at 5 or fewer logical processors or under 6 GB free commit), precompile still stops on any failure (~4488). The opt-in XCL_PREPARE_HISTORY_PRESENT path still stops on a refused recipe (prepare_history_graphics ~3685). So the same failure stops the launch on one machine and not on another, and in the worker path the "Raise XCL_PIPELINE_MAX_KB" hint is lost. The description claims more than the code does. 5. **Compute-worker change and env switch untested.** history_failures_do_not_stop_the_launch tests only the arithmetic. Nothing covers the pipelines_in_workers change or how preload_keeps_going reads the environment. 6. **AI use names no model.** "Claude Code wrote the change" names the tool but not the model. 7. **Goes the opposite way to open #2712.** #2712 changes the same compute-worker failure handling and still returns an error when pipelines remain, and #3210 covers a related history case. They need reconciling before either lands. <details><summary>Checked and fine</summary> - Cancelling from the window still returns an error on both paths, and the staged corpus stays mandatory - A failed worker's slice saves no pack proof, so it is prepared again on the next launch - in_workers polls try_wait, so a worker that dies or panics is reaped and nothing waits on it - Merges cleanly into current origin/main even though its base (1c8b5514) is behind </details> <details><summary>How this was tested</summary> - Merged onto main `078358a0`, then `cargo build --workspace` and `cargo test --workspace --no-fail-fast -- --test-threads=4`. - The skipped GPU tests are those this card can't run (no wave64 on NVIDIA, no D3D12 debug layer, and similar). - `scripts/smoke.ps1`: 60 s of a retail title on main `078358a0` and on this merge; presents per 2 s at the end: 60 61 60. - Title run: the release build of this merge launched the retail title with `XCL_RUN_SECONDS=300` and scripted A presses counted from the first frame (`XCL_PRESS_BASE=frame`, #3712) into the world from an existing save; time in the world is counted from the first in-world draw call to the end of the run. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
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/3670:upstream-pr/3670'
git switch 'upstream-pr/3670'

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