xcl run: coordinate worker claims via OS locks and recover incomplete builds #2702

Open
ZekkJJ wants to merge 1 commit from upstream-pr/2712 into main
ZekkJJ commented 2026-11-26 07:59:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ZekkJJ on 2026-11-26T07:59:53Z.


Hardens multi-worker offline compute pipeline preparation (crates/xcl/src/shaders.rs) against missing cache directories, corrupt cached blobs, timeout claim theft, orphaned .claim deadlocks, and silent incomplete worker termination.

Part of #2688 (Workstream 7). Based on nvidia-dev (af2cecc4).

What is in it

  • crates/xcl/src/shaders.rs:
    • Ensure cache directories exist before .claim acquisition and separate lock contention (HeldElsewhere) from filesystem errors (Unavailable).
    • Coordinate both missing and rejected/corrupt cached blobs (try_cached_pso + Claim::acquire + post-claim cache reload recheck), holding ID3DBlob alive across atomic driver_cache::write replacement and warning/counting failed writes.
    • Enforce exclusive .claim ownership with Windows share_mode(0) | FILE_FLAG_DELETE_ON_CLOSE (with DELETE access and bounded ERROR_ACCESS_DENIED retry for transient STATUS_DELETE_PENDING) so active builds are never stolen after 30 minutes, crashed/killed workers release locks immediately, and unlocked orphaned .claim files from older builds are adopted and deleted on drop.
    • Guard intra-process builds with PipelineCacheIdentity and panic-safe InflightGuard/RunningPermit drop guards.
    • Emit structured compute pipelines: worker summaries on stderr under XCL_PRECOMPILE_PARENT, run automatic single-worker recovery on worker failure/missing summary, and return Err whenever incomplete pipelines remain.

Tested

  • Hardware: Windows 11, AMD Ryzen 7 8845HS, NVIDIA GeForce RTX 4060 Laptop GPU (driver 32.0.16.1656), rustc 1.98.1 (48a229cea).
  • cargo test --locked -j 2 -p xcl --lib shaders:: -- --test-threads=1: 25 passed; 0 failed; 0 ignored (1.09s; SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required) and retail_pack_sample skipped without XCL_SAMPLE_RPF). Covers OS subprocess tests for TerminateProcess claim release, 4-worker simultaneous races over missing and corrupt blobs, orphaned .claim adoption, >2h active claim preservation, failed writes, InflightGuard panic unwinding, and worker recovery policy.
  • cargo test --locked -j 2 -p xcl --test e2e -- --test-threads=1: 4 passed; 0 failed; 0 ignored (18.85s).
  • cargo build --locked --release -j 2 -p xcl: passed (0 errors).
  • Matched release CLI multi-worker verification (8b113eeb release binary, isolated caches, captured compute shader corpus with 69 pipeline entries / 43 unique native driver blobs):
    • fresh_w4: 4/4 workers exited 0 in 72,195.44 ms (65 made, 22 from_disk, 4 elsewhere, 0 errors, 0 write_errors, 43/43 blobs present, 0 leftover .claim/.tmp, peak aggregate commit 1,516.23 MiB); warm 1-worker verification hit 69/69 from_disk in 5,340.57 ms.
    • corrupt_w4 (pre-corrupted driver blobs): 4/4 workers exited 0 in 76,181.68 ms (66 made, 23 from_disk, 3 elsewhere, 0 leftover corrupt blobs/claims/tmps, 43/43 valid); warm verification hit 69/69 from_disk in 4,325.83 ms.
    • orphan_claims_w4 (pre-seeded unlocked .claim files): 4/4 workers exited 0 in 61,108.44 ms (65 made, 22 from_disk, 4 elsewhere, 43/43 blobs, 0 leftover .claim files).
    • kill_recovery_w2: terminating 1 of 2 workers (exit -1, 0) left 10 missing blobs and 0 orphaned .claim locks; single-worker recovery finished exit 0 in 104,600.68 ms (69 made, 59 from_disk, 43/43 blobs, 0 claims/tmps); warm verification hit 69/69 from_disk in 5,103.05 ms.
  • Clean nvidia-dev (af2cecc4) baseline comparison on this host (--test-threads=1): shaders::tests 11 passed, 0 failed, e2e 4 passed, 0 failed; pre-existing baseline failures on unmodified af2cecc4 in texture_upload::tests (6 passed, 2 failed), d3d12_mesh_stream (2 passed, 1 failed), gpu_compute_e2e (6 passed, 1 failed), and gpu_two_pass_cache_e2e (0 passed, 1 failed).

Regression run

  • Draft PR pending paired scripts/smoke.ps1 execution on an unpacked retail build before marking ready for review.

Not tested

  • Full cargo test --workspace after the final commit (unmodified af2cecc4 baseline already fails in texture_upload::tests, d3d12_mesh_stream, gpu_compute_e2e, and gpu_two_pass_cache_e2e), paired scripts/smoke.ps1 (no retail title directory on this machine), AMD / Intel GPUs, Linux / Wine.

AI use

  • Google Antigravity (Gemini); assisted with implementation, subprocess/unit/GPU tests, multi-worker release verification, and PR preparation under author direction.
