Skip to content

feat: implement pnpm licenses command in pacquet - #13090

Merged
zkochan merged 8 commits into
pnpm:mainfrom
kairosci:paquet-licenses
Jul 18, 2026
Merged

zkochan merged 8 commits into
pnpm:mainfrom
kairosci:paquet-licenses

Conversation

@kairosci

@kairosci kairosci commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR ports the licenses command to the Rust pacquet CLI to achieve feature parity with the TypeScript CLI. It introduces support for rendering project dependencies and their licenses using tabled for tabular output and serde_json for JSON formatting. It also implements recursive workspace support by aggregating dependencies across all filtered workspace projects when the recursive flag is provided.

Related to: #11633

Squash Commit Body

Port the pnpm licenses command to pacquet to mirror the behavior of the TypeScript CLI. The command supports standard tabular and JSON output formats. It correctly parses both direct and transitive dependencies and extracts author and homepage information from package.json files. Additionally, this implements recursive workspace project filtering, allowing the command to evaluate and combine licenses across the entire workspace according to user configuration.

Related to: #11633 

Checklist

[x] The change is implemented in both the TypeScript CLI and the Rust pnpm port.
[x] Added or updated tests.

Summary by CodeRabbit

  • New Features
    • Added a licenses command, also available as licences.
    • View package licenses in table or JSON format.
    • Filter results by production, development, and optional dependency categories.
    • Enable detailed output for authors, homepages, descriptions, versions, and install paths.
    • Supports recursive workspace license reporting.
  • Bug Fixes
    • Improved shared extraction of author and homepage metadata for license/SBOM-related output.

@kairosci
kairosci requested a review from zkochan as a code owner July 16, 2026 22:52
Copilot AI review requested due to automatic review settings July 16, 2026 22:52
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

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.

@greptile-apps

greptile-apps Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5

The command is functionally wired up correctly and previous blocking issues have been resolved, but the table output format diverges from the TypeScript CLI in two user-visible ways — no Version column and no per-license grouping — which the project's parity requirement treats as a required fix before landing.

The core lockfile-walk, deduplication, JSON serialization, and recursive workspace paths all look correct. What's missing is table-format parity with the TypeScript CLI: the collected versions Vec is never rendered in the table, and rows are sorted by name rather than grouped by license. The AGENTS.md cardinal rule requires the two implementations to be observably identical, so these divergences need to be addressed before the PR lands.

pnpm/crates/cli/src/cli_args/licenses.rs — the table rendering block (lines 299–332) needs a Version column and per-license grouping to match the TypeScript CLI output.

Reviews (9): Last reviewed commit: "fix: remove pnpm from rust-only changese..." | Re-trigger Greptile

Copilot AI review requested due to automatic review settings July 16, 2026 23: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.

Copilot AI review requested due to automatic review settings July 17, 2026 07:00

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 17, 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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 196645ad-1be4-4d88-a2c2-5a15865137c8

📥 Commits

Reviewing files that changed from the base of the PR and between 393f405 and ac3308c.

📒 Files selected for processing (1)
  • .changeset/pacquet-licenses.md
💤 Files with no reviewable changes (1)
  • .changeset/pacquet-licenses.md

📝 Walkthrough

Walkthrough

The Rust pacquet CLI adds a licenses command with dependency-scope options, lockfile traversal, package metadata collection, and table or JSON output. Shared manifest helpers are added and reused by SBOM generation, with tests and release metadata included.

Changes

Licenses command

