Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(ci): prepare the parity database only on its test shard (#128882)

posthog[bot]77ff4a07689f
diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.yml
index 7cffa742899f..8d0c591a8f7b 100644
--- a/.github/workflows/ci-nodejs.yml
+++ b/.github/workflows/ci-nodejs.yml
@@ -622,10 +622,11 @@ jobs:
SECRET_KEY: 'abcdef' # unsafe - for testing only
DATABASE_URL: 'postgres://posthog:posthog@localhost:5432/posthog'
BEHAVIORAL_COHORTS_DATABASE_URL: 'postgres://posthog:posthog@localhost:5432/test_behavioral_cohorts'
- run: |
- pnpm --filter=@posthog/nodejs setup:test
- # Create dedicated persons database for postgres-parity tests
- cd nodejs && pnpm run setup:test:persons-parity
+ run: pnpm --filter=@posthog/nodejs setup:test
+
+ - name: Set up postgres-parity database
+ if: matrix.lane == 'serial' && matrix.shard == 1
+ run: cd nodejs && pnpm run setup:test:persons-parity
# Build workspace deps (Rust addons + TS) up front so the Jest step times only tests, not the addon compile.
- name: Prepare Node.js workspace