DirectStorage: complete work when a queue worker cannot start #2492

Open
jeroenhaentjens wants to merge 1 commit from upstream-pr/2502 into main
jeroenhaentjens commented 2026-11-25 20:54:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jeroenhaentjens on 2026-11-25T20:54:55Z.


When Windows cannot start a DirectStorage queue worker, Submit drops its batch, leaving status slots pending and losing fence notifications. This change records a permanent worker-start failure separately from Close: accepted requests fail without executing reads, status entries receive the first error in their interval, and fences complete in order. Later submissions use the same failure path instead of silently disappearing.

What is in it

  • dstorage.rs: one failure drainer preserves FIFO order and status intervals across submissions. Re-entrant submissions queue behind it. See the known Submit-boundary issue below. Notification callbacks run outside queue locks with an owned queue reference, and concurrent Close waits for retirement.
  • Three deterministic tests cover Windows error translation, cancellation, error events, later submissions, interval errors after error-record retrieval, fence ownership, re-entrant submission/final COM release, and concurrent enqueue/close.
  • README documents the failed-but-open queue lifetime. Addresses Oliwettoo's review.

Tested

  • Windows 11 Pro (26200), Intel i7-9750H / 32 GB, NVIDIA Quadro RTX 3000 6 GB (597.06), Rust 1.100.0 MSVC, DXC 1.9.2609.5; debug/unoptimized, incremental and debug info disabled, XCL_ADAPTER=nvidia.
  • Clean committed head ca341274fd526c87c864731bd37868df1a17a350, rebased onto main e1d84b7d9153f86a97d2ec5d209d196046fc0bea: cargo build --workspace --locked succeeded; cargo test --workspace --locked --no-fail-fast -- --test-threads=4 exited 0: 1,426 reported passes, 0 failures, 46 ignored across 37 completed suites.
  • The full run emitted 29 SKIPPED records: 21 unavailable native-wave64 cases; 3 refused per-lane FP16/conversion cases; 1 driver-cache-control case; 2 title/debug-layer cases; 1 unavailable heap-window case; 1 texture-state/debug-layer case. Reported passes include skipped cases; these are not coverage. Unset game sample inputs are not game coverage either.
  • During iteration, cargo test --locked -p xcl --lib hle::dstorage:: -- --test-threads=4 --nocapture: 34 passed, 0 failed / ignored / explicit skips. All 34 also passed in the clean-head full run.
  • Review negative control: on published 6950978, the revised later-submission regression (cargo test --locked -p xcl --lib a_failed_worker_start_completes_requests_statuses_and_fences -- --test-threads=4 --nocapture) failed: a later enqueued status returned S_OK instead of E_PENDING. The fixed test verifies the eventual failure HRESULT and fence 99 completion. The original main negative control also failed with an initially submitted status left incomplete.
  • git diff --check passed. Two independent subagents reviewed FIFO/Submit boundaries, queue lifetime, and concurrent Close ordering.

Regression run
Paired release builds from clean commits, run on AC power on the same Windows 11 Pro machine and Quadro RTX 3000 (driver 597.06). Both runs used the same retail title, 60 seconds, input schedule (15:A,35:A), XCL_ADAPTER=nvidia, XCL_NETWORK=0, and separate initially empty XCL shader caches. Windows reported AC power before and after both runs. The PR retained 87.8% of main's frames and used 100.04% of main's peak process commit. Both exited normally with no crash or device removal.

Main:

xcl-smoke v1
commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea
gpu: NVIDIA Quadro RTX 3000
title: 0ba91dcb
seconds: 60
exit: 0x0
frames shown: 262 (PresentX 263)
presents per 2 s (last 3): 13 12 13
device removals: 0
crashes: 0
peak commit: 14674 MB

PR head:

xcl-smoke v1
commit: ca341274fd526c87c864731bd37868df1a17a350
gpu: NVIDIA Quadro RTX 3000
title: 0ba91dcb
seconds: 60
exit: 0x0
frames shown: 230 (PresentX 230)
presents per 2 s (last 3): 15 15 13
device removals: 0
crashes: 0
peak commit: 14680 MB

Not tested

  • The retail run did not exercise a worker startup failure. The regression tests inject failures through the same error branch used by thread::Builder::spawn. No AMD adapter or real OS resource exhaustion was tested.
  • Known blocker on this head: the review reproduced a Submit-boundary race. A status and fence enqueued while the first worker is starting can complete before their own Submit if that worker fails to start. The PR remains draft pending a fix and fresh tests.
  • This is not evidence that worker startup caused any reported retail world-load stall. Worker/channel failure after successful startup and Close re-entered from its own notification callback are outside this change.

