fix(ci): add IMPORT_HOST_DIR stub to compose-idempotency job #561

Merged
marcel merged 1 commits from worktree-chore+issue-556-drop-client-branches-coverage-gate into main 2026-05-14 10:58:40 +02:00
Owner

Summary

  • Docker Compose interpolates all variables in docker-compose.prod.yml when parsing it, even when only minio is requested
  • backend.volumes uses ${IMPORT_HOST_DIR:?...} (hard-required), causing the entire job to abort before any container starts
  • Added IMPORT_HOST_DIR=/tmp/dummy-import to the .env.test stub — the path doesn't need to exist since the backend service is never started in this job

Test plan

  • CI Compose Bucket Idempotency job passes (no interpolation error, both create-buckets runs exit 0)
  • All other CI jobs unaffected

🤖 Generated with Claude Code

## Summary - Docker Compose interpolates **all** variables in `docker-compose.prod.yml` when parsing it, even when only `minio` is requested - `backend.volumes` uses `${IMPORT_HOST_DIR:?...}` (hard-required), causing the entire job to abort before any container starts - Added `IMPORT_HOST_DIR=/tmp/dummy-import` to the `.env.test` stub — the path doesn't need to exist since the backend service is never started in this job ## Test plan - [ ] CI `Compose Bucket Idempotency` job passes (no interpolation error, both `create-buckets` runs exit 0) - [ ] All other CI jobs unaffected 🤖 Generated with [Claude Code](https://claude.com/claude-code)
marcel added 1 commit 2026-05-14 10:58:18 +02:00
fix(ci): add IMPORT_HOST_DIR stub to compose-idempotency env file
Some checks failed
CI / Unit & Component Tests (push) Failing after 2m37s
CI / OCR Service Tests (push) Successful in 18s
CI / Backend Unit Tests (push) Successful in 4m24s
CI / Compose Bucket Idempotency (push) Successful in 56s
CI / Unit & Component Tests (pull_request) Failing after 2m36s
CI / fail2ban Regex (push) Successful in 41s
CI / OCR Service Tests (pull_request) Successful in 17s
CI / Backend Unit Tests (pull_request) Successful in 4m20s
CI / fail2ban Regex (pull_request) Successful in 39s
CI / Compose Bucket Idempotency (pull_request) Successful in 57s
5ce0856178
Docker Compose interpolates all variables in the full file even when
only a subset of services is requested. The backend service uses
IMPORT_HOST_DIR with :? (hard-required), causing the idempotency job
to abort before any container starts. A dummy path satisfies the parser;
the backend service is never started in this job so the path need not exist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
marcel merged commit 3de0d2f0fe into main 2026-05-14 10:58:40 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: marcel/familienarchiv#561