chore: remove dead Tier 1 files, wire 5 unwired C++ tests, and fix play.ps1 path #2668
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2668"
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 ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-30T01:02:20Z.
Summary
Tier 1 repository hygiene and broken-wiring cleanup on
main(12 files,+147 / -1,149):1. Dead / Accidental / Obsolete File Removal
navmeshes.navmesh-decode.json(8.4 KB accidental output dump committed at the repo root with 0 inbound references) and added*.navmesh-decode.jsonto.gitignore.victory/scriptsscripts/sync_victory.pyandscripts/port_ctl.py(both hardcoded the deletedvictory/subtree;port_ctl.pyalso hardcoded a personalG:\gta6portpath) and cleaned up their stale references inAGENTS.mdanddocs/port_status.md.runtime/shims/d3d12_xs_command_list_iid.h(0 includes/symbol refs; superseded inline inruntime/shims/d3d12_xs_device.cpp)runtime/test/shaders/cs_cbv_vector_rows.asm(0 refs across CMake, GPU test runner, C++/Python tests, or docs)tools/world_hotspots.py(0 callers, tests, or doc refs)assets/mandy.pnguntouched pending maintainer confirmation.)2. Immediate Broken Wiring Fixes
runtime/CMakeLists.txt:runtime/test/indirect_draw_stats_test.cppruntime/test/dev_status_test.cppruntime/test/d3d12_title_image_census_test.cppruntime/test/pipeline_wait_test.cppruntime/test/queue_families_test.cpp(gated underif(TARGET Vulkan::Headers))tests/test_ctest_registration.py: Scans allruntime/test/*_test.cppfiles on disk againstruntime/CMakeLists.txt(handlingforeach/foreach(... IN ITEMS ...)loops and ignoring comments/message()mentions) so future PRs cannot accidentally leave new C++ test files unregistered.scripts/play.ps1:44: Updated the brokenvictory\crates\victory-formats\src\bcpack-tables.binlookup path to the actuald3d12\crates\leonida-formats\src\bcpack-tables.binpath (preserving CRLF line endings).Testing
-std=c++20 -Wall -Wextra, Raphael iGPU1002:164e!, no game files):cmake -S runtime -B <build> -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo+ build of all 5 newly wired C++ test targets: 0 warningsctest -R '^(indirect_draw_stats|queue_families|dev_status|d3d12_title_image_census|pipeline_wait)$' --output-on-failure: 5/5 PASS (0.01s)python3 -I tests/test_ctest_registration.py: 13/13 PASS (363/363 on-disk*_test.cppfiles wired, 0 phantom)python3 -I tests/test_runtime_paths.py(5/5),tests/test_ci_registration.py(18/18),tests/test_text_write_line_endings.py(3/3),tests/test_runtime_incremental_link.py(2/2), all 13tests/test_docs_*.py: ALL PASSpython3 -m compileall -q make_game.py tools tests&python3 -I scripts/check_no_game_data.py: PASSImported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T01:12:02Z.
Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16, Apple clang 21.0.0, main
0eab02a8b, PR head18936010d. MEASURED:tests/test_ctest_registration.py: red (main + only this test) 1 failed / 13,test_all_test_sources_on_disk_are_wired_in_cmakelisting exactly the 5 files this PR wires (d3d12_title_image_census,dev_status,indirect_draw_stats,pipeline_wait,queue_families) → green (main + this PR) 13/13.clang++ -std=c++20 -Isrc -Ishims test/<name>_test.cpp) and run:indirect_draw_stats_test,dev_status_test,d3d12_title_image_census_test,pipeline_wait_testall exit 0 (ok).queue_families_testnot built here (needs the Vulkan headers, not installed on this Mac).git grepfor each name: 0 hits).git merge-tree).Not covered: the MSVC build of the 5 tests (
Runtime / windowswas still running) andqueue_familiesanywhere.AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T01:12:36Z.
Independent CTest integration and registration check on
18936010d(GitHub merge198a629f5onto0eab02a8b) combined with #256622e1349d7(treed980ec622).submit_frameandvk_gpu_profile. All 7 passed on native CachyOS and on a clang-cl Win64 Release/MDbuild under Wine 11.22, once per platform on each of RTX 4070 SUPER and Radeon Raphael. The logs confirm that the two #2566 tests reached their Vulkan checks on each GPU.test/mandy_registration_probe_test.cppand built it throughforeach(x IN ITEMS mandy_registration_probe)withadd_executable(${x}_test test/${x}_test.cpp)and noadd_test. CMake built the target, butctest -N -R ^mandy_registration_probe$reported zero tests.referenced_test_sourcessees the loop-expanded file, whilebuilt_test_executablesandregistered_commandsstill inspect the unexpanded text.expand_cmake_foreachfor the executable/command comparison catches the synthetic omission. It also surfacesvk_compute_test,vk_sampler_test, andvk_store_test, which are invoked by the shader test runners and would need an explicit exception in that check.Synthetic fixtures only. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T04:55:02Z.
Independent verification on this machine (Windows 11, MSVC 19.44.35226, RTX 4090), and this one is substantial enough to be worth the detail.
1. It applies.
merge-treeclean;18936010dcherry-picks ontomain1d22590b9without a conflict. Twelve files,147 insertions(+), 1149 deletions(-).2. The new test catches what it claims - the negative control bites. With the PR's
tests/test_ctest_registration.pyandmain'sruntime/CMakeLists.txt:So the test exists to notice that five test sources on disk are not registered, and it does exactly that.
3. The five tests it wires actually build and pass - the part that matters, because wiring a test that fails is worse than leaving it unwired:
4. The whole suite, twice, on this branch:
Two runs, two different single failures, and neither is caused by this change:
vulkan_device_markersis a flake under parallel GPU load: it passes 3/3 in isolation on this branch and 3/3 onmain, and it passed in run 2 of the full suite. (It failed in 0.01 s in run 1, so it is not a slow-hang flake but an early mismatch while other GPU tests hammer the device.)xbox_presentismain's known failure, which #2652 fixes -538/539onmaintoday, and the same single red here.So the deletions and the
.gitignoreline do not break the suite, and the five wired tests are green.What I did not test: the pruned scripts (
scripts/sync_victory.py,tools/world_hotspots.py,scripts/port_ctl.py) are deleted, and I did not run every workflow that may have called them - agrepfor their names across the workflows would be the cheap follow-up, and I have not done it here.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T05:08:31Z.
A datapoint that strengthens this pull request: the five sources it wires are exactly the five that are unwired on
main, and I checked by a method that could not have missed others.Running the PR's own test against
main'sCMakeLists.txtprints the complete set:That is the five, no more and no fewer - so the change leaves no unwired test source behind it.
Why the count matters, and where I nearly got it wrong: I first tried to answer the same question with a grep - every
*_test.cppon disk whose filename does not appear inCMakeLists.txt- and got 24, which would have been a much bigger story and is wrong.runtime/CMakeLists.txtregisters families of tests through loops (foreach(_context_test context_pinning context_rundown …)around line 1938 buildstest/${name}_test.cpp), so a filename that never appears literally is still wired. The PR's test resolves the same question with the CMake lists rather than with text, which is why it can be trusted to say "five".Recording that here because the wrong number was plausible and I caught it only by comparing against this test - the sixth measurement error of my session, and the first one caught before it was published.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-30T08:33:28Z.
Applied @merzleckeier's hardening in
31083735a:built_test_executables()andregistered_commands()now also runexpand_cmake_foreach()(catchingforeach-builtadd_executabletargets missingadd_test, covered by a new regression test for the exactmandy_registration_probecase, with explicit documented exceptions for the three shader-runner toolsvk_compute_test,vk_sampler_test, andvk_store_testalongsided3d12_clear_test). Verifiedpython3 -W error -I tests/test_ctest_registration.py -v(14/14 PASS),test_runtime_paths.py(5/5 PASS), andcheck_no_game_data.py. Merging with independent verification across macOS (@OreoFR), Linux/Wine on RTX 4070S + Raphael (@merzleckeier), and Windows 11/MSVC on RTX 4090 (@fiestorra), plus greenRuntime/windows,Runtime/linux-gpu-tools, andCI/check.