fix(docker): make terminal cleanup remove containers reliably - #20565
fix(docker): make terminal cleanup remove containers reliably#20565LeonSGP43 wants to merge 2 commits into
Conversation
|
Verification update after
Current CI state on
The earlier diff-check failure on |
|
Status: HER-22 verification at repaired head.
|
|
Thanks for the focused cleanup work and regression tests. Current main resolved #20561 through a broader Docker persistence design, so this patch cannot be applied as-is. Problems
Suggested changes
Automated hermes-sweeper review. |
Re-triage note: the container-accumulation bug (#20561) this PR addresses was resolved on |
Summary
docker rm -fas the verified success point/stopalso clean active terminal environments, not only background process registry entriesAddresses #20561.
Verification
scripts/run_tests.sh tests/tools/test_docker_environment.py tests/tools/test_terminal_environment_cleanup.py tests/cli/test_stop_command_cleanup.py-> 26 passed, 4 existing warningspython -m py_compile tools/environments/docker.py tools/terminal_tool.py cli.py tests/tools/test_terminal_environment_cleanup.py tests/cli/test_stop_command_cleanup.pygit diff --checkNotes
ruff checkon the touched runtime files still reports pre-existing import-order findings incli.pyandtools/terminal_tool.py; no new lint-only cleanup is included here to keep the PR focused.