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(#783): Dispose container while Resource Reaper is disabled #789

Merged
merged 3 commits into from
Feb 18, 2023

Conversation

HofmeisterAn
Copy link
Collaborator

What does this PR do?

Assigns the Resource Reaper session ID to all resources, but starts the Resource Reaper only if it is enabled.

Why is it important?

Sometimes it is necessary to disable Ryuk. Some CI enviroments cannot run Ryuk. Disabling Ryuk disabled DisposeAsync() too. Calling DisposeAsync() did not remove containers on a successful test run. Although, DisposeAsync() is not reliable and Ryuk is preferred to clean up test environments, we can at least try to clean up resources for environments that do not support Ryuk.

Related issues

@HofmeisterAn HofmeisterAn added the bug Something isn't working label Feb 15, 2023
@netlify
Copy link

netlify bot commented Feb 15, 2023

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 46cd5b0
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/63efcea1ca9c2300077e8227
😎 Deploy Preview https://deploy-preview-789--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@HofmeisterAn HofmeisterAn changed the title Bugfix/783 dispose container if rr is disabled fix(#783): Dispose container while Resource Reaper is disabled Feb 18, 2023
@HofmeisterAn HofmeisterAn merged commit d61b9ad into develop Feb 18, 2023
@HofmeisterAn HofmeisterAn deleted the bugfix/783-dispose-container-if-rr-is-disabled branch February 18, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Containers are not cleaned-up with DisposeAsync when Resource Reaper is disabled
1 participant