test(identity): isolate data-rights ledger database fixture - #170
Conversation
|
Warning Review limit reached
Next review available in: 57 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reliability outcome
Make the data-rights request-ledger PostgreSQL fixture safe under concurrent/full-repository verification instead of force-terminating clients in the shared CI server.
Observed RED
PR #169 exact-source validation passed after its plugin migration fix, but live-base merge compatibility failed in the unrelated identity-service suite with PostgreSQL
57P01(terminating connection due to administrator command) fromdata-rights-request-ledger.integration.test.ts. The fixture currently executesDROP DATABASE ... WITH (FORCE)around a fixed test database, which can kill active clients rather than serialize ownership.This branch starts with a regression contract that rejects force-terminating teardown and requires advisory-lock ownership. The next commit will implement the smallest fixture-only repair, following the already protected session-migration isolation pattern.
Scope
Test harness only. No product persistence, data-rights semantics, migrations, API contracts, or production runtime behavior change.
Acceptance
Observe the regression RED first, then replace force termination with one session-scoped advisory lock, close the test pool before database drop, release the lock in cleanup, and prove exact-head Identity/full CI plus live-base merge compatibility without weakening any gate.