Skip to content

fix(cli): support catalogs in deploy - #12931

Merged
zkochan merged 3 commits into
pnpm:mainfrom
sensei-woo:codex/fix-deploy-catalogs
Jul 13, 2026
Merged

zkochan merged 3 commits into
pnpm:mainfrom
sensei-woo:codex/fix-deploy-catalogs

Conversation

@sensei-woo

@sensei-woo sensei-woo commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

  • omit catalog snapshots from generated deploy lockfiles
  • add an end-to-end catalog deploy regression test
  • add a pnpm patch changeset

Testing:

  • cargo fmt --check
  • cargo test -p pacquet-cli --test deploy deploy_from_shared_lockfile_supports_catalog_dependencies
  • verified the regression test fails with the production fix removed

Full just ready is currently blocked on upstream main because sysinfo 0.39.3 requires Rust 1.95 while rust-toolchain.toml pins Rust 1.93.1.

Summary by CodeRabbit

  • New Features
    • pnpm deploy now supports workspaces that use catalog-based dependency specifiers.
  • Bug Fixes
    • Deployment lockfiles no longer include catalog snapshot data; catalog dependencies are represented as resolved concrete versions.
  • Tests
    • Added a new CLI integration test and updated an existing regression test to verify deploy output and confirm the generated lockfile omits any catalogs snapshot.

@sensei-woo
sensei-woo requested a review from zkochan as a code owner July 11, 2026 04:46
@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 →

@coderabbitai

coderabbitai Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@zkochan, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 16 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: a522a292-e71f-4118-9bac-c711475ad200

📥 Commits

Reviewing files that changed from the base of the PR and between f6bb4b9 and 0bcd190.

📒 Files selected for processing (4)
  • .changeset/deploy-catalog-snapshots.md
  • pnpm/crates/cli/src/cli_args/deploy.rs
  • pnpm/crates/cli/tests/deploy.rs
  • pnpm11/releasing/commands/src/deploy/createDeployFiles.ts
📝 Walkthrough

Walkthrough

pnpm deploy now removes catalog snapshots from generated deploy lockfiles while preserving resolved dependencies. Rust and TypeScript integration tests cover catalog-based workspace dependencies, and a Changeset documents the patch release.

Changes

Catalog-aware deployment

Layer / File(s) Summary
Deploy lockfile catalog handling
pnpm/crates/cli/src/cli_args/deploy.rs, pnpm11/releasing/commands/src/deploy/createDeployFiles.ts, .changeset/deploy-catalog-snapshots.md
Both deploy implementations clear the output lockfile’s catalog snapshots, and the Changeset records support for catalog workspaces.
Catalog deployment integration coverage
pnpm/crates/cli/tests/deploy.rs, pnpm11/releasing/commands/test/deploy/deploy.test.ts
Tests install and deploy catalog-based dependencies, verify the deployed package is present, and assert the generated lockfile omits catalogs.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: product: pnpm@11, product: pacquet

Suggested reviewers: zkochan

Sequence Diagram(s)

sequenceDiagram
  participant Workspace
  participant Install
  participant Deploy
  participant DeployLockfile
  participant DeployOutput
  Workspace->>Install: Define and install catalog dependency
  Install->>Deploy: Provide shared lockfile state
  Deploy->>DeployLockfile: Clear catalog snapshots
  Deploy->>DeployOutput: Write deployed package and lockfile
  DeployOutput-->>Workspace: Dependency present without catalogs
Loading
✨ 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

