1.9 KiB
1.9 KiB
Task Scratchpad — Turbo DATABASE_URL passthrough
Objective
- Fix CI test execution under Turborepo by passing DB-related environment variables through the
testtask. - Preserve the repo's documented local Postgres fallback on host port
5433.
Scope
- Edit
turbo.json - Run baseline checks requested by the user and repo rules where feasible
- Publish branch and open PR if checks are acceptable
Assumptions
- ASSUMPTION: No PRD update is required because this is a narrow CI/config bug fix that does not change product requirements.
- ASSUMPTION:
docs/TASKS.mdremains untouched because project guidance marks it orchestrator-only. - ASSUMPTION: Local Postgres-backed tests are not runnable in this worktree, so baseline verification will rely on static gates unless the environment already provides DB access.
Plan
- Record current repo state and avoid touching
.mosaic/orchestrator/session.lock - Add Turbo DB env declarations for test execution and cache invalidation
- Run
pnpm format:check,pnpm typecheck, andpnpm lint - Review the diff, then commit/push/PR via provider-appropriate flow
Verification Log
pnpm installcompleted in this worktree so repo tooling is availablepnpm format:checkinitially failed onturbo.json; fixed by formatting the filepnpm format:checkpassed after formattingpnpm typecheckpassedpnpm lintpassed- Independent review flagged two important adjustments:
- keep
DEFAULT_DATABASE_URLon5433because local Docker Compose maps host5433 -> container 5432 - prefer Turbo
envoverpassThroughEnvso DB config changes also affect the test cache key
- keep
Risks
- Existing mission/orchestrator files are dirty in the worktree and must be excluded from the scoped change.
- Local tests were not run because no Postgres service is available in this worktree; CI remains the primary situational validation for the test-task behavior.