startup: free xcrdapi COM objects at final Release and join its queue worker #2792

Merged
lambirou merged 3 commits from upstream-pr/2800 into main 2026-11-26 11:03:11 +00:00
lambirou commented 2026-11-26 10:48:57 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-26T10:48:57Z.


Change

The DirectStorage stand-in heap-allocates an Object, FileObject or QueueObject for every OpenFile, CreateStatusArray and CreateQueue, but release() only decrements the reference count. Files, status arrays and queues therefore leak for the life of the process. Queue entries also read the status array they complete and the file a request reads after the guest may have released them, and the queue worker keeps a raw self pointer and never exits.

This change frees every stand-in object at reference zero (the file handle, the status result buffer and the queue error event), keeps the process-wide factory singleton, and gives the queue a shutdown path: the final Release marks the worker stopping, joins it, and only then drops the entries that never ran. Entries retain the status array they complete and the source file of a request until consumed; deferred and discarded entries release both. A queue released from its own worker (a fence callback) hands the destruction to the worker as it exits.

Refs #2788.

Verification

Commits a7efbf82, 522afd71 and fdfa6495, rebased on 4989a6df (upstream main). Windows x64 Release, MSVC 19.44.35228, Ninja. No GPU adapter is needed.

. .\tools\dev.ps1
cmake --preset release
cmake --build out\build\release --target startup_stub_xcrdapi startup_xcrdapi_lifetime
ctest --preset release -R 'startup_xcrdapi_lifetime' --output-on-failure

Result: 2/2 passed, startup_xcrdapi_lifetime and startup_xcrdapi_lifetime_naive_control.

ctest --preset release -R 'startup_(storage_|dstorage_destination)' --output-on-failure

Result: 15/15 passed, including startup_storage_worker_start (36.9 s) and both startup_storage_refused_reuse controls.

Evidence and follow-up

The new fixture is source-built: it loads XCRDAPI.dll, drives the factory directly and uses only a temporary patterned file. No game data, dump or distribution asset is involved. It reads the fixture-only exports x2w_xcrdapi_live_objects and x2w_xcrdapi_live_workers, which count live objects by kind and running queue workers.

Negative controls: startup_xcrdapi_lifetime_naive_control sets X2W_TEST_XCRDAPI_LIFETIME_MUTANT=naive in the stand-in, which deletes at final Release without the worker stop or the entry references. It must fail on the retention check, and does.

Assumptions and gaps:

  • The shutdown protocol is exercised for a normal final Release from the caller and for a final Release issued from the queue's own worker (a fence callback releases the queue; the worker then frees it as it exits, without joining itself).
  • Queue::Close() (slot 8) still only logs; it does not wait for pending requests as the PC method does. That is unchanged here.
  • The naive mutant is a test hook inside the stand-in, following the existing X2W_TEST_* convention.