🤖 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/deploy.rs`:
- Around line 854-857: Update the TypeScript deploy-lockfile generation in
createDeployFiles.ts to clear or omit the catalogs field before writing the
deployed lockfile, matching the Rust deploy path’s deploy_lockfile.catalogs =
None behavior. Ensure all relevant TypeScript CLI deploy flows use this adjusted
lockfile.
🪄 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: 97c697e6-3926-48a2-9d2f-82f06b20c72a

📥 Commits

Reviewing files that changed from the base of the PR and between 7bb4e94 and ba97301.

📒 Files selected for processing (3)
  • .changeset/deploy-catalog-snapshots.md
  • pnpm/crates/cli/src/cli_args/deploy.rs
  • pnpm/crates/cli/tests/deploy.rs

Comment thread pnpm/crates/cli/src/cli_args/deploy.rs Resolved
@codecov-commenter

codecov-commenter commented Jul 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.44%. Comparing base (4658133) to head (f6bb4b9).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12931      +/-   ##
==========================================
- Coverage   85.45%   85.44%   -0.01%     
==========================================
  Files         474      474              
  Lines       74561    74562       +1     
==========================================
- Hits        63714    63710       -4     
- Misses      10847    10852       +5     

☔ 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 11, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: f6bb4b9933f5

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 4.216 ± 0.172 4.025 4.525 1.97 ± 0.14
pacquet@main 4.134 ± 0.125 3.935 4.342 1.93 ± 0.13
pnpr@HEAD 2.154 ± 0.116 2.011 2.322 1.01 ± 0.08
pnpr@main 2.144 ± 0.125 2.054 2.460 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.21641165392,
      "stddev": 0.17176002315102415,
      "median": 4.20451975352,
      "user": 3.88348222,
      "system": 3.5340072600000005,
      "min": 4.02495895102,
      "max": 4.52461538402,
      "times": [
        4.52461538402,
        4.04252949102,
        4.03321070702,
        4.41581120802,
        4.11556326002,
        4.02495895102,
        4.23168328102,
        4.34755366402,
        4.25083436702,
        4.17735622602
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.13420129612,
      "stddev": 0.12528971466015687,
      "median": 4.1215495440200005,
      "user": 3.8603594199999995,
      "system": 3.52385096,
      "min": 3.93491181902,
      "max": 4.34153237002,
      "times": [
        4.22465638502,
        3.93491181902,
        4.10155373402,
        4.08832062102,
        4.34153237002,
        4.07838258702,
        4.14154535402,
        3.98333959202,
        4.27490867802,
        4.17286182102
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 2.15440504652,
      "stddev": 0.11638725917207804,
      "median": 2.10893063402,
      "user": 2.68837362,
      "system": 3.06088216,
      "min": 2.01116957702,
      "max": 2.3220491390199998,
      "times": [
        2.2752047700199998,
        2.26059143502,
        2.05652204702,
        2.10330774902,
        2.01116957702,
        2.1145535190199998,
        2.3220491390199998,
        2.06784053202,
        2.28012319502,
        2.05268850202
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 2.14362723242,
      "stddev": 0.12463067334266807,
      "median": 2.10017647902,
      "user": 2.67205772,
      "system": 3.06318486,
      "min": 2.05390496902,
      "max": 2.46001236102,
      "times": [
        2.46001236102,
        2.10017850202,
        2.05390496902,
        2.05676942602,
        2.06151201202,
        2.10017445602,
        2.1332365430199998,
        2.09199115702,
        2.24689195202,
        2.13160094602
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 659.4 ± 21.5 639.8 706.3 1.00
pacquet@main 660.0 ± 20.9 641.8 715.2 1.00 ± 0.05
pnpr@HEAD 730.9 ± 69.4 685.7 919.6 1.11 ± 0.11
pnpr@main 751.5 ± 116.9 691.3 1080.9 1.14 ± 0.18
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6593691826800001,
      "stddev": 0.021505810602515035,
      "median": 0.65408537248,
      "user": 0.38795617999999993,
      "system": 1.3397797999999999,
      "min": 0.63984380348,
      "max": 0.70629248948,
      "times": [
        0.64758712748,
        0.70629248948,
        0.6429673904800001,
        0.65460710948,
        0.6421411854800001,
        0.6535636354800001,
        0.65636248448,
        0.6627035234800001,
        0.6876230774800001,
        0.63984380348
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.66003285998,
      "stddev": 0.02089948667549677,
      "median": 0.65293394648,
      "user": 0.40277658,
      "system": 1.3274332999999998,
      "min": 0.64175817448,
      "max": 0.71522626148,
      "times": [
        0.64995932048,
        0.66249846548,
        0.65259277248,
        0.6594945484800001,
        0.64175817448,
        0.65327512048,
        0.65050699848,
        0.71522626148,
        0.66842787648,
        0.6465890614800001
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.73088600138,
      "stddev": 0.06937752145496395,
      "median": 0.71215957448,
      "user": 0.40607267999999996,
      "system": 1.3669521,
      "min": 0.68567815048,
      "max": 0.91963345648,
      "times": [
        0.7225457364800001,
        0.75612740848,
        0.71161675948,
        0.7175525044800001,
        0.68882075048,
        0.6993008364800001,
        0.6948820214800001,
        0.7127023894800001,
        0.68567815048,
        0.91963345648
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.75147618808,
      "stddev": 0.11693666005301484,
      "median": 0.7224162754800001,
      "user": 0.41463067999999986,
      "system": 1.3776958000000001,
      "min": 0.69131109948,
      "max": 1.08090505348,
      "times": [
        0.69131109948,
        0.72805560648,
        0.7200267474800001,
        0.6941328774800001,
        0.7085914734800001,
        0.72729552348,
        0.72480580348,
        0.69792029048,
        1.08090505348,
        0.7417174054800001
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.291 ± 0.039 4.216 4.342 1.94 ± 0.10
pacquet@main 4.300 ± 0.038 4.256 4.360 1.94 ± 0.10
pnpr@HEAD 2.214 ± 0.113 2.065 2.456 1.00
pnpr@main 2.264 ± 0.142 2.080 2.472 1.02 ± 0.08
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.29086351716,
      "stddev": 0.03888212536726011,
      "median": 4.289208051359999,
      "user": 3.73741918,
      "system": 3.43034202,
      "min": 4.216268535859999,
      "max": 4.34242446886,
      "times": [
        4.309412775859999,
        4.277557745859999,
        4.27751869786,
        4.216268535859999,
        4.25097510386,
        4.32416238486,
        4.30085835686,
        4.34242446886,
        4.27734282386,
        4.33211427786
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.30001867406,
      "stddev": 0.03808593696238424,
      "median": 4.29041107686,
      "user": 3.8242607799999995,
      "system": 3.3963154199999996,
      "min": 4.25624871786,
      "max": 4.35990084786,
      "times": [
        4.35799051786,
        4.29235539286,
        4.26523784986,
        4.35990084786,
        4.33714907286,
        4.267541738859999,
        4.28846676086,
        4.25624871786,
        4.28259511686,
        4.2927007248599995
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 2.2137640763600004,
      "stddev": 0.11274749347330922,
      "median": 2.1861286088600003,
      "user": 2.49784968,
      "system": 2.9440793199999993,
      "min": 2.0649920348600004,
      "max": 2.45646142086,
      "times": [
        2.23816990686,
        2.2043631068600003,
        2.27816198986,
        2.12737933486,
        2.16669602386,
        2.1678941108600003,
        2.30825456786,
        2.12526826686,
        2.0649920348600004,
        2.45646142086
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 2.26432679136,
      "stddev": 0.14169435060755897,
      "median": 2.24724574586,
      "user": 2.48691468,
      "system": 2.9227620199999995,
      "min": 2.0795366418600003,
      "max": 2.47216409486,
      "times": [
        2.31387085886,
        2.18062063286,
        2.4300268428600003,
        2.0795366418600003,
        2.1556671038600004,
        2.4032549278600004,
        2.15736879086,
        2.47216409486,
        2.32748725186,
        2.1232707678600002
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.381 ± 0.011 1.355 1.394 2.01 ± 0.09
pacquet@main 1.380 ± 0.024 1.349 1.439 2.01 ± 0.10
pnpr@HEAD 0.686 ± 0.031 0.661 0.770 1.00
pnpr@main 0.736 ± 0.094 0.694 1.002 1.07 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.38079848204,
      "stddev": 0.01056277676734127,
      "median": 1.38322876814,
      "user": 1.32072668,
      "system": 1.71923128,
      "min": 1.35470735814,
      "max": 1.39356090114,
      "times": [
        1.3846355281400002,
        1.3828995531400001,
        1.3878277511400001,
        1.39356090114,
        1.38029719814,
        1.3764077521400002,
        1.38760066114,
        1.38355798314,
        1.35470735814,
        1.3764901341400002
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.3803946689400002,
      "stddev": 0.024347454880860805,
      "median": 1.37899085264,
      "user": 1.35534668,
      "system": 1.7044483799999999,
      "min": 1.3487739491400002,
      "max": 1.43912897014,
      "times": [
        1.38049341214,
        1.36583520614,
        1.43912897014,
        1.3487739491400002,
        1.37815906614,
        1.35785542714,
        1.3798226391400001,
        1.3925109961400002,
        1.3781050951400002,
        1.38326192814
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.6857864260400001,
      "stddev": 0.031211622444953586,
      "median": 0.6796855401399999,
      "user": 0.34331728000000006,
      "system": 1.3018077799999999,
      "min": 0.66064795714,
      "max": 0.76992914914,
      "times": [
        0.67793770914,
        0.6666752071400001,
        0.67133992514,
        0.66900464614,
        0.76992914914,
        0.68320985514,
        0.68143337114,
        0.66064795714,
        0.6957025771400001,
        0.68198386314
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.7361553478400001,
      "stddev": 0.09374933306278341,
      "median": 0.7075736906400001,
      "user": 0.37313937999999996,
      "system": 1.3293921800000001,
      "min": 0.69372695614,
      "max": 1.0020780231400002,
      "times": [
        0.69906958314,
        0.70642635614,
        0.69372695614,
        0.70316439214,
        0.70872102514,
        0.71774049614,
        0.70129260114,
        1.0020780231400002,
        0.71277319514,
        0.71656085014
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 3.064 ± 0.053 3.010 3.198 4.56 ± 0.09
pacquet@main 3.094 ± 0.065 3.028 3.255 4.61 ± 0.10
pnpr@HEAD 0.671 ± 0.005 0.661 0.678 1.00
pnpr@main 0.695 ± 0.046 0.668 0.825 1.04 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 3.06360930362,
      "stddev": 0.05272196208188228,
      "median": 3.0509467592200004,
      "user": 1.7861319999999998,
      "system": 1.9801716999999996,
      "min": 3.01027973872,
      "max": 3.19846761372,
      "times": [
        3.06704167372,
        3.07490108572,
        3.04790602572,
        3.03290493272,
        3.04334567672,
        3.02236749172,
        3.05398749272,
        3.19846761372,
        3.01027973872,
        3.08489130472
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 3.0942170809200005,
      "stddev": 0.06522318944916397,
      "median": 3.07432902722,
      "user": 1.8480552,
      "system": 1.9750822,
      "min": 3.02839371872,
      "max": 3.25496202672,
      "times": [
        3.07332785272,
        3.04671253772,
        3.02839371872,
        3.07340379772,
        3.12713745572,
        3.04007124472,
        3.07525425672,
        3.25496202672,
        3.11456537572,
        3.10834254272
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.6711876956199999,
      "stddev": 0.005121284949122185,
      "median": 0.6721987252199999,
      "user": 0.34634909999999985,
      "system": 1.2905674,
      "min": 0.66147735272,
      "max": 0.67782117272,
      "times": [
        0.67193085272,
        0.66447719372,
        0.67246659772,
        0.66905647572,
        0.67470173972,
        0.67328734272,
        0.67782117272,
        0.67016169572,
        0.66147735272,
        0.67649653272
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.69507134942,
      "stddev": 0.046407383649909796,
      "median": 0.68171456322,
      "user": 0.3647169,
      "system": 1.2959988,
      "min": 0.66803339272,
      "max": 0.82474233872,
      "times": [
        0.69237648672,
        0.67213110472,
        0.68454660672,
        0.68930411372,
        0.67468419472,
        0.67888251972,
        0.67323906072,
        0.66803339272,
        0.82474233872,
        0.69277367572
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 661.2 ± 9.9 646.8 675.5 6.12 ± 0.10
pacquet@main 645.7 ± 8.8 630.2 664.4 5.98 ± 0.09
pnpr@HEAD 108.0 ± 0.9 106.6 110.7 1.00
pnpr@main 108.3 ± 1.7 106.7 115.7 1.00 ± 0.02
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6612082646,
      "stddev": 0.009896051133930906,
      "median": 0.6621921605000001,
      "user": 0.6319671,
      "system": 0.14694127999999998,
      "min": 0.6467718210000001,
      "max": 0.675522924,
      "times": [
        0.6526331390000001,
        0.647100573,
        0.675522924,
        0.661797673,
        0.666822476,
        0.662586648,
        0.6591522000000001,
        0.6718768970000001,
        0.667818295,
        0.6467718210000001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.6456827645,
      "stddev": 0.00882414325788148,
      "median": 0.6446824290000001,
      "user": 0.608159,
      "system": 0.15351077999999999,
      "min": 0.630213789,
      "max": 0.6644197660000001,
      "times": [
        0.64137158,
        0.641965136,
        0.642866548,
        0.6644197660000001,
        0.643872002,
        0.64622946,
        0.646613992,
        0.630213789,
        0.6454928560000001,
        0.653782516
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.10796931448000002,
      "stddev": 0.0008539806573430647,
      "median": 0.10789311800000001,
      "user": 0.028562900000000006,
      "system": 0.018923419999999996,
      "min": 0.106607212,
      "max": 0.11068761,
      "times": [
        0.10701291400000001,
        0.10872754600000001,
        0.107083223,
        0.10787476300000001,
        0.10815139600000001,
        0.10806905800000001,
        0.10765100300000001,
        0.10942829300000001,
        0.10738418200000001,
        0.10718518700000002,
        0.10790359000000001,
        0.10786688800000001,
        0.10835359300000001,
        0.10855226600000001,
        0.10724327400000001,
        0.108001545,
        0.108312634,
        0.10773645400000001,
        0.11068761,
        0.106607212,
        0.107361622,
        0.10882943800000001,
        0.10799938800000002,
        0.10789311800000001,
        0.107316665
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.10830294116000001,
      "stddev": 0.0016597036760625532,
      "median": 0.10807700600000002,
      "user": 0.028108739999999997,
      "system": 0.019145659999999995,
      "min": 0.10665879900000001,
      "max": 0.115662784,
      "times": [
        0.107974729,
        0.10758927700000001,
        0.10837801200000001,
        0.10734984400000001,
        0.10820633800000001,
        0.108529573,
        0.10858769500000001,
        0.10757415000000001,
        0.10795464300000002,
        0.10804415600000002,
        0.10968947600000001,
        0.10812787100000001,
        0.10679316200000001,
        0.108023452,
        0.107649532,
        0.10807888000000002,
        0.10834197300000001,
        0.10863190600000001,
        0.10665879900000001,
        0.10855649600000002,
        0.10700129300000001,
        0.10811353100000001,
        0.10807700600000002,
        0.107978951,
        0.115662784
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 6.891 ± 0.072 6.760 6.987 1.38 ± 0.02
pacquet@main 7.019 ± 0.178 6.846 7.360 1.41 ± 0.04
pnpr@HEAD 5.003 ± 0.103 4.837 5.131 1.01 ± 0.02
pnpr@main 4.976 ± 0.061 4.878 5.074 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 6.891120326559999,
      "stddev": 0.0723808889249071,
      "median": 6.89412312846,
      "user": 4.057977459999999,
      "system": 3.8018844799999996,
      "min": 6.7597545954600005,
      "max": 6.98675750646,
      "times": [
        6.87195518846,
        6.93491220146,
        6.82045970546,
        6.85705604646,
        6.7597545954600005,
        6.95300330446,
        6.96646652846,
        6.84454712046,
        6.98675750646,
        6.9162910684600005
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 7.01907913016,
      "stddev": 0.17753497269244792,
      "median": 6.939572267960001,
      "user": 4.12897736,
      "system": 3.8410548799999993,
      "min": 6.84648880946,
      "max": 7.36044529446,
      "times": [
        7.13752005846,
        6.9445645134600005,
        7.36044529446,
        7.17808091146,
        6.84648880946,
        6.9345800224600005,
        7.15986270146,
        6.84966669546,
        6.84858421446,
        6.93099808046
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 5.003334980060001,
      "stddev": 0.10262401815745897,
      "median": 5.0140771094600005,
      "user": 2.8065871600000003,
      "system": 3.29079738,
      "min": 4.83720379546,
      "max": 5.13076492346,
      "times": [
        5.12904589546,
        5.05587232746,
        5.0129341834600005,
        4.86349016346,
        4.83720379546,
        5.0152200354600005,
        5.13076492346,
        4.96261847146,
        4.93980158346,
        5.08639842146
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 4.97602250076,
      "stddev": 0.061354252072152865,
      "median": 4.96534485446,
      "user": 2.80569226,
      "system": 3.3028758799999998,
      "min": 4.87820752646,
      "max": 5.07389660046,
      "times": [
        5.07389660046,
        4.87820752646,
        5.02421918846,
        4.95514576046,
        4.93655668546,
        4.9507664274600005,
        5.04818400246,
        4.97554394846,
        5.00346564446,
        4.91423922346
      ]
    }
  ]
}

@github-actions

github-actions Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/12931
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
4,290.86 ms
(-0.02%)Baseline: 4,291.72 ms
5,150.06 ms
(83.32%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
3,063.61 ms
(+1.42%)Baseline: 3,020.75 ms
3,624.90 ms
(84.52%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
1,380.80 ms
(+1.59%)Baseline: 1,359.12 ms
1,630.95 ms
(84.66%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
661.21 ms
(+3.44%)Baseline: 639.21 ms
767.05 ms
(86.20%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
4,216.41 ms
(+1.87%)Baseline: 4,138.96 ms
4,966.75 ms
(84.89%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
6,891.12 ms
(-6.30%)Baseline: 7,354.09 ms
8,824.91 ms
(78.09%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
659.37 ms
(+1.49%)Baseline: 649.67 ms
779.60 ms
(84.58%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/12931
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
2,213.76 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
671.19 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
685.79 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
107.97 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
2,154.41 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
5,003.33 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
730.89 ms
🐰 View full continuous benchmarking report in Bencher

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 11, 2026
@sensei-woo
sensei-woo force-pushed the codex/fix-deploy-catalogs branch from b44b04e to f6bb4b9 Compare July 11, 2026 10:49
@greptile-apps

greptile-apps Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Safe to merge — the fix is a targeted, additive one-liner in both the Rust and TypeScript implementations, fully covered by new tests that were verified to fail before the fix.

The change is minimal and well-contained: removing an irrelevant field from the deploy lockfile, consistent with how every other workspace-scoped field is already stripped. The updated TypeScript test now correctly exercises the full install→deploy pipeline, and the new Rust E2E test adds end-to-end coverage. No correctness risk identified in either implementation.

No files require special attention.

Reviews (3): Last reviewed commit: "chore: include releasing.commands and pa..." | Re-trigger Greptile

@sensei-woo

Copy link
Copy Markdown
Contributor Author

CI triage on the current run:

  • TS CI (ubuntu chunk 1, windows 2/3): packageManagerCheck.test.ts + configurationalDependencies.test.ts — failing identically on main (98722fa's TS CI run), inherited, unrelated to this diff.
  • Rust CI (macos): peer_dependency_binds_the_same_when_added_to_an_existing_lockfile (install.rs) — this PR only touches the deploy path; main's Rust CI is green on the same code, so this looks like a nondeterministic peer-binding flake. Happy to dig into it separately if it recurs.

@zkochan
zkochan force-pushed the codex/fix-deploy-catalogs branch from f6bb4b9 to 0e6733f Compare July 13, 2026 13:02
@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

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

Context used
✅ Compliance rules (platform): 18 rules

Grey Divider


Action required

1. @pnpm/releasing.commands missing changeset entry ✓ Resolved 📘 Rule violation § Compliance
Description
This PR modifies the published TypeScript package @pnpm/releasing.commands, but the new changeset
only lists pnpm. This can cause the affected package to ship without a corresponding version
bump/changelog entry.
Code

.changeset/deploy-catalog-snapshots.md[R1-3]

+---
+"pnpm": patch
+---
Evidence
Rule 713441 requires that every changed published TypeScript package be listed in a
.changeset/*.md file. The changeset added in this PR includes only pnpm, while the PR modifies
code within the published package @pnpm/releasing.commands (as identified by its package.json).

Rule 713441: Require changeset for TypeScript package changes
.changeset/deploy-catalog-snapshots.md[1-3]
pnpm11/releasing/commands/package.json[1-4]
pnpm11/releasing/commands/src/deploy/createDeployFiles.ts[127-134]

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 `.changeset/deploy-catalog-snapshots.md` only bumps `pnpm`, but this PR also changes the published TS package `@pnpm/releasing.commands`, so it must be listed in the changeset front-matter.

## Issue Context
Files under `pnpm11/releasing/commands/` were changed (e.g., deploy lockfile output now omits `catalogs`). The package name is `@pnpm/releasing.commands` per its `package.json`.

## Fix Focus Areas
- .changeset/deploy-catalog-snapshots.md[1-3]

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


Grey Divider

Qodo Logo

Comment thread .changeset/deploy-catalog-snapshots.md Resolved
@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.

Auto-approved notes - no code suggestions found
- 'approve_pr_on_self_review' flag enabled

…geset

This is a parity change touching both stacks, so the changeset names the
affected TypeScript package and the Rust wrapper alongside pnpm.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 0bcd190

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

Auto-approved notes - no code suggestions found
- 'approve_pr_on_self_review' flag enabled

@zkochan
zkochan merged commit d4d78df into pnpm:main Jul 13, 2026
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet product: pnpm@11 reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants