Commit Graph
8 Commits
Author SHA1 Message Date
Donkie e3c5f3fc1d Make the integration test suite runnable under Podman
Running tests_integration against rootless Podman surfaced three issues; none
affect the Docker/CI path:

- run.py: add a SPOOLMAN_CONTAINER_ENGINE env var (defaults to "docker") so the
  build/compose commands can be driven by podman instead.
- Dockerfile: drop `--chown=app:app` from the builder-stage COPYs. The "app"
  user only exists in the runner stage; Docker/BuildKit tolerated the dangling
  reference but Podman rejects it. Final ownership is unchanged — it is set when
  the files are copied into the runner stage.
- docker-compose-postgres.yml: add a pg_isready healthcheck and gate spoolman on
  `condition: service_healthy`, matching the mariadb/cockroachdb compose files.
  Without it spoolman raced postgres' initdb and died on connection-refused
  before running migrations.

Verified: full 4-DB suite (sqlite/postgres/mariadb/cockroachdb) green via
`SPOOLMAN_CONTAINER_ENGINE=podman uv run poe itest` — 223 tests each.
2026-07-06 12:16:17 +02:00
hcooper ccfec28bcd Switch from "docker-compose" to "docker compose"
"docker compose" is the modern usage.
2024-01-23 00:09:32 -08:00
Donkie 5c9b0c3fac Run script now fails if docker build fails 2023-07-09 00:54:01 +02:00
Donkie 746b891703 Improve local integration test run script
Can now specify what targets to run
2023-07-08 20:05:28 +02:00
Donkie 11eec3c259 Improved local integration test script 2023-06-30 21:52:33 +02:00
Donkie 235236d435 Ruff fixes 2023-05-28 22:55:11 +02:00
Donkie 5e75d6d70e Run integration tests on all db types 2023-05-21 23:38:41 +02:00
Donkie 6bc9c3c4fa Added script to easily run integration tests locally 2023-05-18 17:53:20 +02:00