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

channel: Increase grace period for subprocesses to stop #120

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented Jul 14, 2024

There were complaints that tbot would raise the "some subprocess(es) did not stop" error too quickly. The previous 1.27s timeout was too short for some programs to exit on their own.

To make tbot more graceful, increase the maximum termination time to 10.2 seconds. However, a warning will be emitted at 1.27s to let the user know why tbot is waiting.

Fixes: #116
Cc: @VictorEmelin

There were complaints that tbot would raise the "some subprocess(es) did
not stop" error too quickly.  The previous 1.27s timeout was too short
for some programs to exit on their own.

To make tbot more graceful, increase the maximum termination time to 10.2
seconds.  However, a warning will be emitted at 1.27s to let the user
know why tbot is waiting.

Signed-off-by: Rahix <[email protected]>
Copy link

codecov bot commented Jul 14, 2024

Codecov Report

Attention: Patch coverage is 22.22222% with 7 lines in your changes missing coverage. Please review.

Project coverage is 62.26%. Comparing base (d2c043f) to head (1e14da5).

Files Patch % Lines
tbot/machine/channel/subprocess.py 22.22% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
- Coverage   62.39%   62.26%   -0.14%     
==========================================
  Files          53       53              
  Lines        3755     3747       -8     
==========================================
- Hits         2343     2333      -10     
- Misses       1412     1414       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Rahix Rahix merged commit 1e14da5 into master Jul 14, 2024
1 of 3 checks passed
@Rahix Rahix deleted the longer-termination-grace-period branch July 14, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test case with picocom channel fails with "some subprocess(es) did not stop"
1 participant