Skip to content

fix(pnpr): honor lockfile options - #13017

Closed
YESHYUNGSEOK wants to merge 2 commits into
pnpm:mainfrom
YESHYUNGSEOK:fix/pnpr-lockfile-options
Closed

YESHYUNGSEOK wants to merge 2 commits into
pnpm:mainfrom
YESHYUNGSEOK:fix/pnpr-lockfile-options

Conversation

@YESHYUNGSEOK

@YESHYUNGSEOK YESHYUNGSEOK commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Important

This branch must incorporate #13066 before this PR can merge. The intended sequence is to merge #13066 into main, then rebase or update this branch onto the latest main so the zizmor security check runs with the shared fix.

Make TypeScript installs through a pnpr server honor the configured lockfile controls.

The installer now respects useLockfile, saveLockfile, frozen-lockfile settings, and Git branch lockfile read options. It forwards the supported resolver controls to pnpr, writes only when both lockfile use and saving are enabled, and treats frozenLockfileIfExists as active only for a non-empty lockfile.

The lockfile converter now builds independent package snapshots instead of mutating the on-disk lockfile object that is also sent through the pnpr protocol. Regression tests cover the option truth table, frozen behavior, Git branch lockfiles, and converter purity.

Pacquet uses a separate Rust pnpr client that already forwards frozenLockfile, preferFrozenLockfile, ignoreManifestCheck, and trustLockfile, and its single lockfile setting gates both reads and writes. Pacquet does not yet expose TypeScript pnpm's distinct saveLockfile or Git branch lockfile controls; those broader parity gaps are outside this TypeScript-path fix.

Squash Commit Body

Preserve pnpm's lockfile controls when dependency resolution is delegated to pnpr. Read the configured lockfile variant, derive frozen behavior from a non-empty lockfile, forward supported resolver options, and skip writes when lockfile use or saving is disabled.

Make conversion from the on-disk lockfile shape non-mutating so preparing local installer state cannot alter the protocol input. Add focused coverage for lockfile options and conversion purity.

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 Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Summary by CodeRabbit

  • New Features

    • pnpr server installs now preserve the on-disk lockfile format.
    • pnpr installations now honor frozen-lockfile behavior and lockfile read/write settings, including when lockfiles are missing.
    • Lockfile and related manifest/verification policy options are now sent to the pnpr server.
  • Bug Fixes

    • Prevented lockfile conversion from mutating the original lockfile input data.
    • Improved behavior for installs when lockfile controls are disabled or not applicable.

@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

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: bc030fa0-988d-44c8-8839-a6f6c8537990

📥 Commits

Reviewing files that changed from the base of the PR and between 54203d2 and 95a18ea.

📒 Files selected for processing (1)
  • .changeset/pnpr-lockfile-controls.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .changeset/pnpr-lockfile-controls.md

📝 Walkthrough

Walkthrough

pnpr-server installs now preserve the on-disk lockfile shape, derive frozen-lockfile behavior from configured options and lockfile contents, conditionally read/write lockfiles, and forward lockfile policy controls through the pnpr client.

Changes

pnpr lockfile controls

