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

Cleanup test containers on retries #20902

Merged
merged 2 commits into from
Mar 1, 2024
Merged

Cleanup test containers on retries #20902

merged 2 commits into from
Mar 1, 2024

Conversation

findepi
Copy link
Member

@findepi findepi commented Mar 1, 2024

Container start may fail and leave a container running behind.
When container creation/start is not retried, this is not an issue,
since the failure is propagated and leads to test failures anyway.
If creation/start is retried, the leaked container may be running in the
background (resource leak), and also will be reported by
ReportLeakedContainers (test failure, even though the start was
retried and successful in the end). Therefore containers needs to be
explicitly cleaned up (stopped) upon retries.

findepi added 2 commits March 1, 2024 11:36
Method was returning one thing and setting a field with another.
Container start may fail and leave a container running behind.
When container creation/start is not retried, this is not an issue,
since the failure is propagated and leads to test failures anyway.
If creation/start is retried, the leaked container may be running in the
background (resource leak), and also will be reported by
`ReportLeakedContainers` (test failure, even though the start was
retried and successful in the end). Therefore containers needs to be
explicitly cleaned up (stopped) upon retries.
@findepi findepi added test no-release-notes This pull request does not require release notes entry labels Mar 1, 2024
@findepi findepi requested review from ebyhr and hashhar March 1, 2024 10:45
@cla-bot cla-bot bot added the cla-signed label Mar 1, 2024
@findepi findepi merged commit 3e21b06 into master Mar 1, 2024
98 checks passed
@findepi findepi deleted the findepi/leak branch March 1, 2024 15:33
@github-actions github-actions bot added this to the 440 milestone Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry test
Development

Successfully merging this pull request may close these issues.

2 participants