Skip to content

testing: btlr update #4594

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

Merged
merged 3 commits into from
Aug 30, 2020
Merged

testing: btlr update #4594

merged 3 commits into from
Aug 30, 2020

Conversation

kurtisvg
Copy link
Contributor

Description

Updates btlr with a version that finishes printing logs upon sigterm signals, and adds a per-command timeout to prevent long jobs from hogging a thread for too long.

Fixes #4104
Fixes #4103

@kurtisvg kurtisvg requested a review from tmatsuo August 28, 2020 18:07
@kurtisvg kurtisvg requested a review from a team as a code owner August 28, 2020 18:07
@kurtisvg kurtisvg self-assigned this Aug 28, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 28, 2020
@@ -146,6 +146,7 @@ test_prog="${PROJECT_ROOT}/.kokoro/tests/run_single_test.sh"

btlr_args=(
"run"
"--max-cmd-duration=30m"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when it timeouts? I presume the test will fail. Am I right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes (specifically, it sends a sigterm to the command and which will end the python process and give a non-zero exit code).

The error reported will be "signal: killed" in the summary statement for the cmd.

@tmatsuo tmatsuo changed the title Btlr update testing: btlr update Aug 28, 2020
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Aug 29, 2020
@kurtisvg kurtisvg merged commit a0fd4d4 into master Aug 30, 2020
@kurtisvg kurtisvg deleted the btlr_update branch August 30, 2020 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

testing: consider how to preserve logs for btlr workers even if the CI job timed out testing: avoid timeout with btlr
2 participants