Repository navigation
fix(cli): devstack up waits for the containers too (#66) - #344
Merged
Merged
Conversation
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>
This was referenced Oct 28, 2026
Merged
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.
What
Reported in #66 (macOS preview test): with a stack of Compose groups only,
devstack upreturned success while the image was still building.start_and_waitwaited for the autostart services alone; with none, it was done right afterPOST /v1/up(which answers202and starts in the background). Not macOS-specific.up(CLI, and the MCP toolsupandlane_start, which use the same wait) now also follows the containers of the stack's Compose groups, from the existingStackView.infra:services, or every managed container of its project when it names none (at least one); not those a profileskips (ADR-0058), and in a lane not thesharedones (they run in the main tree);runningand, with a health check,healthy; orexitedwith code 0 (an init container);upthen fails naming them;data.db running/healthy/0).CLI only: no API, stack file or daemon change.
Also:
devstack node run-lanetook a service's build ahead (building→stopped, since #339 builds while the containers start) for its start and stopped waiting; seen in this PR'sremote-lanerun.buildingno longer counts as moved.Checked
up_waits_for_the_containers_a_group_starts;cargo clippy,cargo fmt.upreturned after 1.0 s, this branch after 12.6 s, once both were healthy.🤖 Generated with Claude Code