inttests: kill test runner containers faster#61
Merged
chmeliik merged 1 commit intokonflux-ci:mainfrom Feb 16, 2026
Merged
Conversation
Contributor
Author
|
When running On my machine it takes 105 seconds in main vs 15 seconds with this change |
Code Review by Qodo
1. --time breaks docker rm
|
a3c0a33 to
c0f36d0
Compare
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
mmorhun
reviewed
Feb 16, 2026
Previously, each test scenario would wait 10 seconds to remove the test container. This is because the test containers use 'sleep' as the entrypoint. Sleep doesn't have SIGTERM handling, so when it runs as PID 1, SIGTERM doesn't do anything and the container engine resorts to SIGKILL after 10 seconds. Kill test runner containers immediately (without the 10 second wait) to speed up tests and to make it more consistent between podman and docker (docker sends SIGKILL immediately). Signed-off-by: Adam Cmiel <acmiel@redhat.com>
c0f36d0 to
fcdab01
Compare
mmorhun
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, each test scenario would wait 10 seconds to remove the test container. This is because the test containers use 'sleep' as the entrypoint. Sleep doesn't have SIGTERM handling, so when it runs as PID 1, SIGTERM doesn't do anything and the container engine resorts to SIGKILL after 10 seconds.
Kill test runner containers immediately (without the 10 second wait) if they use --entrypoint sleep. This greatly speeds up integration tests.