Repository navigation
chore: remove dead Tier 1 files, wire 5 unwired C++ tests, and fix play.ps1 path - #2668
Conversation
|
Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16, Apple clang 21.0.0, main 0eab02a, PR head 1893601. MEASURED:
Not covered: the MSVC build of the 5 tests ( AI-assisted: Claude Code |
|
Independent CTest integration and registration check on
Synthetic fixtures only. AI-assisted with OpenAI Codex. |
|
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. 2. The new test catches what it claims - the negative control bites. With the PR's 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:
So the deletions and the What I did not test: the pruned scripts ( Written with an AI assistant. |
|
A datapoint that strengthens this pull request: the five sources it wires are exactly the five that are unwired on Running the PR's own test against 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 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. |
|
Applied @merzleckeier's hardening in |
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: PASS