Repository navigation
fix: doctor shows Docker Desktop's VM memory; an emptied linked copy is prepared again (#309, #311) - #318
Merged
Conversation
…is prepared again (#309, #311) - #309: `devstack doctor` shows the memory of Docker Desktop's VM, what the running containers use of it, and the host's free memory. - #311: with a prepare's mark, the entries of each linked directory are counted (`prepared/<service>.entries`). One that lost more than a tenth of them (a reinstall through the worktree's link) is prepared again: a local lane's copy before its service starts, with a notice and `prepare_copy_emptied` in the log; a lane on a node's at the next look, into its other copy. ADR-0063 amended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-ups of #313, which left these two out.
#309:
devstack doctorshows the VM's limitWith Docker Desktop,
doctoradds aninfoline: the VM's memory, what the running containers use of it, what is free there, and the host's free memory. Checked here:#311: an emptied linked copy is prepared again
When a
prepareis done, the entries of eachlinkdirectory are counted beside its mark (prepared/<service>.entries). A directory that has since lost more than a tenth of them (annpm cithrough the worktree's junction) is not a copy of its key:prepare_jobprepares it again before the service starts, with a notice (prepare.emptied.<service>) andprepare_copy_emptiedin the daemon log;ready()fails for that copy, so the next look (every 15 s) prepares the other copy and moves the link (fix(lanes): a lane on a node keeps a whole node_modules while new inputs are prepared (#305) #306's scheme).A mark from before has no counts and is not checked. ADR-0063 amended, stack-file.md and both skill rows updated.
Tests
a_copy_emptied_through_its_link_is_noticed,the_memory_line_names_docker_desktops_vm;cargo testfor devstack, devstack-daemon, devstack-compose; clippy clean.🤖 Generated with Claude Code