tests: run startup_resource_address_index without MSVC Debug iterator checks #2625

Merged
tedin7 merged 1 commit from upstream-pr/2633 into main 2026-11-26 05:02:35 +00:00
tedin7 commented 2026-11-25 23:44:36 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:44:36Z.


Part of #448

What this unblocks: the Debug test suite finishes again; startup_resource_address_index (from #2343) no longer runs for tens of minutes in the Debug build.

Change: one line in CMakeLists.txt. The startup_resource_address_index_check target is built with _ITERATOR_DEBUG_LEVEL=0 for MSVC Debug only. Source, assertions, step counts and the two negative controls are unchanged.

Why: the test is not stuck. It runs 30,000 steps with 180,000 lookups, each walking std::multimap / std::map nodes. With MSVC Debug iterator checks (level 2) that is very slow (100% CPU, ~5 MB, no deadlock). The test checks the lookup answers, not iterator validity.

Verification (Linux checks; Win2025 dev+release receipt on head 270e05a5 is in the first comment, 4/4 passed in both):

  • g++ -std=c++17 -O2 -Isrc tests/startup_resource_address_index_check.cpp : passes, 6.0 s.
  • Same file with -O0 -D_GLIBCXX_DEBUG (iterator-checked containers, the closest Linux analogue of the MSVC Debug build): passes, 138 s, about 23x the optimized time. This confirms the cost is iterator checking, not a hang.
  • Win2025: MSVC Debug time with the define is 11.90 s, the static debug CRT link accepts it, and the skip/unsync controls still pass as negative controls.

@NiiRoZz @R0Y00 FYI, author of #2343 and reviewer.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6616105684 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2633). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T23:44:36Z. --- Part of #448 What this unblocks: the Debug test suite finishes again; `startup_resource_address_index` (from #2343) no longer runs for tens of minutes in the Debug build. Change: one line in `CMakeLists.txt`. The `startup_resource_address_index_check` target is built with `_ITERATOR_DEBUG_LEVEL=0` for MSVC Debug only. Source, assertions, step counts and the two negative controls are unchanged. Why: the test is not stuck. It runs 30,000 steps with 180,000 lookups, each walking `std::multimap` / `std::map` nodes. With MSVC Debug iterator checks (level 2) that is very slow (100% CPU, ~5 MB, no deadlock). The test checks the lookup answers, not iterator validity. Verification (Linux checks; Win2025 dev+release receipt on head 270e05a5 is in the first comment, 4/4 passed in both): - `g++ -std=c++17 -O2 -Isrc tests/startup_resource_address_index_check.cpp` : passes, 6.0 s. - Same file with `-O0 -D_GLIBCXX_DEBUG` (iterator-checked containers, the closest Linux analogue of the MSVC Debug build): passes, 138 s, about 23x the optimized time. This confirms the cost is iterator checking, not a hang. - Win2025: MSVC Debug time with the define is 11.90 s, the static debug CRT link accepts it, and the skip/unsync controls still pass as negative controls. @NiiRoZz @R0Y00 FYI, author of #2343 and reviewer. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 04:04:38 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:29:57Z.


Win2025 receipt for #2633.

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

  • Debug (--preset dev):
    • Build (cmake --build --preset dev -- -j 2): 34.45s
    • Test (ctest --preset dev -R '^startup_resource_address_index' --parallel 4 --no-tests=error --output-on-failure): 4/4 passed (12.04s: startup_resource_address_index_skip_control 0.01s, startup_resource_address_index_unsync_control 0.01s, startup_resource_address_index_missing_control_warp 0.82s, startup_resource_address_index 11.90s). The two negative controls still pass (they still fail the mutated run as designed).
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release -- -j 2): 38.32s
    • Test (same ctest regex): 4/4 passed (3.41s; startup_resource_address_index 3.24s)

So the Debug test now finishes in about 12 s instead of tens of minutes.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181771639 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2633#issuecomment-7181771639). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T03:29:57Z. --- Win2025 receipt for #2633. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `270e05a55299be8e057010275eee81bf8adacb3e`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev -- -j 2`): `34.45s` - Test (`ctest --preset dev -R '^startup_resource_address_index' --parallel 4 --no-tests=error --output-on-failure`): **4/4 passed** (`12.04s`: `startup_resource_address_index_skip_control` `0.01s`, `startup_resource_address_index_unsync_control` `0.01s`, `startup_resource_address_index_missing_control_warp` `0.82s`, `startup_resource_address_index` `11.90s`). The two negative controls still pass (they still fail the mutated run as designed). - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release -- -j 2`): `38.32s` - Test (same ctest regex): **4/4 passed** (`3.41s`; `startup_resource_address_index` `3.24s`) So the Debug test now finishes in about 12 s instead of tens of minutes. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 04:04:38 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:30:00Z.


@MasterDomino #2633 is ready for review/merge.

  • Head: 270e05a55299be8e057010275eee81bf8adacb3e (one line in CMakeLists.txt, MSVC Debug only).
  • CI: green on this head (merge state CLEAN).
  • Win2025 dev + release receipt on this exact head is in the comment above: 4/4 passed in both, Debug startup_resource_address_index 11.90 s.
  • Independent checklist review on this head: PASS.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181772435 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2633#issuecomment-7181772435). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T03:30:00Z. --- @MasterDomino #2633 is ready for review/merge. - Head: `270e05a55299be8e057010275eee81bf8adacb3e` (one line in `CMakeLists.txt`, MSVC Debug only). - CI: green on this head (merge state CLEAN). - Win2025 dev + release receipt on this exact head is in the comment above: 4/4 passed in both, Debug `startup_resource_address_index` 11.90 s. - Independent checklist review on this head: PASS. AI-assisted; commands listed were executed locally.
chatgpt-codex-connector[bot commented 2026-11-26 04:04:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T03:30:13Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T03:33:15.268260Z 270e05a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181775603 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2633#issuecomment-7181775603). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-26T03:30:13Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"270e05a55299be8e057010275eee81bf8adacb3e","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-26T03:33:15.268260Z">2026-11-26T03:33:15.268260Z</relative-time> | `270e05a` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
upstream-sync closed this pull request 2026-11-26 06:01:48 +00:00
MasterDomino commented 2026-11-26 06:01:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T05:02:31Z.

Review: APPROVED


Approving 270e05a5. It's a one-line CMake change that drops MSVC Debug iterator checks for this one target only; the source, assertions, step counts and controls are unchanged.

Run at this head (Windows 11 build 26300, --preset dev Debug; AMD Radeon RX 9070 XT, driver 32.0.32029.2010; WARP 10.0.26100.9818):

ctest --preset dev --no-tests=error -R '^startup_resource_address_index'

4/4 passed. startup_resource_address_index took 5.2 s in Debug, and the skip, unsync and missing controls still pass, so they still catch what they're built for.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6068797507 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2633#pullrequestreview-6068797507). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-26T05:02:31Z. **Review:** APPROVED --- Approving `270e05a5`. It's a one-line CMake change that drops MSVC Debug iterator checks for this one target only; the source, assertions, step counts and controls are unchanged. Run at this head (Windows 11 build 26300, `--preset dev` Debug; AMD Radeon RX 9070 XT, driver 32.0.32029.2010; WARP 10.0.26100.9818): ```powershell ctest --preset dev --no-tests=error -R '^startup_resource_address_index' ``` 4/4 passed. `startup_resource_address_index` took **5.2 s** in Debug, and the `skip`, `unsync` and `missing` controls still pass, so they still catch what they're built for. AI-assisted; commands listed were executed locally.
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!2625
No description provided.