Repository navigation
Conversation
There was a problem hiding this comment.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify reviewed this change.
Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).
Graphify review — findings
This PR modifies the parallel extraction path in graphify/extract.py so that a BrokenProcessPool raised from future.result() is re-raised rather than caught by the generic per-file exception handler, with the intent of letting the existing pool-level handler trigger a sequential fallback for the batch. It adds a new test in tests/test_extract.py that simulates a worker breaking the pool via a fake executor and future, asserting that extraction falls back to _extract_sequential once and still returns AST nodes. The changed-symbol list is large, but the diff only touches the parallel-extraction except clause and adds one test function; the other listed symbols appear to be surrounding context rather than direct edits.
No blocking issues surfaced.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 1404 functions depend on the 466 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
extract()— 360 callers, 29 callees
Verification — 1404 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 1276 function(s) in the blast radius were not formally verified this run
· 1 more finding(s) on lines outside this diff (see the check run).
… preservation, extract crash recovery; bump to 0.9.33 #2411 (thanks @JensD-git): key the C# partial-class merge on assembly (nearest ancestor .csproj/.fsproj/.vbproj) in addition to namespace and name, so same-name partial classes in different assemblies stay distinct while genuine partial halves within one project still merge. Fixes a 0.9.32 regression from #2332. #2437/#2438 (thanks @aryanbonigala, builds on PR #2439): incremental rebuilds no longer drop member-call and indirect_call edges from a changed file into an unchanged target. Re-resolution now sees the unchanged corpus (nodes, contains/method edges, and _callable markers, which now persist to graph.json like _origin); edges to a genuinely removed target are still evicted. #2444/#2445 (thanks @Baziar, builds on PRs #2461/#2458): a BrokenProcessPool triggers the sequential fallback instead of being swallowed per future, a failed worker file is retried sequentially rather than merged as empty, and a whole-pass AST failure on a fresh build exits non-zero instead of writing a zero-node graph (--allow-partial opts into a best-effort partial graph). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Shipped in v0.9.33. The core of your fix (re-raising |
… preservation, extract crash recovery; bump to 0.9.33 Graphify-Labs#2411 (thanks @JensD-git): key the C# partial-class merge on assembly (nearest ancestor .csproj/.fsproj/.vbproj) in addition to namespace and name, so same-name partial classes in different assemblies stay distinct while genuine partial halves within one project still merge. Fixes a 0.9.32 regression from Graphify-Labs#2332. Graphify-Labs#2437/Graphify-Labs#2438 (thanks @aryanbonigala, builds on PR Graphify-Labs#2439): incremental rebuilds no longer drop member-call and indirect_call edges from a changed file into an unchanged target. Re-resolution now sees the unchanged corpus (nodes, contains/method edges, and _callable markers, which now persist to graph.json like _origin); edges to a genuinely removed target are still evicted. Graphify-Labs#2444/Graphify-Labs#2445 (thanks @Baziar, builds on PRs Graphify-Labs#2461/Graphify-Labs#2458): a BrokenProcessPool triggers the sequential fallback instead of being swallowed per future, a failed worker file is retried sequentially rather than merged as empty, and a whole-pass AST failure on a fresh build exits non-zero instead of writing a zero-node graph (--allow-partial opts into a best-effort partial graph). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Summary
BrokenProcessPoolfrom the per-future exception handler.False.BrokenProcessPoolraised byfuture.result().Why
future.result()can raiseBrokenProcessPoolafter successful task submission. The generic per-future exception handler previously swallowed that exception, causing_extract_parallel()to report success and preventing the sequential fallback.The result could therefore contain zero AST nodes while appearing successful.
Tests
161 passed, 1 skippedgraphify update .completed successfully.Fixes #2444