fix(ci): pass DATABASE_URL through Turbo to test tasks #338

Merged
jason.woltje merged 1 commits from fix/turbo-env-passthrough into main 2026-03-31 04:03:30 +00:00
Owner

Summary

  • declare DB-related environment variables for the Turbo test task so CI-provided DB settings reach Vitest
  • use Turbo env rather than passThroughEnv so DB config changes also invalidate the test cache
  • keep the repo's local fallback DB port unchanged at 5433, which still matches Docker Compose host mapping

Root Cause

Woodpecker sets DATABASE_URL for CI, but Turbo runs in strict environment mode. Without the DB variables declared on the test task, they never reach the Vitest process and the gateway tests fall back to the local default connection string.

Validation

  • pnpm format:check
  • pnpm typecheck
  • pnpm lint
  • Local test execution not run because this worktree does not have a Postgres service available
## Summary - declare DB-related environment variables for the Turbo test task so CI-provided DB settings reach Vitest - use Turbo env rather than passThroughEnv so DB config changes also invalidate the test cache - keep the repo's local fallback DB port unchanged at 5433, which still matches Docker Compose host mapping ## Root Cause Woodpecker sets DATABASE_URL for CI, but Turbo runs in strict environment mode. Without the DB variables declared on the test task, they never reach the Vitest process and the gateway tests fall back to the local default connection string. ## Validation - pnpm format:check - pnpm typecheck - pnpm lint - Local test execution not run because this worktree does not have a Postgres service available
jason.woltje added 1 commit 2026-03-31 03:04:10 +00:00
fix(ci): pass DATABASE_URL through Turbo to test tasks
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
a824a43ed1
jason.woltje merged commit 35123b21ce into main 2026-03-31 04:03:30 +00: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: mosaicstack/stack#338