-
Notifications
You must be signed in to change notification settings - Fork 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
Test rule is SIGKILL-ed after timeout instead of waiting for the termination grace period #14298
Comments
I get the same behavior on Ubuntu 20.04.3 LTS.
|
@comius does the API team feel responsible for testing infrastructure? |
We don't have enough knowledge about it at the moment. Perhaps @larsrc-google is a better candidate to triage this? |
No, I can't say I know much if anything about the testing infrastructure either. |
Did some digging into this. From the Bazel server point of view, the tests are run in exactly the same way. I suspect the cause is some interaction in how the shell handles signals with how
and
|
Seeing this with a C++ test on release 7.1.1-9fa75dffd135ee81a6459221d1ca1826c259386f |
Description of the problem / feature request:
Tests that exceed the timeout are sent a SIGKILL signal without waiting for the termination grace period to pass. I observed this for Golang and Kotlin tests, it however works as expected for shell tests.
Feature requests: what underlying problem are you trying to solve with this feature?
Test cleanup.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I reproduced it in https://github.com/dejan-lokar/bazel-termination-grace with a Golang and a Shell test. I run both tests with 3s timeout and an additional 3s for graceful termination. Shell test exits after ~6s as expected, Golang test however exists after ~3s.
What operating system are you running Bazel on?
macOS Big Sur, Version 11.5.2
What's the output of
bazel info release
?release 4.2.1
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?git@github.com:dejan-lokar/bazel-termination-grace.git
d21375a86f0179f20d9fd11ac643366c608ff0a5
d21375a86f0179f20d9fd11ac643366c608ff0a5
Have you found anything relevant by searching the web?
This closed issue appears related: #7119. If I add a
--experimental_split_xml_generation
flag, the Golang test still timeout-s at ~3s.The text was updated successfully, but these errors were encountered: