Repository navigation
fix(release): finish dependency scans on vendor call graphs - #167121
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: needs maintainer review before merge. Reviewed October 8, 2026, 6:06 AM ET / 10:06 UTC. ClawSweeper reviewWhat this changesThe branch avoids tracing arguments of calls that cannot produce recognized dependency-loader paths and adds a regression for repeated vendor call graphs. Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR remains useful: current main still performs the unnecessary traversal, and the focused repair preserves dependency classification. No actionable patch defects were found; the MEMBER-authored item also requires maintainer judgment before closure. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherRelease verification scans installed JavaScript to identify runtime dependencies and check their package declarations. The same scanner helps node bootstrap packaging retain required runtime files. flowchart TD
A[Installed JavaScript] --> B[Dependency scanner]
B --> C[Classify called function]
C --> D[Recognized path producer]
C --> E[Other function]
D --> F[Trace argument origins]
E --> G[Preserve existing classification]
F --> H[Dependency and packaging checks]
G --> H
Technical reviewBest possible solution: Keep dependency classification in the shared scanner and eliminate traversal whose results no classification branch consumes. Do we have a high-confidence way to reproduce the issue? Yes, source and the supplied regression establish a clear reproduction path: scan repeated opaque-call argument graphs through the installed-package dependency verifier. This review did not execute that path. Is this the best way to solve the issue? Yes, the repair removes unnecessary recursion at the shared owner while retaining every argument-dependent classification branch and conservative root checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against de2b8ae04af1. Provenance checked
TestingProof path: in-process harness. Added test files: 1. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +4, Tests +32. Total +36 across 2 files. View PR surface stats
LabelsLabel changes:
Label justifications:
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 |
|
Merged via squash auto-merge.
|
What Problem This Solves
Release postpublish verification takes minutes on a small bundled browser vendor file because dependency ownership scanning expands repeated unknown-call argument graphs.
User Impact
Publication verification finishes promptly. Dependency ownership decisions and shipped package bytes remain unchanged.
Why This Change Was Made
Argument origins are needed only for recognized path-producing calls. Resolve the callee first and retain all existing root/caller classification for those calls.
Evidence
rfbvendor file: repaired scan 196 ms; original scanner remained CPU-bound for minutes.pnpm test test/openclaw-npm-postpublish-verify.test.ts --maxWorkers=1: 78 passed, 27.23 s wall time (CI cost: one tooling test shard; regression subprocess under 1 s).