Skip to content

fix(release): finish dependency scans on vendor call graphs - #167121

Merged
RomneyDa merged 1 commit into
mainfrom
fix/release-import-scan-cost
Oct 8, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/release-import-scan-cost

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 8, 2026

Copy link
Copy Markdown
Member

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

  • Exact published 2026.9.9 rfb vendor file: repaired scan 196 ms; original scanner remained CPU-bound for minutes.
  • Regression fails on original code with ETIMEDOUT and passes with the repair, while still detecting the missing root runtime dependency.
  • 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).
  • Fresh independent P1 review: scoped clean. Formatting and diff checks passed.
  • Current publication candidate and release branch are untouched. This is a main-only repair.

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@RomneyDa
RomneyDa marked this pull request as ready for review October 8, 2026 10:01
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 8, 2026, 6:06 AM ET / 10:06 UTC.

ClawSweeper review

What this changes

The branch avoids tracing arguments of calls that cannot produce recognized dependency-loader paths and adds a regression for repeated vendor call graphs.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, focused repair with no identified defect, supported by reported artifact timing and meaningful regression coverage rather than complete release-entry-point proof.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The MEMBER-authored PR is outside the external-contributor proof gate. Its body reports the production scanner processing the published 2026.9.9 rfb vendor file in 196 ms after the repair; the added subprocess exercises installed-package verification with synthetic input. Full postpublish execution is not established, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Release operators wait minutes for dependency verification to scan a small bundled vendor file.
Reason: The reported bottleneck has a concrete source mechanism and a small repair that preserves existing outputs. No new configuration, exemption, or competing scanner is introduced.

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
Reviewed head: b32b46ad97c9f32b5c7eaebb594ea5c7e66806dd

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No complete postpublish command run is supplied; available evidence covers the scanner on a published vendor file and the verifier through a synthetic installed-package subprocess. Base failure and head success are reported rather than independently rerun here.
Agent review details

How this fits together

Release 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
Loading

Technical review

Best 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

Testing

Proof path: in-process harness. Added test files: 1.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c8eab36 adds src/infra/package-root-imports.ts:368 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c8eab360206b; files: src/infra/package-root-imports.ts)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

PR surface

Source +4, Tests +32. Total +36 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 8 4 +4
Tests 1 32 0 +32
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 40 4 +36

Labels

Label changes:

  • add P2: The repair addresses a concrete release-verification performance failure with a limited tooling blast radius.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The repair addresses a concrete release-verification performance failure with a limited tooling blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

@RomneyDa
RomneyDa merged commit 245b7f6 into main Oct 8, 2026
179 checks passed
@RomneyDa
RomneyDa deleted the fix/release-import-scan-cost branch October 8, 2026 10:10
@RomneyDa

RomneyDa commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant