Repository navigation
Description
Problem
packages/store-postgres integration tests need a running Postgres. tests/helpers.ts reads POSTGRES_TEST_URL at module load and throws Set POSTGRES_TEST_URL to run Postgres integration tests. from createStorage() when it is unset (most suites are also describe.skipIf(!url)). So pnpm test:pr / pnpm test:ci fail or skip on any machine without Postgres, including the Studio that runs the assembly line. CI gets one from a postgres:16 service container; local machines don't.
Acceptance criteria
- With
POSTGRES_TEST_URLunset,pnpm --filter @tanstack/cms-store-postgres test:libstarts an embedded Postgres, runs the full suite against it (no suites skipped byskipIf(!url), no "Set POSTGRES_TEST_URL" error), and shuts it down afterwards (no leftover postgres process or temp data directory after the run). - With
POSTGRES_TEST_URLset, the tests use that URL exactly as today and no embedded server starts. - The embedded server needs no system install (no Homebrew Postgres, no Docker); a fresh
pnpm installis enough. - The embedded-server package is a
devDependencyof@tanstack/cms-store-postgresonly; the package'sdependenciesandpeerDependenciesare unchanged. pnpm --filter @tanstack/cms-store-postgres test:coveragestill meets the existing coverage thresholds when run against the embedded server.
Out of scope
- Changing
pr.yml, anything under.github/**, or the CI Postgres service. - Changing anything under
packages/store-postgres/src. - Changing other packages' test setups or root CI scripts.
- Changing the Postgres-backed test assertions themselves (only how the server/URL is provided).
Original report
Problem
packages/store-postgres integration tests need a running Postgres. tests/helpers.ts throws Set POSTGRES_TEST_URL to run Postgres integration tests. when the variable is unset, so pnpm test:pr and pnpm test:ci fail on any machine that has no Postgres, including the Studio that runs the assembly line. CI provides one through a postgres:16 service container; local machines don't.
Acceptance criteria
- With
POSTGRES_TEST_URLunset,pnpm --filter @tanstack/cms-store-postgres test:libstarts an embedded Postgres, runs the full suite against it, and shuts it down afterwards - With
POSTGRES_TEST_URLset, the tests use that URL exactly as today, and no embedded server starts - The embedded server needs no system install (no Homebrew Postgres, no Docker)
- The embedded server dependency is a devDependency only; the published package's runtime dependencies don't change
Out of scope
- Changing
pr.ymlor the CI Postgres service - Changing anything under
packages/store-postgres/src
Activity
cms-triager commentedon Oct 30, 2026
triager stopped: the run did not end with one valid handoff comment (claude exit 1). Fix the cause, remove
agent:blocked, and re-add the state label to retry.cms-triager commentedon Oct 30, 2026
Two-way: only tests, vitest config and a devDependency in
packages/store-postgres. Test files there are two-way,src/**is untouched, and runtime behaviour doesn't change. The issue was filed by a maintainer and labelledstate:needs-triage. The earlier bot comment came from a failed triager run, not from a problem with the issue.feat(core,api)!: coalesced change sets with stored strategy state, st…