Skip to content

fix(prisma): bound drift checks and report failures - #1804

Merged
GauravKarakoti merged 1 commit into
GauravKarakoti:mainfrom
divyanshAgarwal123:fix/prisma-drift-timeout
Nov 16, 2026
Merged

GauravKarakoti merged 1 commit into
GauravKarakoti:mainfrom
divyanshAgarwal123:fix/prisma-drift-timeout

Conversation

@divyanshAgarwal123

Copy link
Copy Markdown
Contributor

Closes #1793

Bounds every prisma migrate diff invocation used by the drift check: the npm/CI runner stops after 60 seconds, and the two Vitest contract checks stop after 20 seconds. The runner distinguishes schema drift (exit 2), timeout (exit 124), and other Prisma failures, with actionable diagnostics. It also redacts database credentials in failure output and documents the Neon and local shadow database behavior.

Verification:

  • npm test -- tests/prisma-drift-check.test.ts — 10 passed
  • npm run typecheck — passed
  • targeted ESLint — passed
  • Prettier on all changed files — passed
  • pre-commit SecureFlow security scan and OpenAPI verification — passed

The repository-wide pre-commit formatting check currently fails on 11 unrelated existing files. All files in this PR pass Prettier; the commit was created with the hook disabled after checking the other gates above.

Signed-off-by: Divyansh Agarwal <divyanshAgarwal123@users.noreply.github.com>
@vercel

vercel Bot commented Nov 16, 2026

Copy link
Copy Markdown

@divyanshAgarwal123 is attempting to deploy a commit to the Gaurav's projects Team on Vercel.

A member of the Team first needs to authorize it.

@divyanshAgarwal123

Copy link
Copy Markdown
Contributor Author

This PR closes assigned NSoC issue #1793, which is labeled nsoc26 and level2. I cannot add labels to the upstream PR from my fork. When reviewing, could a maintainer add those same labels here so the merged contribution receives the intended NSoC credit? The focused tests and local checks are listed in the PR description.

@GauravKarakoti
GauravKarakoti merged commit 9df4f8c into GauravKarakoti:main Nov 16, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(prisma): handle prisma migrate diff timeouts

2 participants