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

Stop container before removing it forcefully #228

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

rcmadhankumar
Copy link
Contributor

@rcmadhankumar rcmadhankumar commented Sep 20, 2024

Stop container before removing it forcefully on exit.

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.97%. Comparing base (b1aa6d8) to head (235e62a).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #228   +/-   ##
=======================================
  Coverage   94.96%   94.97%           
=======================================
  Files           9        9           
  Lines        1112     1114    +2     
  Branches      231      231           
=======================================
+ Hits         1056     1058    +2     
  Misses         42       42           
  Partials       14       14           

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

Copy link
Owner

@dcermak dcermak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This definitely needs a regression test, i.e. explicitly try to clean up a container that wouldn't stop cleanly under docker.

pytest_container/container.py Outdated Show resolved Hide resolved
Copy link
Owner

@dcermak dcermak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests/files/entrypoint.sh is missing

tests/test_container_build.py Outdated Show resolved Hide resolved
@rcmadhankumar rcmadhankumar force-pushed the fix-stop-container branch 2 times, most recently from 3da2d36 to 618124e Compare September 25, 2024 05:39
@dcermak
Copy link
Owner

dcermak commented Oct 2, 2024

@rcmadhankumar can you please rebase? The testsuite had unrelated issues that now got resolved.

Copy link
Owner

@dcermak dcermak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me!

@dcermak dcermak enabled auto-merge October 7, 2024 12:29
@dcermak dcermak merged commit 61a3da5 into dcermak:main Oct 7, 2024
38 checks passed
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.

2 participants