Skip to content

chore: test containers break when their worktree is removed #903

Closed

Description

@EVWorth

Since #900 the test containers are shared across checkouts. But they bind-mount the seed files (tests/fixtures/sql/) from whichever checkout first created them. If that checkout is a worktree and gets removed, docker start fails because the mount source no longer exists, and just db-up with it. Today the fix is just db-reset from a checkout that still exists; the integration-tests skill says so.

Fix

Stop depending on the checkout path. Either copy the seeds into a named volume, or build a small image FROM mysql:8.0 / FROM mariadb:11 that COPYs tests/fixtures/sql/ into /docker-entrypoint-initdb.d/. Then db-seed / db-reset keep working from any checkout. Check that the SELinux :z relabelling note in the justfile still applies, or drop it.

Found while fixing #895.

Activity

  1. added
    bug
    on Oct 25, 2026
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