Repository navigation
fix: memory check against Docker Desktop's VM, ways on after a refused pool start, skill and prompt warnings (#309-#312) - #313
Merged
Merged
Conversation
…d pool start, skill and upgrade prompt warnings (#309, #310, #311, #312) - #309: a lane's containers are checked against the free memory of Docker Desktop's VM (`docker info` MemTotal less what running containers use), its services against the host; the refusal names the limit. ADR-0030 point 5 amended. - #310: a refused start on a node or the pool names the ways on (placement, another node, `--on local`, and that running here is the user's call when the pool is the default); `--on <this machine>` means local. Skill rows updated. - #311: the skills say a linked prepare output is the lane's copy and must not be reinstalled or deleted in the worktree. - #312: the upgrade prompt checks `devstack --version` first and asks before restarting a stack that lanes or other sessions use; the restart keeps the containers. 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.
Fixes #309, fixes #310, fixes #311, fixes #312.
#309 Memory check measured the host, not Docker Desktop's VM
memory_fitscompared the lane's whole need withGlobalMemoryStatusEx. The need is now split (lane_need_parts): with Docker Desktop (docker infoOperatingSystem contains "Docker Desktop") the containers are checked against the VM'sMemTotalminus what every running container uses (docker stats --no-stream), the services against the host. The refusal names the VM's numbers and how to raise its limit;--forcestill overrides. An engine on the host (Linux) keeps the old check.Docker::engine_memoryin devstack-compose;memory_verdictunit-tested with the numbers from the report. ADR-0030 point 5 amended. (Checked here:docker infogives33658015744|Docker Desktop.)Not done:
devstack doctorshowing the VM limit.#310 A refused pool start gave no way on
devstack pool placement <lane>,--on <node>,devstack up --on local; when the pool came fromdefault-on, it says so and that running here is the user's call.--on <this machine's member name or id>resolves to local (remote::is_this_machine) with a note, instead of "not granted to run the pool's lanes".--on local(a plainupgoes to the default again), plus a row for "no node of the pool can take the lane now".#311 Linked node_modules is the lane's copy
Skill rows in
devstack(what not to do in the worktree, how to get one's own: stop the lane or remove only the junction) and a sentence indevstack-configwherelinkis explained. Not done: detecting a shrunk linked copy at the next start (the two-copy scheme of #306 covers lanes on a node; local lanes run from their copy).#312 Upgrade prompt
Step 1 checks
devstack --version(elsedevstack updatefirst and tell the user); the restart step has the agent look atstatus/lane listand ask when lanes or other sessions use the stack, and restarts withdown --keep-infra+up.Tests
memory_verdict,parse_engine_info,refused_ways, prompt test extended;cargo testfor devstack, devstack-daemon, devstack-hub, devstack-compose; clippy clean.🤖 Generated with Claude Code