AI-assisted; the commands above were executed locally.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed. (Not needed: no contributor-facing capability or build step changed.)
  • I did not include game files, dumps, distribution links or secrets.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5508609804 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2800). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-26T10:48:57Z. --- ## Change The DirectStorage stand-in heap-allocates an Object, FileObject or QueueObject for every OpenFile, CreateStatusArray and CreateQueue, but release() only decrements the reference count. Files, status arrays and queues therefore leak for the life of the process. Queue entries also read the status array they complete and the file a request reads after the guest may have released them, and the queue worker keeps a raw self pointer and never exits. This change frees every stand-in object at reference zero (the file handle, the status result buffer and the queue error event), keeps the process-wide factory singleton, and gives the queue a shutdown path: the final Release marks the worker stopping, joins it, and only then drops the entries that never ran. Entries retain the status array they complete and the source file of a request until consumed; deferred and discarded entries release both. A queue released from its own worker (a fence callback) hands the destruction to the worker as it exits. Refs #2788. ## Verification Commits `a7efbf82`, `522afd71` and `fdfa6495`, rebased on `4989a6df` (upstream `main`). Windows x64 Release, MSVC 19.44.35228, Ninja. No GPU adapter is needed. ```powershell . .\tools\dev.ps1 cmake --preset release cmake --build out\build\release --target startup_stub_xcrdapi startup_xcrdapi_lifetime ctest --preset release -R 'startup_xcrdapi_lifetime' --output-on-failure ``` Result: `2/2` passed, `startup_xcrdapi_lifetime` and `startup_xcrdapi_lifetime_naive_control`. ```powershell ctest --preset release -R 'startup_(storage_|dstorage_destination)' --output-on-failure ``` Result: `15/15` passed, including `startup_storage_worker_start` (36.9 s) and both `startup_storage_refused_reuse` controls. ## Evidence and follow-up The new fixture is source-built: it loads `XCRDAPI.dll`, drives the factory directly and uses only a temporary patterned file. No game data, dump or distribution asset is involved. It reads the fixture-only exports `x2w_xcrdapi_live_objects` and `x2w_xcrdapi_live_workers`, which count live objects by kind and running queue workers. Negative controls: `startup_xcrdapi_lifetime_naive_control` sets `X2W_TEST_XCRDAPI_LIFETIME_MUTANT=naive` in the stand-in, which deletes at final Release without the worker stop or the entry references. It must fail on the retention check, and does. Assumptions and gaps: - The shutdown protocol is exercised for a normal final Release from the caller and for a final Release issued from the queue's own worker (a fence callback releases the queue; the worker then frees it as it exits, without joining itself). - `Queue::Close()` (slot 8) still only logs; it does not wait for pending requests as the PC method does. That is unchanged here. - The naive mutant is a test hook inside the stand-in, following the existing `X2W_TEST_*` convention. AI-assisted; the commands above were executed locally. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [ ] I updated README/docs when a capability or build requirement changed. (Not needed: no contributor-facing capability or build step changed.) - [x] I did not include game files, dumps, distribution links or secrets.
tedin7 commented 2026-11-26 10:52:26 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T10:52:26Z.

Review: COMMENTED


Review of head a7efbf82 (comment only, not a merge decision).

Result: the new test startup_xcrdapi_lifetime crashes on Windows. It is not flaky.

What I ran (Win2025 WARP, dev build, same result twice):

  • x2w_pipe.py win2025 2800 --regex 'startup_xcrdapi_lifetime|startup_storage_|startup_dstorage_destination'
  • rerun with --regex 'startup_xcrdapi_lifetime'
  • startup_xcrdapi_lifetime: ***Exception: SegFault both times (0.65 s, then 0.15 s).
  • The last stub log lines before the crash: Queue::EnqueueStatus (array "Pending", index 0), Queue::Submit, Queue::EnqueueRequest ... -> done, then two Queue::EnqueueSignal lines. The crash follows these, so it is in the pending-entry / final-Release path the test exercises (queue worker join, or the entry references on the status array and the source file).
  • startup_xcrdapi_lifetime_naive_control shows Passed, but it is WILL_FAIL. Until the main test runs cleanly, that pass does not prove the control fails on the retention check rather than on the same crash. Please check that the control fails for the intended reason.
  • The startup_storage_* tests in the same run passed (11 of 18 before the crash, no other failure).

What looks right from reading the code:

  • Delete at zero for file, status and queue; factory singleton kept.
  • Entries retain the status array and the source file; defer_unrecorded moves ownership to the node.
  • Worker stop plus join in shutdown_queue; hand-off when the last Release runs on the worker.

Small points:

  • git diff --check: new blank line at EOF in tests/startup_xcrdapi_lifetime.cpp:230.
  • Real-GPU run not available (RunPod stopped). This PR needs no GPU.