Layer / File(s) Summary
Lockfile preservation and conversion
pnpm11/lockfile/fs/src/lockfileFormatConverters.ts, pnpm11/lockfile/fs/test/*
Lockfile reads preserve the on-disk structure, while snapshot conversion avoids mutating input objects; tests cover both behaviors.
pnpr request contract
pnpr/client/src/resolveViaPnprServer.ts, pnpm11/installing/deps-installer/test/install/pnprClientLockfileOptions.ts
The pnpr client accepts frozen-lockfile and verification options and serializes them using camelCase request fields.
pnpr install lockfile flow
pnpm11/installing/deps-installer/src/install/index.ts, pnpm11/installing/deps-installer/test/install/pnprLockfileOptions.ts, .changeset/pnpr-lockfile-controls.md
The install path conditionally reads and writes lockfiles, derives frozen-lockfile state, forwards selection and verification options, and tests the resulting I/O behavior.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant install
  participant LockfileFS
  participant pnprClient
  participant pnprServer
  install->>LockfileFS: Read wanted lockfile when enabled
  install->>pnprClient: Send lockfile and policy options
  pnprClient->>pnprServer: POST /-/pnpr/v0/resolve
  pnprServer-->>pnprClient: Resolution response
  install->>LockfileFS: Write lockfile when saving is enabled
Loading

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

Suggested reviewers: zkochan

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

@github-actions

github-actions Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 95a18ea898a1

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.509 ± 0.133 2.358 2.740 1.58 ± 0.19
pacquet@main 2.558 ± 0.150 2.374 2.778 1.61 ± 0.20
pnpr@HEAD 1.585 ± 0.172 1.422 1.876 1.00
pnpr@main 1.638 ± 0.126 1.430 1.850 1.03 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.50875664014,
      "stddev": 0.1326247833669843,
      "median": 2.5036259011400004,
      "user": 1.88645982,
      "system": 1.4384481599999999,
      "min": 2.35792493414,
      "max": 2.7399478101400003,
      "times": [
        2.38513306314,
        2.49390285214,
        2.51334895014,
        2.69164490714,
        2.3888697581400002,
        2.39777294714,
        2.58490384814,
        2.35792493414,
        2.7399478101400003,
        2.53411733114
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.55825611754,
      "stddev": 0.1503607575127048,
      "median": 2.5487634476400003,
      "user": 1.76077042,
      "system": 1.4587761599999998,
      "min": 2.37438920814,
      "max": 2.7782672461400004,
      "times": [
        2.65820884614,
        2.40254480414,
        2.6859758201400004,
        2.37438920814,
        2.7782672461400004,
        2.60262308414,
        2.40326074114,
        2.7300086191400004,
        2.45237899514,
        2.4949038111400004
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.58514931174,
      "stddev": 0.1717423021380171,
      "median": 1.53302534564,
      "user": 1.65943322,
      "system": 1.6059271599999998,
      "min": 1.42199305214,
      "max": 1.87596916414,
      "times": [
        1.42199305214,
        1.42800555014,
        1.49183424214,
        1.57421644914,
        1.46981278514,
        1.8200568901399998,
        1.58424564714,
        1.75414624114,
        1.4312130961399998,
        1.87596916414
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.6380186642399999,
      "stddev": 0.12584035991268655,
      "median": 1.6818208696399999,
      "user": 1.84090012,
      "system": 1.71845636,
      "min": 1.43017329814,
      "max": 1.85006343914,
      "times": [
        1.71117642014,
        1.6913109011399998,
        1.69565979714,
        1.46159784114,
        1.70244815914,
        1.5944311711399999,
        1.43017329814,
        1.57099477714,
        1.85006343914,
        1.67233083814
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 304.8 ± 21.2 267.1 336.8 1.01 ± 0.09
pacquet@main 301.2 ± 15.1 284.3 332.0 1.00
pnpr@HEAD 316.9 ± 22.5 283.4 355.5 1.05 ± 0.09
pnpr@main 313.9 ± 26.9 295.9 385.9 1.04 ± 0.10
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.30477195014,
      "stddev": 0.02118643074636353,
      "median": 0.30014890494,
      "user": 0.25828068,
      "system": 0.60283868,
      "min": 0.26707655244,
      "max": 0.33682079244,
      "times": [
        0.30532851344,
        0.31734743944,
        0.33682079244,
        0.32206827844,
        0.32797602944,
        0.29481069744,
        0.28963425844,
        0.29168764344,
        0.29496929644,
        0.26707655244
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.30116640414000007,
      "stddev": 0.015101027883566464,
      "median": 0.29880870843999996,
      "user": 0.25374388,
      "system": 0.5998460800000001,
      "min": 0.28426039244,
      "max": 0.33199991744,
      "times": [
        0.28426039244,
        0.29920161044,
        0.29841580644,
        0.29646099144,
        0.28734606944,
        0.30075041844,
        0.31183557444,
        0.31613742444,
        0.33199991744,
        0.28525583643999997
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.31692206914,
      "stddev": 0.022516375757564912,
      "median": 0.31321153593999995,
      "user": 0.25203137999999997,
      "system": 0.62893948,
      "min": 0.28335498344,
      "max": 0.35553178644,
      "times": [
        0.31063106644,
        0.30485150044,
        0.29096851444,
        0.28335498344,
        0.30485036644,
        0.33436971144,
        0.35553178644,
        0.33114087844,
        0.33772987844,
        0.31579200543999997
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.31390658794,
      "stddev": 0.02694287349665239,
      "median": 0.30364908894,
      "user": 0.27167807999999993,
      "system": 0.58819858,
      "min": 0.29585446944,
      "max": 0.38591146044,
      "times": [
        0.38591146044,
        0.32106665744,
        0.32376471144,
        0.29970061044,
        0.29585446944,
        0.30481773044,
        0.30260045044,
        0.30394685243999997,
        0.29805161144,
        0.30335132544
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.913 ± 0.053 2.846 3.008 1.72 ± 0.17
pacquet@main 2.843 ± 0.072 2.707 2.910 1.68 ± 0.17
pnpr@HEAD 1.769 ± 0.137 1.551 1.946 1.05 ± 0.13
pnpr@main 1.693 ± 0.169 1.479 1.917 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.91311085334,
      "stddev": 0.05306767759467568,
      "median": 2.8871380074400004,
      "user": 2.4144134399999997,
      "system": 1.71727308,
      "min": 2.84613781144,
      "max": 3.0081246804400004,
      "times": [
        2.96572310144,
        3.0081246804400004,
        2.87653999744,
        2.8856388924400003,
        2.88448496144,
        2.98056339344,
        2.8886371224400005,
        2.84613781144,
        2.91382800544,
        2.8814305674400003
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.84297392624,
      "stddev": 0.07163788253297779,
      "median": 2.8666818429400003,
      "user": 2.24947604,
      "system": 1.5812642800000003,
      "min": 2.7067328124400003,
      "max": 2.9095193544400004,
      "times": [
        2.9054314584400003,
        2.9095193544400004,
        2.8975758004400003,
        2.7927767394400003,
        2.7067328124400003,
        2.89528693944,
        2.80526778744,
        2.77029042444,
        2.83807674644,
        2.9087811994400004
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.7694442381400002,
      "stddev": 0.13724065897602802,
      "median": 1.76970387144,
      "user": 1.6665128399999998,
      "system": 1.6496219799999998,
      "min": 1.55052723344,
      "max": 1.94638469344,
      "times": [
        1.55052723344,
        1.69494527744,
        1.91016473844,
        1.8216664194399999,
        1.56510648944,
        1.9114721374399999,
        1.76415773544,
        1.77525000744,
        1.94638469344,
        1.75476764944
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.6931868605399998,
      "stddev": 0.1690764401392166,
      "median": 1.65525901494,
      "user": 1.48125654,
      "system": 1.43386888,
      "min": 1.47851997144,
      "max": 1.91724239644,
      "times": [
        1.69765678344,
        1.89319122044,
        1.8601460544400001,
        1.82485865144,
        1.47851997144,
        1.48903432344,
        1.6128612464399998,
        1.60779901644,
        1.91724239644,
        1.55055894144
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 683.2 ± 30.3 652.3 754.1 1.99 ± 0.10
pacquet@main 682.2 ± 26.9 635.8 734.3 1.99 ± 0.09
pnpr@HEAD 355.8 ± 18.2 326.0 377.5 1.04 ± 0.06
pnpr@main 342.5 ± 8.1 329.1 356.8 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.68317117502,
      "stddev": 0.03028485183511188,
      "median": 0.6751368173200001,
      "user": 0.8270814199999998,
      "system": 0.8527483200000001,
      "min": 0.65234232432,
      "max": 0.7540986083200001,
      "times": [
        0.6733843553200001,
        0.67497659432,
        0.65234232432,
        0.70807554232,
        0.6811378343200001,
        0.69615803732,
        0.67529704032,
        0.6585811113200001,
        0.6576603023200001,
        0.7540986083200001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.68216535492,
      "stddev": 0.026915972490711995,
      "median": 0.67998879382,
      "user": 0.8673306199999999,
      "system": 0.8277348200000001,
      "min": 0.63577385632,
      "max": 0.7342532043200001,
      "times": [
        0.63577385632,
        0.68787476132,
        0.70874574132,
        0.6678369713200001,
        0.7342532043200001,
        0.68116468632,
        0.69412558532,
        0.6607683413200001,
        0.67881290132,
        0.67229750032
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.35582254342,
      "stddev": 0.01823328381334724,
      "median": 0.35581785232,
      "user": 0.25246562,
      "system": 0.61431832,
      "min": 0.32596904032,
      "max": 0.37749288432,
      "times": [
        0.34182076332,
        0.32596904032,
        0.33450816632,
        0.34895147332000004,
        0.34953893332,
        0.37029355332,
        0.37436637232000003,
        0.37318747632000004,
        0.36209677132,
        0.37749288432
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.34246007982,
      "stddev": 0.008092332706677946,
      "median": 0.34247560232,
      "user": 0.22405012000000002,
      "system": 0.60032692,
      "min": 0.32908625532,
      "max": 0.35676424732,
      "times": [
        0.34793686032000004,
        0.35676424732,
        0.34221934532000003,
        0.33510076832,
        0.34273185932,
        0.33575021132,
        0.35089168632,
        0.34366960232,
        0.34044996232,
        0.32908625532
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.963 ± 0.053 1.893 2.056 6.50 ± 0.25
pacquet@main 1.921 ± 0.034 1.889 1.985 6.36 ± 0.21
pnpr@HEAD 0.302 ± 0.008 0.287 0.314 1.00
pnpr@main 0.310 ± 0.014 0.292 0.338 1.03 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.96327542064,
      "stddev": 0.05294959504610588,
      "median": 1.9573184759400002,
      "user": 1.08153138,
      "system": 0.8440411399999999,
      "min": 1.89279358094,
      "max": 2.0564237009400004,
      "times": [
        2.0564237009400004,
        2.0165071719400003,
        2.0105828319400003,
        1.97868245294,
        1.97682394294,
        1.93781300894,
        1.92770755194,
        1.89279358094,
        1.92160028894,
        1.91381967494
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.9206827260400001,
      "stddev": 0.03449528870344885,
      "median": 1.91243588144,
      "user": 1.00898628,
      "system": 0.8067272400000001,
      "min": 1.88882756294,
      "max": 1.98521048494,
      "times": [
        1.88882756294,
        1.9296941279400002,
        1.8891584059400002,
        1.92072875494,
        1.98521048494,
        1.91950089094,
        1.97567918494,
        1.90537087194,
        1.89420325494,
        1.89845372094
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30183709104,
      "stddev": 0.008489050913749784,
      "median": 0.30024778694,
      "user": 0.18514488,
      "system": 0.5217338400000001,
      "min": 0.28748912294,
      "max": 0.31373616394,
      "times": [
        0.30955473594,
        0.30882403194,
        0.29782897094,
        0.29417403994,
        0.29610657494,
        0.31016169594,
        0.31373616394,
        0.28748912294,
        0.30256806094,
        0.29792751293999997
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.31020903424,
      "stddev": 0.013888832319855014,
      "median": 0.30387687494000004,
      "user": 0.20502747999999998,
      "system": 0.53405544,
      "min": 0.29235882594,
      "max": 0.33779165494,
      "times": [
        0.30314507494,
        0.30330028794,
        0.30338985994,
        0.30436388994,
        0.30190576394,
        0.29235882594,
        0.32928720694,
        0.33779165494,
        0.30962277394,
        0.31692500394
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 370.4 ± 10.6 358.5 390.3 4.17 ± 0.18
pacquet@main 402.2 ± 30.8 355.5 441.4 4.53 ± 0.38
pnpr@HEAD 91.3 ± 4.6 85.0 100.2 1.03 ± 0.06
pnpr@main 88.7 ± 2.9 85.1 96.5 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.37040811075999996,
      "stddev": 0.010639209870695604,
      "median": 0.36689210336,
      "user": 0.3659569399999999,
      "system": 0.07050392,
      "min": 0.35852291286000004,
      "max": 0.39026500486000004,
      "times": [
        0.39026500486000004,
        0.36569826586000004,
        0.36284387786000005,
        0.37060064986,
        0.38530277286000003,
        0.36062651186000005,
        0.36474498086,
        0.36808594086,
        0.35852291286000004,
        0.37739018986000006
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.40223016996000005,
      "stddev": 0.030828750844448055,
      "median": 0.41024446286000005,
      "user": 0.3865844399999999,
      "system": 0.08640432,
      "min": 0.35550312486,
      "max": 0.44136417486,
      "times": [
        0.42500408086,
        0.44136417486,
        0.42415542086,
        0.42496704286000003,
        0.40547445186000003,
        0.40785661486,
        0.41263231086,
        0.36727876586,
        0.35550312486,
        0.35806571186
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09125197502129032,
      "stddev": 0.004620631493134858,
      "median": 0.09010126086,
      "user": 0.023206272258064514,
      "system": 0.010689645806451613,
      "min": 0.08500284886000001,
      "max": 0.10023384286,
      "times": [
        0.08901546086,
        0.08731386386000001,
        0.08734299086,
        0.08513739286000001,
        0.08711473486,
        0.08581366186,
        0.08615095586,
        0.09147741486000001,
        0.08630283786000001,
        0.09449539586,
        0.10023384286,
        0.08901697386,
        0.09010126086,
        0.08500284886000001,
        0.08799270486,
        0.09640463586,
        0.09477085486,
        0.09534106886,
        0.09492029886,
        0.09645421086,
        0.09560590186000001,
        0.09674505286,
        0.09503693286,
        0.09540231886,
        0.09639478786,
        0.09778619886,
        0.08830493886,
        0.08577781186,
        0.08680302986,
        0.09315048886,
        0.08740035286
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.08872113411000002,
      "stddev": 0.0029218789328867845,
      "median": 0.08856135336,
      "user": 0.0215103025,
      "system": 0.010410318125000002,
      "min": 0.08508673486,
      "max": 0.09652390986,
      "times": [
        0.08866598986,
        0.08859465086,
        0.08983173786,
        0.08668226186,
        0.08594451286,
        0.08508673486,
        0.09164809786,
        0.08822261686,
        0.08852805586,
        0.08636159386,
        0.09135498386,
        0.08646402086,
        0.08553440786000001,
        0.08669534986,
        0.08611198686,
        0.08652088686000001,
        0.08581398486,
        0.09040531186,
        0.09006346486,
        0.08966504186,
        0.09321560586000001,
        0.08589926386,
        0.08548137186,
        0.08653067086,
        0.09270324686,
        0.08862652986,
        0.09286155686,
        0.08959049886,
        0.08623764486,
        0.09652390986,
        0.09395902786,
        0.08925127186000001
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.584 ± 0.113 4.445 4.808 1.31 ± 0.04
pacquet@main 4.551 ± 0.152 4.414 4.897 1.30 ± 0.05
pnpr@HEAD 3.502 ± 0.073 3.450 3.687 1.00
pnpr@main 3.592 ± 0.150 3.461 3.876 1.03 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.58359267324,
      "stddev": 0.11279687815284667,
      "median": 4.56117818244,
      "user": 2.0900357400000003,
      "system": 1.67321472,
      "min": 4.44486710494,
      "max": 4.80812190194,
      "times": [
        4.45968499994,
        4.80812190194,
        4.61537593694,
        4.54233846094,
        4.58001790394,
        4.44486710494,
        4.52227662094,
        4.52989865594,
        4.610437166940001,
        4.7229079799400004
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.55141768844,
      "stddev": 0.15232952493837362,
      "median": 4.50186742444,
      "user": 1.99611844,
      "system": 1.53875362,
      "min": 4.4141137619399995,
      "max": 4.89725973294,
      "times": [
        4.507176013940001,
        4.49147698194,
        4.52616479794,
        4.4465563149400005,
        4.53716294394,
        4.89725973294,
        4.44805158294,
        4.74965591894,
        4.4141137619399995,
        4.49655883494
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.50226070074,
      "stddev": 0.07256489695088315,
      "median": 3.47220795994,
      "user": 1.3206914400000003,
      "system": 1.24274922,
      "min": 3.44972135494,
      "max": 3.68690377094,
      "times": [
        3.55413805994,
        3.45803120694,
        3.47576407794,
        3.45311238994,
        3.46279788894,
        3.50198182394,
        3.46865184194,
        3.68690377094,
        3.51150459194,
        3.44972135494
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.59198196934,
      "stddev": 0.1500614648318022,
      "median": 3.53409631144,
      "user": 1.32692974,
      "system": 1.2887907199999997,
      "min": 3.4614643799400002,
      "max": 3.87626543194,
      "times": [
        3.46922720494,
        3.46181472594,
        3.75464378894,
        3.4614643799400002,
        3.4990302299400002,
        3.87626543194,
        3.46533047794,
        3.63076547594,
        3.7321155849400003,
        3.56916239294
      ]
    }
  ]
}

@github-actions

github-actions Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/13017
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
3,017.57 ms
(-20.47%)Baseline: 3,794.41 ms
4,553.29 ms
(66.27%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
2,039.10 ms
(-23.94%)Baseline: 2,681.07 ms
3,217.28 ms
(63.38%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
626.36 ms
(-45.14%)Baseline: 1,141.75 ms
1,370.10 ms
(45.72%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
541.29 ms
(-1.73%)Baseline: 550.80 ms
660.95 ms
(81.90%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,523.11 ms
(-26.70%)Baseline: 3,442.32 ms
4,130.79 ms
(61.08%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,782.26 ms
(-24.02%)Baseline: 6,293.71 ms
7,552.45 ms
(63.32%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
263.25 ms
(-49.61%)Baseline: 522.41 ms
626.89 ms
(41.99%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/13017
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,700.45 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
348.82 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
256.11 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
86.08 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,569.03 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,626.97 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
264.55 ms
🐰 View full continuous benchmarking report in Bencher

@YESHYUNGSEOK
YESHYUNGSEOK force-pushed the fix/pnpr-lockfile-options branch 2 times, most recently from 96306ca to 54203d2 Compare July 16, 2026 00:35
@YESHYUNGSEOK
YESHYUNGSEOK marked this pull request as ready for review July 16, 2026 01:34
@YESHYUNGSEOK
YESHYUNGSEOK requested a review from zkochan as a code owner July 16, 2026 01:34
@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 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 `@pnpm11/installing/deps-installer/src/install/index.ts`:
- Around line 2707-2722: Update the lockfile write condition around
writeWantedLockfileAndRecordVerified so it also requires frozenLockfile to be
disabled. Preserve the existing useLockfile and saveLockfile requirements,
ensuring frozen-lockfile installs never write or modify the lockfile on disk.
🪄 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: 70cf7a3e-37fd-4c10-b885-c137ac8a2422

📥 Commits

Reviewing files that changed from the base of the PR and between 566864e and 54203d2.

📒 Files selected for processing (8)
  • .changeset/pnpr-lockfile-controls.md
  • pnpm11/installing/deps-installer/src/install/index.ts
  • pnpm11/installing/deps-installer/test/install/pnprClientLockfileOptions.ts
  • pnpm11/installing/deps-installer/test/install/pnprLockfileOptions.ts
  • pnpm11/lockfile/fs/src/lockfileFormatConverters.ts
  • pnpm11/lockfile/fs/test/lockfileV6Converters.test.ts
  • pnpm11/lockfile/fs/test/read.test.ts
  • pnpr/client/src/resolveViaPnprServer.ts

@greptile-apps

greptile-apps Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Safe to merge — the changes are well-scoped, the logic is correct, and the test suite directly exercises every new code path.

The lockfile mutation fix is straightforward and proven by the new converter-purity test. The option-forwarding logic is simple conditional wiring. All meaningful edge cases (empty lockfile, missing lockfile, useLockfile: false, frozenLockfileIfExists with/without a populated lockfile) are covered by the new parameterised tests.

No files require special attention.

Reviews (2): Last reviewed commit: "test(deps-installer): assert the on-disk..." | Re-trigger Greptile

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 16, 2026
…unts

Counting calls to writeWantedLockfile couples the test to an
implementation detail of writeWantedLockfileAndRecordVerified. Keep the
real writer and assert whether pnpm-lock.yaml exists on disk.
@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/13017
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,846.14 ms
(+5.39%)Baseline: 2,700.66 ms
3,240.79 ms
(87.82%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,892.79 ms
(+1.76%)Baseline: 1,860.03 ms
2,232.03 ms
(84.80%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
652.34 ms
(+17.31%)Baseline: 556.09 ms
667.31 ms
(97.76%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
358.52 ms
(+7.11%)Baseline: 334.73 ms
401.67 ms
(89.26%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,357.92 ms
(-0.36%)Baseline: 2,366.55 ms
2,839.86 ms
(83.03%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,444.87 ms
(+0.18%)Baseline: 4,436.72 ms
5,324.06 ms
(83.49%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
267.08 ms
(+7.53%)Baseline: 248.38 ms
298.05 ms
(89.61%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/13017
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,550.53 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
287.49 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
325.97 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
85.00 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,421.99 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,449.72 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
283.35 ms
🐰 View full continuous benchmarking report in Bencher

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant