-
Notifications
You must be signed in to change notification settings - Fork 18.9k
hack/ci/windows.ps1: explicitly set exit code to result of tests #39854
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
Conversation
|
@StefanScherer ptal if this makes sense 🤗 (it was just a hunch, so no idea if this improves the situation) |
f67ea7c to
f584974
Compare
|
@thaJeztah - Verified that the script will now exit with Earlier it would exit with the value 0 [ Does this fit with your rationale for making this change? |
|
@vikramhh that's a good question; the problem I was trying to solve was two-way;
For the second point above, I was wondering if adding an explicit
Question; what exactly do you mean with interactive/noninteractive ? Do you know which of those Jenkins runs? (I guess Jenkins has a terminal attached, so it may be |
|
It would be good to find out how Jenkins is executing the script. I do not know if it does log it someplace but if not, then something like the following at the beginning of the script will tell us:
Even if it has a terminal attached, given that there is no one to babysit it, it should probably be run |
Trying to see if this helps with the cleanup step exiting in CI, but Jenkins continuing to wait for the script to end afterwards. Signed-off-by: Sebastiaan van Stijn <[email protected]>
…ins runs this script Signed-off-by: Sebastiaan van Stijn <[email protected]>
f584974 to
7eb522a
Compare
|
One way to find out then; I pushed a commit that adds those lines to the script |
|
OK, this is what it prints; Looks like it's |
|
Does Jenkin base its red/green decision on I was able to verify that your explanation in #1 is not true. In case of a failure leading to |
|
Making the exit code explicit looks good to me. For the hanging jobs we could list the process tree at the end of the script to see if there are some hanging child processes 🤔 |
kolyshkin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cpuguy83
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(splitting this from #39846)
Trying to see if this helps with the cleanup step exiting in CI, but Jenkins continuing to wait for the script to end afterwards.