Repository navigation
Journey test teardown waits as long as its setup - #30435
Conversation
useDevDatabase registered its afterAll on vitest's default 5 s hook timeout while beforeAll used timeouts.spinUpPpgDev. Under full-suite load the dev database's close() exceeded 5 s and failed files whose tests had all passed. The sql-orm-client integration helper already passes the same timeout to its afterAll; this does the same here. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: prisma/orm/.coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe database cleanup ChangesDatabase cleanup
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The cleanup timeout now matches setup, and no actionable merge-blocking risk is evident in the supplied change. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
size-limit report 📦
|
@prisma/orm-extension-arktype-json
@prisma/orm-extension-middleware-cache
@prisma/orm-extension-paradedb
@prisma/orm-extension-pgvector
@prisma/orm-extension-postgis
@prisma/orm-extension-supabase
@prisma/orm-family-mongo
@prisma/orm-family-sql
@prisma/orm-framework
@prisma/orm-mongo
@prisma/orm-postgres
@prisma/orm-sqlite
@prisma/orm-target-mongo
@prisma/orm-target-postgres
@prisma/orm-target-sqlite
@prisma/orm-toolchain
commit: |
Main's squash of #30405 duplicates the slice 5 head this branch already merged, so its conflicts resolve to this branch's side. The merge brings in only #30418 and #30435 (integration-test package scripts, journey teardown timeout, and their lockfile entries). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Linked issue
n/a — small change.
Summary
useDevDatabasein the CLI journey test helpers registers itsafterAllteardown on vitest's default 5 s hook timeout while itsbeforeAllusestimeouts.spinUpPpgDev. Under full-suite load the dev database'sclose()took longer than 5 s twice in a row on PR #30402 (infer-roundtrip-fidelity.hand-written-check.e2e.test.ts,migration-log.e2e.test.ts), failing files whose tests had all passed; both passed when rerun alone. The sibling helper intest/integration/test/sql-orm-client/integration-helpers.tsalready passestimeouts.spinUpPpgDevto itsafterAll. This applies the same timeout here.Scope: one line in
test/integration/test/utils/journey-test-helpers.ts. No test logic, no other files.Testing performed
pnpm --filter integration-tests exec vitest run test/cli-journeys/infer-roundtrip-fidelity.hand-written-check.e2e.test.ts test/cli-journeys/migration-log.e2e.test.tspnpm --filter integration-tests typecheck && pnpm --filter integration-tests lintSkill update
n/a — internal only.
Checklist
git commit -s) per the DCO.n/a— test infrastructure timeout only).TML-NNNN: <sentence-case title>form (no Linear ticket).Notes for the reviewer
Verification: the diff adds
timeouts.spinUpPpgDevas the second argument of oneafterAll, mirroring thebeforeAlltwo lines above it.🤖 Generated with Claude Code
Summary by CodeRabbit