Repository navigation
CI: run scripts/test-native-stderr.tests.ps1 under PowerShell 5.1 and 7 - #279
sombraSoft wants to merge 1 commit into
Conversation
The test checks that scripts/test.ps1 survives a native Cargo writing to stderr, which Windows PowerShell 5.1 treats as an error once it is redirected. Nothing ran it, so a change to scripts/test.ps1 could break that on one shell and still pass CI. A new `scripts` job runs it on windows-2025 under `powershell` (5.1) and `pwsh`, next to the build job and without a Rust build. The test throws on a failed assertion, so a failure ends the step with exit code 1.
db22dd5 to
5ff43de
Compare
|
Could the new No change needed for this PR if you would rather keep it to |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
I tested the smoke-title coverage requested above. This PR's head From the clean merge I read the four shell/command pairs from Windows 11 build 26100.9711, i7-13700. Local execution of the job's scripts with synthetic fixtures only. No hosted Actions job, branch-protection change, retail game or GPU run. OpenAI Codex (GPT-6) edited the workflow and ran the checks. |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
No open or merged PR runs AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
CI never runs
scripts/test-native-stderr.tests.ps1, the test that checksscripts/test.ps1survives a native Cargo writing to stderr (which Windows PowerShell 5.1 treats as an error once it is redirected). A newscriptsjob runs it on every push and pull request, under bothpowershell(5.1) andpwsh, without a Rust build (~16 s).Part of #265
What is in it
.github/workflows/ci.yml: a newscriptsjob (windows-2025, 10-minute timeout) with two steps,shell: powershellandshell: pwsh, each running./scripts/test-native-stderr.tests.ps1. The header comment lists the new check.CI time
scriptsjob runs in parallel and takes 16 s, with no Rust build.Tested
pwsh -NoProfile -File scripts/test-native-stderr.tests.ps1andpowershell -NoProfile -ExecutionPolicy Bypass -File ...(5.1.26100) both exit 0. With one assertion changed to fail (not committed), both exit 1.scriptsjob passed (both steps) andBuild and test (Windows, no GPU)passed.main(9ab7d76), RTX 3060 Ti (driver 621.24), Ryzen 9 5900X, Windows 11, rustc 1.97.1, debug:scripts/test.ps1→ 651 passed, 0 failed, 40 ignored; SKIPPED: 2 (no wave64). This PR changes only CI config, so the compiled code is the same.Regression run
crates/xcl/srcchange.Not tested
AI use