Not merged. Please look at the crash (a debug build of the fixture under the Windows debugger should show the frame) and push a fix.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6072830156 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2800#pullrequestreview-6072830156). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T10:52:26Z. **Review:** COMMENTED --- Review of head a7efbf82 (comment only, not a merge decision). Result: the new test `startup_xcrdapi_lifetime` crashes on Windows. It is not flaky. What I ran (Win2025 WARP, dev build, same result twice): - `x2w_pipe.py win2025 2800 --regex 'startup_xcrdapi_lifetime|startup_storage_|startup_dstorage_destination'` - rerun with `--regex 'startup_xcrdapi_lifetime'` - `startup_xcrdapi_lifetime`: `***Exception: SegFault` both times (0.65 s, then 0.15 s). - The last stub log lines before the crash: `Queue::EnqueueStatus` (array "Pending", index 0), `Queue::Submit`, `Queue::EnqueueRequest ... -> done`, then two `Queue::EnqueueSignal` lines. The crash follows these, so it is in the pending-entry / final-Release path the test exercises (queue worker join, or the entry references on the status array and the source file). - `startup_xcrdapi_lifetime_naive_control` shows Passed, but it is WILL_FAIL. Until the main test runs cleanly, that pass does not prove the control fails on the retention check rather than on the same crash. Please check that the control fails for the intended reason. - The `startup_storage_*` tests in the same run passed (11 of 18 before the crash, no other failure). What looks right from reading the code: - Delete at zero for file, status and queue; factory singleton kept. - Entries retain the status array and the source file; `defer_unrecorded` moves ownership to the node. - Worker stop plus join in `shutdown_queue`; hand-off when the last Release runs on the worker. Small points: - `git diff --check`: new blank line at EOF in `tests/startup_xcrdapi_lifetime.cpp:230`. - Real-GPU run not available (RunPod stopped). This PR needs no GPU. Not merged. Please look at the crash (a debug build of the fixture under the Windows debugger should show the frame) and push a fix. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 10:56:56 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T10:56:56Z.

Review: COMMENTED


Review of head 522afd71 (comment only).

The new commit only adds test code (+51 lines in tests/startup_xcrdapi_lifetime.cpp); src/ is unchanged since a7efbf82. The crash is still there.

Win2025 WARP dev, x2w_pipe.py win2025 2800 --regex 'startup_xcrdapi_lifetime|startup_storage_|startup_dstorage_destination':

  • startup_xcrdapi_lifetime: ***Exception: SegFault (0.19 s). Third crash in a row across two heads. Last stub log lines before it: Queue::EnqueueStatus (array "Pending"), Queue::Submit, Queue::EnqueueRequest -> done, Queue::EnqueueSignal value=0x100.
  • startup_xcrdapi_lifetime_naive_control shows Passed, but it is WILL_FAIL, so it may be passing only because the binary crashes. It needs to fail on the retention check.
  • startup_storage_directory_batch: Failed in this run (it passed in the earlier run on a7efbf82). I did not rerun it; please check whether it is flaky or related.
  • Release phase did not run (dev failed first).

Not merged. Please find the crash frame (debug build of the fixture) and fix it.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6072900534 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2800#pullrequestreview-6072900534). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T10:56:56Z. **Review:** COMMENTED --- Review of head 522afd71 (comment only). The new commit only adds test code (+51 lines in `tests/startup_xcrdapi_lifetime.cpp`); `src/` is unchanged since a7efbf82. The crash is still there. Win2025 WARP dev, `x2w_pipe.py win2025 2800 --regex 'startup_xcrdapi_lifetime|startup_storage_|startup_dstorage_destination'`: - `startup_xcrdapi_lifetime`: `***Exception: SegFault` (0.19 s). Third crash in a row across two heads. Last stub log lines before it: `Queue::EnqueueStatus` (array "Pending"), `Queue::Submit`, `Queue::EnqueueRequest -> done`, `Queue::EnqueueSignal value=0x100`. - `startup_xcrdapi_lifetime_naive_control` shows Passed, but it is WILL_FAIL, so it may be passing only because the binary crashes. It needs to fail on the retention check. - `startup_storage_directory_batch`: Failed in this run (it passed in the earlier run on a7efbf82). I did not rerun it; please check whether it is flaky or related. - Release phase did not run (dev failed first). Not merged. Please find the crash frame (debug build of the fixture) and fix it. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 11:02:41 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T11:02:41Z.

Review: COMMENTED


Review of head fdfa6495 (comment only).

The earlier SegFault was a bug in the test, not in the stub: the test read the status array after the guest had released its only reference. This head keeps the guest reference for the post-completion checks and releases it last. src/ is unchanged since a7efbf82.

