Skip to content

fix(pacquet): align remaining parity output - #13472

Merged
zkochan merged 11 commits into
mainfrom
fix-13457-5
Jul 28, 2026
Merged

zkochan merged 11 commits into
mainfrom
fix-13457-5

Conversation

@zkochan

@zkochan zkochan commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #13457.

Aligns the remaining pacquet-only output differences with the TypeScript CLI:

  • orders license packages, versions, and paths like JavaScript localeCompare,
    and records one path for each package version;
  • reports dedupe --check store reuse and zero added packages, with matching
    tree and error spacing;
  • orders lockfile-policy output before the frozen-install message and reports
    Already up to date for a zero-change verification install.

The TypeScript CLI already provides the expected behavior, so no TypeScript
implementation change is needed. Against vuejs/core at
b5f8518379b77c3b62a7a9d2b52f6c76cda09bd5, the license JSON is byte-identical
after normalizing only the checkout path and dedupe finishes with
resolved 618, reused 503, downloaded 0, added 0.

Squash Commit Body

Finish the strict output-parity work for pacquet's license, dedupe, and
pre-run verification commands.

Use pnpm-compatible package-name collation and keep license versions aligned
with their single representative paths. Teach dedupe progress to account for
the store and reusable skipped optional subdependencies, restore the added
counter, and preserve pnpm's report spacing. Buffer the frozen-lockfile status
until the lockfile-policy verdict and render zero-change stats as already up to
date.

Closes pnpm/pnpm#13457.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.

Written by an agent (Codex, GPT-5).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • New Features
    • pnpm dedupe --check now reports when resolved packages are found in the store by reusing previously skipped entries to improve progress feedback.
  • Improvements
    • License output ordering is now consistent with pnpm-aligned collation for both JSON and table formats.
    • Lockfile verification and dedupe output formatting have clearer newline/spacing behavior, including an explicit “Already up to date” line and more consistent progress sequencing.
  • Tests
    • Added/updated coverage for malformed modules manifests, “found in store”/reused-skipped behavior, license ordering, and reporter rendering/progress output.

Copilot AI review requested due to automatic review settings July 28, 2026 13:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 9d3f3e85-4490-4f71-a9d9-d22190cdc8bf

📥 Commits

Reviewing files that changed from the base of the PR and between 539c83c and 2643fdb.

📒 Files selected for processing (10)
  • .changeset/neat-taxis-report.md
  • pnpm/crates/cli/src/cli_args/dedupe.rs
  • pnpm/crates/cli/src/cli_args/dedupe/tests.rs
  • pnpm/crates/cli/src/cli_args/dispatch.rs
  • pnpm/crates/cli/src/cli_args/licenses.rs
  • pnpm/crates/cli/src/cli_args/licenses/tests.rs
  • pnpm/crates/cli/tests/dedupe.rs
  • pnpm/crates/cli/tests/verify_deps_before_run.rs
  • pnpm/crates/default-reporter/src/state.rs
  • pnpm/crates/default-reporter/tests/render.rs
 _______________________________________________
< Caches are bugs waiting to happen. - Rob Pike >
 -----------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-13457-5

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Changes

The PR aligns pacquet CLI behavior with pnpm by updating license-name collation, dedupe store-reuse progress, error spacing, and lockfile-verification output sequencing. It also adds malformed-manifest coverage and a public installability helper.

CLI parity alignment

Layer / File(s) Summary
License package-name ordering
pnpm/crates/cli/src/cli_args/licenses.rs, pnpm/crates/cli/src/cli_args/licenses/tests.rs, pnpm/crates/cli/tests/licenses.rs
License dependency and output entries use custom package-name collation, with fixture and unit coverage for punctuation-containing names.
Dedupe resolution and error reporting
pnpm/crates/cli/src/cli_args/dedupe.rs, pnpm/crates/cli/src/cli_args/dedupe/tests.rs, pnpm/crates/cli/src/cli_args/dispatch.rs, pnpm/crates/cli/tests/dedupe.rs, pnpm/crates/package-manager/src/installability.rs
Dedupe reporting recognizes reusable skipped and store-resident packages, uses installability checks, preserves updated spacing, and rejects malformed modules manifests without changing the lockfile.
Reporter message sequencing
pnpm/crates/default-reporter/src/state.rs, pnpm/crates/default-reporter/tests/render.rs, pnpm/crates/cli/tests/verify_deps_before_run.rs, .changeset/neat-taxis-report.md
Lockfile-skip messages are buffered around verification, zero-change stats render “Already up to date,” and output ordering is tested.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant DedupeArgs
  participant DedupeResolutionReporter
  participant StoreIndex
  participant DefaultReporter
  DedupeArgs->>DedupeResolutionReporter: pass reusable IDs and store index
  DedupeResolutionReporter->>StoreIndex: check resolved package
  StoreIndex-->>DedupeResolutionReporter: package presence
  DedupeResolutionReporter->>DefaultReporter: emit Resolved and FoundInStore progress
Loading

Assessment against linked issues

