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

Merged
Ch1mpleo merged 2 commits from upstream-pr/1822 into main 2026-11-28 15:01:57 +00:00
Ch1mpleo commented 2026-11-25 12:35:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Ch1mpleo on 2026-11-25T12:35:03Z.


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)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5491422761 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1822). Originally posted by [Ch1mpleo](https://github.com/Ch1mpleo) on 2026-11-25T12:35:03Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T20:01:11Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7173073433 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1822#issuecomment-7173073433). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T20:01:11Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T15:01:54Z.


Red/green: pytest tests/test_conformance_build_script.py fails on main (5 failed) and passes on head fa41fe9ea5 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)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7241144164 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1822#issuecomment-7241144164). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T15:01:54Z. --- 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 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
ProjectLeonida/mandy!1822
No description provided.