Repository navigation
Clean up Compose resources and listeners for removed worktrees - #30
Merged
Merged
Conversation
- stop dev servers listening on a freed 127.0.1.x address in `lodo prune` and worktree slot reclaim in `lodo dev` - remove the worktree's Compose containers, networks, and volumes by `com.docker.compose.project` label - track the `worktree` flag on domains so legacy entries are detected from disk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/clean.rs, which tears down a removed worktree's Docker Compose containers, networks, and volumes bycom.docker.compose.project=<label>, and stops TCP listeners left on a freed127.0.1.xown-block address.worktreeflag onstore::Domain(omitted from JSON whenfalse), populated byscan::proposeandlodo dev's auto-register path.lodo prune(including--worktreeand the menu bar'sPrune Missing Projects) and from worktree slot reclaim inlodo dev, printingstopped ...summaries to stdout andnote ...warnings to stderr.launchd's minimalPATH; add/bin/killas a known tool path.--compose none, or for non-worktree projects, so main-checkout Docker resources are never touched.caddy,dnsmasq,lodo, andcom.apple.*processes are ignored, as are the current process and non-matching or forwarded sockets.lsof/killcalls are best-effort with timeouts; a stopped Docker daemon only produces a note when a compose file is linked.docs/reference.mdandAGENTS.md.Testing
cargo fmt --all -- --check— passed.cargo clippy --all-targets --locked -- -D warnings— passed.cargo test --locked— passed: 136 library tests, 2e2e_dataplanetests (including the Swift self-tests). New coverage checks Docker removal order, listener parsing and protected-process skipping, non-worktree IP-only cleanup,compose noneand shared label/IP skips, daemon-failure notes, andkillerror handling.cargo install --path . --locked— built and installed the binary.e2e_system.rssuite, and no manual run against live Docker containers or a restarted menu bar app.