[P0] docker-compose.test.yml incomplete - missing postgres service for integration tests #93

Closed
opened 2026-07-07 16:21:52 +12:00 by fastie81 · 0 comments
Owner

Problem

Current docker-compose.test.yml is only 5 lines:

services:
  honbu-manager:
    volumes:
      - ./tests:/app/tests
      - ./pytest.ini:/app/pytest.ini

Missing:

  • PostgreSQL service for integration tests
  • Environment variables for test DB
  • Health checks
  • Network configuration

Expected Behavior

Complete test compose file matching CI pipeline (.forgejo/workflows/ci.yml lines 22-33).

Reference

CI uses:

services:
  postgres:
    image: postgres:15-alpine
    env:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: honbu_manager_test
    options: >-
      --health-cmd pg_isready
      --health-interval 5s
      --health-timeout 5s
      --health-retries 10
### Problem Current `docker-compose.test.yml` is only 5 lines: ```yaml services: honbu-manager: volumes: - ./tests:/app/tests - ./pytest.ini:/app/pytest.ini ``` Missing: - PostgreSQL service for integration tests - Environment variables for test DB - Health checks - Network configuration ### Expected Behavior Complete test compose file matching CI pipeline (`.forgejo/workflows/ci.yml` lines 22-33). ### Reference CI uses: ```yaml services: postgres: image: postgres:15-alpine env: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: honbu_manager_test options: >- --health-cmd pg_isready --health-interval 5s --health-timeout 5s --health-retries 10 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
fastie81/honbu-manager#93
No description provided.