Repository navigation
CI: run scripts/test-native-stderr.tests.ps1 under PowerShell 5.1 and 7 - #279
Open
sombraSoft wants to merge 1 commit into
Open
sombraSoft wants to merge 1 commit into
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.
sombraSoft
force-pushed
the
ci/script-tests
branch
from
November 23, 2026 23:12
db22dd5 to
5ff43de
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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