Skip to content
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

serve: Handle case where server subprocess times out #49233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ptomato
Copy link
Contributor

@ptomato ptomato commented Nov 18, 2024

If wait() times out, the exitcode attribute will not be set. Instead, it'll be None. Handle this case and log a warning that the server process timed out, instead of throwing in the else-clause when trying to format None as %d.

If `wait()` times out, the `exitcode` attribute will not be set. Instead,
it'll be `None`. Handle this case and log a warning that the server
process timed out, instead of throwing in the else-clause when trying to
format `None` as `%d`.
@ptomato
Copy link
Contributor Author

ptomato commented Nov 18, 2024

Unfortunately, hard to tell if this CI run hit the flaky timeout condition in "tools/ unittests: macOS + Python 3.8", which is where I've been seeing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants