tests: run startup_resource_address_index without MSVC Debug iterator checks #2625
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2633"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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. Thestartup_resource_address_index_checktarget is built with_ITERATOR_DEBUG_LEVEL=0for 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::mapnodes. 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
270e05a5is 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.-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.@NiiRoZz @R0Y00 FYI, author of #2343 and reviewer.
AI-assisted; commands listed were executed locally.
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:--preset dev):cmake --build --preset dev -- -j 2):34.45sctest --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_control0.01s,startup_resource_address_index_unsync_control0.01s,startup_resource_address_index_missing_control_warp0.82s,startup_resource_address_index11.90s). The two negative controls still pass (they still fail the mutated run as designed)./O2(--preset release):cmake --build --preset release -- -j 2):38.32s3.41s;startup_resource_address_index3.24s)So the Debug test now finishes in about 12 s instead of tens of minutes.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:30:00Z.
@MasterDomino #2633 is ready for review/merge.
270e05a55299be8e057010275eee81bf8adacb3e(one line inCMakeLists.txt, MSVC Debug only).startup_resource_address_index11.90 s.AI-assisted; commands listed were executed locally.
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.
270e05aℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
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 devDebug; AMD Radeon RX 9070 XT, driver 32.0.32029.2010; WARP 10.0.26100.9818):4/4 passed.
startup_resource_address_indextook 5.2 s in Debug, and theskip,unsyncandmissingcontrols still pass, so they still catch what they're built for.AI-assisted; commands listed were executed locally.