Fix Windows CI's Powershell not propagate error by default - #5070
Conversation
|
Nah, another OpenSSL build problem..... |
|
@Cloud0310 The CI is failing because now with Git Bash, Perl is running under Git Perl instead of Strawberry under Windows. I am afraid we have to do early returns by hand in |
bdb8834 to
3300b57
Compare
|
@rami3l Fixed and added note for this. Thanks for further bug diagnosis. |
|
Hm, have you considered using |
Good idea, would love to try. |
3300b57 to
8926865
Compare
|
I've pinned to PowerShell on Windows actions, and added comments about this choice in case of future confusion. |
|
Feel free to ignore this if you don't want to do any bigger refactoring but seeing the repeated use of shell: pwsh -Command $ErrorActionPreference='stop'; $PSNativeCommandUseErrorActionPreference=$true; & '{0}' |
If so, I guess we can also use: run: |
cargo check --all --all-targets --features test
git -c core.quotePath=false ls-files -- '*.rs' | ForEach-Object {
(Get-Item -LiteralPath $_).LastWriteTime = Get-Date
}for less dependency upon xargs on PowerShell. Also a small refactor. |
|
Just in case, I also added another commit for making |
|
@Cloud0310 I'd love to see how this experiment goes, and unification looks cool. One concern I have is that |
e87fbb0 to
112ea65
Compare
Update tracked Rust source timestamps with ForEach-Object and Get-Item, removing the dependency on xargs and touch in Windows jobs.
Use a shared pwsh shell with native command failure propagation for Windows jobs, retaining Bash overrides where required.
112ea65 to
b3fc074
Compare
Okay, so the CI passes but the CD failed for this very reason. I'll try to see what I can do about this. |
|
This is great, thanks for the refactoring @Cloud0310! |
Previous Windows GNU and MSVC target on CI/CD has different report. This is what I found when dealing with CI/CD errors on #5056.
This is due to the default shell for running GNU target on Windows is
pwsh, and its not exiting upon first error, causing checking failures being ignored.Note: bug finding assisted by codex GPT-6.