mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1848] conformance: check cmake configure status, guard NativeCommandError and clean scratch in negative-control.ps1 #1859
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1859
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1848
Author: @kirigayakazima
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/conformance-negative-control-safety📝 Commits (1)
914e7f5conformance: check cmake configure status, guard NativeCommandError and clean scratch in negative-control.ps1📊 Changes
2 files changed (+168 additions, -39 deletions)
View changed files
➕
tests/test_conformance_negative_control.py(+112 -0)📝
tools/conformance/native/scripts/negative-control.ps1(+56 -39)📄 Description
Claimed in the coordination issue as: CONFORMANCE-NEGATIVE-CONTROL-PS1-SAFETY (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163205423)
What and why
$LASTEXITCODEimmediately aftercmake -S ... -B ...configure intools/conformance/native/scripts/negative-control.ps1so configure failures stop withCONFIGURE FAILED <code >before running--build.$ErrorActionPreference = 'Continue'inside atry/finallyblock around& ... conform_native.exe ... 2>&1so Windows PowerShell 5.1 does not abort withNativeCommandErrorwhen diagnostics go to stderr.@(...)for$failedScenesand compare sorted scene lists withoutCompare-Object(which crashes when$failedScenesis empty/$nullon Windows PowerShell 5.1).-LiteralPathon file/directory operations and wrap the throwawaynegative-controldirectory intry/finallycleanup while preserving CRLF line endings.tests/test_conformance_negative_control.py.Tested
python -I tests/test_conformance_negative_control.py -v(live Windows PowerShell 5.1) ->Ran 4 tests in 2.068s,OK.upstream/main(98c2f777) baseline worktree withtests/test_conformance_negative_control.py->Ran 4 tests in 2.026s,FAILED (failures=4).tools/conformance/native/scripts/negative-control.ps1->PS1_CRLF=82 PS1_LF_ONLY=0.python -I tests/test_ci_registration.py->Ran 16 tests in 4.946s,OK.python -I tests/test_text_write_line_endings.py->Ran 3 tests in 13.453s,OK.python -I scripts/check_no_game_data.py tools/conformance/native/scripts/negative-control.ps1 tests/test_conformance_negative_control.py,python -I -m compileall -q tests/test_conformance_negative_control.py, andgit diff --check-> exit0.GPUs tested: n/a (Windows PowerShell 5.1 + stdlib Python tests on Windows 11 x64)
AI-assisted: yes
Checklist
needs rebase).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.