conformance run.ps1: propagate exit status and guard blank or root output #2337
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2337"
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?
Imported from ubiquitarianism/leonida. Originally posted by kirigayakazima on 2026-11-26T14:05:07Z.
Claimed in the coordination issue as: CONFORMANCE-RUN-PS1-EXIT-PROPAGATION-AND-WHITESPACE-GUARD (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7194174248)
What and why
& $exe $Output @Extraexit status via$rc = $LASTEXITCODE; Write-Output "EXITCODE $rc"; exit $rcintools/conformance/native/scripts/run.ps1instead of always exiting0when the native conformance renderer fails.-Outputvalues (is blank) while keeping omitted/empty-Outputdefaulting toout/run1, and explicitly refuse-Outputresolving to thetools/conformance/nativefolder itself (exit 2).tests/test_conformance_run_script.pyto use an exit-0 stub executable instead ofwhere.exe(which returned exit code2for backslash paths and triggeredassertNotEqual(code, 2)oncerun.ps1propagated exit codes), and add regression tests intests/test_conformance_run_exit.py.Tested
python -I tests/test_conformance_run_exit.py -v: 2 passed, 0 failed (detachedupstream/mainbaseline with only the new test file fails with 3 failures).python -I tests/test_conformance_run_script.py -v: 7 passed, 0 failed.python -I tests/test_ci_registration.py: 16 passed.python -I tests/test_text_write_line_endings.py: 3 passed.python -I scripts/check_no_game_data.py,python -I -m compileall -q tests/test_conformance_run_script.py tests/test_conformance_run_exit.py, andgit diff --cached --check: passed.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.Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T07:35:45Z.
#2337 | head
6873202cfb(merged cleanly with main09c153948) |python -I tests/test_conformance_run_exit.py && python -I tests/test_conformance_run_script.py| red on main:FAILED (failures=3)(0 != 7on renderer exit code propagation and blank-Outputfalling through to current working folder instead of'is blank') | green on PR+main:2 tests OKand7 tests OK| Windows 11, Python 3.12.10 | AI-assisted: yesAudited
tools/conformance/native/scripts/run.ps1(whitespace-Outputcheck beforeIsNullOrEmptyfallback, native-conformance-root self-deletion guard, andexit $rcpropagation), and verified bothPR + main(09c153948) and a combinedmain + #2340 + #2337merge (0conflicts;2 OK+2 OK+7 OKunder Windows PowerShell). Also passedtests/test_ci_registration.py(18 OK),tests/test_text_write_line_endings.py(3 OK),tests/test_runner_calls_all_tests.py(3 OK), andscripts/check_no_game_data.py.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T15:11:15Z.
Red/green: classified READY by cloud-6 (red on main
09c153948, green on head merged with main); head6873202cfbunchanged since 2026-11-26, before that run.Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
d48a957bbin GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)