Objective Addressed Explanation
License report metadata normalization and ordering [#13457] ❓ Ordering is updated, but author and homepage normalization is not changed.
dedupe --check progress, spacing, and error rendering [#13457] ✅
Filtered lifecycle output includes the script command [#13457] ❌ No lifecycle command rendering changes are included.
Dependency verification before run matches pnpm [#13457] ❓ Output-order assertions are updated, but no dependency-verification decision logic is changed.

Possibly related issues

  • pnpm/pnpm#11633: Covers the broader pnpm-compatible reporting and license-output parity work implemented here.
  • pnpm/pacquet#347: Covers FoundInStore progress reporting added to the dedupe resolution flow.

Possibly related PRs

  • pnpm/pnpm#13462: Modifies the same dedupe resolution-progress reporting flow.
  • pnpm/pnpm#13461: Modifies the related license metadata and ordering implementation.
  • pnpm/pnpm#13469: Overlaps with lockfile-verification and frozen-message ordering behavior.

Suggested labels: product: pacquet

Suggested reviewers: copilot, kairosci

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-13457-5

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Align pacquet license, dedupe, and verification output with pnpm

🐞 Bug fix 🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Aligns pacquet license ordering and version-path pairing with pnpm.
• Reports dedupe store reuse, zero additions, and pnpm-compatible spacing.
• Orders verification messages and renders zero-change installs as already up to date.
Diagram

graph TD
  CLI["Pacquet CLI"] --> License["License Report"] --> Collation["pnpm Collation"] --> Output["Parity Output"]
  CLI --> Dedupe["Dedupe Check"] --> Reuse["Reuse Detection"] --> Reporter["Default Reporter"] --> Output
  Store[("Package Store")] --> Reuse
  CLI --> Reporter
Loading
High-Level Assessment

The targeted parity approach is appropriate because the TypeScript CLI already defines the expected behavior. Reusing pacquet's store index, modules manifest, and centralized reporter state is preferable to changing the TypeScript implementation or post-processing rendered output, both of which would duplicate behavior or weaken event-level correctness.

Files changed (10) +331 / -46

Bug fix (4) +121 / -23
dedupe.rsAccount for package reuse and match dedupe formatting +59/-5

Account for package reuse and match dedupe formatting

• Reads the modules manifest and store index to report stored or reusable skipped packages as reused during dedupe resolution. Restores pnpm-compatible error separators, trailing newlines, and tree spacing.

pnpm/crates/cli/src/cli_args/dedupe.rs

dispatch.rsRestore added-package counts for dedupe summaries +1/-1

Restore added-package counts for dedupe summaries

• Stops selecting the dedupe-specific summary suppression mode, allowing progress output to include the standard added-package counter.

pnpm/crates/cli/src/cli_args/dispatch.rs

licenses.rsMatch pnpm license report ordering and path pairing +38/-13

Match pnpm license report ordering and path pairing

• Introduces package-name collation matching JavaScript locale ordering for text and JSON reports. Preserves version ordering from dependency traversal and records one representative path per distinct package version.

pnpm/crates/cli/src/cli_args/licenses.rs

state.rsOrder lockfile messages and render zero-change installs +23/-4

Order lockfile messages and render zero-change installs

• Buffers the frozen-lockfile status until lockfile verification has rendered, ensuring pnpm-compatible message ordering. Emits “Already up to date” for zero added and removed packages and adjusts dedupe report spacing.

pnpm/crates/default-reporter/src/state.rs

Tests (5) +205 / -23
tests.rsTest dedupe reuse events and exact output spacing +100/-15

Test dedupe reuse events and exact output spacing

• Adds coverage for store-index and skipped-package reuse reporting. Updates dedupe error and tree expectations to verify pnpm-compatible blank lines and trailing newlines.

pnpm/crates/cli/src/cli_args/dedupe/tests.rs

tests.rsVerify JavaScript-compatible package-name collation +36/-2

Verify JavaScript-compatible package-name collation

• Adds ordering coverage for punctuation, scopes, numeric characters, and similar package names to lock license output to pnpm behavior.

pnpm/crates/cli/src/cli_args/licenses/tests.rs

dedupe.rsAssert pnpm-compatible dedupe progress and termination +5/-2

Assert pnpm-compatible dedupe progress and termination

• Updates integration expectations to require an explicit zero added count and the final blank line after the dedupe recommendation.

pnpm/crates/cli/tests/dedupe.rs

verify_deps_before_run.rsVerify dependency-check message ordering +13/-0

Verify dependency-check message ordering

• Asserts that the supply-chain policy verdict precedes the frozen-install notice, followed by the zero-change status message.

pnpm/crates/cli/tests/verify_deps_before_run.rs

render.rsTest reporter ordering and zero-change output +51/-4

Test reporter ordering and zero-change output

• Adds renderer tests proving that policy verification appears before the frozen-install message and that zero-change statistics produce “Already up to date.”

pnpm/crates/default-reporter/tests/render.rs

Documentation (1) +5 / -0
neat-taxis-report.mdDocument pacquet output-parity fixes +5/-0

Document pacquet output-parity fixes

• Adds a patch changeset covering aligned license reports, dedupe output, and dependency-verification messages.

.changeset/neat-taxis-report.md

Comment thread pnpm/crates/cli/src/cli_args/dedupe.rs Resolved
@greptile-apps

greptile-apps Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; the previously reported manifest issue is invalid under the clarified parity contract because missing files remain optional while malformed and unreadable manifests intentionally propagate errors.

Reviews (11): Last reviewed commit: "test(pacquet): assert canonical diagnost..." | Re-trigger Greptile

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
pnpm/crates/default-reporter/tests/render.rs (1)

665-669: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Log the rendered frame before this multiline assertion.

Add eprintln!("REPORT:\n{frame}\n"); immediately before assert_eq! so output-parity failures are diagnosable.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pnpm/crates/default-reporter/tests/render.rs` around lines 665 - 669, In the
test containing the multiline frame assertion, add an eprintln diagnostic
immediately before assert_eq! to print the rendered frame with the “REPORT:”
label and surrounding newlines, while leaving the expected string and assertion
unchanged.

Sources: Path instructions, Learnings

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pnpm/crates/cli/src/cli_args/licenses.rs`:
- Line 217: Update the regular licenses table sorting to use
compare_package_names instead of a.name.cmp(&b.name), matching the JSON output
collation for names such as a_b and a-b. Add a regression test covering table
output ordering and preserving parity with the JSON sort behavior.

In `@pnpm/crates/default-reporter/src/state.rs`:
- Around line 431-433: Update the lockfile verification handling around
flush_pending_lockfile_message so it flushes only for terminal
LockfileVerification variants Cached, Done, or Failed, not Started. Preserve the
existing message behavior and add coverage for a Started → Done sequence in
append-only mode.

---

Nitpick comments:
In `@pnpm/crates/default-reporter/tests/render.rs`:
- Around line 665-669: In the test containing the multiline frame assertion, add
an eprintln diagnostic immediately before assert_eq! to print the rendered frame
with the “REPORT:” label and surrounding newlines, while leaving the expected
string and assertion unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 9d3f3e85-4490-4f71-a9d9-d22190cdc8bf

📥 Commits

Reviewing files that changed from the base of the PR and between 539c83c and 2643fdb.

📒 Files selected for processing (10)
  • .changeset/neat-taxis-report.md
  • pnpm/crates/cli/src/cli_args/dedupe.rs
  • pnpm/crates/cli/src/cli_args/dedupe/tests.rs
  • pnpm/crates/cli/src/cli_args/dispatch.rs
  • pnpm/crates/cli/src/cli_args/licenses.rs
  • pnpm/crates/cli/src/cli_args/licenses/tests.rs
  • pnpm/crates/cli/tests/dedupe.rs
  • pnpm/crates/cli/tests/verify_deps_before_run.rs
  • pnpm/crates/default-reporter/src/state.rs
  • pnpm/crates/default-reporter/tests/render.rs

@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     12.1±0.82ms    31.0 MB/sec    1.05     12.7±1.83ms    29.5 MB/sec
packument/parse                                  1.14     41.3±1.36µs  1607.0 MB/sec    1.00     36.3±0.26µs  1826.0 MB/sec
tarball/download_dependency                      1.18      3.0±0.44ms  1465.0 KB/sec    1.00      2.5±0.18ms  1722.9 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.12    211.8±8.20ms 75.5 KElem/sec    1.00    189.6±7.77ms 84.4 KElem/sec

@qodo-code-review

qodo-code-review Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (5) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 24 rules

Grey Divider


Remediation recommended

1. Remove leftover dbg! output 📘 Rule violation ⚙ Maintainability ⭐ New
Description
The added dbg! prints lines to stderr on every successful test run and is unnecessary for
verifying reporter behavior. This unrelated debug instrumentation adds CI noise to a focused bug-fix
PR.
Code

pnpm/crates/default-reporter/tests/render.rs[736]

+            dbg!(&lines);
Relevance

⭐⭐ Medium

Exact dbg! removal was accepted in #13329, but equivalent CI-noise removals were rejected in #12703
and #12728.

PR-#13329
PR-#12703
PR-#12728

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Compliance rule 2255067 limits bug-fix changes to behavior and test code required for the fix. The
cited line emits diagnostic output but contributes nothing to the adjacent assertion or regression
coverage.

Rule 2255067: Bug fix changes must not include unrelated refactors or reformatting
pnpm/crates/default-reporter/tests/render.rs[736-737]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Remove the leftover `dbg!(&lines)` invocation, which writes unnecessary diagnostic output during successful test runs.

## Issue Context
The following `assert_eq!` already validates the rendered lines, so this debug statement is not required by the regression test.

## Fix Focus Areas
- pnpm/crates/default-reporter/tests/render.rs[736-736]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Path assertion fails on Windows ✓ Resolved 📘 Rule violation ▣ Testability
Description
The malformed-manifest test requires the Unix-style substring
workspace/node_modules/.modules.yaml, but the diagnostic formats a native PathBuf and therefore
emits backslashes on Windows. This causes the Windows integration suite to fail even when
malformed-manifest handling and command behavior are correct.
Code

pnpm/crates/cli/tests/dedupe.rs[111]

+            && stderr.contains("workspace/node_modules/.modules.yaml")
Relevance

⭐⭐⭐ High

PR #13046 fixed Windows CI by replacing hard-coded test separators with platform-native paths.

PR-#13046

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Compliance rule 713440 requires all tests to pass before merge, but the focused assertion hard-codes
forward-slash separators for a filesystem path. ReadModulesError::ParseYaml renders its native
PathBuf using debug formatting, CommandTempCwd creates the path using native path operations,
and pacquet CI runs the complete workspace test suite on Windows, proving that the assertion is
platform-dependent.

Rule 713440: Investigate and resolve all failing tests before merge
pnpm/crates/cli/tests/dedupe.rs[109-113]
pnpm/crates/cli/tests/dedupe.rs[108-114]
pnpm/crates/modules-yaml/src/lib.rs[371-373]
pnpm/crates/testing-utils/src/bin.rs[32-40]
.github/workflows/pacquet-ci.yml[94-102]
.github/workflows/pacquet-ci.yml[164-175]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The malformed `.modules.yaml` regression test hard-codes forward-slash path separators, while the diagnostic uses native path formatting and therefore causes the assertion to fail on Windows.

## Issue Context
`ReadModulesError::ParseYaml` formats a native `PathBuf`, so path separators vary by platform. Construct the expected suffix using `Path`/`PathBuf`, normalize path separators before checking stderr, or assert only platform-independent diagnostic components; preserve the assertions for the parse error and YAML location.

## Fix Focus Areas
- pnpm/crates/cli/tests/dedupe.rs[105-114]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Ignored dependency globs misclassified 📘 Rule violation ≡ Correctness
Description
reusable_skipped_package_id checks ignored_optional_dependencies using exact string equality
even though the setting supports glob and negation patterns. Packages matched by patterns such as
* or @scope/* can therefore emit FoundInStore and be incorrectly reported as reused, inflating
dedupe --check reuse statistics and diverging from pnpm progress output.
Code

pnpm/crates/cli/src/cli_args/dedupe.rs[R221-222]

+    if ignored_optional_dependencies
+        .is_some_and(|ignored| ignored.contains(&package_key.name.to_string()))
Relevance

⭐⭐⭐ High

PR #13081 accepted reusing the glob-aware ignored-optional matcher for equivalent semantics.

PR-#13081
PR-#13141

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Compliance rule 713429 requires modified pacquet behavior to retain pnpm semantics, but the dedupe
helper uses literal slice membership against a rendered package name. The repository's canonical
matcher documents and implements wildcard and negation semantics and is already used to compile
ignored_optional_dependencies in the install path, showing that the new reuse path does not
preserve the established configuration semantics.

Rule 713429: Pacquet must not introduce new user-visible behavior beyond pnpm
pnpm/crates/cli/src/cli_args/dedupe.rs[215-228]
pnpm/crates/config/src/matcher.rs[28-44]
pnpm/crates/package-manager/src/install.rs[2665-2680]
pnpm/crates/package-manager/src/install.rs[2805-2815]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description

The dedupe reuse filter treats `ignored_optional_dependencies` entries as exact package names even though the setting supports glob and negation patterns, which can cause wildcard-matched packages to be incorrectly classified and counted as reused.

## Issue Context

Use `pacquet_config::matcher::create_matcher` to match the semantics already used by install freshness checks and other package-manager paths. Ensure ignored optional packages do not emit `FoundInStore` or inflate `dedupe --check` reuse statistics, and add coverage for wildcard patterns such as `*` or `@scope/*`.

## Fix Focus Areas

- pnpm/crates/cli/src/cli_args/dedupe.rs[215-228]
- pnpm/crates/cli/src/cli_args/dedupe/tests.rs[177-202]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View more (6)
4. appendOnly reorders pnpm output 📘 Rule violation ≡ Correctness
Description
The new terminal-event flush preserves a buffered frozen-install message until after lockfile
verification, while pnpm’s append-only reporter emits messages in event order. Pacquet therefore
introduces different append-only output semantics instead of matching pnpm.
Code

pnpm/crates/default-reporter/src/state.rs[R431-440]

+        if matches!(
+            event,
+            LogEvent::LockfileVerification(log)
+                if matches!(
+                    &log.message,
+                    LockfileVerificationMessage::Cached { .. }
+                        | LockfileVerificationMessage::Done { .. }
+                        | LockfileVerificationMessage::Failed { .. }
+                ),
+        ) {
Relevance

⭐⭐⭐ High

PRs 13155 and 13103 establish strict append-only parity with TypeScript reporter ordering and stream
semantics.

PR-#13155
PR-#13103
PR-#13376

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Rule 713429 requires modified pacquet output semantics to match pnpm. The new Rust test explicitly
expects the frozen-install message to produce no append-only output and later appear after the
verification verdict, whereas pnpm’s TypeScript append-only path merges output streams directly and
reportMisc immediately emits informational pnpm messages.

Rule 713429: Pacquet must not introduce new user-visible behavior beyond pnpm
pnpm/crates/default-reporter/tests/render.rs[676-710]
pnpm11/cli/default-reporter/src/index.ts[319-324]
pnpm11/cli/default-reporter/src/reporterForClient/reportMisc.ts[39-59]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Pacquet buffers the frozen-install message in append-only mode and emits it after the terminal lockfile-verification event, unlike pnpm’s chronological append-only output.

## Issue Context
The TypeScript reporter merges append-only output streams as events arrive. Either bypass this buffering when `append_only` is enabled, or implement and test the same deferred behavior in the TypeScript reporter within this PR.

## Fix Focus Areas
- pnpm/crates/default-reporter/src/state.rs[431-440]
- pnpm/crates/default-reporter/tests/render.rs[672-716]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


5. Malformed manifest behavior diverges ✓ Resolved 📘 Rule violation ≡ Correctness
Description
Converting every .modules.yaml read or parse error to None makes pacquet’s dedupe --check
silently succeed on malformed or unreadable input that pnpm rejects, while also omitting reusable
skipped packages from the reused count without explanation. A missing file should remain None, but
parse and non-NotFound I/O errors must not be silently erased; if the command intentionally
remains fail-soft, it should at least emit a warning.
Code

pnpm/crates/cli/src/cli_args/dedupe.rs[R59-60]

+            .ok()
+            .flatten()
Relevance

⭐⭐⭐ High

PR #13151 established fail-soft .modules.yaml handling with warnings; silent suppression conflicts
with that accepted pattern.

PR-#13151

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The modules reader already distinguishes a missing file as Ok(None) from YAML parse failures and
other I/O errors, but the dedupe path collapses all outcomes with .ok().flatten(). Rule 713429
prohibits pacquet from accepting input that pnpm rejects: pnpm’s readModulesManifest rethrows
every error except ENOENT, and readProjectsContext directly awaits it, while pacquet’s new test
explicitly requires success for malformed YAML. Frozen-install handling also demonstrates an
existing fail-soft pattern for this cache artifact by logging the error before continuing with an
empty set, rather than silently discarding it.

Rule 713429: Pacquet must not introduce new user-visible behavior beyond pnpm
pnpm/crates/cli/src/cli_args/dedupe.rs[58-60]
pnpm/crates/cli/tests/dedupe.rs[98-106]
pnpm11/installing/modules-yaml/src/index.ts[54-64]
pnpm11/installing/read-projects-context/src/index.ts[53-55]
pnpm/crates/modules-yaml/src/lib.rs[363-417]
pnpm/crates/package-manager/src/install_frozen_lockfile.rs[696-725]
pnpm/crates/cli/src/cli_args/dedupe.rs[56-75]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description

`dedupe --check` silently discards all `.modules.yaml` read and parse errors through `.ok().flatten()`, allowing malformed or unreadable manifests to succeed even though pnpm propagates every error except a missing file. This can also omit reusable skipped packages from progress statistics without explanation.

## Issue Context

A missing `.modules.yaml` is already represented as `Ok(None)` and requires no warning or failure. Preserve pnpm compatibility by propagating YAML parse errors and non-`NotFound` I/O failures rather than converting them to absence, and update the test that currently codifies success for malformed YAML. If fail-soft behavior is intentionally retained, follow the established frozen-install pattern by emitting a diagnostic or tracing warning before continuing with an empty reusable-skipped set instead of erasing the error silently.

## Fix Focus Areas

- pnpm/crates/cli/src/cli_args/dedupe.rs[58-60]
- pnpm/crates/cli/tests/dedupe.rs[78-113]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


6. compare_package_names breaks Unicode parity 📘 Rule violation ≡ Correctness
Description
The new comparator operates on UTF-8 bytes with hand-written ASCII weights, so non-ASCII package
names are not ordered like JavaScript localeCompare. Pacquet can therefore produce license output
that differs from pnpm for package names its parser accepts.
Code

pnpm/crates/cli/src/cli_args/licenses.rs[R461-464]

+fn compare_package_names(left: &str, right: &str) -> Ordering {
+    left.bytes()
+        .map(package_name_collation_weight)
+        .cmp(right.bytes().map(package_name_collation_weight))
Relevance

⭐⭐⭐ High

Team consistently accepts Unicode and license-ordering parity corrections.

PR-#13415
PR-#13427
PR-#13461

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The target TypeScript implementation compares package-name strings with localeCompare, whereas the
new Rust implementation compares transformed UTF-8 bytes. PkgName::parse does not restrict names
to ASCII, so the semantic difference is reachable and violates Pacquet/pnpm behavior parity.

Rule 713429: Pacquet must not introduce new user-visible behavior beyond pnpm
pnpm/crates/cli/src/cli_args/licenses.rs[461-491]
pnpm11/deps/compliance/license-scanner/src/licenses.ts[118-122]
pnpm/crates/lockfile/src/pkg_name.rs[30-48]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`compare_package_names` approximates JavaScript collation using UTF-8 bytes and only verifies ASCII examples, producing divergent ordering for non-ASCII names.

## Issue Context
The TypeScript license scanner sorts names with `String.prototype.localeCompare`, while Pacquet's package-name parser accepts arbitrary non-empty Unicode strings. Implement equivalent Unicode-aware collation and add parity coverage including non-ASCII names.

## Fix Focus Areas
- pnpm/crates/cli/src/cli_args/licenses.rs[461-491]
- pnpm/crates/cli/src/cli_args/licenses/tests.rs[200-232]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


7. Engine skips counted reused ✓ Resolved 🐞 Bug ≡ Correctness
Description
The reusable-skipped filter excludes CPU, OS, and libc constraints but not engines.node, so an
optional dependency persisted as skipped for engine incompatibility is reported as found in the
store even when it was never installed. This inflates the dedupe --check reused count and breaks
the intended output parity.
Code

pnpm/crates/cli/src/cli_args/dedupe.rs[R65-67]

+                (metadata.cpu.is_none()
+                    && metadata.os.is_none()
+                    && metadata.libc.is_none()
Relevance

⭐⭐⭐ High

Team accepts skipped-optional correctness fixes and dedupe output-parity corrections.

PR-#13350
PR-#13425
PR-#13462

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Lockfile package metadata includes an engines field, and installability explicitly persists
incompatible optional snapshots reached through optional edges. The new filter checks only CPU, OS,
and libc before unconditionally adding the skipped package ID to the reused set, so an
engine-incompatible skip satisfies the new predicate.

pnpm/crates/cli/src/cli_args/dedupe.rs[56-74]
pnpm/crates/lockfile/src/package_metadata.rs[1-30]
pnpm/crates/package-manager/src/installability.rs[415-433]
pnpm/crates/package-manager/src/installability.rs[881-899]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The dedupe reusable-skipped calculation treats every persisted skipped package without explicit platform fields as reusable, overlooking engine-incompatible skip roots.

## Issue Context
Determine whether each skipped package is itself an installability skip, including engine and inferred-platform checks, versus a reusable descendant of a skipped root. Do not classify incompatible roots as found in the store, and add an engine-incompatible optional-dependency regression test.

## Fix Focus Areas
- pnpm/crates/cli/src/cli_args/dedupe.rs[56-74]
- pnpm/crates/cli/src/cli_args/dedupe/tests.rs[142-187]
- pnpm/crates/package-manager/src/installability.rs[415-433]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


8. Buffer flushes before verdict ✓ Resolved 🐞 Bug ≡ Correctness
Description
ReporterState::handle flushes the buffered frozen-lockfile message on any intervening
non-verification event, placing it before a later policy verdict. Frozen installs run verification
concurrently with virtual-store creation, whose stats or progress events can trigger this incorrect
ordering.
Code

pnpm/crates/default-reporter/src/state.rs[R394-395]

+        if !matches!(event, LogEvent::LockfileVerification(_)) {
+            self.flush_pending_lockfile_message();
Relevance

⭐⭐⭐ High

Team accepted analogous fixes ensuring buffered reporter events flush at correct lifecycle
boundaries.

PR-#13135
PR-#13062
PR-#13103

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The reporter flushes the pending line before processing every event except LockfileVerification.
The package manager emits that line before entering a frozen install, while the frozen installer
concurrently polls verification and CreateVirtualStore; the latter emits stats during its work,
producing the sequence Pnpm message -> Stats/Progress -> LockfileVerification when verification is
slower.

pnpm/crates/default-reporter/src/state.rs[393-434]
pnpm/crates/package-manager/src/install.rs[1874-1884]
pnpm/crates/package-manager/src/install_frozen_lockfile.rs[948-1029]
pnpm/crates/package-manager/src/create_virtual_store.rs[548-564]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The pending frozen-lockfile message is flushed by any non-verification event. During concurrent lockfile verification and virtual-store creation, stats or progress can therefore render the message before the policy verdict.

## Issue Context
Preserve the pending message across unrelated events and render it after `LockfileVerification`. Provide an end-of-run fallback for flows where no verification event is emitted, and add a regression test with an intervening stats/progress event.

## Fix Focus Areas
- pnpm/crates/default-reporter/src/state.rs[393-434]
- pnpm/crates/default-reporter/src/state.rs[1141-1162]
- pnpm/crates/default-reporter/tests/render.rs[645-689]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


9. Per-package store rows decoded ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
DedupeResolutionReporter::on_resolved performs a synchronous, mutex-serialized StoreIndex::get
for every unique resolved tarball, decoding the complete package-index blob solely to determine
whether its key exists. This serializes resolution reporting and repeats expensive database reads
across package-scale dependency graphs despite existing existence and key-enumeration APIs.
Code

pnpm/crates/cli/src/cli_args/dedupe.rs[R190-196]

+            || self.store_index.as_ref().is_some_and(|store_index| {
+                store_index
+                    .lock()
+                    .ok()
+                    .and_then(|index| index.get(&package_key).ok())
+                    .flatten()
+                    .is_some()
Relevance

⭐⭐ Medium

Performance refactors show mixed outcomes; no exact StoreIndex existence-check precedent found.

PR-#13207
PR-#13368
PR-#13455

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The observing resolver invokes the observer once per unique tarball URL, and each callback calls
StoreIndex::get before discarding the decoded value after checking is_some. The store
implementation and documentation show that get selects the entire data blob, allocates it as a
Vec<u8>, decodes it into PackageFilesIndex, and runs behind a shared mutex, while contains_key
and keys already provide existence-related functionality without requiring repeated full-value
retrieval.

Rule 713439: Avoid reimplementing existing functionality; extract and reuse shared modules
pnpm/crates/cli/src/cli_args/dedupe.rs[179-197]
pnpm/crates/store-dir/src/store_index.rs[523-560]
pnpm/crates/store-dir/src/store_index.rs[803-829]
pnpm/crates/cli/src/cli_args/dedupe.rs[179-207]
pnpm/crates/package-manager/src/resolution_observer.rs[91-121]
pnpm/crates/store-dir/src/store_index.rs[492-560]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description

The dedupe resolution observer performs `StoreIndex::get` for every resolved package, synchronously loading and decoding the complete stored package index when it only needs to determine whether the key exists. This adds mutex-serialized SQLite work across the full dependency graph.

## Issue Context

`StoreIndex::get` incurs a SQLite query, disk I/O, blob allocation, and MessagePack decoding. Reuse `contains_key` or `keys`, or introduce a lightweight indexed existence operation such as `SELECT 1`; preferably load the relevant keys once before constructing the observer and use in-memory membership checks, while preserving error handling and frozen-store behavior. Keep blocking SQLite work off async resolver execution where possible, and add performance-oriented coverage for large resolution sets.

## Fix Focus Areas

- pnpm/crates/cli/src/cli_args/dedupe.rs[112-117]
- pnpm/crates/cli/src/cli_args/dedupe.rs[172-175]
- pnpm/crates/cli/src/cli_args/dedupe.rs[179-207]
- pnpm/crates/store-dir/src/store_index.rs[523-560]
- pnpm/crates/cli/src/cli_args/dedupe/tests.rs[100-174]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

10. Full modules manifest parsed 🐞 Bug ➹ Performance
Description
Every dedupe run now deserializes all of .modules.yaml, including package-scale hoisting maps,
although this path only reads skipped. Large hoisted workspaces incur avoidable startup
allocations and parsing work despite an existing lightweight reader that retains skipped.
Code

pnpm/crates/cli/src/cli_args/dedupe.rs[R59-60]

+        let modules_manifest =
+            read_modules_manifest::<Host>(&config.modules_dir).into_diagnostic()?;
Relevance

⭐ Low

Equivalent lightweight .modules.yaml reader performance suggestions were rejected twice.

PR-#13150
PR-#13151

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The full Modules representation owns the potentially large hoisted_dependencies and
hoisted_locations maps, whereas ModulesLayout still contains skipped; its reader is explicitly
documented as skipping those large maps. The changed dedupe path accesses no other manifest field.

pnpm/crates/cli/src/cli_args/dedupe.rs[59-66]
pnpm/crates/modules-yaml/src/lib.rs[128-208]
pnpm/crates/modules-yaml/src/lib.rs[223-268]
pnpm/crates/modules-yaml/src/lib.rs[430-447]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new dedupe setup parses the complete modules manifest solely to access its `skipped` field. This unnecessarily deserializes large hoisting maps on every dedupe invocation.

## Issue Context
`read_modules_layout` omits `hoisted_dependencies` and `hoisted_locations` while retaining `skipped`, so it can provide the required data with fewer allocations.

## Fix Focus Areas
- pnpm/crates/cli/src/cli_args/dedupe.rs[59-64]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


11. pnpm missing from changeset 📘 Rule violation § Compliance
Description
The new changeset declares only pacquet, while the compliance rule requires an explicit pnpm
package entry. This leaves the required pnpm release metadata absent.
Code

.changeset/neat-taxis-report.md[2]

+"pacquet": patch
Relevance

⭐ Low

Identical pnpm-entry findings were repeatedly rejected on pacquet-only changesets.

PR-#13459
PR-#13455
PR-#13416

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713436 requires an explicit pnpm front-matter entry with a valid bump type, but
the new changeset contains only "pacquet": patch.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/neat-taxis-report.md[1-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset does not declare the required `pnpm` package and bump type.

## Issue Context
PR Compliance ID 713436 requires every changed or added changeset to include `pnpm` with a valid bump matching the change. This PR is a bug fix, so use the appropriate patch-level declaration.

## Fix Focus Areas
- .changeset/neat-taxis-report.md[1-5]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

To customize comments, go to the Qodo configuration screen, or learn more in the docs.

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Copilot AI review requested due to automatic review settings July 28, 2026 14:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 7e08063

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@codecov-commenter

codecov-commenter commented Jul 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.45324% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.71%. Comparing base (539c83c) to head (d3c506c).

Files with missing lines Patch % Lines
pnpm/crates/cli/src/cli_args/dedupe.rs 81.53% 12 Missing ⚠️
pnpm/crates/cli/src/cli_args/licenses.rs 63.33% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13472      +/-   ##
==========================================
+ Coverage   87.69%   87.71%   +0.01%     
==========================================
  Files         546      546              
  Lines       94483    94606     +123     
==========================================
+ Hits        82861    82981     +120     
- Misses      11622    11625       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI review requested due to automatic review settings July 28, 2026 14:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit f38a9a1

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
pnpm/crates/cli/tests/licenses.rs (1)

116-131: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Assert package ordering in JSON, not only in the table.

The new fixture puts a_b, a-b, and zeta in the MIT group, but the JSON assertions only check license-group order and Zlib metadata. A regression in per-group JSON sorting would pass this test. Also prefer asserting the complete table rendering rather than only comparing find offsets.

Suggested JSON assertion
     let report: Value = serde_json::from_slice(&output.stdout).expect("parse licenses JSON");
     assert_eq!(report.as_object().unwrap().keys().collect::<Vec<_>>(), ["MIT", "Zlib"]);
+    let mit_names = report["MIT"]
+        .as_array()
+        .expect("MIT report is an array")
+        .iter()
+        .map(|package| package["name"].as_str().expect("package name"))
+        .collect::<Vec<_>>();
+    assert_eq!(mit_names, vec!["a_b", "a-b", "zeta"]);

As per path instructions, REVIEW_GUIDE.md requires license-ordering regressions to assert the rendered output, including relevant formatting.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pnpm/crates/cli/tests/licenses.rs` around lines 116 - 131, Extend the license
test around the existing report assertions to verify the complete MIT package
ordering in the JSON output, including a_b, a-b, and zeta, using the expected
JavaScript-compatible collation. Replace the table find-offset comparison in the
licenses list test with an assertion against the full rendered table, including
its formatting and row order, as required by REVIEW_GUIDE.md.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@pnpm/crates/cli/tests/licenses.rs`:
- Around line 116-131: Extend the license test around the existing report
assertions to verify the complete MIT package ordering in the JSON output,
including a_b, a-b, and zeta, using the expected JavaScript-compatible
collation. Replace the table find-offset comparison in the licenses list test
with an assertion against the full rendered table, including its formatting and
row order, as required by REVIEW_GUIDE.md.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 3179218a-d6df-471d-8555-05351e5c0d89

📥 Commits

Reviewing files that changed from the base of the PR and between 7e08063 and f38a9a1.

📒 Files selected for processing (4)
  • pnpm/crates/cli/src/cli_args/licenses.rs
  • pnpm/crates/cli/tests/licenses.rs
  • pnpm/crates/default-reporter/src/state.rs
  • pnpm/crates/default-reporter/tests/render.rs
🚧 Files skipped from review as they are similar to previous changes (3)
  • pnpm/crates/default-reporter/tests/render.rs
  • pnpm/crates/default-reporter/src/state.rs
  • pnpm/crates/cli/src/cli_args/licenses.rs

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 28, 2026
Copilot AI review requested due to automatic review settings July 28, 2026 14:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@zkochan

zkochan commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

Fixed the Windows diagnostic-path assertion in c260c56. Windows debug-renders escaped backslashes between node_modules and .modules.yaml, so the regression now checks those stable path components independently while still requiring the parse failure and exact line/column.

Validation: focused regression passed; just ready passed with all 7,428 tests and clean clippy/formatting; all pre-push checks passed.


Written by an agent (Codex, GPT-5).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit c260c56

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Copilot AI review requested due to automatic review settings July 28, 2026 15:49
@zkochan

zkochan commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

Refined the diagnostic assertion in d3c506c to use miette’s canonical source coordinate, <input>:1:6. Unlike the prose location, this coordinate is not affected by terminal-width wrapping on Windows, while directly verifying the intended line and column.

Validation: focused regression passed; just ready passed with all 7,428 tests and clean clippy/formatting; all pre-push checks passed.


Written by an agent (Codex, GPT-5).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit d3c506c

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@github-actions

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: d3c506cc3850

Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time).

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.541 ± 0.127 2.378 2.738 1.71 ± 0.20
pacquet@main 2.506 ± 0.187 2.346 2.789 1.69 ± 0.22
pnpr@HEAD 1.485 ± 0.161 1.352 1.780 1.00
pnpr@main 1.487 ± 0.146 1.348 1.779 1.00 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.54051905596,
      "stddev": 0.12730262258960628,
      "median": 2.5057520434600002,
      "user": 1.55762198,
      "system": 1.24326006,
      "min": 2.37787716896,
      "max": 2.73760830196,
      "times": [
        2.4517748479600003,
        2.56745933796,
        2.42442901096,
        2.65269416296,
        2.47172473496,
        2.72523770896,
        2.53977935196,
        2.73760830196,
        2.37787716896,
        2.45660593296
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.50628354676,
      "stddev": 0.18729377835141933,
      "median": 2.39421812446,
      "user": 1.5470632799999997,
      "system": 1.2811549600000003,
      "min": 2.34562855696,
      "max": 2.78891830396,
      "times": [
        2.4176315609600003,
        2.7652527419600004,
        2.53418677296,
        2.34562855696,
        2.36469340996,
        2.74394596496,
        2.36399581596,
        2.36777765196,
        2.37080468796,
        2.78891830396
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.48532708806,
      "stddev": 0.161054817522578,
      "median": 1.3838091119600002,
      "user": 1.0546123800000002,
      "system": 1.1307467599999999,
      "min": 1.3519094099600002,
      "max": 1.78017422896,
      "times": [
        1.3761575509600001,
        1.39146067296,
        1.36515873196,
        1.35823033296,
        1.6429770539600002,
        1.59402970396,
        1.3519094099600002,
        1.78017422896,
        1.35434289696,
        1.6388302979600002
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.48740567026,
      "stddev": 0.1458499358963708,
      "median": 1.44667420596,
      "user": 1.0574160799999999,
      "system": 1.1508186599999999,
      "min": 1.3484771499600001,
      "max": 1.7793415939600001,
      "times": [
        1.37782409196,
        1.49619674796,
        1.72100942196,
        1.46381855496,
        1.45179554596,
        1.3968212419600001,
        1.44155286596,
        1.7793415939600001,
        1.3484771499600001,
        1.3972194879600002
      ]
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 257.2 ± 8.0 247.0 270.2 1.00
pacquet@main 260.5 ± 7.4 249.6 271.7 1.01 ± 0.04
pnpr@HEAD 272.0 ± 4.4 266.1 279.5 1.06 ± 0.04
pnpr@main 286.7 ± 38.8 266.8 395.8 1.11 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.25723715274000003,
      "stddev": 0.007953555010631148,
      "median": 0.25750663364000004,
      "user": 0.19259894000000005,
      "system": 0.54674088,
      "min": 0.24699744514000002,
      "max": 0.27020044814,
      "times": [
        0.24850996614000004,
        0.24734378814000002,
        0.24699744514000002,
        0.26578265314,
        0.26115650714,
        0.25822051414,
        0.25679275314,
        0.25489864414,
        0.27020044814,
        0.26246880814
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.26048631024,
      "stddev": 0.0074422074617032105,
      "median": 0.26026767164,
      "user": 0.20629134,
      "system": 0.53733388,
      "min": 0.24961704314000002,
      "max": 0.27172338814,
      "times": [
        0.26037331114,
        0.26608325914,
        0.26016203214,
        0.26479081314,
        0.25940820214,
        0.25421902314,
        0.27172338814,
        0.26820292314,
        0.25028310714,
        0.24961704314000002
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.27196455184,
      "stddev": 0.0043598851157574964,
      "median": 0.27116992864,
      "user": 0.21548304000000001,
      "system": 0.5430150799999999,
      "min": 0.26613790314,
      "max": 0.27945095914,
      "times": [
        0.27106608814,
        0.26613790314,
        0.27816726014,
        0.26969826114,
        0.26772863014,
        0.27945095914,
        0.27440281714,
        0.26863971714,
        0.27127376914,
        0.27308011314
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.28668489814,
      "stddev": 0.03882187494708138,
      "median": 0.27380610163999997,
      "user": 0.23549843999999998,
      "system": 0.5523493800000001,
      "min": 0.26680683314,
      "max": 0.39582603914000003,
      "times": [
        0.27539791214,
        0.28628518714,
        0.26955379814,
        0.27083038514,
        0.39582603914000003,
        0.27730192014,
        0.27029694014,
        0.28233567514,
        0.27221429114,
        0.26680683314
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.766 ± 0.021 2.733 2.800 1.79 ± 0.18
pacquet@main 2.768 ± 0.017 2.735 2.797 1.79 ± 0.18
pnpr@HEAD 1.615 ± 0.143 1.416 1.832 1.04 ± 0.14
pnpr@main 1.548 ± 0.153 1.423 1.819 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.7660930841200004,
      "stddev": 0.02096998197488161,
      "median": 2.76142623212,
      "user": 1.7044471399999999,
      "system": 1.32317694,
      "min": 2.73336079862,
      "max": 2.8003524316200004,
      "times": [
        2.76436250162,
        2.7663415816200003,
        2.8003524316200004,
        2.75848996262,
        2.73336079862,
        2.79193685762,
        2.7543389316200004,
        2.7520473036200004,
        2.7874586816200004,
        2.7522417906200003
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.76798010822,
      "stddev": 0.017023236075315855,
      "median": 2.76754432062,
      "user": 1.68939554,
      "system": 1.36965844,
      "min": 2.73492341262,
      "max": 2.7965274856200004,
      "times": [
        2.73492341262,
        2.76779648562,
        2.7965274856200004,
        2.77866297962,
        2.75219913062,
        2.78403705462,
        2.76188880562,
        2.7672921556200003,
        2.77280219762,
        2.7636713746200003
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.6151485084200004,
      "stddev": 0.14278022888918296,
      "median": 1.6159131546200003,
      "user": 1.05497434,
      "system": 1.1287761399999998,
      "min": 1.41646615362,
      "max": 1.83186818762,
      "times": [
        1.4508349236200002,
        1.7757525536200003,
        1.7047977316200003,
        1.83186818762,
        1.64824277962,
        1.50107145162,
        1.41646615362,
        1.7220549546200001,
        1.5835835296200003,
        1.51681281862
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.5475686501200001,
      "stddev": 0.15340110792560135,
      "median": 1.4709862201200001,
      "user": 1.05401324,
      "system": 1.14121354,
      "min": 1.4233808406200001,
      "max": 1.8193181526200002,
      "times": [
        1.43144087562,
        1.46726486862,
        1.4747075716200002,
        1.4233808406200001,
        1.6933889366200001,
        1.43586811662,
        1.8193181526200002,
        1.4893989606200002,
        1.46310075462,
        1.7778174236200002
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 610.5 ± 6.4 601.8 621.1 2.04 ± 0.07
pacquet@main 591.9 ± 15.4 568.6 621.3 1.98 ± 0.09
pnpr@HEAD 298.7 ± 10.4 283.5 312.8 1.00
pnpr@main 304.1 ± 6.8 292.5 312.9 1.02 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6104721522400001,
      "stddev": 0.0064274594750202505,
      "median": 0.6081936208400001,
      "user": 0.7316217199999999,
      "system": 0.6821310199999999,
      "min": 0.6017723623400001,
      "max": 0.62108589934,
      "times": [
        0.61483038434,
        0.6031743633400001,
        0.6086571643400001,
        0.62108589934,
        0.6075275963400001,
        0.61883189234,
        0.6072515463400001,
        0.6077300773400001,
        0.6138602363400001,
        0.6017723623400001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.5919140761400001,
      "stddev": 0.015425556294950644,
      "median": 0.5881788198400001,
      "user": 0.72313722,
      "system": 0.6672604199999999,
      "min": 0.56856819534,
      "max": 0.6213485373400001,
      "times": [
        0.56856819534,
        0.5967299383400001,
        0.58831369334,
        0.5880439463400001,
        0.60205423934,
        0.6213485373400001,
        0.58581737034,
        0.5782180033400001,
        0.5821379993400001,
        0.6079088383400001
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.29867197264000006,
      "stddev": 0.010439000960500652,
      "median": 0.29881732034,
      "user": 0.19073322,
      "system": 0.52005962,
      "min": 0.28354507434,
      "max": 0.31283909134,
      "times": [
        0.31283909134,
        0.29127119934,
        0.29752312734,
        0.30011151334,
        0.30788719234,
        0.30857802334,
        0.30789186034,
        0.29166214534,
        0.28354507434,
        0.28541049934
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.30406798373999994,
      "stddev": 0.0067908210210554905,
      "median": 0.30637652583999997,
      "user": 0.19242002000000002,
      "system": 0.5337105199999999,
      "min": 0.29253593233999997,
      "max": 0.31291752834,
      "times": [
        0.30033534534,
        0.29253593233999997,
        0.30638523234,
        0.30636781934,
        0.31291752834,
        0.31263926334,
        0.30725325734,
        0.30718002934,
        0.29707118534,
        0.29799424434
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.917 ± 0.007 1.902 1.925 6.31 ± 0.17
pacquet@main 1.900 ± 0.010 1.888 1.922 6.26 ± 0.17
pnpr@HEAD 0.314 ± 0.009 0.306 0.336 1.03 ± 0.04
pnpr@main 0.304 ± 0.008 0.289 0.315 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.9168262424400002,
      "stddev": 0.007307890950952163,
      "median": 1.91808638934,
      "user": 0.93845232,
      "system": 0.778183,
      "min": 1.90170739834,
      "max": 1.9249825653400001,
      "times": [
        1.9248010843399999,
        1.9177919293399999,
        1.90882800334,
        1.9249825653400001,
        1.91838084934,
        1.91940324634,
        1.91611409834,
        1.90170739834,
        1.92282199534,
        1.9134312543399998
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.89951606834,
      "stddev": 0.01011774807313947,
      "median": 1.89641636084,
      "user": 0.9326755200000001,
      "system": 0.7399469,
      "min": 1.88823137034,
      "max": 1.9223225153399999,
      "times": [
        1.9037639733399998,
        1.89544134334,
        1.8898090943399999,
        1.90943555834,
        1.89626615834,
        1.89431482134,
        1.89900928534,
        1.9223225153399999,
        1.89656656334,
        1.88823137034
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.31414432404000003,
      "stddev": 0.008737184231026762,
      "median": 0.31182850284,
      "user": 0.20094511999999995,
      "system": 0.5405114,
      "min": 0.30627617834000004,
      "max": 0.33628013234000004,
      "times": [
        0.33628013234000004,
        0.31024898234000003,
        0.31417094134,
        0.31841113934000004,
        0.30736622234000005,
        0.31075649834,
        0.30627617834000004,
        0.31684620134,
        0.31290050734,
        0.30818643734
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.30362168764,
      "stddev": 0.00803832748555388,
      "median": 0.30452121734000004,
      "user": 0.17799262,
      "system": 0.5551181,
      "min": 0.28943917934,
      "max": 0.31474946134000004,
      "times": [
        0.28943917934,
        0.29706954534,
        0.29872579434,
        0.31212337334,
        0.29726438134000005,
        0.30517927234000003,
        0.31196182934000005,
        0.30584087734000004,
        0.30386316234000005,
        0.31474946134000004
      ]
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 373.3 ± 13.7 362.6 409.5 4.28 ± 0.18
pacquet@main 366.9 ± 8.2 354.4 381.2 4.20 ± 0.13
pnpr@HEAD 87.4 ± 1.2 84.8 90.7 1.00 ± 0.03
pnpr@main 87.3 ± 1.8 84.8 91.3 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.37331257438,
      "stddev": 0.013711538701663018,
      "median": 0.36883596718,
      "user": 0.3669523,
      "system": 0.05323806,
      "min": 0.36259198968,
      "max": 0.40953563568,
      "times": [
        0.40953563568,
        0.36849692268,
        0.36647763868,
        0.36959325768,
        0.36259198968,
        0.36865244568,
        0.36901948868,
        0.36445529968,
        0.37307713268000003,
        0.38122593268000005
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.3668508221800001,
      "stddev": 0.00817610429624613,
      "median": 0.36660639718000004,
      "user": 0.36690380000000006,
      "system": 0.050334659999999996,
      "min": 0.35439428568000003,
      "max": 0.38119064668,
      "times": [
        0.37220697268,
        0.36637725068000004,
        0.36730483568,
        0.36579069568,
        0.36683554368000004,
        0.35659853868,
        0.36193862768,
        0.35439428568000003,
        0.38119064668,
        0.37587082468
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.08737692439875,
      "stddev": 0.001219302376916944,
      "median": 0.08740629068,
      "user": 0.020026256249999996,
      "system": 0.009938079999999998,
      "min": 0.08475866268,
      "max": 0.09070207968,
      "times": [
        0.08760550668,
        0.08774950668,
        0.08663452668,
        0.08807544068,
        0.08741980568,
        0.08567912768,
        0.08769033568,
        0.08814540368,
        0.08701103568,
        0.08759210068,
        0.08717235968,
        0.08776480668,
        0.08709972268,
        0.08642713668,
        0.08789793668,
        0.08627287568,
        0.08877795468,
        0.08737886968,
        0.08730790568,
        0.08590417068,
        0.08848506268,
        0.08705899568,
        0.08739277568,
        0.08807915768,
        0.08653447768,
        0.08991060768,
        0.08488870768,
        0.09070207968,
        0.08475866268,
        0.08832899868,
        0.08680524968,
        0.08751027668
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.08728834311750001,
      "stddev": 0.0018091285498004004,
      "median": 0.08710462268000001,
      "user": 0.021318381249999997,
      "system": 0.008713289999999999,
      "min": 0.08478836868,
      "max": 0.09128144068,
      "times": [
        0.08854990468,
        0.08729518168,
        0.08479784668,
        0.08804627568000001,
        0.09010577568,
        0.08506054168,
        0.08597871068,
        0.08750613768,
        0.08817624168,
        0.08985890168,
        0.08580975268,
        0.08552900368000001,
        0.08791234468,
        0.09077789268,
        0.08574347768,
        0.08609741468,
        0.08890399168,
        0.08578793168,
        0.08920901768,
        0.08771709668,
        0.08493142868,
        0.08701093568,
        0.09128144068,
        0.08677576268000001,
        0.08478836868,
        0.08939681068000001,
        0.08503258868,
        0.08713346668000001,
        0.08830298968,
        0.08618173368,
        0.08645223368,
        0.08707577868000001
      ]
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.507 ± 0.138 4.422 4.840 1.28 ± 0.05
pacquet@main 4.522 ± 0.092 4.414 4.680 1.29 ± 0.04
pnpr@HEAD 3.519 ± 0.096 3.453 3.739 1.00
pnpr@main 3.611 ± 0.154 3.444 3.835 1.03 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.507425154920001,
      "stddev": 0.13817873548685644,
      "median": 4.44926074602,
      "user": 1.70102686,
      "system": 1.3666004,
      "min": 4.4223353025200005,
      "max": 4.83982362152,
      "times": [
        4.4223353025200005,
        4.46054856552,
        4.43839226452,
        4.4504755435200005,
        4.44804594852,
        4.83982362152,
        4.47725745552,
        4.67449230352,
        4.4291805355200005,
        4.433700008520001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.5224659030200005,
      "stddev": 0.09167605443565648,
      "median": 4.48079050452,
      "user": 1.68897816,
      "system": 1.3853029000000003,
      "min": 4.4142925255200005,
      "max": 4.68009623752,
      "times": [
        4.47322023152,
        4.46316423052,
        4.4142925255200005,
        4.4751389145200005,
        4.64951318652,
        4.613072462520001,
        4.68009623752,
        4.44997925952,
        4.51973988752,
        4.48644209452
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.51907816142,
      "stddev": 0.09638940574894786,
      "median": 3.4764154425199996,
      "user": 1.19438216,
      "system": 1.2412849,
      "min": 3.4525720395199997,
      "max": 3.7391460995199997,
      "times": [
        3.6450113105199997,
        3.50990171552,
        3.4599846195199997,
        3.4701618285199998,
        3.45894480252,
        3.4559226605199997,
        3.48266905652,
        3.7391460995199997,
        3.4525720395199997,
        3.51646748152
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.6105563072200004,
      "stddev": 0.15357865491320932,
      "median": 3.57717204402,
      "user": 1.22413896,
      "system": 1.2196034999999998,
      "min": 3.44433152852,
      "max": 3.83455271952,
      "times": [
        3.82177336052,
        3.62168179352,
        3.60805581152,
        3.4603576825199998,
        3.54628827652,
        3.46722588952,
        3.5105023965199997,
        3.83455271952,
        3.44433152852,
        3.79079361352
      ]
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13472
Testbedpacquet
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,733.36 ms
(-3.19%)Baseline: 2,823.34 ms
3,388.01 ms
(80.68%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,901.71 ms
(-4.26%)Baseline: 1,986.35 ms
2,383.61 ms
(79.78%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
601.77 ms
(-7.46%)Baseline: 650.29 ms
780.35 ms
(77.12%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
362.59 ms
(-10.89%)Baseline: 406.91 ms
488.29 ms
(74.26%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,377.88 ms
(-1.95%)Baseline: 2,425.18 ms
2,910.21 ms
(81.71%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,422.34 ms
(-2.19%)Baseline: 4,521.52 ms
5,425.83 ms
(81.51%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
247.00 ms
(-11.82%)Baseline: 280.11 ms
336.13 ms
(73.48%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13472
Testbedpnpr

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds flag.

Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,416.47 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
306.28 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
283.55 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
84.76 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,351.91 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,452.57 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
266.14 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan
zkochan merged commit 1e6f6f4 into main Jul 28, 2026
34 checks passed
@zkochan
zkochan deleted the fix-13457-5 branch July 28, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remaining pacquet CLI parity gaps found in vuejs/core

3 participants