-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Differentiate between and process and timeout errors #24338
Conversation
test/TestHelpers.jl
Outdated
sleep(timeout) | ||
kill(p) | ||
close(master) | ||
end | ||
try | ||
for (challenge, response) in challenges | ||
process_exited(p) && error("Too few prompts. $(format_output(out))") | ||
|
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 couldn't manage to trigger this error. Most of the time this loop is blocked by readuntil
which will abend when the process is aborted and trigger the "Could not locate challenge" error.
test/TestHelpers.jl
Outdated
|
||
# Process timed out or aborted | ||
if !success(p) | ||
if istaskdone(t) |
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.
Looking at this again there is a small timing window where the process could be killed externally and the time out task could end
Some additional changes:
|
32ab46e
to
8b7784a
Compare
Rebased changes. Hopefully the Circle CI test pass now. |
8b7784a
to
273e570
Compare
Rebased changes to re-run the CI. Will merge if successful. |
Travis CI failures are unrelated. |
Previously a SIGKILL from the timeout task or signalled externally would both raise the same exception. This should assist in debugging #24329