You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Postgres test story: embedded-postgres with no skip gate, development export condition #39
area:ciCI, shared testing infrastructure, development scripts and toolingarea:serverTouches the server areaport-requirementThe Effect v4 port map inherits this as a requirementready-for-agentFully specified, ready for an AFK agent
Effect v4 port requirement — the port's tests run against real Postgres from day one; this issue is where that becomes true.
Problem
packages/db/src/upload-contract.test.ts is describe.skip unless DATABASE_URL is set, so the Postgres contract suite runs only in CI; the HTTP layer has never run against Postgres; packages export dist/ only, so in-package test runs use stale builds.
"kinda come in with the whole we don't have a proper local dev environment. We should clean that up too." — t3code 1.5, surprise #6
The decisions are made in Local dev environment: embedded-postgres for dev, tests and CI with no skip gate; template-cloned per test; exports resolve to src via a development condition, keep tsx.
Do
embedded-postgres in a vitest globalSetup (or runner-provisioned per-worktree database); delete the describe.skip branch.
Run the server HTTP suite against Postgres too.
development export condition on every workspace package so tests and dev servers resolve src; verify vitest and tsx pick it.
Done when
pnpm test on a clean machine with no Docker runs the Postgres suites, and editing a package source is visible to a dependent's tests without a build.
Filed from the foundation map task File the DX backlog from the decisions doc. Allison's reasoning is quoted from her agent-DX decision log (t3code and omarchy surveys, reviewed 2026-08-26).
area:ciCI, shared testing infrastructure, development scripts and toolingarea:serverTouches the server areaport-requirementThe Effect v4 port map inherits this as a requirementready-for-agentFully specified, ready for an AFK agent
Activity