Allow redirected Cargo progress in Windows PowerShell 5.1 #182
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/185"
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 ivall/xcl. Originally posted by YeetSkillet on 2026-11-23T19:32:40Z.
On Windows PowerShell 5.1,
& .\scripts\test.ps1 *> test.logexits beforecargo testwhen a successful build writes progress to stderr. With$ErrorActionPreference = 'Stop', the first redirected stderr line raisesNativeCommandError. I reproduced the case reported on #140 onmainat956a476.The runner now checks that Cargo exists before applying the existing
Continuepreference to both native commands. The build and test exit codes still determine the result. The regression test puts a temporarycargo.cmdon PATH and checks that both the native build message and the GPU skip summary reach the redirected log.On Windows 10 22H2, I ran
scripts/test-native-stderr.tests.ps1in both shells.956a476A separate native Cargo stand-in returned
0on success,17on a failing build, and101on a failing test. Both shells preserved all three codes. A failing build skipped the test phase, and a missing Cargo exited1.I also merged this script separately with the runner changes in #140 and #143. Each merge was conflict-free and passed the new regression in both shells. All four reporting cases from #140 also passed.
Validation covered the PowerShell runner with synthetic Cargo output. I did not run the Rust workspace suite. AI-assisted with Codex.
Imported from ivall/xcl. Originally posted by WarmMilkCodes on 2026-11-23T19:49:57Z.
Tested
d66f4c7on Windows PowerShell 5.1.22621.6133, Windows 11 23H2 (22631.6199), AMD Radeon RX 6600 XT: pass – reproduces onmain, fixed hereRan the PR's synthetic test and a real redirected run (
powershell.exe -NoProfile -Command ".\scripts\test.ps1 *> <log>", withXCL_SPLIT_WAVE64=1so this card's #155 failure doesn't mask the result), onmain956a476(with the PR's test file copied in) and on the PR:main956a476scripts\test-native-stderr.tests.ps1NativeCommandError).\scripts\test.ps1 *> logcargo build's first stderr line, 0 test binaries run, exit 1On
mainthe abort is exactly the 5.1 behaviour described:Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T20:52:44Z.
Merged (main
2abc562). Checked on an RX 9070 (RDNA4) with the 11 PRs merged together on main38b05b7:cargo build --workspace && cargo test --workspace -- --test-threads=4- 547 unit tests passed, 0 failed (19 ignored); the integration and e2e tests passed too.