fix(pdf): treat extractor exit code 137 as SIGKILL - #1285
Conversation
OOM kills often report exit 137 without a Node signal. Map that to the same PdfExtractorProcessError path as an explicit kill, with a focused regression test.
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Warning Review limit reached
Next review available in:49 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. 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: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
BigSimmo
commented
Jul 27, 2026
@cursoragent please resolve all CI failing tests after understanding the issue. Please also fix any comments and resolve them and also ensure that you fix with smallest required fix with best coding practice and u derstabding the fix rather than simple patch. Please fix any merge conflicts and ensure any issues are found. Please resolve any issues you find. Please also run bugbot. |
PR #1285 is clean again: required CI green, synced with What I found
What I changed
Verification
Tip: |
Process-death regressions only need scriptPathOverride, so keep them outside the PyMuPDF suite and assert PdfExtractorProcessError by name.
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
BigSimmo
commented
Jul 28, 2026
@cursoragent please resolve all CI failing tests after understanding the issue. Please also fix any comments and resolve them and also ensure that you fix with smallest required fix with best coding practice and u derstabding the fix rather than simple patch. Please fix any merge conflicts and ensure any issues are found. Please resolve any issues you find. Please also run bugbot. Please mark comments resolved also once you resolve them. |
PR #1285 is green and merge-clean again. Root cause of the CI failure
What I fixed
Comments / threads
Status now
|
BigSimmo
commented
Jul 28, 2026
@cursoragent please resolve all CI failing tests after understanding the issue. Please also fix any comments and resolve them and also ensure that you fix with smallest required fix with best coding practice and u derstabding the fix rather than simple patch. Please fix any merge conflicts and ensure any issues are found. Please resolve any issues you find. Please also run bugbot. Please mark comments resolved also once you resolve them. |
PR #1285 is in good shape again. CI / conflicts
Bugbot / comments
Status
|
The merge=union driver duplicated one identical babysit record when syncing main into PR #1285. Keep the first copy only.
BigSimmo
commented
Jul 28, 2026
@cursoragent please resolve all CI failing tests after understanding the issue. Please also fix any comments and resolve them and also ensure that you fix with smallest required fix with best coding practice and u derstabding the fix rather than simple patch. Please fix any merge conflicts and ensure any issues are found. Please resolve any issues you find. Please also run bugbot. Please mark comments resolved also once you resolve them. |
PR #1285 is already merged — nothing left to fix on this branch. Landed
CI
Comments / Bugbot
No further commits or comment resolutions needed for #1285. |
Uh oh!
There was an error while loading. Please reload this page.


Summary
137as a SIGKILL-equivalent process failure even when Node reports no signal (common OOM path).sys.exit(137)alongside the existing SIGKILL self-kill case.Verification
npm run verify:pr-localnot required for this scoped extractor error-path change; focused Vitesttests/pdf-extractor.test.tsprocess-failure suite passed locally (2/2; PyMuPDF table suite skipped in this VM)Risk and rollout
PdfExtractorProcessErrorpathClinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Notes
verify:cheaprewrite, GitGuardian-flagged preflight URI, or large therapy-compass CSS churn.