Skip to content

fix(cli): devstack up waits for the containers too (#66) - #344

Merged
7schmiede merged 2 commits into
mainfrom
fix/up-waits-for-containers
Oct 28, 2026
Merged

7schmiede merged 2 commits into
mainfrom
fix/up-waits-for-containers

Conversation

@7schmiede

@7schmiede 7schmiede commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

What

Reported in #66 (macOS preview test): with a stack of Compose groups only, devstack up returned success while the image was still building. start_and_wait waited for the autostart services alone; with none, it was done right after POST /v1/up (which answers 202 and starts in the background). Not macOS-specific.

up (CLI, and the MCP tools up and lane_start, which use the same wait) now also follows the containers of the stack's Compose groups, from the existing StackView.infra:

  • which: a group's services, or every managed container of its project when it names none (at least one); not those a profile skips (ADR-0058), and in a lane not the shared ones (they run in the main tree);
  • ready: running and, with a health check, healthy; or exited with code 0 (an init container);
  • failing: a container still not ready 300 s after the services were (the daemon waits as long for health), or a group view whose Docker error holds for 10 s; the up then fails naming them;
  • progress lines for containers as for services (data.db running/healthy/0).

CLI only: no API, stack file or daemon change.

Also: devstack node run-lane took a service's build ahead (building → stopped, since #339 builds while the containers start) for its start and stopped waiting; seen in this PR's remote-lane run. building no longer counts as moved.

Checked

  • New unit test up_waits_for_the_containers_a_group_starts; cargo clippy, cargo fmt.
  • On Windows with Docker Desktop, a stack of two Compose groups (busybox, healthy after 8 s and 10 s): 0.27.1 up returned after 1.0 s, this branch after 12.6 s, once both were healthy.

🤖 Generated with Claude Code

7schmiede and others added 2 commits October 28, 2026 10:57
A stack of Compose groups alone has no autostart service, so up answered
right away while its images were still built. It now follows every
container its groups start until it runs (healthy, with a health check)
or ran to completion; one not ready 300 s after the services, or a
group's Docker error that holds for 10 s, fails the up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…' start

Since services build while the containers start (#339), a service went
building -> stopped before its start; run-lane took that as settled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 5bfa84f into main Oct 28, 2026
25 of 26 checks passed
@7schmiede
7schmiede deleted the fix/up-waits-for-containers branch October 28, 2026 10:22
7schmiede added a commit that referenced this pull request Oct 28, 2026
…#346)

Windows gave the restarted lane's api the old pid (seen in #344's CI).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede 7schmiede mentioned this pull request Oct 28, 2026
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.

1 participant