Repository navigation
fix(deployment): report the compose/env paths docker reports, not a guess (53) - #367
Merged
Merged
Conversation
…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]>
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
BUGS.md #53:
stacker deployment statesynthesized both paths from<project>-<id>— and the compose one matched nothing on the host. Docker reported/home/trydirect/project/docker-compose.yml(its owncom.docker.compose.project.config_fileslabel, confirmed by the agent's logcompose_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 topologyprinted 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 topologytakes--deploymentand resolves through the shared chain (landed with #55).Tests
Label extraction from both report shapes (aggregate
all_healthand single-app) and the no-labels fallback;runtime_pathssuite green. Full suite green except the pre-existing flakytests/agent_sweep.rs.Verify
In BUGS.md #53 ("How to verify"):
stacker deployment state --deployment <hash>must print the compose path docker reports indocker inspect ... com.docker.compose.project.config_files, and note when compose and env are in different directories.