AI use

  • OpenAI Codex, GPT-6 (exact deployment variant unavailable), with subagents: wrote the fix and tests, reviewed concurrency/lifetime handling, and ran the reported checks.
  • OpenAI Codex (gpt-6.2-sol) ran the retail comparisons and recorded the results above.
<!-- greyfinch-sync:ivall/xcl:issue:5499019262 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2502). Originally posted by [jeroenhaentjens](https://github.com/jeroenhaentjens) on 2026-11-25T20:54:55Z. --- When Windows cannot start a DirectStorage queue worker, `Submit` drops its batch, leaving status slots pending and losing fence notifications. This change records a permanent worker-start failure separately from `Close`: accepted requests fail without executing reads, status entries receive the first error in their interval, and fences complete in order. Later submissions use the same failure path instead of silently disappearing. **What is in it** - `dstorage.rs`: one failure drainer preserves FIFO order and status intervals across submissions. Re-entrant submissions queue behind it. See the known Submit-boundary issue below. Notification callbacks run outside queue locks with an owned queue reference, and concurrent `Close` waits for retirement. - Three deterministic tests cover Windows error translation, cancellation, error events, later submissions, interval errors after error-record retrieval, fence ownership, re-entrant submission/final COM release, and concurrent enqueue/close. - README documents the failed-but-open queue lifetime. Addresses [Oliwettoo's review](https://github.com/xcl-dev/xcl/pull/2502#issuecomment-7176387281). **Tested** - Windows 11 Pro (26200), Intel i7-9750H / 32 GB, NVIDIA Quadro RTX 3000 6 GB (597.06), Rust 1.100.0 MSVC, DXC 1.9.2609.5; debug/unoptimized, incremental and debug info disabled, `XCL_ADAPTER=nvidia`. - Clean committed head `ca341274fd526c87c864731bd37868df1a17a350`, rebased onto main `e1d84b7d9153f86a97d2ec5d209d196046fc0bea`: `cargo build --workspace --locked` succeeded; `cargo test --workspace --locked --no-fail-fast -- --test-threads=4` exited 0: 1,426 reported passes, 0 failures, 46 ignored across 37 completed suites. - The full run emitted 29 `SKIPPED` records: 21 unavailable native-wave64 cases; 3 refused per-lane FP16/conversion cases; 1 driver-cache-control case; 2 title/debug-layer cases; 1 unavailable heap-window case; 1 texture-state/debug-layer case. Reported passes include skipped cases; these are not coverage. Unset game sample inputs are not game coverage either. - During iteration, `cargo test --locked -p xcl --lib hle::dstorage:: -- --test-threads=4 --nocapture`: 34 passed, 0 failed / ignored / explicit skips. All 34 also passed in the clean-head full run. - Review negative control: on published `6950978`, the revised later-submission regression (`cargo test --locked -p xcl --lib a_failed_worker_start_completes_requests_statuses_and_fences -- --test-threads=4 --nocapture`) failed: a later enqueued status returned `S_OK` instead of `E_PENDING`. The fixed test verifies the eventual failure HRESULT and fence 99 completion. The original main negative control also failed with an initially submitted status left incomplete. - `git diff --check` passed. Two independent subagents reviewed FIFO/Submit boundaries, queue lifetime, and concurrent Close ordering. **Regression run** Paired release builds from clean commits, run on AC power on the same Windows 11 Pro machine and Quadro RTX 3000 (driver 597.06). Both runs used the same retail title, 60 seconds, input schedule (`15:A,35:A`), `XCL_ADAPTER=nvidia`, `XCL_NETWORK=0`, and separate initially empty XCL shader caches. Windows reported AC power before and after both runs. The PR retained 87.8% of main's frames and used 100.04% of main's peak process commit. Both exited normally with no crash or device removal. Main: ``` xcl-smoke v1 commit: e1d84b7d9153f86a97d2ec5d209d196046fc0bea gpu: NVIDIA Quadro RTX 3000 title: 0ba91dcb seconds: 60 exit: 0x0 frames shown: 262 (PresentX 263) presents per 2 s (last 3): 13 12 13 device removals: 0 crashes: 0 peak commit: 14674 MB ``` PR head: ``` xcl-smoke v1 commit: ca341274fd526c87c864731bd37868df1a17a350 gpu: NVIDIA Quadro RTX 3000 title: 0ba91dcb seconds: 60 exit: 0x0 frames shown: 230 (PresentX 230) presents per 2 s (last 3): 15 15 13 device removals: 0 crashes: 0 peak commit: 14680 MB ``` **Not tested** - The retail run did not exercise a worker startup failure. The regression tests inject failures through the same error branch used by `thread::Builder::spawn`. No AMD adapter or real OS resource exhaustion was tested. - Known blocker on this head: [the review reproduced a Submit-boundary race](https://github.com/xcl-dev/xcl/pull/2502#issuecomment-7188110737). A status and fence enqueued while the first worker is starting can complete before their own Submit if that worker fails to start. The PR remains draft pending a fix and fresh tests. - This is not evidence that worker startup caused any reported retail world-load stall. Worker/channel failure after successful startup and `Close` re-entered from its own notification callback are outside this change. **AI use** - OpenAI Codex, GPT-6 (exact deployment variant unavailable), with subagents: wrote the fix and tests, reviewed concurrency/lifetime handling, and ran the reported checks. - OpenAI Codex (gpt-6.2-sol) ran the retail comparisons and recorded the results above.
SlopTart commented 2026-11-25 22:06:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T21:08:19Z.


First cold-cache gpu_ suite run: 163 passed / 4 failed, the trio plus gpu_geometry_wave32_prefix_count_over_a_mask. Second run, same head: 164 passed / 3 failed (baseline trio only). Solo run of the wave32 test on this head: passed. That test is this lane's known flaky family, unrelated to DirectStorage; recording it so nobody chases it here. The new worker-start-failure tests run inside the DirectStorage module and are not part of the gpu_ filter; the suite shows this PR moves nothing GPU-side.

<!-- greyfinch-sync:ivall/xcl:comment:7174662314 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2502#issuecomment-7174662314). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T21:08:19Z. --- First cold-cache `gpu_` suite run: `163 passed / 4 failed`, the trio plus `gpu_geometry_wave32_prefix_count_over_a_mask`. Second run, same head: `164 passed / 3 failed` (baseline trio only). Solo run of the wave32 test on this head: passed. That test is this lane's known flaky family, unrelated to DirectStorage; recording it so nobody chases it here. The new worker-start-failure tests run inside the DirectStorage module and are not part of the `gpu_` filter; the suite shows this PR moves nothing GPU-side.
DavidM1911 commented 2026-11-25 22:06:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T21:14:06Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7174794659 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2502#issuecomment-7174794659). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T21:14:06Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Oliwettoo commented 2026-11-25 23:09:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Oliwettoo on 2026-11-25T22:27:33Z.


Review on 6950978 (read from the diff, not run). Failing the pending batch is right, but it reuses closed, which so far only the title's own Close set. After a failed start the title still holds an open queue, and every later Enqueue* returns silently (enqueue, queue_enqueue_status and queue_enqueue_signal all check closed first):

  • A status slot enqueued later is never set to E_PENDING or completed. A fresh one keeps reading S_OK; the test asserts status_get_hresult(s, 5) == S_OK for work that never ran. The title sees success and reads a destination that was never written.
  • A fence enqueued later (99 in the test) is never signalled, so a title waiting on it hangs.

Suggestion: a separate "worker failed (hr)" state, in which later entries go straight through fail_unstarted (requests fail with hr, status slots complete with it, fences are signalled), instead of being dropped.

<!-- greyfinch-sync:ivall/xcl:comment:7176387281 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2502#issuecomment-7176387281). Originally posted by [Oliwettoo](https://github.com/Oliwettoo) on 2026-11-25T22:27:33Z. --- Review on 6950978 (read from the diff, not run). Failing the pending batch is right, but it reuses `closed`, which so far only the title's own `Close` set. After a failed start the title still holds an open queue, and every later `Enqueue*` returns silently (`enqueue`, `queue_enqueue_status` and `queue_enqueue_signal` all check `closed` first): - A status slot enqueued later is never set to `E_PENDING` or completed. A fresh one keeps reading `S_OK`; the test asserts `status_get_hresult(s, 5) == S_OK` for work that never ran. The title sees success and reads a destination that was never written. - A fence enqueued later (`99` in the test) is never signalled, so a title waiting on it hangs. Suggestion: a separate "worker failed (hr)" state, in which later entries go straight through `fail_unstarted` (requests fail with `hr`, status slots complete with it, fences are signalled), instead of being dropped.
jeroenhaentjens commented 2026-11-25 23:09:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jeroenhaentjens on 2026-11-25T23:07:23Z.


@Oliwettoo Confirmed, thanks. The revised regression fails on 6950978: the later status still reads S_OK rather than becoming pending. That assertion in my original test was incorrect.

Fixed and squashed in ca341274fd526c87c864731bd37868df1a17a350. Worker-start failure now has its own state; closed is reserved for Close. Later requests fail with the stored HRESULT, status intervals preserve their first error across submissions, and fence 99 is signalled. Normal enqueue/Submit boundaries are retained. A single drainer handles concurrent/re-entrant submissions in FIFO order outside queue locks, including a callback that releases the final queue COM reference.

On the clean revised head, the full Windows/Quadro RTX 3000 build and workspace suite passed: 1,426 reported passes, 0 failures, 46 ignored, 29 explicit SKIPPED records (not coverage). All 34 DirectStorage tests passed. Hardware, exact commands, negative control and limitations are in the updated description. Still draft pending the paired retail smoke runs.

AI assistance: OpenAI Codex, GPT-6 (exact deployment variant unavailable), including two independent subagent reviews.

<!-- greyfinch-sync:ivall/xcl:comment:7177172247 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2502#issuecomment-7177172247). Originally posted by [jeroenhaentjens](https://github.com/jeroenhaentjens) on 2026-11-25T23:07:23Z. --- @Oliwettoo Confirmed, thanks. The revised regression fails on `6950978`: the later status still reads `S_OK` rather than becoming pending. That assertion in my original test was incorrect. Fixed and squashed in `ca341274fd526c87c864731bd37868df1a17a350`. Worker-start failure now has its own state; `closed` is reserved for `Close`. Later requests fail with the stored HRESULT, status intervals preserve their first error across submissions, and fence 99 is signalled. Normal enqueue/Submit boundaries are retained. A single drainer handles concurrent/re-entrant submissions in FIFO order outside queue locks, including a callback that releases the final queue COM reference. On the clean revised head, the full Windows/Quadro RTX 3000 build and workspace suite passed: 1,426 reported passes, 0 failures, 46 ignored, 29 explicit SKIPPED records (not coverage). All 34 DirectStorage tests passed. Hardware, exact commands, negative control and limitations are in the updated description. Still draft pending the paired retail smoke runs. AI assistance: OpenAI Codex, GPT-6 (exact deployment variant unavailable), including two independent subagent reviews.
DavidM1911 commented 2026-11-26 02:08:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T01:36:38Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7179945609 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2502#issuecomment-7179945609). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T01:36:38Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
luckyteagirl commented 2026-11-26 09:18:26 +00:00 (Migrated from github.com)

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

Review: COMMENTED


On ca341274, the worker-start failure path appends all current pending.entries to the batch that the first Submit already took. An enqueue on another thread can therefore cross that Submit boundary: thread A takes batch A and blocks in start_worker; thread B enqueues a status and fence below the auto-submit threshold, without calling Submit; then startup fails, and A's batch.append pulls B's entries into fail_unstarted. The status completes and the fence signals even though B's batch was never submitted. The queue's pending lock protects each operation but does not make B's enqueue part of A's earlier Submit.

The IDStorageQueueX contract holds entries until Submit or auto-submit; the revised PR discussion also says normal enqueue/Submit boundaries are retained. Could the startup failure retire only the batch already taken, leaving later pending entries for their own submission (and the failed-worker state to retire them then)? The existing worker_start test seam can pause A, enqueue B's status/fence, fail startup, and assert B stays pending/unsignaled until a second Submit. This is exact-head source review; I did not run that concurrent fixture.

<!-- greyfinch-sync:ivall/xcl:review:6071394320 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2502#pullrequestreview-6071394320). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T09:18:26Z. **Review:** COMMENTED --- On `ca341274`, the worker-start failure path appends *all current `pending.entries`* to the batch that the first `Submit` already took. An enqueue on another thread can therefore cross that Submit boundary: thread A takes batch A and blocks in `start_worker`; thread B enqueues a status and fence below the auto-submit threshold, without calling `Submit`; then startup fails, and A's `batch.append` pulls B's entries into `fail_unstarted`. The status completes and the fence signals even though B's batch was never submitted. The queue's pending lock protects each operation but does not make B's enqueue part of A's earlier Submit. The [IDStorageQueueX contract](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/dstorage/interfaces/idstoragequeuex/idstoragequeuex?view=gdk-2604) holds entries until `Submit` or auto-submit; the revised PR discussion also says normal enqueue/Submit boundaries are retained. Could the startup failure retire only the batch already taken, leaving later pending entries for their own submission (and the failed-worker state to retire them then)? The existing `worker_start` test seam can pause A, enqueue B's status/fence, fail startup, and assert B stays pending/unsignaled until a second Submit. This is exact-head source review; I did not run that concurrent fixture.
luckyteagirl commented 2026-11-26 10:06:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T09:31:42Z.


I reproduced the Submit-boundary race on exact head ca341274fd526c87c864731bd37868df1a17a350 using a local, test-only 39-line fixture (no production edits).

The fixture pauses thread A's first Submit in the existing worker_start hook, after it has taken its batch. Thread B then enqueues a status and mock-fence signal below the auto-submit threshold, without submitting them. The hook returns a forced worker-start error. Before B's later Submit, the status was already S_OK and the fence had signaled 99; expected E_PENDING and 0. This directly exercises the batch.append(&mut pending.entries) path discussed in my review above.

Tested — Windows 11 x64, CPU-only fixture (XCL_ADAPTER=NONE_CPU_ONLY), no D3D12 device:

cargo test --offline --locked -p xcl --lib --target-dir ../target-sol4-pr2502-submit-boundary -j 2 failed_start_does_not_retire_entries_enqueued_after_submit -- --test-threads=1 --nocapture

The rerun exited 101: 0 passed, 1 failed, 0 ignored, 1,327 filtered out; the focused test took 0.02 s. The observed/expected assertion was (S_OK, 99) vs (E_PENDING, 0). A subsequent explicit Submit is part of the fixture's control path, but the assertion checks the state before it. The exact PR code was otherwise unchanged.

Not tested: a game, GPU workload, full workspace suite, or a candidate fix. The worker error and fence are synthetic.

AI use: OpenAI Codex (GPT-6.2 Sol) wrote and ran the local fixture and drafted this report; OpenAI Codex (GPT-6.2 Astra) checked the test flow and results before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7188110737 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2502#issuecomment-7188110737). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T09:31:42Z. --- I reproduced the Submit-boundary race on exact head `ca341274fd526c87c864731bd37868df1a17a350` using a local, test-only 39-line fixture (no production edits). The fixture pauses thread A's first `Submit` in the existing `worker_start` hook, after it has taken its batch. Thread B then enqueues a status and mock-fence signal below the auto-submit threshold, without submitting them. The hook returns a forced worker-start error. **Before B's later `Submit`, the status was already `S_OK` and the fence had signaled 99; expected `E_PENDING` and 0.** This directly exercises the `batch.append(&mut pending.entries)` path discussed in my review above. **Tested** — Windows 11 x64, CPU-only fixture (`XCL_ADAPTER=NONE_CPU_ONLY`), no D3D12 device: ```powershell cargo test --offline --locked -p xcl --lib --target-dir ../target-sol4-pr2502-submit-boundary -j 2 failed_start_does_not_retire_entries_enqueued_after_submit -- --test-threads=1 --nocapture ``` The rerun exited 101: **0 passed, 1 failed, 0 ignored, 1,327 filtered out**; the focused test took 0.02 s. The observed/expected assertion was `(S_OK, 99)` vs `(E_PENDING, 0)`. A subsequent explicit `Submit` is part of the fixture's control path, but the assertion checks the state *before* it. The exact PR code was otherwise unchanged. **Not tested:** a game, GPU workload, full workspace suite, or a candidate fix. The worker error and fence are synthetic. **AI use:** OpenAI Codex (GPT-6.2 Sol) wrote and ran the local fixture and drafted this report; OpenAI Codex (GPT-6.2 Astra) checked the test flow and results before posting.
github-actions[bot] commented 2026-12-01 02:36:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:36:03Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7298791307 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2502#issuecomment-7298791307). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:36:03Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 08:12:41 +00:00 (Migrated from github.com)

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


Triage (#1607) – head ca34127

No open or merged PR makes the same change. On main, QueueInner::submit still just drops the batch when the xcl-dstorage thread cannot be spawned, so its statuses and fences never complete. This PR fails them in FIFO order through fail_unstarted.
No problems found in the diff. The re-entrant Submit and the Close-while-draining paths have their own tests.
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:7305018613 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2502#issuecomment-7305018613). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:12:41Z. --- **Triage (#1607)** – head ca34127 No open or merged PR makes the same change. On main, `QueueInner::submit` still just drops the batch when the `xcl-dstorage` thread cannot be spawned, so its statuses and fences never complete. This PR fails them in FIFO order through `fail_unstarted`. No problems found in the diff. The re-entrant Submit and the Close-while-draining paths have their own tests. 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/2502:upstream-pr/2502'
git switch 'upstream-pr/2502'

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