<!-- greyfinch-sync:ivall/xcl:issue:5506206442 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2712). Originally posted by [ZekkJJ](https://github.com/ZekkJJ) on 2026-11-26T07:59:53Z. --- Hardens multi-worker offline compute pipeline preparation (`crates/xcl/src/shaders.rs`) against missing cache directories, corrupt cached blobs, timeout claim theft, orphaned `.claim` deadlocks, and silent incomplete worker termination. Part of #2688 (Workstream 7). Based on `nvidia-dev` (`af2cecc4`). **What is in it** - `crates/xcl/src/shaders.rs`: - Ensure cache directories exist before `.claim` acquisition and separate lock contention (`HeldElsewhere`) from filesystem errors (`Unavailable`). - Coordinate both missing and rejected/corrupt cached blobs (`try_cached_pso` + `Claim::acquire` + post-claim cache reload recheck), holding `ID3DBlob` alive across atomic `driver_cache::write` replacement and warning/counting failed writes. - Enforce exclusive `.claim` ownership with Windows `share_mode(0) | FILE_FLAG_DELETE_ON_CLOSE` (with `DELETE` access and bounded `ERROR_ACCESS_DENIED` retry for transient `STATUS_DELETE_PENDING`) so active builds are never stolen after 30 minutes, crashed/killed workers release locks immediately, and unlocked orphaned `.claim` files from older builds are adopted and deleted on drop. - Guard intra-process builds with `PipelineCacheIdentity` and panic-safe `InflightGuard`/`RunningPermit` drop guards. - Emit structured `compute pipelines:` worker summaries on stderr under `XCL_PRECOMPILE_PARENT`, run automatic single-worker recovery on worker failure/missing summary, and return `Err` whenever incomplete pipelines remain. **Tested** - Hardware: Windows 11, AMD Ryzen 7 8845HS, NVIDIA GeForce RTX 4060 Laptop GPU (driver `32.0.16.1656`), `rustc 1.98.1` (`48a229cea`). - `cargo test --locked -j 2 -p xcl --lib shaders:: -- --test-threads=1`: `25 passed; 0 failed; 0 ignored` (`1.09s`; `SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required)` and `retail_pack_sample` skipped without `XCL_SAMPLE_RPF`). Covers OS subprocess tests for `TerminateProcess` claim release, 4-worker simultaneous races over missing and corrupt blobs, orphaned `.claim` adoption, `>2h` active claim preservation, failed writes, `InflightGuard` panic unwinding, and worker recovery policy. - `cargo test --locked -j 2 -p xcl --test e2e -- --test-threads=1`: `4 passed; 0 failed; 0 ignored` (`18.85s`). - `cargo build --locked --release -j 2 -p xcl`: passed (`0` errors). - Matched release CLI multi-worker verification (`8b113eeb` release binary, isolated caches, captured compute shader corpus with 69 pipeline entries / 43 unique native driver blobs): - `fresh_w4`: 4/4 workers exited `0` in `72,195.44 ms` (`65 made, 22 from_disk, 4 elsewhere, 0 errors, 0 write_errors`, `43/43` blobs present, `0` leftover `.claim`/`.tmp`, peak aggregate commit `1,516.23 MiB`); warm 1-worker verification hit `69/69 from_disk` in `5,340.57 ms`. - `corrupt_w4` (pre-corrupted driver blobs): 4/4 workers exited `0` in `76,181.68 ms` (`66 made, 23 from_disk, 3 elsewhere`, `0` leftover corrupt blobs/claims/tmps, `43/43` valid); warm verification hit `69/69 from_disk` in `4,325.83 ms`. - `orphan_claims_w4` (pre-seeded unlocked `.claim` files): 4/4 workers exited `0` in `61,108.44 ms` (`65 made, 22 from_disk, 4 elsewhere`, `43/43` blobs, `0` leftover `.claim` files). - `kill_recovery_w2`: terminating 1 of 2 workers (`exit -1, 0`) left `10` missing blobs and `0` orphaned `.claim` locks; single-worker recovery finished `exit 0` in `104,600.68 ms` (`69 made, 59 from_disk`, `43/43` blobs, `0` claims/tmps); warm verification hit `69/69 from_disk` in `5,103.05 ms`. - Clean `nvidia-dev` (`af2cecc4`) baseline comparison on this host (`--test-threads=1`): `shaders::tests` `11 passed, 0 failed`, `e2e` `4 passed, 0 failed`; pre-existing baseline failures on unmodified `af2cecc4` in `texture_upload::tests` (`6 passed, 2 failed`), `d3d12_mesh_stream` (`2 passed, 1 failed`), `gpu_compute_e2e` (`6 passed, 1 failed`), and `gpu_two_pass_cache_e2e` (`0 passed, 1 failed`). **Regression run** - Draft PR pending paired `scripts/smoke.ps1` execution on an unpacked retail build before marking ready for review. **Not tested** - Full `cargo test --workspace` after the final commit (unmodified `af2cecc4` baseline already fails in `texture_upload::tests`, `d3d12_mesh_stream`, `gpu_compute_e2e`, and `gpu_two_pass_cache_e2e`), paired `scripts/smoke.ps1` (no retail title directory on this machine), AMD / Intel GPUs, Linux / Wine. **AI use** - Google Antigravity (`Gemini`); assisted with implementation, subprocess/unit/GPU tests, multi-worker release verification, and PR preparation under author direction.
gsucristo commented 2026-11-26 08:10:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gsucristo on 2026-11-26T08:10:34Z.

Review: COMMENTED


Nice hardening overall — replacing the timeout-based .claim heuristic with share_mode(0) | FILE_FLAG_DELETE_ON_CLOSE + DELETE access is the right primitive on Windows (and maps cleanly to wineserver handle teardown on Wine/Proton), ID3DBlob stays alive across driver_cache::write, the InflightGuard / RunningPermit / DescGuard drop guards have clean lock ordering (inflight before running) and panic safety, and the OS subprocess tests cover the tricky failure modes well.

A few concrete issues and nits I noticed while reading through crates/xcl/src/shaders.rs:

1. Deterministic worker failures trigger a redundant recovery pass and lose the error breakdown

In precompile, a worker running under XCL_PRECOMPILE_PARENT prints the compute pipelines: ... summary to stderr and then returns Err(...) whenever failed + refused + capped + write_failures > 0, causing the worker process to exit non-zero (worker_failures > 0).

In evaluate_compute_workers, worker_failures > 0 is checked before inspecting totals:

if worker_failures > 0 || parsed < workers {
    return ComputeWorkersOutcome::NeedsRecovery(...);
}
let [_, refused, _, _, capped, record_errors, write_errors] = totals;
if refused + capped + record_errors + write_errors > 0 {
    return ComputeWorkersOutcome::Incomplete(...);
}

Because of that ordering:

  • Any deterministic capped, refused, or record_errors count causes evaluate_compute_workers to return NeedsRecovery instead of Incomplete, re-running the entire pack in a single-worker recovery pass.
  • When that recovery worker hits the same failure and exits non-zero, evaluate_compute_workers(1, 1, &rec_summaries) hits NeedsRecovery again and returns "Shader preparation incomplete after worker failure: 1 of 1 workers failed (1/1 reported completion)", hiding the actual refused/capped/record_errors/write_errors counts.
  • (compute_summary_and_worker_policy_enforce_recovery_and_completeness didn't catch this because it passes worker_failures = 0 for the Incomplete cases.)

Checking if parsed == workers && refused + capped + record_errors + write_errors > 0 { return ComputeWorkersOutcome::Incomplete(...); } before the worker_failures > 0 branch (or letting workers exit 0 after emitting their summary and letting the parent fail on totals) would fix both issues.

2. Double driver_cache::load on the hot path

In make_one:

  • let initial_cached = path.as_deref().and_then(driver_cache::load); reads the entire .pso file even when !over_cap, then discards it and reads the file again after acquiring InflightGuard and RunningPermit.
  • Guarding the first read with if over_cap (e.g. if over_cap && path.as_deref().and_then(driver_cache::load).is_none()) avoids doubling file reads/allocations for normal cached pipelines.

3. Windows rename contention when replacing a corrupt blob

Concurrent workers call driver_cache::load(path) before Claim::acquire(path). When the claim owner replaces a corrupt blob via driver_cache::write (std::fs::rename(&tmp, p)), a concurrent reader still inside std::fs::read(path) can transiently cause rename to fail with ERROR_ACCESS_DENIED on Windows (Rust's std::fs::rename does not use FILE_RENAME_FLAG_POSIX_SEMANTICS). Right now that increments write_failures and removes path. A short bounded retry on rename in driver_cache::write (similar to the STATUS_DELETE_PENDING retry in Claim::acquire) would avoid spurious write failures under multi-worker contention on corrupt blobs.

4. Minor nits

  • try_cached_pso leaves a dangling pointer in desc.CachedPSO: When try_cached_pso returns None, desc.CachedPSO.pCachedBlob still points to the dropped bytes slice. Line 1729 currently resets desc.0.CachedPSO = Default::default() before the uncached compile so there is no UB today, but clearing desc.CachedPSO inside try_cached_pso before returning keeps the helper self-contained.
  • XCL_PRECOMPILE_SLICE in recovery: worker_command strips XCL_HOST, XCL_PREPARATION_PARENT, etc., but not XCL_PRECOMPILE_SLICE. Clearing XCL_PRECOMPILE_SLICE in worker_command (or in the recovery pass) ensures an inherited env var can't restrict the single-worker recovery pass to a single slice.
  • Claim::acquire backoff & Unavailable cleanup: 3 × 2ms (6 ms) for transient STATUS_DELETE_PENDING is usually plenty, though under antivirus/filter-driver load on Windows a slightly longer stepped backoff (e.g. 2, 5, 10, 20 ms) is cheap and reduces spurious Unavailable fallbacks. Also, if claim.is_none() (Unavailable), consider skipping std::fs::remove_file(path) on had_corrupt so an uncoordinated worker can't delete a blob another worker just published.
  • Stale comment on over_cap: The comment above if initial_cached.is_none() && over_cap still says "the pass finishes without it, and the runtime builds it when a title needs the pipeline", whereas pipelines_in_workers now fails closed with Err when capped > 0 (matching single-worker precompile). Worth confirming whether capped > 0 should fail multi-worker launch preparation or if the comment should be updated.
<!-- greyfinch-sync:ivall/xcl:review:6070485575 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2712#pullrequestreview-6070485575). Originally posted by [gsucristo](https://github.com/gsucristo) on 2026-11-26T08:10:34Z. **Review:** COMMENTED --- Nice hardening overall — replacing the timeout-based `.claim` heuristic with `share_mode(0) | FILE_FLAG_DELETE_ON_CLOSE` + `DELETE` access is the right primitive on Windows (and maps cleanly to `wineserver` handle teardown on Wine/Proton), `ID3DBlob` stays alive across `driver_cache::write`, the `InflightGuard` / `RunningPermit` / `DescGuard` drop guards have clean lock ordering (`inflight` before `running`) and panic safety, and the OS subprocess tests cover the tricky failure modes well. A few concrete issues and nits I noticed while reading through `crates/xcl/src/shaders.rs`: ### 1. Deterministic worker failures trigger a redundant recovery pass and lose the error breakdown In `precompile`, a worker running under `XCL_PRECOMPILE_PARENT` prints the `compute pipelines: ...` summary to stderr and then returns `Err(...)` whenever `failed + refused + capped + write_failures > 0`, causing the worker process to exit non-zero (`worker_failures > 0`). In `evaluate_compute_workers`, `worker_failures > 0` is checked **before** inspecting `totals`: ```rust if worker_failures > 0 || parsed < workers { return ComputeWorkersOutcome::NeedsRecovery(...); } let [_, refused, _, _, capped, record_errors, write_errors] = totals; if refused + capped + record_errors + write_errors > 0 { return ComputeWorkersOutcome::Incomplete(...); } ``` Because of that ordering: - Any deterministic `capped`, `refused`, or `record_errors` count causes `evaluate_compute_workers` to return `NeedsRecovery` instead of `Incomplete`, re-running the entire pack in a single-worker recovery pass. - When that recovery worker hits the same failure and exits non-zero, `evaluate_compute_workers(1, 1, &rec_summaries)` hits `NeedsRecovery` again and returns `"Shader preparation incomplete after worker failure: 1 of 1 workers failed (1/1 reported completion)"`, hiding the actual `refused`/`capped`/`record_errors`/`write_errors` counts. - (`compute_summary_and_worker_policy_enforce_recovery_and_completeness` didn't catch this because it passes `worker_failures = 0` for the `Incomplete` cases.) Checking `if parsed == workers && refused + capped + record_errors + write_errors > 0 { return ComputeWorkersOutcome::Incomplete(...); }` before the `worker_failures > 0` branch (or letting workers exit 0 after emitting their summary and letting the parent fail on `totals`) would fix both issues. ### 2. Double `driver_cache::load` on the hot path In `make_one`: - `let initial_cached = path.as_deref().and_then(driver_cache::load);` reads the entire `.pso` file even when `!over_cap`, then discards it and reads the file again after acquiring `InflightGuard` and `RunningPermit`. - Guarding the first read with `if over_cap` (e.g. `if over_cap && path.as_deref().and_then(driver_cache::load).is_none()`) avoids doubling file reads/allocations for normal cached pipelines. ### 3. Windows `rename` contention when replacing a corrupt blob Concurrent workers call `driver_cache::load(path)` *before* `Claim::acquire(path)`. When the claim owner replaces a corrupt blob via `driver_cache::write` (`std::fs::rename(&tmp, p)`), a concurrent reader still inside `std::fs::read(path)` can transiently cause `rename` to fail with `ERROR_ACCESS_DENIED` on Windows (Rust's `std::fs::rename` does not use `FILE_RENAME_FLAG_POSIX_SEMANTICS`). Right now that increments `write_failures` and removes `path`. A short bounded retry on `rename` in `driver_cache::write` (similar to the `STATUS_DELETE_PENDING` retry in `Claim::acquire`) would avoid spurious write failures under multi-worker contention on corrupt blobs. ### 4. Minor nits - **`try_cached_pso` leaves a dangling pointer in `desc.CachedPSO`**: When `try_cached_pso` returns `None`, `desc.CachedPSO.pCachedBlob` still points to the dropped `bytes` slice. Line 1729 currently resets `desc.0.CachedPSO = Default::default()` before the uncached compile so there is no UB today, but clearing `desc.CachedPSO` inside `try_cached_pso` before returning keeps the helper self-contained. - **`XCL_PRECOMPILE_SLICE` in recovery**: `worker_command` strips `XCL_HOST`, `XCL_PREPARATION_PARENT`, etc., but not `XCL_PRECOMPILE_SLICE`. Clearing `XCL_PRECOMPILE_SLICE` in `worker_command` (or in the recovery pass) ensures an inherited env var can't restrict the single-worker recovery pass to a single slice. - **`Claim::acquire` backoff & `Unavailable` cleanup**: `3 × 2ms` (6 ms) for transient `STATUS_DELETE_PENDING` is usually plenty, though under antivirus/filter-driver load on Windows a slightly longer stepped backoff (e.g. `2, 5, 10, 20 ms`) is cheap and reduces spurious `Unavailable` fallbacks. Also, if `claim.is_none()` (`Unavailable`), consider skipping `std::fs::remove_file(path)` on `had_corrupt` so an uncoordinated worker can't delete a blob another worker just published. - **Stale comment on `over_cap`**: The comment above `if initial_cached.is_none() && over_cap` still says *"the pass finishes without it, and the runtime builds it when a title needs the pipeline"*, whereas `pipelines_in_workers` now fails closed with `Err` when `capped > 0` (matching single-worker `precompile`). Worth confirming whether `capped > 0` should fail multi-worker launch preparation or if the comment should be updated.
luckyteagirl commented 2026-11-26 08:12:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T08:12:26Z.

Review: COMMENTED


At head 8b113eeb3e306ba85aefcd3d146bbcbb25f07199, the four race_and_publish subprocesses only wait for the go file. The winner holds the .claim for a fixed 40 ms (shaders.rs:2018), then releases it; the parent later requires exactly one OUTCOME=ACQUIRED (shaders.rs:2181). A child delayed by process startup or scheduling for more than 40 ms can first try Claim::acquire after the winner has released it, legitimately acquire a second time, and fail this test despite correct exclusive ownership. Could the winner wait, with a bounded timeout, until the other children acknowledge their acquisition attempts before releasing, or could the assertion test non-overlap without assuming all attempts fit inside 40 ms? This would make the subprocess test robust on loaded CI hosts.

This is a source-derived test-race review of the exact head; I did not run a delayed-child reproduction. AI use: OpenAI Codex (GPT-6.2 Sol) identified the interleaving, and I checked the child role and parent assertion before posting.

<!-- greyfinch-sync:ivall/xcl:review:6070505620 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2712#pullrequestreview-6070505620). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T08:12:26Z. **Review:** COMMENTED --- At head `8b113eeb3e306ba85aefcd3d146bbcbb25f07199`, the four `race_and_publish` subprocesses only wait for the `go` file. The winner holds the `.claim` for a fixed 40 ms (`shaders.rs:2018`), then releases it; the parent later requires exactly one `OUTCOME=ACQUIRED` (`shaders.rs:2181`). A child delayed by process startup or scheduling for more than 40 ms can first try `Claim::acquire` after the winner has released it, legitimately acquire a second time, and fail this test despite correct exclusive ownership. Could the winner wait, with a bounded timeout, until the other children acknowledge their acquisition attempts before releasing, or could the assertion test non-overlap without assuming all attempts fit inside 40 ms? This would make the subprocess test robust on loaded CI hosts. This is a source-derived test-race review of the exact head; I did not run a delayed-child reproduction. AI use: OpenAI Codex (GPT-6.2 Sol) identified the interleaving, and I checked the child role and parent assertion before posting.
KDenKC commented 2026-11-26 09:07:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-26T08:12:52Z.


Source review of 8b113eeb, no run. A refused or capped pipeline seems to take the recovery path instead of Incomplete:

  • A worker runs with XCL_PRECOMPILE_PARENT set, so precompile returns Err when failed + refused + capped + write_failures > 0 (shaders.rs:2847). The worker then exits non-zero, and in_workers counts it in failed (:2449-2451).
  • evaluate_compute_workers checks worker_failures > 0 first (:2316), so the result is NeedsRecovery, never Incomplete. The refused/capped counts from the summaries are not reported.
  • The recovery pass is a whole second compute pass on one worker (:2359). Its worker meets the same refusal, exits non-zero, and the pass ends in Err("… incomplete after worker failure …"). That reaches prepare_for_launch through ? (:1843), and xcl run stops before the title.

So one pipeline the driver refuses, or one over XCL_PIPELINE_MAX_KB, costs a full single-worker pass and then the launch. If Incomplete is meant for that case, the worker could exit 0 after printing its summary when only refusals, caps or write failures occurred (keeping a non-zero exit for crashes and record failures). evaluate_compute_workers would then see the counts.

Not tested: no build or run of this head on our side. We are running nvidia-dev af2cecc4 cold on an RTX 5090 tonight, and will say here if a refusal shows up there.

AI use: Gemini (Antigravity) flagged it in a review; Claude Code (Claude Opus 5.5) traced it through the source at 8b113eeb and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7186324971 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2712#issuecomment-7186324971). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-26T08:12:52Z. --- Source review of `8b113eeb`, no run. A refused or capped pipeline seems to take the recovery path instead of `Incomplete`: - A worker runs with `XCL_PRECOMPILE_PARENT` set, so `precompile` returns `Err` when `failed + refused + capped + write_failures > 0` (`shaders.rs:2847`). The worker then exits non-zero, and `in_workers` counts it in `failed` (`:2449-2451`). - `evaluate_compute_workers` checks `worker_failures > 0` first (`:2316`), so the result is `NeedsRecovery`, never `Incomplete`. The refused/capped counts from the summaries are not reported. - The recovery pass is a whole second compute pass on one worker (`:2359`). Its worker meets the same refusal, exits non-zero, and the pass ends in `Err("… incomplete after worker failure …")`. That reaches `prepare_for_launch` through `?` (`:1843`), and `xcl run` stops before the title. So one pipeline the driver refuses, or one over `XCL_PIPELINE_MAX_KB`, costs a full single-worker pass and then the launch. If `Incomplete` is meant for that case, the worker could exit 0 after printing its summary when only refusals, caps or write failures occurred (keeping a non-zero exit for crashes and record failures). `evaluate_compute_workers` would then see the counts. Not tested: no build or run of this head on our side. We are running `nvidia-dev` `af2cecc4` cold on an RTX 5090 tonight, and will say here if a refusal shows up there. AI use: Gemini (Antigravity) flagged it in a review; Claude Code (Claude Opus 5.5) traced it through the source at `8b113eeb` and wrote this.
Anon64 commented 2026-11-26 12:06:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-26T11:42:05Z.


Tested 8b113eeb on a retail pack, the case it fixes: a stopped warm-up's claims no longer block the next one. I hit this for real earlier today: a warm-up I stopped and restarted reported pipelines left to another process that was building them 5 with no other process running, and the next world run stood still for about 60 s on one of those five, a 1.68 MB compute pipeline the driver had never built, until the title's watchdog ended it.

Setup: RTX 3060 12 GB, NVIDIA 581.80, i9-14900KF, 32 GB RAM, Windows 11 26200, release builds of nvidia-dev af2cecc4 and of this PR's exact head, same retail pack. Each step: XCL_PIPELINE_THREADS=16 XCL_ADAPTER=3060 xcl shaders <pack> --precompile --pipelines --only cs (without --used-only, so the programs are not in the driver cache yet), stopped with Stop-Process -Force after 150 s at a moment when the NVIDIA DXCache had been quiet for 15 s. Claims counted in %LOCALAPPDATA%\XCL\dxil\driver.

step build .claim files after the stop of them with no blob (orphans)
before – 2 (left at 03:12 by a warm-up I stopped then; their blobs were built later) 0
A af2cecc4 18 16
B, right after A this PR 5 3
  • A reproduces the bug: 16 pipelines claimed by a process that no longer exists, so any warm-up or launch preparation in the next 30 minutes (STALE) leaves them unbuilt.
  • B took A's orphans over: after 150 s, 13 of the 16 claim files were gone and 3 of those pipelines were built; the other 10 were being built when B was stopped, and their claims went with it. B's own stop left no claim behind: the 3 orphans still there are A's (A's timestamps), ones B had not reached.
  • Not changed by this PR: the two claims from 03:12 whose blob already exists stay on disk, since nothing asks for that pipeline's claim again. Harmless, but they never go away.

Not tested: the multi-worker path of xcl run's preparation (XCL_PRECOMPILE_PARENT, recovery after a worker fails) with a stop in the middle; the shaders:: unit tests and the suite on this machine; AMD; the point KDenKC raised about refused or capped pipelines.

AI use: Claude Code (Claude Opus 5.5) ran these steps on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7191058133 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2712#issuecomment-7191058133). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-26T11:42:05Z. --- **Tested `8b113eeb` on a retail pack, the case it fixes: a stopped warm-up's claims no longer block the next one.** I hit this for real earlier today: a warm-up I stopped and restarted reported `pipelines left to another process that was building them 5` with no other process running, and the next world run stood still for about 60 s on one of those five, a 1.68 MB compute pipeline the driver had never built, until the title's watchdog ended it. **Setup:** RTX 3060 12 GB, NVIDIA 581.80, i9-14900KF, 32 GB RAM, Windows 11 26200, release builds of `nvidia-dev` `af2cecc4` and of this PR's exact head, same retail pack. Each step: `XCL_PIPELINE_THREADS=16 XCL_ADAPTER=3060 xcl shaders <pack> --precompile --pipelines --only cs` (without `--used-only`, so the programs are not in the driver cache yet), stopped with `Stop-Process -Force` after 150 s at a moment when the NVIDIA DXCache had been quiet for 15 s. Claims counted in `%LOCALAPPDATA%\XCL\dxil\driver`. | step | build | `.claim` files after the stop | of them with no blob (orphans) | |---|---|---|---| | before | – | 2 (left at 03:12 by a warm-up I stopped then; their blobs were built later) | 0 | | A | `af2cecc4` | 18 | **16** | | B, right after A | this PR | 5 | 3 | - **A** reproduces the bug: 16 pipelines claimed by a process that no longer exists, so any warm-up or launch preparation in the next 30 minutes (`STALE`) leaves them unbuilt. - **B** took A's orphans over: after 150 s, 13 of the 16 claim files were gone and 3 of those pipelines were built; the other 10 were being built when B was stopped, and their claims went with it. B's own stop left no claim behind: the 3 orphans still there are A's (A's timestamps), ones B had not reached. - Not changed by this PR: the two claims from 03:12 whose blob already exists stay on disk, since nothing asks for that pipeline's claim again. Harmless, but they never go away. **Not tested:** the multi-worker path of `xcl run`'s preparation (`XCL_PRECOMPILE_PARENT`, recovery after a worker fails) with a stop in the middle; the `shaders::` unit tests and the suite on this machine; AMD; the point KDenKC raised about refused or capped pipelines. AI use: Claude Code (Claude Opus 5.5) ran these steps on this machine and wrote this report.
Prime1997 commented 2026-11-26 12:28:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T12:28:48Z.

Review: COMMENTED


Needs changes — keep the useful work. Checked head 8b113eeb3e306ba85aefcd3d146bbcbb25f07199.

The OS-lock change has useful behavior and should be kept, but the worker error/command paths still need changes. A complete summary containing known refusals/caps/write failures is classified as a crashed worker first, causing an unnecessary whole-pack recovery before failure. Initial and recovery children also need the configured adapter forwarded when no nonempty XCL_ADAPTER override exists; a nonempty override was already inherited. A recovery child must clear an inherited XCL_PRECOMPILE_SLICE. The local repair reports deterministic incomplete results before crash recovery and tests both child-command paths. The claim fixture was also changed to wait for bounded attempt acknowledgements instead of assuming every child runs inside 40 ms.

Local validation: head plus an uncommitted repair and regression fixtures: 12 passed, 0 failed, 0 ignored, 0 skipped. These are CPU checks of the local repair, not a claim that the unmodified PR passed them. Separate negative-control checks produced 0 passes and 4 expected failures. The altered-sharing control checks the claim fixture's failure detection; it does not reproduce the original 40 ms scheduling race.

Build command: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated target> (only the private absolute target path is replaced here). Each selected test executable was then run separately as <test-exe> <exact-name> --exact --test-threads=1 --nocapture.

Selected exact tests
  • shaders::tests::completed_compute_failures_report_the_cause_without_recovery
  • shaders::tests::compute_summary_and_worker_policy_enforce_recovery_and_completeness
  • shaders::tests::preparation_workers_keep_the_titles_adapter_and_environment_override
  • shaders::tests::recovery_workers_clear_inherited_slices_and_sliced_workers_set_their_own
  • shaders::claim_tests::subprocess_simultaneous_race_yields_one_owner_and_atomic_publish
  • shaders::claim_tests::a_pipeline_is_claimed_by_one_builder_at_a_time
  • shaders::claim_tests::claim_creates_missing_cache_directories_before_locking
  • shaders::claim_tests::claim_distinguishes_contention_from_filesystem_errors
  • shaders::claim_tests::claim_adopts_orphaned_claim_file_left_by_older_build
  • shaders::claim_tests::claim_never_steals_active_long_running_ownership
  • shaders::claim_tests::subprocess_forced_termination_immediately_releases_delete_on_close_claim
  • shaders::claim_tests::inflight_guard_and_identity_prevent_deadlock_and_distinguish_params

Latest-main source comparison: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7; full-head merge-tree result: clean. This is a source compatibility check, not a tested integration build. The actual target remains nvidia-dev af2cecc40886a8682ecf3267f5328c6dc4b66ad7; merging the full head into main would also import its branch history. Local repair patch SHA-256: 99a55473f39560eafbea0d41208a013c458ff95228214b9ecca57c24bf7309da.

Windows 11 Pro build 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug tests. RTX 3060 Ti / driver 32.0.16.1714 is present but was not exercised. No full-suite, GPU or title result is claimed; installed builds and game data were untouched.

AI use: Codex (GPT-6) reviewed the source, prepared the local repair/fixtures, ran the checks and drafted this report.

Optional temporary Discord for coordinating this contributor work, helping test and comparing results.

<!-- greyfinch-sync:ivall/xcl:review:6074129092 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2712#pullrequestreview-6074129092). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T12:28:48Z. **Review:** COMMENTED --- **Needs changes — keep the useful work.** Checked head `8b113eeb3e306ba85aefcd3d146bbcbb25f07199`. The OS-lock change has useful behavior and should be kept, but the worker error/command paths still need changes. A complete summary containing known refusals/caps/write failures is classified as a crashed worker first, causing an unnecessary whole-pack recovery before failure. Initial and recovery children also need the configured adapter forwarded when no nonempty `XCL_ADAPTER` override exists; a nonempty override was already inherited. A recovery child must clear an inherited `XCL_PRECOMPILE_SLICE`. The local repair reports deterministic incomplete results before crash recovery and tests both child-command paths. The claim fixture was also changed to wait for bounded attempt acknowledgements instead of assuming every child runs inside 40 ms. **Local validation:** head plus an uncommitted repair and regression fixtures: **12 passed, 0 failed, 0 ignored, 0 skipped**. These are CPU checks of the local repair, not a claim that the unmodified PR passed them. Separate negative-control checks produced 0 passes and 4 expected failures. The altered-sharing control checks the claim fixture's failure detection; it does not reproduce the original 40 ms scheduling race. Build command: `cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated target>` (only the private absolute target path is replaced here). Each selected test executable was then run separately as `<test-exe> <exact-name> --exact --test-threads=1 --nocapture`. <details><summary>Selected exact tests</summary> - `shaders::tests::completed_compute_failures_report_the_cause_without_recovery` - `shaders::tests::compute_summary_and_worker_policy_enforce_recovery_and_completeness` - `shaders::tests::preparation_workers_keep_the_titles_adapter_and_environment_override` - `shaders::tests::recovery_workers_clear_inherited_slices_and_sliced_workers_set_their_own` - `shaders::claim_tests::subprocess_simultaneous_race_yields_one_owner_and_atomic_publish` - `shaders::claim_tests::a_pipeline_is_claimed_by_one_builder_at_a_time` - `shaders::claim_tests::claim_creates_missing_cache_directories_before_locking` - `shaders::claim_tests::claim_distinguishes_contention_from_filesystem_errors` - `shaders::claim_tests::claim_adopts_orphaned_claim_file_left_by_older_build` - `shaders::claim_tests::claim_never_steals_active_long_running_ownership` - `shaders::claim_tests::subprocess_forced_termination_immediately_releases_delete_on_close_claim` - `shaders::claim_tests::inflight_guard_and_identity_prevent_deadlock_and_distinguish_params` </details> Latest-main source comparison: `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`; full-head merge-tree result: clean. This is a source compatibility check, not a tested integration build. The actual target remains nvidia-dev `af2cecc40886a8682ecf3267f5328c6dc4b66ad7`; merging the full head into main would also import its branch history. Local repair patch SHA-256: `99a55473f39560eafbea0d41208a013c458ff95228214b9ecca57c24bf7309da`. Windows 11 Pro build 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug tests. RTX 3060 Ti / driver 32.0.16.1714 is present but was not exercised. No full-suite, GPU or title result is claimed; installed builds and game data were untouched. AI use: Codex (GPT-6) reviewed the source, prepared the local repair/fixtures, ran the checks and drafted this report. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating this contributor work, helping test and comparing results.
ZekkJJ commented 2026-11-26 15:03:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ZekkJJ on 2026-11-26T14:31:28Z.


@Prime1997 Thanks for preparing the local repair. Could you share the patch or branch so we can review it and preserve attribution?

<!-- greyfinch-sync:ivall/xcl:comment:7194943859 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2712#issuecomment-7194943859). Originally posted by [ZekkJJ](https://github.com/ZekkJJ) on 2026-11-26T14:31:28Z. --- @Prime1997 Thanks for preparing the local repair. Could you share the patch or branch so we can review it and preserve attribution?
Prime1997 commented 2026-11-26 16:06:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T15:19:04Z.


@ZekkJJ Here is the complete repair patch from my earlier review, based on 8b113eeb3e306ba85aefcd3d146bbcbb25f07199.

The repair preserves reported refusal, cap, record, and cache-write counts when workers finish with known errors. It still retries missing completion reports and nonzero exits when every report is clean. It also forwards the title's adapter unless a nonempty override is set, clears inherited slices for whole-pack recovery, and makes the claim test wait for every contender's attempt.

Validation: The patch applies cleanly to the current PR head. The repaired tree previously ran 12 exact CPU tests: 12 passed, 0 failed, 0 ignored, 0 explicit skips, with 1,660 filtered out per invocation. The names and commands are in the earlier review. GPU execution, title behavior, and full-suite validation remain open.

Save the contents of the diff block as 2712-repair.patch with LF line endings and a final newline. On the pinned revision, run git apply --check 2712-repair.patch, then git apply 2712-repair.patch. SHA-256: 99a55473f39560eafbea0d41208a013c458ff95228214b9ecca57c24bf7309da.

Please credit Prime1997 for this follow-up patch and fixtures. Thanks to KDenKC, gsucristo, and luckyteagirl for tracing the worker and claim-test issues.

Complete repair patch
diff --git a/README.md b/README.md
index 5d2feb51..08d89f75 100644
--- a/README.md
+++ b/README.md
@@ -252,7 +252,12 @@ Fill the reusable DXIL cache ahead of a run with the read-only package wrapper.
   on the next launch, with their driver blobs kept, so the title makes them from those in
   milliseconds. `XCL_PREPARE_GRAPHICS=0` leaves that pass out. Later launches reuse matching cache entries.
   Closing the window cancels the launch. A compiler or driver failure stops it and reports
-  the cause. Null-renderer runs skip shader preparation. With presentation disabled, the gate runs without a window.
+  the cause. A missing completion report or unexplained compute-worker exit triggers one
+  recovery pass; completed compiler, driver or cache-write failures report their counts without
+  repeating the pass. Compute and graphics workers, including recovery, use the title's
+  `d3d12_adapter` setting; a nonempty `XCL_ADAPTER` overrides it. Recovery processes the whole
+  selected pack even if the launcher inherited `XCL_PRECOMPILE_SLICE`.
+  Null-renderer runs skip shader preparation. With presentation disabled, the gate runs without a window.
 - For compute shaders that XCL can split, the runtime first tries the saved driver blob for
   the whole shader. A usable blob lets the GPU run it in one dispatch. If the blob is missing
   or the driver rejects it, XCL builds the split pieces.
diff --git a/crates/xcl/src/shaders.rs b/crates/xcl/src/shaders.rs
index de3a02c1..052ed742 100644
--- a/crates/xcl/src/shaders.rs
+++ b/crates/xcl/src/shaders.rs
@@ -1955,10 +1955,10 @@ mod claim_tests {
     use crate::hle::d3d12x::real::driver_cache;
     use std::collections::HashSet;
     use std::io::{BufRead, BufReader};
-    use std::path::PathBuf;
+    use std::path::{Path, PathBuf};
     use std::sync::atomic::{AtomicBool, Ordering};
     use std::sync::{Condvar, Mutex};
-    use std::time::{Duration, SystemTime, UNIX_EPOCH};
+    use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
 
     struct TempDir(PathBuf);
     impl TempDir {
@@ -1990,6 +1990,14 @@ mod claim_tests {
         cmd.spawn().expect("spawn claim subprocess")
     }
 
+    fn wait_for_marker(path: &Path) {
+        let deadline = Instant::now() + Duration::from_secs(15);
+        while !path.exists() {
+            assert!(Instant::now() < deadline, "timed out waiting for {}", path.display());
+            std::thread::sleep(Duration::from_millis(1));
+        }
+    }
+
     #[test]
     fn claim_child_role_entrypoint() {
         let Ok(role) = std::env::var("XCL_CLAIM_TEST_ROLE") else {
@@ -2010,12 +2018,18 @@ mod claim_tests {
             "race_and_publish" => {
                 let payload = std::env::var("XCL_CLAIM_TEST_PAYLOAD").expect("payload env");
                 let barrier = PathBuf::from(std::env::var("XCL_CLAIM_TEST_BARRIER").expect("barrier env"));
-                while !barrier.exists() {
-                    std::thread::sleep(Duration::from_millis(1));
-                }
-                match Claim::acquire(&blob) {
+                let id: usize = std::env::var("XCL_CLAIM_TEST_ID").expect("id env").parse().unwrap();
+                let contenders: usize = std::env::var("XCL_CLAIM_TEST_CONTENDERS").expect("contenders env").parse().unwrap();
+                wait_for_marker(&barrier);
+                let acquired = Claim::acquire(&blob);
+                std::fs::write(barrier.with_extension(format!("attempt-{id}")), b"attempted").unwrap();
+                match acquired {
                     ClaimAcquire::Acquired(claim) => {
-                        std::thread::sleep(Duration::from_millis(40));
+                        // Keep ownership until every child has attempted acquisition, including
+                        // one that starts late. A fixed sleep lets a late child acquire again.
+                        for i in 0..contenders {
+                            wait_for_marker(&barrier.with_extension(format!("attempt-{i}")));
+                        }
                         assert!(driver_cache::write(&blob, payload.as_bytes()), "atomic write failed");
                         drop(claim);
                         println!("OUTCOME=ACQUIRED");
@@ -2151,19 +2165,28 @@ mod claim_tests {
             let barrier = dir.0.join("go");
             let expected = b"VALID_PUBLISHED_BLOB_BYTES";
             let mut children = Vec::new();
-            for _ in 0..4 {
+            std::fs::write(&barrier, b"go").unwrap();
+            let mut owner_still_held = false;
+            for i in 0..4 {
+                if i == 3 {
+                    // Start the final contender only after the first three have attempted.
+                    // The owner must remain live until this late child attempts too.
+                    for j in 0..3 {
+                        wait_for_marker(&barrier.with_extension(format!("attempt-{j}")));
+                    }
+                    owner_still_held = matches!(Claim::acquire(&blob), ClaimAcquire::HeldElsewhere);
+                }
                 children.push(spawn_role(
                     "race_and_publish",
                     &[
                         ("XCL_CLAIM_TEST_BLOB", &blob.to_string_lossy()),
                         ("XCL_CLAIM_TEST_BARRIER", &barrier.to_string_lossy()),
                         ("XCL_CLAIM_TEST_PAYLOAD", std::str::from_utf8(expected).unwrap()),
+                        ("XCL_CLAIM_TEST_ID", &i.to_string()),
+                        ("XCL_CLAIM_TEST_CONTENDERS", "4"),
                     ],
                 ));
             }
-            std::thread::sleep(Duration::from_millis(80));
-            std::fs::write(&barrier, b"go").unwrap();
-
             let mut acquired = 0usize;
             let mut held = 0usize;
             for child in children {
@@ -2178,6 +2201,7 @@ mod claim_tests {
                     panic!("missing child outcome: {s}");
                 }
             }
+            assert!(owner_still_held, "owner released its claim before the late contender attempted");
             assert_eq!(acquired, 1, "exactly one contender must win ownership (held={held})");
             assert_eq!(held, 3);
             assert_eq!(std::fs::read(&blob).unwrap(), expected);
@@ -2313,15 +2337,17 @@ fn evaluate_compute_workers(workers: usize, worker_failures: usize, summaries: &
             }
         }
     }
-    if worker_failures > 0 || parsed < workers {
-        return ComputeWorkersOutcome::NeedsRecovery(format!("{worker_failures} of {workers} workers failed ({parsed}/{workers} reported completion)"));
-    }
     let [_, refused, _, _, capped, record_errors, write_errors] = totals;
-    if refused + capped + record_errors + write_errors > 0 {
+    // Completed workers exit unsuccessfully for these reported errors too. Their slices
+    // finished, so preserve the cause instead of treating them as interrupted workers.
+    if parsed == workers && refused + capped + record_errors + write_errors > 0 {
         return ComputeWorkersOutcome::Incomplete(format!(
             "Shader preparation incomplete: {record_errors} record errors, {refused} refused pipelines, {capped} over size cap, {write_errors} driver cache write failures"
         ));
     }
+    if worker_failures > 0 || parsed < workers {
+        return ComputeWorkersOutcome::NeedsRecovery(format!("{worker_failures} of {workers} workers failed ({parsed}/{workers} reported completion)"));
+    }
     ComputeWorkersOutcome::Complete(totals)
 }
 
@@ -2338,7 +2364,7 @@ fn pipelines_in_workers(pack: &Path, windows: u32, workers: usize, records: usiz
     let win_arg = (windows & !recomp::HEAP_WINDOWS).to_string();
     crate::xlog_info!("Shader preparation: compute pipelines in {workers} worker processes{}", if used_only { ", those an earlier run used" } else { "" });
     let (cancelled, failed, summaries) = in_workers(workers, records, progress, |i| {
-        let mut c = worker_command(&me);
+        let mut c = worker_command(&me, &progress.adapter, std::env::var("XCL_ADAPTER").ok().as_deref());
         c.arg("shaders").arg(pack).args(["--precompile", "--only", "cs", "--pipelines", "--windows"]).arg(&win_arg);
         if used_only { c.arg("--used-only"); }
         c.env("XCL_PRECOMPILE_SLICE", format!("{i}/{workers}"));
@@ -2357,7 +2383,7 @@ fn pipelines_in_workers(pack: &Path, windows: u32, workers: usize, records: usiz
         ComputeWorkersOutcome::NeedsRecovery(reason) => {
             crate::xlog_warn!("Shader preparation: {reason}; running single-worker recovery pass");
             let (rec_cancelled, rec_failed, rec_summaries) = in_workers(1, records, progress, |_| {
-                let mut c = worker_command(&me);
+                let mut c = worker_command(&me, &progress.adapter, std::env::var("XCL_ADAPTER").ok().as_deref());
                 c.arg("shaders").arg(pack).args(["--precompile", "--only", "cs", "--pipelines", "--windows"]).arg(&win_arg);
                 if used_only { c.arg("--used-only"); }
                 c
@@ -2380,11 +2406,12 @@ fn pipelines_in_workers(pack: &Path, windows: u32, workers: usize, records: usiz
 
 /// A preparation worker: this program, not a host and not a launcher's child, a builder that
 /// ends when this process does.
-fn worker_command(me: &Path) -> std::process::Command {
+fn worker_command(me: &Path, adapter: &str, override_adapter: Option<&str>) -> std::process::Command {
     use std::os::windows::process::CommandExt;
     const CREATE_NO_WINDOW: u32 = 0x0800_0000;
     let mut c = std::process::Command::new(me);
-    for gone in ["XCL_HOST", "XCL_PREPARATION_PARENT", "XCL_PREPARATION_MENU", "XCL_RUN_SECONDS"] { c.env_remove(gone); }
+    c.env("XCL_ADAPTER", override_adapter.filter(|v| !v.trim().is_empty()).unwrap_or(adapter));
+    for gone in ["XCL_HOST", "XCL_PREPARATION_PARENT", "XCL_PREPARATION_MENU", "XCL_RUN_SECONDS", "XCL_PRECOMPILE_SLICE"] { c.env_remove(gone); }
     c.env("XCL_PRECOMPILE_PARENT", std::process::id().to_string());
     if std::env::var_os("XCL_DXC_THREADS").is_none() { c.env("XCL_DXC_THREADS", "2"); }
     if std::env::var_os("XCL_PIPELINE_THREADS").is_none() { c.env("XCL_PIPELINE_THREADS", "1"); }
@@ -2503,10 +2530,8 @@ fn graphics_in_workers(inputs: &[Input], windows: u32, workers: usize, progress:
     crate::xlog_info!("Shader preparation: the {} graphics pipelines earlier runs used, in {workers} worker processes", buildable.len());
     progress.graphics.store(true, Ordering::Relaxed);
     let (cancelled, failed, summaries) = in_workers(workers, buildable.len(), progress, |i| {
-        let mut c = worker_command(&me);
+        let mut c = worker_command(&me, &progress.adapter, std::env::var("XCL_ADAPTER").ok().as_deref());
         c.arg("shaders").arg(&jobs[i].0).args(["--graphics-records", "--windows"]).arg((windows & !recomp::HEAP_WINDOWS).to_string());
-        // (the title's adapter: its blobs are the ones it takes)
-        if std::env::var_os("XCL_ADAPTER").is_none() && !progress.adapter.is_empty() { c.env("XCL_ADAPTER", &progress.adapter); }
         c
     });
     progress.graphics.store(false, Ordering::Relaxed);
@@ -3183,6 +3208,35 @@ fn print(path: &Path, what: &str, agg: Agg, top: usize, json: bool, t0: std::tim
 
 #[cfg(test)]
 mod tests {
+    /// Inspect worker commands without starting a process or changing the test environment.
+    #[test]
+    fn preparation_workers_keep_the_titles_adapter_and_environment_override() {
+        use std::ffi::OsStr;
+        for (configured, override_adapter, expected) in [
+            ("warp", None, "warp"),
+            ("radeon", Some(""), "radeon"),
+            ("radeon", Some(" \t "), "radeon"),
+            ("warp", Some("rtx 3060"), "rtx 3060"),
+            ("warp", Some("auto"), "auto"),
+        ] {
+            let command = worker_command(Path::new("unused-xcl.exe"), configured, override_adapter);
+            let adapter = command.get_envs().find(|(key, _)| *key == OsStr::new("XCL_ADAPTER")).and_then(|(_, value)| value);
+            assert_eq!(adapter, Some(OsStr::new(expected)));
+        }
+    }
+
+    #[test]
+    fn recovery_workers_clear_inherited_slices_and_sliced_workers_set_their_own() {
+        use std::ffi::OsStr;
+        let mut command = worker_command(Path::new("unused-xcl.exe"), "warp", None);
+        let slice = || OsStr::new("XCL_PRECOMPILE_SLICE");
+        // A recovery worker gets the whole pack even if the launcher inherited a slice.
+        assert_eq!(command.get_envs().find(|(key, _)| *key == slice()), Some((slice(), None)));
+        // Normal compute workers replace that removal with their assigned slice.
+        command.env("XCL_PRECOMPILE_SLICE", "2/4");
+        assert_eq!(command.get_envs().find(|(key, _)| *key == slice()), Some((slice(), Some(OsStr::new("2/4")))));
+    }
+
     /// The workers of a title's shader preparation: four logical processors are left free,
     /// 3 GB of commit for each, and one where there is no room.
     #[test]
@@ -3235,6 +3289,7 @@ mod tests {
         // Killed worker or missing summary triggers recovery instead of silent success.
         assert!(matches!(evaluate_compute_workers(2, 1, &ok[..1]), ComputeWorkersOutcome::NeedsRecovery(_)));
         assert!(matches!(evaluate_compute_workers(2, 0, &ok[..1]), ComputeWorkersOutcome::NeedsRecovery(_)));
+        assert!(matches!(evaluate_compute_workers(2, 1, &ok), ComputeWorkersOutcome::NeedsRecovery(_)));
 
         // Non-zero refused/capped/errors/write_errors fail closed.
         for bad in [
@@ -3247,6 +3302,20 @@ mod tests {
         }
     }
 
+    #[test]
+    fn completed_compute_failures_report_the_cause_without_recovery() {
+        for (refused, capped, errors, writes) in [(1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)] {
+            let summary = format!("compute pipelines: 1 made, {refused} refused, 0 from_disk, 0 elsewhere, {capped} capped, {errors} errors, {writes} write_errors");
+            let summaries = [summary];
+            // precompile emits its summary before returning Err for any of these counts.
+            assert_eq!(evaluate_compute_workers(1, 1, &summaries), ComputeWorkersOutcome::Incomplete(format!(
+                "Shader preparation incomplete: {errors} record errors, {refused} refused pipelines, {capped} over size cap, {writes} driver cache write failures"
+            )));
+            // A different worker with no summary still needs its unfinished slice recovered.
+            assert!(matches!(evaluate_compute_workers(2, 1, &summaries), ComputeWorkersOutcome::NeedsRecovery(_)));
+        }
+    }
+
     /// A graphics record is built when every shader it names is found and they make its set's
     /// key (the key `used-pipelines.txt` has); one with a shader not in the title's files, or
     /// other shaders under its keys, is left out.

AI use: Codex (GPT-6) prepared the repair and tests and verified the shared patch. Optional temporary Discord for coordinating contributor work, testing, and comparing results.

<!-- greyfinch-sync:ivall/xcl:comment:7196094608 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2712#issuecomment-7196094608). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T15:19:04Z. --- @ZekkJJ Here is the complete repair patch from [my earlier review](https://github.com/xcl-dev/xcl/pull/2712#pullrequestreview-6074129092), based on `8b113eeb3e306ba85aefcd3d146bbcbb25f07199`. The repair preserves reported refusal, cap, record, and cache-write counts when workers finish with known errors. It still retries missing completion reports and nonzero exits when every report is clean. It also forwards the title's adapter unless a nonempty override is set, clears inherited slices for whole-pack recovery, and makes the claim test wait for every contender's attempt. **Validation:** The patch applies cleanly to the current PR head. The repaired tree previously ran 12 exact CPU tests: **12 passed, 0 failed, 0 ignored, 0 explicit skips**, with 1,660 filtered out per invocation. The names and commands are in the earlier review. GPU execution, title behavior, and full-suite validation remain open. Save the contents of the diff block as `2712-repair.patch` with LF line endings and a final newline. On the pinned revision, run `git apply --check 2712-repair.patch`, then `git apply 2712-repair.patch`. SHA-256: `99a55473f39560eafbea0d41208a013c458ff95228214b9ecca57c24bf7309da`. Please credit **Prime1997** for this follow-up patch and fixtures. Thanks to [KDenKC](https://github.com/xcl-dev/xcl/pull/2712#issuecomment-7186324971), [gsucristo](https://github.com/xcl-dev/xcl/pull/2712#pullrequestreview-6070485575), and [luckyteagirl](https://github.com/xcl-dev/xcl/pull/2712#pullrequestreview-6070505620) for tracing the worker and claim-test issues. <details> <summary>Complete repair patch</summary> ```diff diff --git a/README.md b/README.md index 5d2feb51..08d89f75 100644 --- a/README.md +++ b/README.md @@ -252,7 +252,12 @@ Fill the reusable DXIL cache ahead of a run with the read-only package wrapper. on the next launch, with their driver blobs kept, so the title makes them from those in milliseconds. `XCL_PREPARE_GRAPHICS=0` leaves that pass out. Later launches reuse matching cache entries. Closing the window cancels the launch. A compiler or driver failure stops it and reports - the cause. Null-renderer runs skip shader preparation. With presentation disabled, the gate runs without a window. + the cause. A missing completion report or unexplained compute-worker exit triggers one + recovery pass; completed compiler, driver or cache-write failures report their counts without + repeating the pass. Compute and graphics workers, including recovery, use the title's + `d3d12_adapter` setting; a nonempty `XCL_ADAPTER` overrides it. Recovery processes the whole + selected pack even if the launcher inherited `XCL_PRECOMPILE_SLICE`. + Null-renderer runs skip shader preparation. With presentation disabled, the gate runs without a window. - For compute shaders that XCL can split, the runtime first tries the saved driver blob for the whole shader. A usable blob lets the GPU run it in one dispatch. If the blob is missing or the driver rejects it, XCL builds the split pieces. diff --git a/crates/xcl/src/shaders.rs b/crates/xcl/src/shaders.rs index de3a02c1..052ed742 100644 --- a/crates/xcl/src/shaders.rs +++ b/crates/xcl/src/shaders.rs @@ -1955,10 +1955,10 @@ mod claim_tests { use crate::hle::d3d12x::real::driver_cache; use std::collections::HashSet; use std::io::{BufRead, BufReader}; - use std::path::PathBuf; + use std::path::{Path, PathBuf}; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::{Condvar, Mutex}; - use std::time::{Duration, SystemTime, UNIX_EPOCH}; + use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH}; struct TempDir(PathBuf); impl TempDir { @@ -1990,6 +1990,14 @@ mod claim_tests { cmd.spawn().expect("spawn claim subprocess") } + fn wait_for_marker(path: &Path) { + let deadline = Instant::now() + Duration::from_secs(15); + while !path.exists() { + assert!(Instant::now() < deadline, "timed out waiting for {}", path.display()); + std::thread::sleep(Duration::from_millis(1)); + } + } + #[test] fn claim_child_role_entrypoint() { let Ok(role) = std::env::var("XCL_CLAIM_TEST_ROLE") else { @@ -2010,12 +2018,18 @@ mod claim_tests { "race_and_publish" => { let payload = std::env::var("XCL_CLAIM_TEST_PAYLOAD").expect("payload env"); let barrier = PathBuf::from(std::env::var("XCL_CLAIM_TEST_BARRIER").expect("barrier env")); - while !barrier.exists() { - std::thread::sleep(Duration::from_millis(1)); - } - match Claim::acquire(&blob) { + let id: usize = std::env::var("XCL_CLAIM_TEST_ID").expect("id env").parse().unwrap(); + let contenders: usize = std::env::var("XCL_CLAIM_TEST_CONTENDERS").expect("contenders env").parse().unwrap(); + wait_for_marker(&barrier); + let acquired = Claim::acquire(&blob); + std::fs::write(barrier.with_extension(format!("attempt-{id}")), b"attempted").unwrap(); + match acquired { ClaimAcquire::Acquired(claim) => { - std::thread::sleep(Duration::from_millis(40)); + // Keep ownership until every child has attempted acquisition, including + // one that starts late. A fixed sleep lets a late child acquire again. + for i in 0..contenders { + wait_for_marker(&barrier.with_extension(format!("attempt-{i}"))); + } assert!(driver_cache::write(&blob, payload.as_bytes()), "atomic write failed"); drop(claim); println!("OUTCOME=ACQUIRED"); @@ -2151,19 +2165,28 @@ mod claim_tests { let barrier = dir.0.join("go"); let expected = b"VALID_PUBLISHED_BLOB_BYTES"; let mut children = Vec::new(); - for _ in 0..4 { + std::fs::write(&barrier, b"go").unwrap(); + let mut owner_still_held = false; + for i in 0..4 { + if i == 3 { + // Start the final contender only after the first three have attempted. + // The owner must remain live until this late child attempts too. + for j in 0..3 { + wait_for_marker(&barrier.with_extension(format!("attempt-{j}"))); + } + owner_still_held = matches!(Claim::acquire(&blob), ClaimAcquire::HeldElsewhere); + } children.push(spawn_role( "race_and_publish", &[ ("XCL_CLAIM_TEST_BLOB", &blob.to_string_lossy()), ("XCL_CLAIM_TEST_BARRIER", &barrier.to_string_lossy()), ("XCL_CLAIM_TEST_PAYLOAD", std::str::from_utf8(expected).unwrap()), + ("XCL_CLAIM_TEST_ID", &i.to_string()), + ("XCL_CLAIM_TEST_CONTENDERS", "4"), ], )); } - std::thread::sleep(Duration::from_millis(80)); - std::fs::write(&barrier, b"go").unwrap(); - let mut acquired = 0usize; let mut held = 0usize; for child in children { @@ -2178,6 +2201,7 @@ mod claim_tests { panic!("missing child outcome: {s}"); } } + assert!(owner_still_held, "owner released its claim before the late contender attempted"); assert_eq!(acquired, 1, "exactly one contender must win ownership (held={held})"); assert_eq!(held, 3); assert_eq!(std::fs::read(&blob).unwrap(), expected); @@ -2313,15 +2337,17 @@ fn evaluate_compute_workers(workers: usize, worker_failures: usize, summaries: & } } } - if worker_failures > 0 || parsed < workers { - return ComputeWorkersOutcome::NeedsRecovery(format!("{worker_failures} of {workers} workers failed ({parsed}/{workers} reported completion)")); - } let [_, refused, _, _, capped, record_errors, write_errors] = totals; - if refused + capped + record_errors + write_errors > 0 { + // Completed workers exit unsuccessfully for these reported errors too. Their slices + // finished, so preserve the cause instead of treating them as interrupted workers. + if parsed == workers && refused + capped + record_errors + write_errors > 0 { return ComputeWorkersOutcome::Incomplete(format!( "Shader preparation incomplete: {record_errors} record errors, {refused} refused pipelines, {capped} over size cap, {write_errors} driver cache write failures" )); } + if worker_failures > 0 || parsed < workers { + return ComputeWorkersOutcome::NeedsRecovery(format!("{worker_failures} of {workers} workers failed ({parsed}/{workers} reported completion)")); + } ComputeWorkersOutcome::Complete(totals) } @@ -2338,7 +2364,7 @@ fn pipelines_in_workers(pack: &Path, windows: u32, workers: usize, records: usiz let win_arg = (windows & !recomp::HEAP_WINDOWS).to_string(); crate::xlog_info!("Shader preparation: compute pipelines in {workers} worker processes{}", if used_only { ", those an earlier run used" } else { "" }); let (cancelled, failed, summaries) = in_workers(workers, records, progress, |i| { - let mut c = worker_command(&me); + let mut c = worker_command(&me, &progress.adapter, std::env::var("XCL_ADAPTER").ok().as_deref()); c.arg("shaders").arg(pack).args(["--precompile", "--only", "cs", "--pipelines", "--windows"]).arg(&win_arg); if used_only { c.arg("--used-only"); } c.env("XCL_PRECOMPILE_SLICE", format!("{i}/{workers}")); @@ -2357,7 +2383,7 @@ fn pipelines_in_workers(pack: &Path, windows: u32, workers: usize, records: usiz ComputeWorkersOutcome::NeedsRecovery(reason) => { crate::xlog_warn!("Shader preparation: {reason}; running single-worker recovery pass"); let (rec_cancelled, rec_failed, rec_summaries) = in_workers(1, records, progress, |_| { - let mut c = worker_command(&me); + let mut c = worker_command(&me, &progress.adapter, std::env::var("XCL_ADAPTER").ok().as_deref()); c.arg("shaders").arg(pack).args(["--precompile", "--only", "cs", "--pipelines", "--windows"]).arg(&win_arg); if used_only { c.arg("--used-only"); } c @@ -2380,11 +2406,12 @@ fn pipelines_in_workers(pack: &Path, windows: u32, workers: usize, records: usiz /// A preparation worker: this program, not a host and not a launcher's child, a builder that /// ends when this process does. -fn worker_command(me: &Path) -> std::process::Command { +fn worker_command(me: &Path, adapter: &str, override_adapter: Option<&str>) -> std::process::Command { use std::os::windows::process::CommandExt; const CREATE_NO_WINDOW: u32 = 0x0800_0000; let mut c = std::process::Command::new(me); - for gone in ["XCL_HOST", "XCL_PREPARATION_PARENT", "XCL_PREPARATION_MENU", "XCL_RUN_SECONDS"] { c.env_remove(gone); } + c.env("XCL_ADAPTER", override_adapter.filter(|v| !v.trim().is_empty()).unwrap_or(adapter)); + for gone in ["XCL_HOST", "XCL_PREPARATION_PARENT", "XCL_PREPARATION_MENU", "XCL_RUN_SECONDS", "XCL_PRECOMPILE_SLICE"] { c.env_remove(gone); } c.env("XCL_PRECOMPILE_PARENT", std::process::id().to_string()); if std::env::var_os("XCL_DXC_THREADS").is_none() { c.env("XCL_DXC_THREADS", "2"); } if std::env::var_os("XCL_PIPELINE_THREADS").is_none() { c.env("XCL_PIPELINE_THREADS", "1"); } @@ -2503,10 +2530,8 @@ fn graphics_in_workers(inputs: &[Input], windows: u32, workers: usize, progress: crate::xlog_info!("Shader preparation: the {} graphics pipelines earlier runs used, in {workers} worker processes", buildable.len()); progress.graphics.store(true, Ordering::Relaxed); let (cancelled, failed, summaries) = in_workers(workers, buildable.len(), progress, |i| { - let mut c = worker_command(&me); + let mut c = worker_command(&me, &progress.adapter, std::env::var("XCL_ADAPTER").ok().as_deref()); c.arg("shaders").arg(&jobs[i].0).args(["--graphics-records", "--windows"]).arg((windows & !recomp::HEAP_WINDOWS).to_string()); - // (the title's adapter: its blobs are the ones it takes) - if std::env::var_os("XCL_ADAPTER").is_none() && !progress.adapter.is_empty() { c.env("XCL_ADAPTER", &progress.adapter); } c }); progress.graphics.store(false, Ordering::Relaxed); @@ -3183,6 +3208,35 @@ fn print(path: &Path, what: &str, agg: Agg, top: usize, json: bool, t0: std::tim #[cfg(test)] mod tests { + /// Inspect worker commands without starting a process or changing the test environment. + #[test] + fn preparation_workers_keep_the_titles_adapter_and_environment_override() { + use std::ffi::OsStr; + for (configured, override_adapter, expected) in [ + ("warp", None, "warp"), + ("radeon", Some(""), "radeon"), + ("radeon", Some(" \t "), "radeon"), + ("warp", Some("rtx 3060"), "rtx 3060"), + ("warp", Some("auto"), "auto"), + ] { + let command = worker_command(Path::new("unused-xcl.exe"), configured, override_adapter); + let adapter = command.get_envs().find(|(key, _)| *key == OsStr::new("XCL_ADAPTER")).and_then(|(_, value)| value); + assert_eq!(adapter, Some(OsStr::new(expected))); + } + } + + #[test] + fn recovery_workers_clear_inherited_slices_and_sliced_workers_set_their_own() { + use std::ffi::OsStr; + let mut command = worker_command(Path::new("unused-xcl.exe"), "warp", None); + let slice = || OsStr::new("XCL_PRECOMPILE_SLICE"); + // A recovery worker gets the whole pack even if the launcher inherited a slice. + assert_eq!(command.get_envs().find(|(key, _)| *key == slice()), Some((slice(), None))); + // Normal compute workers replace that removal with their assigned slice. + command.env("XCL_PRECOMPILE_SLICE", "2/4"); + assert_eq!(command.get_envs().find(|(key, _)| *key == slice()), Some((slice(), Some(OsStr::new("2/4"))))); + } + /// The workers of a title's shader preparation: four logical processors are left free, /// 3 GB of commit for each, and one where there is no room. #[test] @@ -3235,6 +3289,7 @@ mod tests { // Killed worker or missing summary triggers recovery instead of silent success. assert!(matches!(evaluate_compute_workers(2, 1, &ok[..1]), ComputeWorkersOutcome::NeedsRecovery(_))); assert!(matches!(evaluate_compute_workers(2, 0, &ok[..1]), ComputeWorkersOutcome::NeedsRecovery(_))); + assert!(matches!(evaluate_compute_workers(2, 1, &ok), ComputeWorkersOutcome::NeedsRecovery(_))); // Non-zero refused/capped/errors/write_errors fail closed. for bad in [ @@ -3247,6 +3302,20 @@ mod tests { } } + #[test] + fn completed_compute_failures_report_the_cause_without_recovery() { + for (refused, capped, errors, writes) in [(1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)] { + let summary = format!("compute pipelines: 1 made, {refused} refused, 0 from_disk, 0 elsewhere, {capped} capped, {errors} errors, {writes} write_errors"); + let summaries = [summary]; + // precompile emits its summary before returning Err for any of these counts. + assert_eq!(evaluate_compute_workers(1, 1, &summaries), ComputeWorkersOutcome::Incomplete(format!( + "Shader preparation incomplete: {errors} record errors, {refused} refused pipelines, {capped} over size cap, {writes} driver cache write failures" + ))); + // A different worker with no summary still needs its unfinished slice recovered. + assert!(matches!(evaluate_compute_workers(2, 1, &summaries), ComputeWorkersOutcome::NeedsRecovery(_))); + } + } + /// A graphics record is built when every shader it names is found and they make its set's /// key (the key `used-pipelines.txt` has); one with a shader not in the title's files, or /// other shaders under its keys, is left out. ``` </details> AI use: Codex (GPT-6) prepared the repair and tests and verified the shared patch. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing, and comparing results.
Foniass commented 2026-12-01 08:46:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:46:57Z.


Triage (#1607) – head 8b113ee

Parts of this PR are now on main, adapted from it and credited: the delete-on-close .claim lock with ClaimAcquire::HeldElsewhere/Unavailable (9f6d8eb), InflightGuard/PipelineCacheIdentity (474ca3b) and the unwind-safe RunningPermit (733130a).
Not on main yet: the post-claim recheck of rejected or corrupt cached blobs (try_cached_pso), the compute pipelines: worker summary parsing, write_errors, and the single-worker recovery pass. The PR conflicts and needs a rebase that keeps only those parts.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305776933 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2712#issuecomment-7305776933). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:46:57Z. --- **Triage (#1607)** – head 8b113ee Parts of this PR are now on main, adapted from it and credited: the delete-on-close `.claim` lock with `ClaimAcquire::HeldElsewhere/Unavailable` (`9f6d8eb`), `InflightGuard`/`PipelineCacheIdentity` (`474ca3b`) and the unwind-safe `RunningPermit` (`733130a`). Not on main yet: the post-claim recheck of rejected or corrupt cached blobs (`try_cached_pso`), the `compute pipelines:` worker summary parsing, `write_errors`, and the single-worker recovery pass. The PR conflicts and needs a rebase that keeps only those parts. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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/2712:upstream-pr/2712'
git switch 'upstream-pr/2712'

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