Checked:

  • Win2025 WARP dev + release: 18/18 each (startup_xcrdapi_lifetime passes, startup_storage_directory_batch passes again; receipt in the next comment).
  • startup_xcrdapi_lifetime_naive_control (WILL_FAIL) passes in both builds, and the main test no longer crashes, so the control now fails on a real check, not on a crash.
  • Section C still covers the case where the guest releases the status array while an entry is pending.
  • PR CI: all required jobs green on this head. Branch is 1 commit behind main, no conflict.
  • Code read: delete at zero for file, status and queue; entries retain the status array and the source file; worker stop and join in the final Release; hand-off when it runs on the worker. No problem found.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6072984464 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2800#pullrequestreview-6072984464). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T11:02:41Z. **Review:** COMMENTED --- Review of head fdfa6495 (comment only). The earlier SegFault was a bug in the test, not in the stub: the test read the status array after the guest had released its only reference. This head keeps the guest reference for the post-completion checks and releases it last. `src/` is unchanged since a7efbf82. Checked: - Win2025 WARP dev + release: 18/18 each (`startup_xcrdapi_lifetime` passes, `startup_storage_directory_batch` passes again; receipt in the next comment). - `startup_xcrdapi_lifetime_naive_control` (WILL_FAIL) passes in both builds, and the main test no longer crashes, so the control now fails on a real check, not on a crash. - Section C still covers the case where the guest releases the status array while an entry is pending. - PR CI: all required jobs green on this head. Branch is 1 commit behind main, no conflict. - Code read: delete at zero for file, status and queue; entries retain the status array and the source file; worker stop and join in the final Release; hand-off when it runs on the worker. No problem found. AI-assisted; commands listed were executed locally.
lambirou commented 2026-11-26 11:03:02 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-26T10:58:32Z.


Fixed in fdfa6495. Thank you, the crash was real and your log pointed straight at it.

Root cause. The fixture released its only reference on the status array before Submit, then read IsComplete/GetHResult after the barrier. By then the status entry had consumed its own reference, so the array was already freed; the release build read the stale vtable by luck, the debug heap faulted. This was a test bug, not a stand-in bug: the new startup_xcrdapi_lifetime was the only test that used the array after dropping its reference.

Fix. The guest's status reference now stays until the result has been read, then it is released and the live counter checked. The retention proof for both the status array and the file stays in the unsubmitted-entry section, which releases both while the entries are pending.

Evidence.

  • Reproduced your failure with the previous test in a local debug build: exit 0xC0000005 right after the two Queue::EnqueueSignal lines.
  • Fixed fixture: 20 consecutive runs in the debug build and 25 in the release build, all clean.
  • startup_xcrdapi_lifetime_naive_control still exits 1 and names the intended check: FAIL: a file referenced by a pending entry was freed by the guest's Release.
  • git show --check is clean; the trailing blank line at EOF is gone.

Could you rerun x2w_pipe.py win2025 2800 --regex 'startup_xcrdapi_lifetime|startup_storage_|startup_dstorage_destination' on fdfa6495?

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7190090022 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2800#issuecomment-7190090022). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-26T10:58:32Z. --- Fixed in `fdfa6495`. Thank you, the crash was real and your log pointed straight at it. **Root cause.** The fixture released its only reference on the status array before `Submit`, then read `IsComplete`/`GetHResult` after the barrier. By then the status entry had consumed its own reference, so the array was already freed; the release build read the stale vtable by luck, the debug heap faulted. This was a test bug, not a stand-in bug: the new `startup_xcrdapi_lifetime` was the only test that used the array after dropping its reference. **Fix.** The guest's status reference now stays until the result has been read, then it is released and the live counter checked. The retention proof for both the status array and the file stays in the unsubmitted-entry section, which releases both while the entries are pending. **Evidence.** - Reproduced your failure with the previous test in a local debug build: exit `0xC0000005` right after the two `Queue::EnqueueSignal` lines. - Fixed fixture: 20 consecutive runs in the debug build and 25 in the release build, all clean. - `startup_xcrdapi_lifetime_naive_control` still exits 1 and names the intended check: `FAIL: a file referenced by a pending entry was freed by the guest's Release`. - `git show --check` is clean; the trailing blank line at EOF is gone. Could you rerun `x2w_pipe.py win2025 2800 --regex 'startup_xcrdapi_lifetime|startup_storage_|startup_dstorage_destination'` on `fdfa6495`?
lambirou commented 2026-11-26 11:03:02 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-26T11:01:32Z.


