gate: game-gate.ps1 says it needs PowerShell 7 (D3D12-GATE-PWSH7) #2805
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2805
Loading…
Reference in a new issue
No description provided.
Delete branch "d3d12-gate-pwsh7"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: D3D12-GATE-PWSH7 (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7295445406)
What and why
A tester ran
scripts/game-gate.ps1(#2782) under Windows PowerShell 5.1. It failed in about 2 s without starting the game and without saying why. The script needs PowerShell 7.scripts/game-gate.ps1now starts with#Requires -Version 7.0. Windows PowerShell 5.1 refuses the script with its own message before anything runs.docs/game_gate.md("Running it") says it needspwsh.tests/test_game_gate.pykeeps the line (test_it_needs_powershell_7).scripts/game-abba.ps1(#2804) carries the same line from the start.Tested
On Windows 11 Pro 10.0.26300, at
mainb7a1be296:tests/test_game_gate.py: 22 tests OK. Withmain'sscripts/game-gate.ps1put back, the new test fails and the other 21 pass.scripts/check_no_game_data.pyon the changed files are clean.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12, head
f4c6aca75, mainb7a1be296. CPU only.MEASURED
tests/test_game_gate.py): 1 failed, 21 passed. The failure isScript::test_it_needs_powershell_7.READ IN CODE
#Requires -Version 7.0as the first line ofscripts/game-gate.ps1. Under Windows PowerShell 5.1 the script then stops at once with PowerShell's own "requires version 7.0" message, instead of failing after about 2 s with no reason. That is the case DadaCap reported on the bridge (5080).ASSUMED
#Requiresitself is standard PowerShell.AI-assisted: Claude Code
Verified on Windows, with the control that matters: the tests fail when the change is reverted.
Cherry-picked onto
maind920d850din a clean worktree, Python 3.13.14:python -m pytest tests/test_game_gate.py -q with this pull request: 22 passed with scripts/game-gate.ps1 from main: 1 failedSo the new tests are tied to the change and not to each other's fixtures. No part of this needed a GPU, a display or game data, which is what the gate tests are built for.
What I could not test: the script against a real run folder -
game-abba.ps1drives one, and this machine has the game but not the gate harness the other contributors used, so the shape is proven and the run is not.AI-assisted: yes - DeepSeek v4.1 (flash), applied and ran both arms on the machine above.
Written with an AI assistant.
Merging. Head
f4c6aca75merges cleanly withmaine56aff1ceand does not force a rebase of #2566. CI green on this head and on main. Red/green by OreoFR (macOS) and fiestorra (Windows) on it, and KelboLive ran it under PowerShell 5.1 and 7; I ran it on main + PR (Windows, Python 3.14): 22 tests OK, one fails without the change. MoonEyes asked for this merge. One directive and its test and docs, no in-game run needed. Merged by MoonEyes.AI-assisted (Claude Code).