Repository navigation
fix(tooling): admit and contain compiler process trees - #160116
vincentkoc wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 28, 2026, 2:10 AM ET / 06:10 UTC (Revision 4). ClawSweeper reviewWhat this changesThe branch routes TypeScript compiler commands through shared host admission and process-tree memory limits, narrows help and version bypasses, and carries cancellation through artifact release. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 8 items remain Keep this PR open. Current main has the shared admission helper but has not connected ordinary compiler checks to it, so the branch remains useful. The current head still has the previously identified platform and timeout regressions, and two declaration-consumer tests now accept a refusal instead of checking declarations. Priority: P2 Review scores
Verification
How this fits togetherPackage scripts and CI send TypeScript projects through the flowchart LR
A[Typecheck command] --> B[TypeScript wrapper]
B --> C{Help or version only?}
C -->|Yes| D[Managed compiler]
C -->|No| E[Host admission and memory limit]
E --> D
D --> F[Diagnostics and completion evidence]
Decision needed
Why: The branch deliberately changes established local tooling behavior, and source review cannot authorize the platform and timeout policy tradeoff. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +141, Other +17. Total +158 across 10 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the shared compiler admission owner while preserving a working path for supported local checks, then document and prove any approved change to platform or deadline defaults and retain meaningful declaration-consumer coverage. Do we have a high-confidence way to reproduce the issue? No direct current-main memory-exhaustion reproduction was run in this read-only review. Current source shows ordinary compiler checks bypass shared admission, and the introduced non-Linux refusal follows directly from the wrapper call and admission guard. Is this the best way to solve the issue? No. Shared admission is the appropriate owner, but unconditional activation changes supported platform and timeout behavior and weakens two declaration-consumer assertions. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cf858b51cca6. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
41edba4 to
06bd63c
Compare
3151e1d to
fbd132e
Compare
06bd63c to
ebdcb13
Compare
fbd132e to
4cb4529
Compare
Related: #160010
Depends on: #160112 and #160014
What Problem This Solves
The shared compiler leaf applied Go resource hints without enforcing a kernel memory ceiling. Apparent query flags could bypass ownership while still loading compiler input, and cancellation during artifact release could emit completed-check evidence.
User Impact
All semantic compiler invocations now use the shared host/account admission slot and adaptive kernel process-tree cap. Only exact singleton help/version arguments bypass semantic admission. Native parsing still owns mixed flags and response files. Cancellation remains active through artifact cleanup, and interrupted runs cannot certify completion.
The existing shard scheduler also calls this shared leaf, so its compiler processes become serial at admission. Its first-failure and diagnostic-draining behavior remains unchanged in this slice. Unsupported local hosts receive remote/VM guidance; unbounded fallback is intentionally unavailable.
Evidence
Independent P0–P2 review and targeted formatting/whitespace pass. Exact head
3151e1d3f002e8db3fc671b6a678d4dd487ad431passed 402 tests across eight focused files, script typechecking, and typed lint of both changed production modules on Testbox. One-worker tests took 148.81s in Vitest and 149.66s through the repository wrapper; the complete proof command took 2m46.243s. Input digest (3,681 entries):dbc161f344712f46b004f2654a33a68e89f8139abbbf9e516f28a4663efaa9c1.Changed-test typed lint is still pending: the broad root test graph exceeded a 7 GiB kernel budget in the preceding boundary slice. This draft will not land before that proof and required CI are complete.
Crash fixtures isolate their account identity and clean only recorded kernel scopes. The shard ownership test accepts either first lock winner and preserves the blocked-build assertions. Added direct artifact-release cancellation coverage reuses the existing boundary fixture.
This is a compiler activation slice; lint and SDK-preparation activation remain separate work. Production/tooling +35/-18, tests +486/-345, changelog +2. Positive tooling growth owns admission and the cancellation/evidence boundary. No dependency or user configuration surface is added.