Skip to content

chore: test containers can't start from a second worktree #895

Closed

Description

@EVWorth

docker-compose.test.yml gives every service a fixed container_name (mas-mysql-8, mas-mariadb-11, …). From a second git worktree, just db-up fails because those names are already in use:

Error response from daemon: Conflict. The container name "/mas-mysql-8" is already in use

Parallel agents work in worktrees, and so do contributors with more than one checkout, so db-up from anywhere but the first checkout fails.

Fix

Since both checkouts can share one set of databases, make just db-up idempotent: if the named containers exist, docker start them and wait for health, instead of compose up. Alternatively, drop container_name and pin a name: at the top of the compose file so every worktree uses the same project. Either way, update _db-wait to match, and note it in the integration-tests skill.

Found while fixing #868.

Activity

  1. added
    bug
    on Oct 24, 2026
  2. added a commit that references this issue on Oct 25, 2026
    da41cf3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions