Allow redirected Cargo progress in Windows PowerShell 5.1 #185
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!185
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/185/head"
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?
@YeetSkillet on GitHub · 2026-11-23 19:32 UTC · original
YeetSkillet:fix/powershell-native-stderr→main· +42 −1 · 2 files · 1 commits · merged 2026-11-23 20:51 UTCOn 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.
@WarmMilkCodes on GitHub · 2026-11-23 19:49 UTC · original
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:@ivall on GitHub · 2026-11-23 20:52 UTC · original
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.