Layer / File(s) Summary
Licenses command wiring
pnpm/crates/cli/src/cli_args.rs, pnpm/crates/cli/src/cli_args/cli_command.rs, pnpm/crates/cli/src/cli_args/dispatch.rs, pnpm/crates/cli/src/cli_args/dispatch_query.rs, pnpm/crates/cli/src/cli_args/switch_cli_version.rs
Registers the licenses command and licences alias, routes it through dispatch, and maps it to the command name.
License collection and output
pnpm/crates/cli/src/cli_args/licenses.rs
Selects dependency scopes, traverses lockfiles, reads package manifests, aggregates license metadata, and renders JSON or table output.
Shared metadata and validation
pnpm/crates/package-manifest/src/lib.rs, pnpm/crates/cli/src/cli_args/sbom.rs, pnpm/crates/cli/src/cli_args/licenses/tests.rs, .changeset/pacquet-licenses.md
Adds shared author and homepage extractors, updates SBOM usage, tests license behavior, and records release metadata.

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

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant CliCommand
  participant dispatch_query
  participant LicensesArgs
  participant WantedLockfile
  participant PackageJson
  participant Output
  User->>CliCommand: invoke licenses
  CliCommand->>dispatch_query: route command arguments
  dispatch_query->>LicensesArgs: run(config, dir, recursive)
  LicensesArgs->>WantedLockfile: load and traverse dependencies
  LicensesArgs->>PackageJson: read package metadata
  PackageJson-->>LicensesArgs: return license information
  LicensesArgs->>Output: print JSON or table
Loading

Suggested labels: product: pacquet

Suggested reviewers: copilot, zkochan, qodo-code-review

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main change: implementing the pnpm licenses command in the Rust pacquet CLI.
Description check ✅ Passed The description includes a summary, squash commit body, and a partially completed checklist. However, a changeset documentation requirement is not explicitly mentioned as completed (only marked without explanation).
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 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: 1

🧹 Nitpick comments (2)
pnpm/crates/cli/src/cli_args/licenses.rs (2)

65-70: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low value

Verify the priority ordering of BelongsTo variants.

Because PartialOrd and Ord are derived automatically, the variants are ordered sequentially by their declaration: Prod < Optional < Dev. This means that if a package is reachable via both an Optional and a Dev dependency path, Optional will override Dev (since Optional <= Dev evaluates to true).

In pnpm's dependency hierarchy logic, dev dependencies typically take precedence over optional ones. Consider swapping the order of Optional and Dev to Prod, Dev, Optional if Dev should win.

