Skip to content

feat: Postgres test story: embedded-postgres with no skip gate, development export condition #39

Closed

Description

@allisonmahmood

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).

Activity

  1. added
    ready-for-agent
    area:server
    area:ci
    port-requirement
    on Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ciarea:serverport-requirementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions