Skip to content

Preserve broker containers in killall cleanup - #197

Merged
nickjalbert merged 3 commits into
laude-institute:mainfrom
dajiaohuang:fix/killall-preserve-brokers
Oct 6, 2026
Merged

nickjalbert merged 3 commits into
laude-institute:mainfrom
dajiaohuang:fix/killall-preserve-brokers

Conversation

@dajiaohuang

@dajiaohuang dajiaohuang commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

The cleanup candidate query matches shellm-* containers, including persistent brokers, despite the script's documented promise to leave brokers running. Exclude containers labeled shellm.broker=1 from the candidate query and its normal/dry-run listings. Keep the existing separate broker report.

Closes #196.

Validation: two Ubuntu regression tests run the actual complete script with isolated process enumeration and a Docker CLI fixture containing a per-run sandbox and persistent broker. They verify normal cleanup targets only the sandbox, dry-run performs no removal, both listings exclude brokers from candidates, and the separate broker report remains. Both tests pass with the fix and fail on the original candidate query. Tests are included in the existing shell harness. git diff --check passes. Docker CLI/filter behavior is simulated; no real daemon or container removal was exercised. Current-commit CI is pending.

@nickjalbert

Copy link
Copy Markdown
Contributor

LGTM! Thanks!

@nickjalbert
nickjalbert merged commit 07f51dd into laude-institute:main Oct 6, 2026
12 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.

headlong-killall can remove persistent broker containers

2 participants