-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Notice if the test-runner dies #12998
Conversation
scripts/zfs-tests.sh
Outdated
@@ -748,4 +751,4 @@ if [ -n "$SINGLETEST" ]; then | |||
rm -f "$RUNFILES" >/dev/null 2>&1 | |||
fi | |||
|
|||
exit "${RESULT}" | |||
[ "$RUNRESULT" -ne 0 ] && exit "$RUNRESULT" || exit "$RESULT" |
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.
Regular if
statement would be much more readable.
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.
I was just going to wait a few days and hope people didn't bikeshed the next time, but this works.
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.
This change appears to result in all the TEST bots reporting failure. The original intent was to only report failures if after retrying any failed tests we still have unexpected failures.
bdfa6e1
to
8f6c9da
Compare
I rolled it back to only the first one (this is a direct translation of #12990 now), and it looks like they both globally fail all TEST buildds? |
My original didn't, it seems. But the ones that use stashing $? do. Curious, since the GH CI runners are happy with their lives, at least in some of mine. Shell being used difference? ...I never thought I'd suggest this, but given that the script hard fails if ksh isn't present to begin with, is there a reason for it to be /bin/sh and not /bin/ksh, or a /bin/sh thin wrapper to do the ksh symlinking on FBSD then /bin/ksh? |
I ran the tests in |
I suspect, looking at it harder, that the current behavior is "error if we get a nonzero return from the test runner", when the case I actually wanted to notice was "just" "the test runner got killed/died unexpectedly, but it didn't log any test failures before doing so, so RESULT works out to be 0." I don't actually know offhand what the exit code we'd see there is, versus what we're getting from the runner normally - I wasn't expecting the runner to be returning nonzero on successful run to completion, TBH, but you can see right there in summary() that it returns 1 if anything was KILLED or FAILed and 3 if it RERAN (and 2 if there were 0 tests). So presumably we want exit codes that are outside those. |
Updated to |
I already approved it, but I would agree that the failures seem correct. 👍 |
Currently, we seem to only care if the results collector errors. It seems like we probably care if the test-runner died. Authored-by: Rich Ercolani <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]>
9e43bba
to
a706107
Compare
Rebased, squished |
Currently, we seem to only care if the results collector errors. We also should care if the test-runner died. Authored-by: Rich Ercolani <[email protected]> Co-authored-by: Rich Ercolani <[email protected]> Reviewed-by: Damian Szuberski <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#12998
Currently, we seem to only care if the results collector errors. We also should care if the test-runner died. Authored-by: Rich Ercolani <[email protected]> Co-authored-by: Rich Ercolani <[email protected]> Reviewed-by: Damian Szuberski <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#12998
Description
The Other Bit™ of #12990. Rich seems to've lost interest, I think there's still a point to landing this for now. Nevertheless, just like #12995, this is authored by him (which seems to've been lost on merge?).
Decided to cannibalise
$REPORT_FILE
for the duration between finishing the test and starting the reporter instead of making another temp file.Types of changes
Checklist:
Signed-off-by
.