Both reviews were on a7efbf82 / 522afd71; the crash fix is in fdfa6495, and the head now has all three checks green.

On startup_storage_directory_batch: it does not reproduce here. I built startup_stub_consumer from the same tree and ran the Python fixture directly, five times:

$py = 'out\pe-env\Scripts\python.exe'
1..5 | ForEach-Object { & $py -B tests\startup_storage_directory_batch.py out\build\release\startup_stub_consumer.exe }
# 5 / 5 exit 0

The test does not touch the objects this PR changes (it drives one 3,585-page RDS5 batch through the consumer), and its only edit in this branch is unrelated. I would treat the single failure as a timeout/flake until it reproduces; its CTest timeout is 30 s for that page count.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7190159547 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2800#issuecomment-7190159547). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-26T11:01:32Z. --- Both reviews were on `a7efbf82` / `522afd71`; the crash fix is in `fdfa6495`, and the head now has all three checks green. On `startup_storage_directory_batch`: it does not reproduce here. I built `startup_stub_consumer` from the same tree and ran the Python fixture directly, five times: ```powershell $py = 'out\pe-env\Scripts\python.exe' 1..5 | ForEach-Object { & $py -B tests\startup_storage_directory_batch.py out\build\release\startup_stub_consumer.exe } # 5 / 5 exit 0 ``` The test does not touch the objects this PR changes (it drives one 3,585-page RDS5 batch through the consumer), and its only edit in this branch is unrelated. I would treat the single failure as a timeout/flake until it reproduces; its CTest timeout is 30 s for that page count.
tedin7 commented 2026-11-26 11:03:02 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T11:02:42Z.


Win2025 WARP receipt for head fdfa6495 (tests run: startup_xcrdapi_lifetime, startup_xcrdapi_lifetime_naive_control and the startup_storage_* / startup_dstorage_destination siblings).

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit fdfa6495307cc83011e82f48a364500273b277a2:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target startup_stub_xcrdapi startup_xcrdapi_lifetime -- -j 2): 1.91s (configure 1.87s)
    • Test (ctest --preset dev -R 'startup_xcrdapi_lifetime|startup_storage_|startup_dstorage_destination' --parallel 6 --no-tests=error --output-on-failure): 18/18 passed (37.38s: startup_storage_refused_reuse 0.04s, startup_storage_consumer_pair_accept_refused_control 0.07s, startup_storage_consumer_pair 0.06s, startup_storage_failure_counts_one_bucket_control 0.05s, startup_storage_alloc_failure 0.15s, startup_storage_refused_reuse_accept_refused_control 0.03s, startup_storage_refusal_order 0.04s, startup_storage_failure_counts 0.04s, startup_dstorage_destination 0.21s, startup_storage_root 0.01s, startup_storage_page_end_counts 0.04s, startup_storage_page_end_counts_one_bucket_control 0.03s, startup_storage_root_separator_control 0.03s, startup_storage_file_range 0.03s, startup_xcrdapi_lifetime_naive_control 0.02s, startup_xcrdapi_lifetime 0.05s, startup_storage_directory_batch 0.32s, startup_storage_worker_start 37.21s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target startup_stub_xcrdapi startup_xcrdapi_lifetime -- -j 2): 37.39s (configure 1.88s)
    • Test (ctest --preset release -R 'startup_xcrdapi_lifetime|startup_storage_|startup_dstorage_destination' --parallel 6 --no-tests=error --output-on-failure): 18/18 passed (37.32s: startup_storage_refused_reuse_accept_refused_control 0.04s, startup_storage_consumer_pair 0.06s, startup_storage_consumer_pair_accept_refused_control 0.04s, startup_storage_page_end_counts 0.04s, startup_storage_failure_counts 0.03s, startup_storage_alloc_failure 0.14s, startup_storage_refused_reuse 0.04s, startup_storage_page_end_counts_one_bucket_control 0.03s, startup_storage_failure_counts_one_bucket_control 0.03s, startup_storage_refusal_order 0.05s, startup_dstorage_destination 0.20s, startup_storage_root 0.03s, startup_storage_file_range 0.02s, startup_storage_root_separator_control 0.02s, startup_storage_directory_batch 0.23s, startup_xcrdapi_lifetime_naive_control 0.01s, startup_xcrdapi_lifetime 0.04s, startup_storage_worker_start 37.17s)
  • sccache: 0/4 hits; wall 85.5s

