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

Manually merged
github merged 3 commits from gh-pr/2800/head into gh-pr/2800/base 2026-11-27 01:23:30 +00:00
Owner

@⁠lambirou on GitHub · 2026-11-26 10:48 UTC · original
lambirou:startup/xcrdapi-object-lifetime → main · +503 −10 · 4 files · 3 commits · merged 2026-11-26 11:03 UTC

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.
**@⁠lambirou** on GitHub · 2026-11-26 10:48 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2800) `lambirou:startup/xcrdapi-object-lifetime` → `main` · +503 −10 · 4 files · 3 commits · merged 2026-11-26 11:03 UTC ## 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.
The DirectStorage stand-in heap-allocates every Object/FileObject/QueueObject and release() only
decremented the reference count: files, status arrays and queues leaked for the life of the process,
the queue worker kept a raw self pointer and never exited, and entries used the status array they
complete and the file a request reads without holding a reference.

release() now frees a file (and its handle), a status array (and its result buffer) and a queue at
reference zero; the process-wide factory singleton is kept. A queue's final Release stops its
worker, waits for the thread and only then drops the entries that never ran, so the worker cannot
outlive the object. Queue entries retain the status array they complete and the file a request
reads until they are 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.

Fixture-only exports x2w_xcrdapi_live_objects and x2w_xcrdapi_live_workers let the new
startup_xcrdapi_lifetime CTest prove the release, the retention and the join without a GPU. Its
control sets X2W_TEST_XCRDAPI_LIFETIME_MUTANT=naive, which deletes at zero without either guarantee,
and must fail.

Refs #2788
The shutdown path hands destruction to the worker when the last external reference is released from
a fence callback the worker itself runs. The fixture now drives that case: a request, a status entry
and a signal are submitted, the signal releases the queue, and the live counters must then reach
zero without the worker joining itself.

Refs #2788
The fixture released its only reference on the status array before Submit and then read the array
after completion. By then the status entry had consumed its own reference, so the array was already
freed: a release build read the old vtable by luck, while a debug build faults. The guest reference
now stays until the result has been read and is released after the checks; 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.

Reproduced the crash with the previous test in a debug build (0xC0000005 after the two EnqueueSignal
lines), then ran the fixed fixture 20 times in debug and 25 times in release. The naive control still
fails on the pending-file retention check.

Refs #2788
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:23:29 +00:00
github manually merged commit fdfa649530 into gh-pr/2800/base 2026-11-27 01:23:30 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 10:52 UTC · original · reviewed

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** on GitHub · 2026-11-26 10:52 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2800#pullrequestreview-6072830156) · **reviewed** 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.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 10:56 UTC · original · reviewed

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** on GitHub · 2026-11-26 10:56 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2800#pullrequestreview-6072900534) · **reviewed** 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.
Author
Owner

@⁠lambirou on GitHub · 2026-11-26 10:58 UTC · original

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** on GitHub · 2026-11-26 10:58 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2800#issuecomment-7190090022) 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`?
Author
Owner

@⁠lambirou on GitHub · 2026-11-26 11:01 UTC · original

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.

**@⁠lambirou** on GitHub · 2026-11-26 11:01 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2800#issuecomment-7190159547) 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.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 11:02 UTC · original · reviewed

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.

**@⁠tedin7** on GitHub · 2026-11-26 11:02 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2800#pullrequestreview-6072984464) · **reviewed** 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.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 11:02 UTC · original

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.

**@⁠tedin7** on GitHub · 2026-11-26 11:02 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2800#issuecomment-7190187221) 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.