mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1873] scripts/run_conservative_tier3_reference.ps1: validate prereqs, anchor ctest filter, guard stderr and env #1885
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#1885
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/1873
Author: @kirigayakazima
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/run-conservative-tier3-safety📝 Commits (1)
b63c28fHarden run_conservative_tier3_reference.ps1 prereq checks, ctest filter, and env handling📊 Changes
2 files changed (+222 additions, -8 deletions)
View changed files
📝
scripts/run_conservative_tier3_reference.ps1(+45 -8)➕
tests/test_run_conservative_tier3_reference.py(+177 -0)📄 Description
Claimed in the coordination issue as: RUN-CONSERVATIVE-TIER3-REF-PS1-SAFETY-AND-TESTS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7164301040)
What and why
cmakeandctestupfront viaGet-Commandinscripts/run_conservative_tier3_reference.ps1so a missingctestfails before configuring and buildingruntime.cmake/ctestinvocations inInvoke-Nativewith temporary$ErrorActionPreference = "Continue"so benign stderr warnings never raiseNativeCommandErrorunder strict error policies while non-zero exit codes still fail cleanly with their exit status.--no-tests=errorand anchored exact test filter^d3d12_conservative_tier3_reference$toctestso zero matched tests cannot silently pass.$hadPreviousFilter = Test-Path Env:LEONIDA_VK_DEVICEand trim non-empty-Devicebefore invokingctest, restoring exact prior variable presence/value infinally. Preserve CRLF line endings (PS1_CRLF=68, PS1_LF_ONLY=0).PATHshims intests/test_run_conservative_tier3_reference.py.Tested
python -I tests/test_run_conservative_tier3_reference.py -v->Ran 3 tests in 3.279s(OK).upstream/main5e95fa2fwithtests/test_run_conservative_tier3_reference.pycopied into detached worktree):Ran 3 tests in 2.800s(FAILED (failures=1, errors=3)).PS1_CRLF=68 PS1_LF_ONLY=0,python -I tests/test_ci_registration.py(Ran 16 tests in 5.041s,OK),python -I tests/test_text_write_line_endings.py(Ran 3 tests in 12.657s,OK),python -I scripts/check_no_game_data.py(exit 0),python -I -m compileall -q(exit 0),git diff --check(exit 0).GPUs tested: n/a (PowerShell runner prerequisite, ctest filter, and environment isolation tests)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.