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

fix: extend compose down timeout to 30 seconds #207

Conversation

austinvazquez
Copy link
Member

Issue #, if available:
#206

Description of changes:
This change extends the timeout for compose down commands to 20 seconds. Beginning with nerdctl 2.0, compose down will attempt to gracefully teardown containers by sending SIGTERM with a 10 second timeout. For testing, common-tests is using stubborn containers, e.g. sleep infinity, which require sigkill to come down. For most test cases, this can be worked around by using compose stop/rm instead; however, for this test suite which needs to explicitly test compose down there is not workaround other than to extend the timeout to a value that makes sense.

Testing done:
Ran tests in runfinch/finch-core#472

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This change extends the timeout for compose down commands to 30 seconds.
Beginning with nerdctl 2.0, compose down will attempt to gracefully
teardown containers by sending SIGTERM with a 10 second timeout. For
testing, common-tests is using stubborn containers, e.g. sleep infinity,
which require sigkill to come down. For most test cases, this can be
worked around by using compose stop/rm instead; however, for this test
suite which needs to explicitly test compose down there is no
workaround other than to extend the timeout to a value that makes
sense.

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
@austinvazquez austinvazquez force-pushed the real-extend-compose-down-timeout branch from 1bb92ca to fccbdf5 Compare December 26, 2024 23:01
@austinvazquez
Copy link
Member Author

Superseded by #208

@austinvazquez austinvazquez deleted the real-extend-compose-down-timeout branch January 3, 2025 17:06
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.

1 participant