🤖 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/src/cli_args/licenses.rs` around lines 65 - 70, Update the
BelongsTo variant declaration order to match the dependency precedence required
by the hierarchy logic, placing Dev before Optional if dev dependencies must
override optional dependencies. Preserve the existing derives and all other enum
behavior.

141-154: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Remove the redundant seen set.

The seen HashSet is logically redundant and performs unnecessary allocations/hashing inside a hot loop traversing the lockfile.

If a (key, kind) pair was already processed, belongs_to would already contain key with an existing kind that is <= kind. The loop naturally skips redundant work by evaluating continue; at line 147 before ever reaching the seen.insert check.

♻️ Proposed refactor
-        let mut seen = HashSet::new();
 
         while let Some((key, kind)) = stack.pop() {
             if let Some(existing) = belongs_to.get(&key)
                 && *existing <= kind
             {
                 continue;
             }
 
             belongs_to.insert(key.clone(), kind);
 
-            if !seen.insert((key.clone(), kind)) {
-                continue;
-            }
-
             if let Some(snapshot) = snapshots.get(&key) {
🤖 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/src/cli_args/licenses.rs` around lines 141 - 154, Remove the
redundant seen HashSet and its seen.insert check from the traversal loop around
belongs_to and stack.pop. Preserve the existing belongs_to lookup and early
continue, which already prevents reprocessing keys with an equal or stronger
kind.
🤖 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`:
- Around line 194-196: Harden the path construction around
key.to_virtual_store_name and safe_read_package_json_from_dir: validate both
store_name and name against absolute paths and traversal components before
joining, or enforce that the resolved pkg_dir remains a strict descendant of
virtual_store_dir. Reject unsafe lockfile entries and skip their manifest reads
while preserving normal package paths.

---

Nitpick comments:
In `@pnpm/crates/cli/src/cli_args/licenses.rs`:
- Around line 65-70: Update the BelongsTo variant declaration order to match the
dependency precedence required by the hierarchy logic, placing Dev before
Optional if dev dependencies must override optional dependencies. Preserve the
existing derives and all other enum behavior.
- Around line 141-154: Remove the redundant seen HashSet and its seen.insert
check from the traversal loop around belongs_to and stack.pop. Preserve the
existing belongs_to lookup and early continue, which already prevents
reprocessing keys with an equal or stronger kind.
🪄 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: 3db9350f-bca0-4e9d-8c77-4489d98f3e42

📥 Commits

Reviewing files that changed from the base of the PR and between 27646a0 and 60a784d.

📒 Files selected for processing (7)
  • .changeset/pacquet-licenses.md
  • pnpm/crates/cli/src/cli_args.rs
  • pnpm/crates/cli/src/cli_args/cli_command.rs
  • pnpm/crates/cli/src/cli_args/dispatch.rs
  • pnpm/crates/cli/src/cli_args/dispatch_query.rs
  • pnpm/crates/cli/src/cli_args/licenses.rs
  • pnpm/crates/cli/src/cli_args/switch_cli_version.rs

@codecov-commenter

codecov-commenter commented Jul 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 14.66667% with 192 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.28%. Comparing base (27646a0) to head (ac3308c).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
pnpm/crates/cli/src/cli_args/licenses.rs 10.78% 182 Missing ⚠️
pnpm/crates/cli/src/cli_args/dispatch_query.rs 0.00% 9 Missing ⚠️
pnpm/crates/cli/src/cli_args/dispatch.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13090      +/-   ##
==========================================
- Coverage   85.66%   85.28%   -0.38%     
==========================================
  Files         500      503       +3     
  Lines       80222    81035     +813     
==========================================
+ Hits        68721    69113     +392     
- Misses      11501    11922     +421     

☔ 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.

@github-actions

github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: ac3308c4b014

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

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.683 ± 0.115 2.550 2.908 1.84 ± 0.14
pacquet@main 2.579 ± 0.146 2.394 2.793 1.77 ± 0.15
pnpr@HEAD 1.454 ± 0.087 1.369 1.594 1.00
pnpr@main 1.597 ± 0.171 1.400 1.844 1.10 ± 0.13
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.6829875832599996,
      "stddev": 0.11483577359573326,
      "median": 2.6658758250599996,
      "user": 2.3897828199999998,
      "system": 1.88998372,
      "min": 2.54977689506,
      "max": 2.9076880630599997,
      "times": [
        2.9076880630599997,
        2.54977689506,
        2.72725181106,
        2.5870721360599997,
        2.66721604906,
        2.8056690380599996,
        2.6178117040599997,
        2.7447301280599996,
        2.5581244070599998,
        2.66453560106
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.57904338526,
      "stddev": 0.14579451842299743,
      "median": 2.54534776906,
      "user": 1.8317856199999998,
      "system": 1.4841668199999998,
      "min": 2.39422362906,
      "max": 2.79318399706,
      "times": [
        2.49215104406,
        2.79318399706,
        2.78900330806,
        2.39422362906,
        2.59854449406,
        2.46634414006,
        2.48248972206,
        2.44718117406,
        2.61099656106,
        2.7163157830599998
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.45431017156,
      "stddev": 0.08696961038478757,
      "median": 1.4292891490600002,
      "user": 1.17884332,
      "system": 1.31133582,
      "min": 1.3687416110600001,
      "max": 1.59441431406,
      "times": [
        1.40460847706,
        1.37482599906,
        1.53479960406,
        1.54939245706,
        1.45396982106,
        1.59441431406,
        1.3687416110600001,
        1.51539999406,
        1.37614529906,
        1.37080413906
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.59687522576,
      "stddev": 0.17101244982021657,
      "median": 1.55467306006,
      "user": 1.36106052,
      "system": 1.36775272,
      "min": 1.39976672506,
      "max": 1.84352449806,
      "times": [
        1.80187015206,
        1.48081198306,
        1.84113711006,
        1.54439410206,
        1.59552909906,
        1.56495201806,
        1.39976672506,
        1.84352449806,
        1.43277321406,
        1.46399335606
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 299.4 ± 12.2 274.6 315.5 1.00
pacquet@main 300.6 ± 11.6 284.6 319.3 1.00 ± 0.06
pnpr@HEAD 302.1 ± 18.0 281.5 335.5 1.01 ± 0.07
pnpr@main 302.1 ± 15.4 272.4 323.4 1.01 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.29941417975999995,
      "stddev": 0.012220281102295602,
      "median": 0.30027094746,
      "user": 0.26630498,
      "system": 0.5994816399999999,
      "min": 0.27459775396,
      "max": 0.31553624496,
      "times": [
        0.30038425096,
        0.30724238296,
        0.31553624496,
        0.30015764396,
        0.29811714796,
        0.31196542196,
        0.30411671696,
        0.29745213896,
        0.27459775396,
        0.28457209496
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.30059482115999997,
      "stddev": 0.011615166704341812,
      "median": 0.30095997246,
      "user": 0.24749848000000002,
      "system": 0.62016534,
      "min": 0.28455785796,
      "max": 0.31925850196,
      "times": [
        0.30181156396000003,
        0.30936640596,
        0.29029966196,
        0.29608967696,
        0.30010838096,
        0.30665664196,
        0.28545998396,
        0.28455785796,
        0.31925850196,
        0.31233953596
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30214816216,
      "stddev": 0.017986880357178277,
      "median": 0.29609815246,
      "user": 0.25289777999999996,
      "system": 0.59233234,
      "min": 0.28153599596,
      "max": 0.33553124296,
      "times": [
        0.31787107396000003,
        0.29027322196,
        0.28153599596,
        0.30539327696,
        0.28580748796,
        0.29086478396,
        0.32289745296,
        0.33553124296,
        0.30133152096,
        0.28997556396
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.30210371546000003,
      "stddev": 0.015426999407452686,
      "median": 0.30193345746,
      "user": 0.25158188000000004,
      "system": 0.6006150399999999,
      "min": 0.27241259696,
      "max": 0.32339242296,
      "times": [
        0.31146179496,
        0.30942770996,
        0.30423866596,
        0.31907786196,
        0.29962824896,
        0.29837568396,
        0.32339242296,
        0.29953701696,
        0.28348515196,
        0.27241259696
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.866 ± 0.021 2.833 2.906 1.78 ± 0.18
pacquet@main 2.903 ± 0.073 2.806 3.010 1.81 ± 0.18
pnpr@HEAD 1.641 ± 0.158 1.447 1.871 1.02 ± 0.14
pnpr@main 1.607 ± 0.159 1.426 1.861 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.8659383888800005,
      "stddev": 0.02110516761553603,
      "median": 2.86354403868,
      "user": 2.1126974599999997,
      "system": 1.5025032399999998,
      "min": 2.8328294136800003,
      "max": 2.9063097836800003,
      "times": [
        2.86272094168,
        2.86166127868,
        2.9063097836800003,
        2.84732696468,
        2.8643671356800002,
        2.87900757568,
        2.8328294136800003,
        2.8491568646800003,
        2.8869968696800004,
        2.86900706068
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.90333069468,
      "stddev": 0.07260487230765164,
      "median": 2.8904647391800005,
      "user": 2.1701081599999994,
      "system": 1.59307934,
      "min": 2.80621585068,
      "max": 3.0098259506800003,
      "times": [
        2.8105598086800003,
        2.96552654268,
        2.90818445868,
        2.87084908468,
        2.80621585068,
        3.0098259506800003,
        2.9988378896800003,
        2.93356042468,
        2.8727450196800004,
        2.8570019166800003
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.64093773898,
      "stddev": 0.15803356023319945,
      "median": 1.62334228768,
      "user": 1.28684106,
      "system": 1.39349094,
      "min": 1.44718596968,
      "max": 1.8711087696800002,
      "times": [
        1.64333155468,
        1.7856610756800002,
        1.4956211966800002,
        1.8496869186800002,
        1.70230247268,
        1.56378065068,
        1.44718596968,
        1.8711087696800002,
        1.4473457606800002,
        1.6033530206800002
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.60720059998,
      "stddev": 0.15874976927984732,
      "median": 1.5654315311800002,
      "user": 1.3244445599999999,
      "system": 1.46546814,
      "min": 1.4263754796800001,
      "max": 1.86144385468,
      "times": [
        1.5476117386800001,
        1.77311218868,
        1.45661536068,
        1.62979541168,
        1.82049522868,
        1.86144385468,
        1.4929916116800002,
        1.4803138016800002,
        1.58325132368,
        1.4263754796800001
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 708.6 ± 15.3 687.1 725.2 2.36 ± 0.09
pacquet@main 652.1 ± 25.8 613.2 698.3 2.18 ± 0.11
pnpr@HEAD 315.4 ± 16.0 296.3 343.6 1.05 ± 0.06
pnpr@main 299.7 ± 9.7 283.8 314.2 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.70864015338,
      "stddev": 0.015280739974257909,
      "median": 0.71275664458,
      "user": 0.88058966,
      "system": 0.77326666,
      "min": 0.68714317258,
      "max": 0.7252005835800001,
      "times": [
        0.7234900575800001,
        0.70665065358,
        0.72012397758,
        0.6892309185800001,
        0.7252005835800001,
        0.68714317258,
        0.6974878545800001,
        0.69491499658,
        0.72329668358,
        0.7188626355800001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.6521227257800001,
      "stddev": 0.025786325098700144,
      "median": 0.65318544408,
      "user": 0.84868016,
      "system": 0.7222975599999999,
      "min": 0.61318009458,
      "max": 0.6982745635800001,
      "times": [
        0.6792807575800001,
        0.63582791058,
        0.62195284058,
        0.6403374295800001,
        0.65464052558,
        0.61318009458,
        0.6982745635800001,
        0.65839097758,
        0.6676117955800001,
        0.65173036258
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.31543176058,
      "stddev": 0.016009181819417274,
      "median": 0.31476097358,
      "user": 0.20360766,
      "system": 0.5618453600000001,
      "min": 0.29627262258,
      "max": 0.34360644858,
      "times": [
        0.32148335858,
        0.34360644858,
        0.29762013657999997,
        0.33325741858,
        0.30663934558,
        0.32663920458,
        0.31692246258,
        0.31259948458,
        0.29927712357999997,
        0.29627262258
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.29973300937999997,
      "stddev": 0.009687416415662401,
      "median": 0.29935944857999996,
      "user": 0.18356256,
      "system": 0.5394072600000002,
      "min": 0.28378415058,
      "max": 0.31419896258,
      "times": [
        0.30066995258,
        0.31101434258,
        0.31419896258,
        0.29369469558,
        0.30814348458,
        0.29093665058,
        0.29804894458,
        0.30398622758,
        0.29285268257999997,
        0.28378415058
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.889 ± 0.056 1.833 2.023 6.66 ± 0.24
pacquet@main 1.824 ± 0.014 1.803 1.841 6.43 ± 0.15
pnpr@HEAD 0.284 ± 0.006 0.272 0.291 1.00 ± 0.03
pnpr@main 0.284 ± 0.006 0.271 0.294 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.88868206378,
      "stddev": 0.05592896077514683,
      "median": 1.87383539678,
      "user": 0.9528579199999999,
      "system": 0.77262086,
      "min": 1.83298163728,
      "max": 2.02328856028,
      "times": [
        1.8626822542800001,
        1.86906425528,
        1.8858158342800002,
        1.83298163728,
        1.8822651642800001,
        1.84351072128,
        1.86436058028,
        1.94424509228,
        2.02328856028,
        1.8786065382800001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.82370748728,
      "stddev": 0.013694739000943494,
      "median": 1.8254532937799999,
      "user": 0.85625222,
      "system": 0.7181910599999999,
      "min": 1.8026766522800002,
      "max": 1.84124440428,
      "times": [
        1.83808315528,
        1.8337047422800001,
        1.8026766522800002,
        1.83152060128,
        1.80531505928,
        1.8190909512800002,
        1.81324843228,
        1.83280488828,
        1.81938598628,
        1.84124440428
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.28353727838000004,
      "stddev": 0.006301352071633029,
      "median": 0.28324462878,
      "user": 0.18334862,
      "system": 0.5116775600000001,
      "min": 0.27243864628000003,
      "max": 0.29109675028000004,
      "times": [
        0.29034205928,
        0.29109675028000004,
        0.28217500528,
        0.28029372328,
        0.27593896628000003,
        0.27243864628000003,
        0.28868229528,
        0.28431425228,
        0.28123781028,
        0.28885327528000004
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.28350596378,
      "stddev": 0.006179546314317699,
      "median": 0.28383359778,
      "user": 0.17542062,
      "system": 0.50637166,
      "min": 0.27126515728,
      "max": 0.29419717628000003,
      "times": [
        0.28045916428,
        0.27126515728,
        0.28740443028,
        0.28644951228000004,
        0.28340111328,
        0.28277430428,
        0.28705380928,
        0.28426608228,
        0.29419717628000003,
        0.27778888828000003
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 318.3 ± 7.2 304.4 331.3 4.01 ± 0.14
pacquet@main 322.7 ± 10.3 301.7 337.5 4.06 ± 0.17
pnpr@HEAD 79.7 ± 2.1 76.7 83.6 1.00 ± 0.04
pnpr@main 79.5 ± 2.1 76.4 83.9 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.31828805928000004,
      "stddev": 0.007216869821111803,
      "median": 0.31809299298000004,
      "user": 0.3069576,
      "system": 0.05781786,
      "min": 0.30435584798000004,
      "max": 0.33132306198,
      "times": [
        0.31859015398,
        0.31680980098,
        0.33132306198,
        0.31759583198,
        0.30435584798000004,
        0.32277394898,
        0.32290831098,
        0.31119714598000003,
        0.31643357198,
        0.32089291798
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.32274954258000005,
      "stddev": 0.010285329210918947,
      "median": 0.32297829798,
      "user": 0.3118196,
      "system": 0.05659425999999999,
      "min": 0.30168284398,
      "max": 0.33752881398,
      "times": [
        0.33752881398,
        0.32376177798,
        0.31932687998000003,
        0.32437987198,
        0.33224975698000003,
        0.32046637398,
        0.32219481798,
        0.31350213498,
        0.30168284398,
        0.33240215398
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.07973041852285714,
      "stddev": 0.0021369780438773448,
      "median": 0.07984381598000001,
      "user": 0.014309442857142859,
      "system": 0.008905668,
      "min": 0.07668810598,
      "max": 0.08361648998,
      "times": [
        0.07972875098,
        0.08205821598,
        0.07714674998,
        0.07668810598,
        0.07734551398,
        0.07849544798000001,
        0.08032743798,
        0.07759161598,
        0.07683708698000001,
        0.07984381598000001,
        0.08056798098000001,
        0.08243505498,
        0.08169224698000001,
        0.08225143898000001,
        0.08209428298,
        0.08175899298,
        0.07738071998,
        0.08177933098000001,
        0.08191815198,
        0.07805659298,
        0.08091818998,
        0.07714742198,
        0.07735815698000001,
        0.07709972198000001,
        0.07978239098,
        0.08067383998000001,
        0.08133163798000001,
        0.07807608998,
        0.08155663198,
        0.07738518898,
        0.08115271098,
        0.07723856298000001,
        0.07866567898,
        0.08256439898000001,
        0.08361648998
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.07945725292444444,
      "stddev": 0.002112224916629044,
      "median": 0.07940880348000001,
      "user": 0.015131011111111111,
      "system": 0.007999149444444444,
      "min": 0.07637845298,
      "max": 0.08385301498,
      "times": [
        0.07755005998,
        0.07719629398,
        0.07925207298,
        0.08172559998000001,
        0.07814737398,
        0.07993925698,
        0.07740527598000001,
        0.07738141198000001,
        0.07730203298,
        0.07637845298,
        0.07956553398,
        0.08083670598,
        0.07742468298,
        0.07838769498,
        0.08130486798,
        0.08221984898000001,
        0.08271195598,
        0.08385301498,
        0.08207133998,
        0.08061700298,
        0.08053405598,
        0.08065134598,
        0.08013432498,
        0.08085224498,
        0.07846480098,
        0.08068763498,
        0.07808433498,
        0.07709390998,
        0.08201781998,
        0.07691763698000001,
        0.07680150998,
        0.07774886298,
        0.07731173998,
        0.07755439798000001,
        0.08170065198000001,
        0.08263535198000001
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.573 ± 0.146 4.431 4.897 1.26 ± 0.05
pacquet@main 4.711 ± 0.126 4.506 4.910 1.30 ± 0.05
pnpr@HEAD 3.635 ± 0.089 3.539 3.765 1.00
pnpr@main 3.662 ± 0.153 3.495 3.928 1.01 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.573426684879999,
      "stddev": 0.14642312228723905,
      "median": 4.5236741159800005,
      "user": 1.7595699599999999,
      "system": 1.41514244,
      "min": 4.43128756948,
      "max": 4.89694078948,
      "times": [
        4.49427875948,
        4.68381119148,
        4.4543944594800005,
        4.46048301448,
        4.61155564248,
        4.43128756948,
        4.55306947248,
        4.67632364648,
        4.89694078948,
        4.47212230348
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.7111210116799995,
      "stddev": 0.12641917215505835,
      "median": 4.67590557998,
      "user": 1.8341375599999998,
      "system": 1.43368954,
      "min": 4.50589660948,
      "max": 4.90969325848,
      "times": [
        4.66165283548,
        4.66746733048,
        4.85511779648,
        4.68434382948,
        4.77470186548,
        4.50589660948,
        4.58996279448,
        4.63910998148,
        4.90969325848,
        4.82326381548
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.6348121984799997,
      "stddev": 0.08932611781561353,
      "median": 3.63244334998,
      "user": 1.5224780599999996,
      "system": 1.48281154,
      "min": 3.53861692648,
      "max": 3.76498498648,
      "times": [
        3.53861692648,
        3.76498498648,
        3.74381276148,
        3.67044953748,
        3.72713517248,
        3.54001342248,
        3.6423599924800003,
        3.55436572748,
        3.54385675048,
        3.62252670748
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.66243451458,
      "stddev": 0.15336628776214475,
      "median": 3.64304846948,
      "user": 1.4879363599999995,
      "system": 1.55840214,
      "min": 3.49481809648,
      "max": 3.92770179248,
      "times": [
        3.61278711248,
        3.67330982648,
        3.7602933164800003,
        3.49481809648,
        3.50492569548,
        3.51168948748,
        3.54139967248,
        3.76917272648,
        3.92770179248,
        3.8282474194800002
      ]
    }
  ]
}

@github-actions

github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/13090
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,865.94 ms
(-2.48%)Baseline: 2,938.90 ms
3,526.68 ms
(81.26%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,888.68 ms
(-11.02%)Baseline: 2,122.66 ms
2,547.19 ms
(74.15%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
708.64 ms
(-5.60%)Baseline: 750.67 ms
900.80 ms
(78.67%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
318.29 ms
(-28.66%)Baseline: 446.16 ms
535.39 ms
(59.45%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,682.99 ms
(-0.42%)Baseline: 2,694.38 ms
3,233.25 ms
(82.98%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,573.43 ms
(-4.81%)Baseline: 4,804.40 ms
5,765.29 ms
(79.33%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
299.41 ms
(+2.27%)Baseline: 292.76 ms
351.31 ms
(85.23%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/13090
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,640.94 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
283.54 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
315.43 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
79.73 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,454.31 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,634.81 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
302.15 ms
🐰 View full continuous benchmarking report in Bencher

Copilot AI review requested due to automatic review settings July 17, 2026 07:32

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.

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

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.

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 state: automerge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants