-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[scripts/ci] CI Test Modified Ports does not fail as expected #40191
[scripts/ci] CI Test Modified Ports does not fail as expected #40191
Conversation
d3cfbbe
to
67e6591
Compare
67e6591
to
20f586a
Compare
20f586a
to
5c6cd6f
Compare
777b1b6
to
52511e6
Compare
a61befd
to
8f83d6d
Compare
See fixes in #40198 InformationAn earliest abnormal result found so far is Pipelines - Run 20240716.15 logs (visualstudio.com) A recent normal result failed as expected is Pipelines - Run 20240716.11 logs (visualstudio.com) According to the test Pipelines - Run 20240731.15 logs (visualstudio.com), all Windows jobs are not failed as expect. According to the test Pipelines - Run 20240731.20 logs (visualstudio.com), it fails as expected with PowerShell@2. Possible regression #39896 #39952 ReferencePowerShell@2 - failOnStderr TestThe CI task test pass with Windows jobs:
|
Yeah this is squarely my fault in #39952 -- I saw failures for macOS and Linux and assumed 'surely identical code will have identical behavior everywhere'. I don't understand exactly why failOnStandardError is not working only on Windows, or why my attempts to make more reduced repros to file against the folks who own AzureCLI@2 have not worked. Either way, propagating the exit code rather than relying on stderr being special is just a good idea in the first place, which shuts this down completely. I've submitted that as an alternative fix in #40198 Thanks for pointing this out! |
Thanks again for the analysis! I believe this problem is now fixed. |
8f83d6d
to
4f560b2
Compare
Testing
Reproduced#include <windows.h>
#include <iostream>
int main() {
std::cout << "stdout" << std::endl;
HANDLE hStderr = ::GetStdHandle(STD_ERROR_HANDLE);
if (hStderr == INVALID_HANDLE_VALUE) {
return 1;
}
DWORD written = 0;
const char* msg = "stderr\n";
if (!::WriteFile(hStderr, msg, strlen(msg), &written, nullptr)) {
return 1;
}
return 0;
} Reproduced with |
e199c41
to
4a378f9
Compare
92940fc
to
edb8180
Compare
edb8180
to
36d3b26
Compare
Fix #40124.
Check the issue link,
vcpkg ci
reportedREGRESSION: cyrus-sasl:x64-windows failed with BUILD_FAILED.
but the CI task does not emit error.Fix it by moving step
Test Modified Ports
fromAzureCLI@2
toPowerShell@2
.