conformance: check cmake configure status, guard NativeCommandError and clean scratch in negative-control.ps1 #1848
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!1848
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/conformance-negative-control-safety"
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: 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).#1848 | head 914e7f51daad08971ecc15232d0dfe3275e85f0a (merged cleanly with main d48a957bb) |
python -I tests/test_conformance_negative_control.py| red on main:FAILED (failures=4)(continued pastcmake -Sfailure, aborted on stderrNativeCommandError/ empty$failedScenes, skipped failure report onexit 0, and leftnegative-controlscratch dir behind on missing anchor) | green on PR+main:4 tests OK| Windows 11 (10.0.26200.9974,powershell.exe5.1.26100.9818), Python 3.12.10 | AI-assisted: yesAudited
tools/conformance/native/scripts/negative-control.ps1andtests/test_conformance_negative_control.pyon Windows 11 PowerShell 5.1, verifyingCONFIGURE FAILEDexit-code gating before--build,$ErrorActionPreference = 'Continue'scoping aroundconform_native.exe 2>&1so stderr lines stringify cleanly instead of raisingNativeCommandError, exact($failedScenes -join ',')comparison when 0 scenes fail, andtry / finally-LiteralPathcleanup of thenegative-controlscratch directory across all exit paths. Also verifiedtests/test_ci_registration.py(18 OK),tests/test_text_write_line_endings.py(3 OK), andscripts/check_no_game_data.py.Red/green: classified READY by cloud-3 (red on main 09c153948, green on head merged with main); head 914e7f51daad unchanged since 2026-11-25, before that run.
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)