Skip to content

fix(deployment): report the compose/env paths docker reports, not a guess (53) - #367

Merged
vsilent merged 3 commits into
all-fixesfrom
fix/deployment-state-real-paths-53
Nov 20, 2026
Merged

vsilent merged 3 commits into
all-fixesfrom
fix/deployment-state-real-paths-53

Conversation

@vsilent

@vsilent vsilent commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

What

BUGS.md #53: stacker deployment state synthesized both paths from <project>-<id> — and the compose one matched nothing on the host. Docker reported /home/trydirect/project/docker-compose.yml (its own com.docker.compose.project.config_files label, confirmed by the agent's log compose_dir=/home/trydirect/project), while the report claimed /home/trydirect/<project>-<id>/docker-compose.yml. The env path happened to be right, which made the wrong one harder to spot; explain topology printed a third path.

How

Per the expected outcome, the report now gives the path docker reports: the agent already forwards every container's labels in its snapshot, and docker labels each container with the files it actually read (com.docker.compose.project.config_files / ...environment_files). The state prefers those over the synthesis (fallback when the snapshot carries no labelled container) and notes the split when compose and env live in different directories — the marketplace-deploy case.

The topology half of the entry is already fixed: explain topology takes --deployment and resolves through the shared chain (landed with #55).

Tests

Label extraction from both report shapes (aggregate all_health and single-app) and the no-labels fallback; runtime_paths suite green. Full suite green except the pre-existing flaky tests/agent_sweep.rs.

Verify

In BUGS.md #53 ("How to verify"): stacker deployment state --deployment <hash> must print the compose path docker reports in docker inspect ... com.docker.compose.project.config_files, and note when compose and env are in different directories.

robotizeit and others added 2 commits November 20, 2026 18:53
…uess (53)

`stacker deployment state` synthesized both paths from `<project>-<id>`,
and the compose one matched nothing on the host — docker reported
/home/trydirect/project/docker-compose.yml (its own
com.docker.compose.project.config_files label) while the report claimed
/home/trydirect/<project>-<id>/docker-compose.yml. The env path was right,
which made the wrong one harder to spot; explain topology printed a third.

The agent already forwards every container's labels in its snapshot — the
paths docker reports travel in `com.docker.compose.project.config_files`
and `com.docker.compose.project.environment_files`. The state now prefers
those and falls back to the synthesis when the snapshot carries no labelled
container; the report notes when the compose and env directories differ.

The topology half of the entry (`--deployment`) was fixed with #55.

Tests: label extraction from the aggregate and single-app report shapes, and
the no-labels fallback. Full suite green except the pre-existing flaky
`tests/agent_sweep.rs` (and admin_jwt flakes under the machine's disk
event — green in isolation).

Co-Authored-By: Claude Opus 5 <[email protected]>
@vsilent
vsilent changed the base branch from dev to all-fixes November 20, 2026 20:13
@vsilent
vsilent merged commit 5d8c342 into all-fixes Nov 20, 2026
1 check passed
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.

2 participants