conformance build.ps1: find Visual Studio's CMake and name no Visual Studio version (OLD-9962) #1822

Merged
leonida/mandy
Ch1mpleo merged 2 commits from carry/old-9962 into main 2026-11-28 15:01:57 +00:00

Pull request successfully merged and closed

Ch1mpleo commented 2026-11-25 12:35:03 +00:00

Claimed in the coordination issue as: OLD-9962 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162564669)

What and why

Carries forward old-pr/9962 (draft #229, preserving Leeahmy's two original commits) rebased onto current main. Updates ools/conformance/native/scripts/build.ps1 to locate Visual Studio's CMake without hardcoding a Visual Studio version, and adds ests/test_conformance_build_script.py.

Tested

  • python -I tests/test_conformance_build_script.py — 5 tests, OK (Windows 11 x64, Python 3.14.7).
  • python -m compileall -q tests/test_conformance_build_script.py — exit 0.
  • python -I scripts/check_no_game_data.py tests/test_conformance_build_script.py tools/conformance/native/scripts/build.ps1 — exit 0.

GPUs tested: n/a (CPU-only PowerShell script & unit test)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled
    eeds rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — no translator change)
Claimed in the coordination issue as: OLD-9962 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162564669) ### What and why Carries forward old-pr/9962 (draft #229, preserving Leeahmy's two original commits) rebased onto current main. Updates ools/conformance/native/scripts/build.ps1 to locate Visual Studio's CMake without hardcoding a Visual Studio version, and adds ests/test_conformance_build_script.py. ### Tested - python -I tests/test_conformance_build_script.py — 5 tests, OK (Windows 11 x64, Python 3.14.7). - python -m compileall -q tests/test_conformance_build_script.py — exit 0. - python -I scripts/check_no_game_data.py tests/test_conformance_build_script.py tools/conformance/native/scripts/build.ps1 — exit 0. GPUs tested: n/a (CPU-only PowerShell script & unit test) AI-assisted: yes ### Checklist - [x] Based on current main and merges cleanly (a conflicting pull request is labeled eeds rebase). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — no translator change)
PierreEbele commented 2026-11-25 20:01:11 +00:00

Reviewed fa41fe9ea: build.ps1 CMake lookup rewrite (VS-bundled -> PATH with VS generators -> default install, vswhere, no -G) plus its Windows-only test. PowerShell was not available to me, so the new test ran only to its skip (5 skipped on both trees; same with the file copied onto main); I checked statically that its expectations match the script exactly (message, -S/-B/-A order, no -G, BUILD EXIT, bundled path, CMAKE_GENERATOR save/restore) and that main's script satisfies none of them. This is therefore a read-only review of the script itself; a Windows CI run should settle it. No finding. Non-blocking: tools/conformance/native/README.md:22 still shows -G "Visual Studio 17 2022" as the equivalent manual command. AI-assisted review.

Recommendation: Merge

Reviewed fa41fe9ea: build.ps1 CMake lookup rewrite (VS-bundled -> PATH with VS generators -> default install, vswhere, no -G) plus its Windows-only test. PowerShell was not available to me, so the new test ran only to its skip (5 skipped on both trees; same with the file copied onto main); I checked statically that its expectations match the script exactly (message, -S/-B/-A order, no -G, BUILD EXIT, bundled path, CMAKE_GENERATOR save/restore) and that main's script satisfies none of them. This is therefore a read-only review of the script itself; a Windows CI run should settle it. No finding. Non-blocking: tools/conformance/native/README.md:22 still shows -G "Visual Studio 17 2022" as the equivalent manual command. AI-assisted review. **Recommendation:** Merge
MoonEyes commented 2026-11-28 15:01:54 +00:00

Red/green: pytest tests/test_conformance_build_script.py fails on main (5 failed) and passes on head fa41fe9ea5b9 merged with main (5 passed).
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main d48a957bb in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)

Red/green: `pytest tests/test_conformance_build_script.py` fails on main (5 failed) and passes on head fa41fe9ea5b9 merged with main (5 passed). Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main d48a957bb in GitHub Actions: no new failure. AI-assisted (Claude Code, Claude Opus 5.5)
Sign in to join this conversation.
No description provided.