Repository navigation
fix(ci): recognize dynamic PR tooling and npm fixture entrypoints - #197250
Conversation
Register the documented dependency-cache benchmark, NODE_OPTIONS cache-lifetime preload, and file-URL npm transport child in the existing Knip entry inventories. Preserve export checks and all runtime behavior. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
|
🦞👀 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: needs maintainer review before merge. What this changesThis PR registers the dependency-cache benchmark, PR lifetime preload, and npm CLI transport fixture as Knip entrypoints. Example: Analyze test/scripts/plugin-npm-cli-transport.test-support.mjs, which the npm fixture launches through Node --import.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it narrowly registers three live executable roots using the existing analyzer inventories, with no actionable code defects found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherKnip consumes repository source files and explicit executable-root inventories to report unused files, dependencies, and exports. flowchart LR
A[Documented benchmark] --> D[Repository script roots]
B[PR preload injection] --> D
C[Npm process fixture] --> E[Test roots]
D --> F[Knip analysis]
E --> F
F --> G[Unused code reports]
Technical reviewBest possible solution: Retain these exact registrations in the existing script and test inventories without adding suppressions or runtime machinery. Do we have a high-confidence way to reproduce the issue? Source confirms all three executable paths and their missing explicit registrations on main; the reported analyzer output was not independently replayed. Is this the best way to solve the issue? The patch is the smallest complete repair: it adds real executable roots to their existing owners while preserving export checks and runtime behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a0aa49cf4b9d. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceOther +5. Total +5 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 11, 2026, 9:52 AM ET / 14:52 UTC. |
|
Merged via squash.
|
…enclaw#197250) Register the documented dependency-cache benchmark, NODE_OPTIONS cache-lifetime preload, and file-URL npm transport child in the existing Knip entry inventories. Preserve export checks and all runtime behavior. Co-authored-by: steipete <[email protected]>
Preserve the upstream test-growth policy and dynamic dependency roots: #196370 #197250 #197602 Remove only the superseded task-owned 128-line grant. Keep the original 157-line record, upstream Doctor allocation and retired scalar deletion. The staged checker against 0626eb5 passed: net +157, allowance 400, allocation credit 157. The measured workload remains frozen at 79f5aeb.
What Problem This Solves
Fixes three false unused-file findings in main’s dependency analysis for executable tooling and an npm test transport launched by path.
User Impact
No runtime or publication behavior change. The dependency checker now recognizes the maintained benchmark, cache-lifetime preload and isolated test transport without deleting their real consumers.
Why This Change Was Made
#196685 introduced the documented dependency-cache benchmark and the preload injected by
scripts/prthroughNODE_OPTIONS. #196501/#196977 supply the transport passed as a file URL by the npm CLI process fixture. These are executable roots rather than ordinary imports. Register their exact paths in the existing production/test inventories, following neighboring entries; no ignores, broad globs, export-check relaxation or test changes. This fixes the three unused-file rows only; other dependency findings remain open.Contributor credit: Peter Steinberger and Ayaan (obviyus).
Work sessions
Linked for team reference; these sessions aren’t public.
Evidence