Real-GPU run not available (RunPod stopped); this PR needs no GPU.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7190187221 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2800#issuecomment-7190187221). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T11:02:42Z. --- Win2025 WARP receipt for head fdfa6495 (tests run: startup_xcrdapi_lifetime, startup_xcrdapi_lifetime_naive_control and the startup_storage_* / startup_dstorage_destination siblings). Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `fdfa6495307cc83011e82f48a364500273b277a2`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target startup_stub_xcrdapi startup_xcrdapi_lifetime -- -j 2`): `1.91s` (configure `1.87s`) - Test (`ctest --preset dev -R 'startup_xcrdapi_lifetime|startup_storage_|startup_dstorage_destination' --parallel 6 --no-tests=error --output-on-failure`): **18/18 passed** (`37.38s`: `startup_storage_refused_reuse` `0.04s`, `startup_storage_consumer_pair_accept_refused_control` `0.07s`, `startup_storage_consumer_pair` `0.06s`, `startup_storage_failure_counts_one_bucket_control` `0.05s`, `startup_storage_alloc_failure` `0.15s`, `startup_storage_refused_reuse_accept_refused_control` `0.03s`, `startup_storage_refusal_order` `0.04s`, `startup_storage_failure_counts` `0.04s`, `startup_dstorage_destination` `0.21s`, `startup_storage_root` `0.01s`, `startup_storage_page_end_counts` `0.04s`, `startup_storage_page_end_counts_one_bucket_control` `0.03s`, `startup_storage_root_separator_control` `0.03s`, `startup_storage_file_range` `0.03s`, `startup_xcrdapi_lifetime_naive_control` `0.02s`, `startup_xcrdapi_lifetime` `0.05s`, `startup_storage_directory_batch` `0.32s`, `startup_storage_worker_start` `37.21s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target startup_stub_xcrdapi startup_xcrdapi_lifetime -- -j 2`): `37.39s` (configure `1.88s`) - Test (`ctest --preset release -R 'startup_xcrdapi_lifetime|startup_storage_|startup_dstorage_destination' --parallel 6 --no-tests=error --output-on-failure`): **18/18 passed** (`37.32s`: `startup_storage_refused_reuse_accept_refused_control` `0.04s`, `startup_storage_consumer_pair` `0.06s`, `startup_storage_consumer_pair_accept_refused_control` `0.04s`, `startup_storage_page_end_counts` `0.04s`, `startup_storage_failure_counts` `0.03s`, `startup_storage_alloc_failure` `0.14s`, `startup_storage_refused_reuse` `0.04s`, `startup_storage_page_end_counts_one_bucket_control` `0.03s`, `startup_storage_failure_counts_one_bucket_control` `0.03s`, `startup_storage_refusal_order` `0.05s`, `startup_dstorage_destination` `0.20s`, `startup_storage_root` `0.03s`, `startup_storage_file_range` `0.02s`, `startup_storage_root_separator_control` `0.02s`, `startup_storage_directory_batch` `0.23s`, `startup_xcrdapi_lifetime_naive_control` `0.01s`, `startup_xcrdapi_lifetime` `0.04s`, `startup_storage_worker_start` `37.17s`) - `sccache`: 0/4 hits; wall `85.5s` Real-GPU run not available (RunPod stopped); this PR needs no GPU. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-26 12:04:42 +00:00
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
R0Y00/Xbox2Windows!2792
No description provided.