Repository navigation
fix(pnpr): forward client resolver settings - #13730
Conversation
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughpnpr now forwards Changespnpr resolver settings
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to This change forwards the client’s resolver settings so update-capable requests honor current configuration while preserving cache separation; no actionable merge-blocking risk remains. Sequence Diagram(s)sequenceDiagram
participant Installer
participant pnprClient
participant pnprResolver
participant PacquetConfiguration
Installer->>pnprClient: send resolver settings
pnprClient->>pnprResolver: serialize settings in ResolveRequest
pnprResolver->>pnprResolver: resolve effective settings
pnprResolver->>PacquetConfiguration: apply settings and build cache key
PacquetConfiguration-->>Installer: return resolved lockfile
Assessment against linked issues
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main pnpm/pnpm#13730 +/- ##
=======================================
Coverage 88.15% 88.15%
=======================================
Files 644 644
Lines 106363 106377 +14
=======================================
+ Hits 93760 93774 +14
Misses 12603 12603 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Integrated-Benchmark Report (Linux)Commit: Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm. 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
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.36338860444,
"stddev": 0.11529625368934751,
"median": 2.30285922694,
"user": 1.12976606,
"system": 1.34365212,
"min": 2.24458435444,
"max": 2.5974366754400005
},
{
"command": "pacquet@main",
"mean": 2.49109797854,
"stddev": 0.17242739569754173,
"median": 2.5217564024400003,
"user": 1.1705279599999998,
"system": 1.30485742,
"min": 2.25511933144,
"max": 2.70125810144
},
{
"command": "pnpr@HEAD",
"mean": 1.4891999234400002,
"stddev": 0.12141119522647996,
"median": 1.53279430894,
"user": 1.05031686,
"system": 1.2228342199999997,
"min": 1.30782773544,
"max": 1.6385997434400001
},
{
"command": "pnpr@main",
"mean": 1.46712203624,
"stddev": 0.16120771203108125,
"median": 1.45177577794,
"user": 1.08096286,
"system": 1.20507052,
"min": 1.28435580644,
"max": 1.68691406544
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.26629783770000004,
"stddev": 0.010277708178005161,
"median": 0.2641379875,
"user": 0.19408026,
"system": 0.48819814,
"min": 0.250439436,
"max": 0.283792213
},
{
"command": "pacquet@main",
"mean": 0.2623714348,
"stddev": 0.006664523389986073,
"median": 0.2610594625,
"user": 0.20563875999999998,
"system": 0.46730804,
"min": 0.256074194,
"max": 0.278275218
},
{
"command": "pnpr@HEAD",
"mean": 0.26545711499999997,
"stddev": 0.007700393641859002,
"median": 0.263293486,
"user": 0.20468186,
"system": 0.46093984,
"min": 0.254344287,
"max": 0.276438559
},
{
"command": "pnpr@main",
"mean": 0.3364560797,
"stddev": 0.08021962717171773,
"median": 0.322466037,
"user": 0.27616606,
"system": 0.57007544,
"min": 0.253917701,
"max": 0.465025742
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.006267862320476191,
"stddev": 0.0002765072416096143,
"median": 0.006223644380000001,
"user": 0.004466528809523806,
"system": 0.0018852890476190466,
"min": 0.00593209538,
"max": 0.00826800538
},
{
"command": "pacquet@main",
"mean": 0.006345502035612247,
"stddev": 0.00027059815372832406,
"median": 0.0063073838800000006,
"user": 0.004282607040816329,
"system": 0.002141041632653061,
"min": 0.00584765538,
"max": 0.00857130838
},
{
"command": "pnpr@HEAD",
"mean": 0.006423518323589745,
"stddev": 0.00020540172589601362,
"median": 0.006411514880000001,
"user": 0.004144569743589745,
"system": 0.0023581055384615398,
"min": 0.00593008038,
"max": 0.007004109380000001
},
{
"command": "pnpr@main",
"mean": 0.00643622666142076,
"stddev": 0.00020976622571708035,
"median": 0.00645310338,
"user": 0.004305057595628416,
"system": 0.0022119043715847,
"min": 0.0059592763800000005,
"max": 0.007185031380000001
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.03368412123443039,
"stddev": 0.000852720669188169,
"median": 0.033478831880000004,
"user": 0.030065976962025325,
"system": 0.0036363189873417734,
"min": 0.03231286188,
"max": 0.03606274188
},
{
"command": "pacquet@main",
"mean": 0.006558939961871348,
"stddev": 0.00030090069703808426,
"median": 0.00656767388,
"user": 0.004426107134502921,
"system": 0.002162529824561402,
"min": 0.00572064488,
"max": 0.00806959988
},
{
"command": "pnpr@HEAD",
"mean": 0.006556011790216718,
"stddev": 0.00021946058018790333,
"median": 0.00656290388,
"user": 0.00419251907120743,
"system": 0.0023967560371517017,
"min": 0.00590414088,
"max": 0.007139993880000001
},
{
"command": "pnpr@main",
"mean": 0.006499524468059704,
"stddev": 0.00026295242284028926,
"median": 0.00646960888,
"user": 0.0044894438805970095,
"system": 0.002045590447761194,
"min": 0.005963993880000001,
"max": 0.00800168288
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.71923602002,
"stddev": 0.018560413747144427,
"median": 2.7226431947200003,
"user": 1.41562308,
"system": 1.2497106999999998,
"min": 2.6910725227200003,
"max": 2.73943854572
},
{
"command": "pacquet@main",
"mean": 2.72709973012,
"stddev": 0.01581804705360625,
"median": 2.72845210822,
"user": 1.48784388,
"system": 1.2178003999999998,
"min": 2.7027979597200003,
"max": 2.7513021387200003
},
{
"command": "pnpr@HEAD",
"mean": 1.58920546212,
"stddev": 0.17028090003430257,
"median": 1.5921875887199999,
"user": 0.9930011799999999,
"system": 1.2541927999999998,
"min": 1.37505735872,
"max": 1.81968661972
},
{
"command": "pnpr@main",
"mean": 1.57160148682,
"stddev": 0.1506342930425908,
"median": 1.5803082337199998,
"user": 1.0372320800000001,
"system": 1.2137604999999998,
"min": 1.37724023272,
"max": 1.79062392572
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.4362207003600001,
"stddev": 0.014073751663659803,
"median": 0.43629087956,
"user": 0.49652877999999995,
"system": 0.65727722,
"min": 0.41487390156000004,
"max": 0.45753805756000004
},
{
"command": "pacquet@main",
"mean": 0.43007126776,
"stddev": 0.019059051198220392,
"median": 0.42422449556,
"user": 0.5110288799999999,
"system": 0.6274461199999999,
"min": 0.41117586956,
"max": 0.46857944456000006
},
{
"command": "pnpr@HEAD",
"mean": 0.30652238086000005,
"stddev": 0.007466747424177805,
"median": 0.30635352556,
"user": 0.18565747999999999,
"system": 0.47337951999999994,
"min": 0.29215645956,
"max": 0.32258639856000004
},
{
"command": "pnpr@main",
"mean": 0.31433272426000003,
"stddev": 0.008360209679538095,
"median": 0.31485382656000005,
"user": 0.19713608,
"system": 0.49085512,
"min": 0.29984637756000004,
"max": 0.32846310956
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.8762553485000002,
"stddev": 0.019083202466000235,
"median": 1.8779525736000002,
"user": 0.7201359399999999,
"system": 0.7409747799999999,
"min": 1.8452562446,
"max": 1.9042595226
},
{
"command": "pacquet@main",
"mean": 1.8643326147000003,
"stddev": 0.012756490381709623,
"median": 1.8704006156,
"user": 0.72987574,
"system": 0.7079825799999998,
"min": 1.8428211146000002,
"max": 1.8787299906000001
},
{
"command": "pnpr@HEAD",
"mean": 0.3110727076,
"stddev": 0.010824037328656583,
"median": 0.31301334160000005,
"user": 0.20304344,
"system": 0.47135217999999995,
"min": 0.2934817516,
"max": 0.3250584506
},
{
"command": "pnpr@main",
"mean": 0.3129652542,
"stddev": 0.007984118677046436,
"median": 0.3117835786,
"user": 0.19976003999999997,
"system": 0.4895151799999999,
"min": 0.3047651796,
"max": 0.3312030836
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.21507335721,
"stddev": 0.016782575573077795,
"median": 0.22047861046000003,
"user": 0.14330074,
"system": 0.07075288333333334,
"min": 0.18562269546000001,
"max": 0.23532559146
},
{
"command": "pacquet@main",
"mean": 0.21318785567428572,
"stddev": 0.019642644661184202,
"median": 0.20806821796000002,
"user": 0.16105052571428574,
"system": 0.055632657142857145,
"min": 0.18901513946,
"max": 0.25582494146
},
{
"command": "pnpr@HEAD",
"mean": 0.09361430236322581,
"stddev": 0.0016581000009029284,
"median": 0.09327929446000001,
"user": 0.027585272258064515,
"system": 0.009197664516129031,
"min": 0.09069517346000001,
"max": 0.09769644046
},
{
"command": "pnpr@main",
"mean": 0.09271288768580646,
"stddev": 0.001223424892156408,
"median": 0.09241674846,
"user": 0.026128239999999997,
"system": 0.009188148387096775,
"min": 0.09079318846000001,
"max": 0.09595760246000001
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.5233557884666667,
"stddev": 0.11348185107434665,
"median": 0.48023011080000005,
"user": 0.4912328555555555,
"system": 0.10625222222222222,
"min": 0.4078133498,
"max": 0.7114462358
},
{
"command": "pacquet@main",
"mean": 0.5666528504666668,
"stddev": 0.0867867096264295,
"median": 0.5710626538,
"user": 0.5290071888888889,
"system": 0.10676433333333334,
"min": 0.45662715080000005,
"max": 0.6981896288
},
{
"command": "pnpm@HEAD",
"mean": 2.9335580511333337,
"stddev": 0.04853537516753937,
"median": 2.9289759418,
"user": 4.4769783,
"system": 0.2680206666666667,
"min": 2.8679264278,
"max": 2.9941075908
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.400406798880001,
"stddev": 0.12997174198688707,
"median": 4.35228071778,
"user": 1.29091976,
"system": 1.3944633999999998,
"min": 4.28020067628,
"max": 4.64796414928
},
{
"command": "pacquet@main",
"mean": 4.45655390798,
"stddev": 0.1734628467032984,
"median": 4.364503256280001,
"user": 1.29055596,
"system": 1.3635945999999999,
"min": 4.286918243280001,
"max": 4.71112143028
},
{
"command": "pnpr@HEAD",
"mean": 3.4705769011800003,
"stddev": 0.13395981718653246,
"median": 3.4342812382800005,
"user": 1.15868846,
"system": 1.3394976,
"min": 3.34994701928,
"max": 3.6982632632800003
},
{
"command": "pnpr@main",
"mean": 3.43499537018,
"stddev": 0.12690138881144744,
"median": 3.3880888752800002,
"user": 1.2168610599999998,
"system": 1.3156994000000002,
"min": 3.34578166128,
"max": 3.75439758628
}
]
}Scenario: GVS linker: fresh restore, hot cache + hot storeSame install as the isolated fresh-restore hot/hot scenario, into the shared virtual store — the layout pnpm 12 installs into by default. Comparable to that scenario head-to-head.
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.1606454960658824,
"stddev": 0.004320993143165088,
"median": 0.16095724536,
"user": 0.18612981999999997,
"system": 0.18661594941176474,
"min": 0.15410127836,
"max": 0.17099202936
},
{
"command": "pacquet@main",
"mean": 0.15823601304749998,
"stddev": 0.005986547987909033,
"median": 0.15692287386,
"user": 0.18008781999999995,
"system": 0.18380785749999998,
"min": 0.15163324836,
"max": 0.17549528336
},
{
"command": "pnpr@HEAD",
"mean": 0.17107930442666666,
"stddev": 0.003670177210590525,
"median": 0.17157096036,
"user": 0.1933495533333333,
"system": 0.19095655333333336,
"min": 0.16580467636000001,
"max": 0.17992849536
},
{
"command": "pnpr@main",
"mean": 0.17057477796,
"stddev": 0.0030167665013048997,
"median": 0.17062796436,
"user": 0.19260848666666666,
"system": 0.19106682,
"min": 0.16440746536,
"max": 0.17544524836
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13730 |
| Testbed | pnpr |
⚠️ 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-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,431.99 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 289.99 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 294.04 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 85.51 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,364.90 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,438.49 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 261.25 ms |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (7): Last reviewed commit: "refactor(pnpr): tighten the forwarded re..." | Re-trigger Greptile |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pnpr/client/test/resolveViaPnprServer.test.ts (1)
59-74: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse distinct setting combinations in the serialization test.
Lines 62-64 assign the same value to every field. A serializer that swaps two fields would still pass. Use several combinations so each field is independently verified with both
trueandfalse.Proposed test update
-test.each([true, false])('serializes current lockfile resolution settings set to %s', async (settingValue) => { +test.each([ + { autoInstallPeers: true, dedupePeers: true, excludeLinksFromLockfile: false }, + { autoInstallPeers: true, dedupePeers: false, excludeLinksFromLockfile: true }, + { autoInstallPeers: false, dedupePeers: true, excludeLinksFromLockfile: true }, +])('serializes current lockfile resolution settings', async (settings) => { const options = { dependencies: {}, - autoInstallPeers: settingValue, - dedupePeers: settingValue, - excludeLinksFromLockfile: settingValue, + ...settings, } const request = await captureResolveRequest(options) - expect(request).toMatchObject({ - autoInstallPeers: settingValue, - dedupePeers: settingValue, - excludeLinksFromLockfile: settingValue, - }) + expect(request).toMatchObject(settings) })As per path instructions, tests must prove explicit true/false serialization.
🤖 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 `@pnpr/client/test/resolveViaPnprServer.test.ts` around lines 59 - 74, Update the test.each cases in the serialization test to use multiple distinct combinations of autoInstallPeers, dedupePeers, and excludeLinksFromLockfile, ensuring each field is independently exercised with both true and false values. Keep the request assertions tied to the per-case values so swapped serializer fields fail the test.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@pnpr/client/test/resolveViaPnprServer.test.ts`:
- Around line 59-74: Update the test.each cases in the serialization test to use
multiple distinct combinations of autoInstallPeers, dedupePeers, and
excludeLinksFromLockfile, ensuring each field is independently exercised with
both true and false values. Keep the request assertions tied to the per-case
values so swapped serializer fields fail the test.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: c43383ed-f2ee-4c89-b9e8-3acf7eded9cb
📒 Files selected for processing (14)
.changeset/pnpr-resolve-settings.mdpnpm/crates/cli/src/cli_args/install.rspnpm/crates/cli/src/cli_args/install/tests.rspnpm/crates/cli/tests/suite/pnpr_install.rspnpm/crates/pnpr-client/src/lib.rspnpm/crates/pnpr-client/src/tests.rspnpm/crates/pnpr-client/tests/integration.rspnpm11/installing/deps-installer/src/install/index.tspnpm11/installing/deps-installer/test/install/pnprResolveSettings.tspnpr/client/src/resolveViaPnprServer.tspnpr/client/test/resolveViaPnprServer.test.tspnpr/crates/pnpr/src/resolver.rspnpr/crates/pnpr/src/resolver/protocol.rspnpr/crates/pnpr/src/resolver/tests.rs
f6865d8 to
cf30942
Compare
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
cf30942 to
722daa8
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
.changeset/pnpr-resolve-settings.md (1)
9-9: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winClarify the user-facing product name.
Describe this as a
pnpminstall that uses pnpr, rather than a “pnpr install.” This makes the release note clear about the affected executable and server.Proposed wording
-Fixed pnpr installs to resolve with the client's `autoInstallPeers`, `dedupePeers`, and `excludeLinksFromLockfile` settings [pnpm/pnpm#13389](https://github.com/pnpm/pnpm/issues/13389). +Fixed `pnpm` installs using pnpr to honor the client's `autoInstallPeers`, `dedupePeers`, and `excludeLinksFromLockfile` settings [pnpm/pnpm#13389](https://github.com/pnpm/pnpm/issues/13389).Based on learnings: user-facing release-note prose should use
pnpmfor the published executable and describe Rust-server behavior separately. As per path instructions: changesets must accurately describe the release impact.🤖 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 @.changeset/pnpr-resolve-settings.md at line 9, Update the changeset wording to describe a pnpm install using pnpr, rather than a “pnpr install.” Identify pnpm as the user-facing executable and describe the pnpr server behavior separately while preserving the referenced settings and issue link.Sources: Path instructions, Learnings
pnpr/client/test/resolveViaPnprServer.test.ts (1)
59-64: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winCover partially specified settings.
Lines 59-64 always provide all three settings. A serializer that adds
falsefor omitted sibling settings would pass this table but break the optional-field protocol. Add one-field cases and assert that the other two keys are absent.As per coding guidelines, preserve explicit
falsevalues and omit unset optional values. As per path instructions, preserve compatibility when optional fields are omitted.🤖 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 `@pnpr/client/test/resolveViaPnprServer.test.ts` around lines 59 - 64, Extend the serializes current lockfile resolution settings independently test cases to include one-setting inputs for autoInstallPeers, dedupePeers, and excludeLinksFromLockfile, asserting the two unspecified keys are absent. Preserve explicit false values while ensuring omitted optional settings are not serialized, maintaining compatibility with the optional-field protocol.Sources: Coding guidelines, Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.changeset/pnpr-resolve-settings.md:
- Line 9: Update the changeset wording to describe a pnpm install using pnpr,
rather than a “pnpr install.” Identify pnpm as the user-facing executable and
describe the pnpr server behavior separately while preserving the referenced
settings and issue link.
In `@pnpr/client/test/resolveViaPnprServer.test.ts`:
- Around line 59-64: Extend the serializes current lockfile resolution settings
independently test cases to include one-setting inputs for autoInstallPeers,
dedupePeers, and excludeLinksFromLockfile, asserting the two unspecified keys
are absent. Preserve explicit false values while ensuring omitted optional
settings are not serialized, maintaining compatibility with the optional-field
protocol.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 2e056f6f-6d86-40bc-8838-4a812e4532f7
📒 Files selected for processing (13)
.changeset/pnpr-resolve-settings.mdpnpm/crates/cli/src/cli_args/install.rspnpm/crates/cli/tests/suite/pnpr_install.rspnpm/crates/pnpr-client/src/lib.rspnpm/crates/pnpr-client/src/tests.rspnpm/crates/pnpr-client/tests/integration.rspnpm11/installing/deps-installer/src/install/index.tspnpm11/installing/deps-installer/test/install/pnprWorkspaceMetadata.tspnpr/client/src/resolveViaPnprServer.tspnpr/client/test/resolveViaPnprServer.test.tspnpr/crates/pnpr/src/resolver.rspnpr/crates/pnpr/src/resolver/protocol.rspnpr/crates/pnpr/src/resolver/tests.rs
🚧 Files skipped from review as they are similar to previous changes (8)
- pnpm11/installing/deps-installer/test/install/pnprWorkspaceMetadata.ts
- pnpm11/installing/deps-installer/src/install/index.ts
- pnpm/crates/cli/src/cli_args/install.rs
- pnpm/crates/pnpr-client/src/tests.rs
- pnpr/client/src/resolveViaPnprServer.ts
- pnpm/crates/pnpr-client/tests/integration.rs
- pnpr/crates/pnpr/src/resolver.rs
- pnpm/crates/pnpr-client/src/lib.rs
722daa8 to
f235ca7
Compare
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
f235ca7 to
3b71355
Compare
3b71355 to
088df2b
Compare
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
Code Review by Qodo
1. dedupePeers omission misread
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Source the fallback for an omitted setting from the config's own defaults rather than a hardcoded copy of them, and restore the rationale for gating the input-lockfile fallback on a frozen request. Send the three settings inline like every other optional field of the resolve request: the server reads an explicit null the same as an absent key, so the manual inserts bought nothing. Give the resolver settings their own forwarding test instead of folding them into the verification-policy one.
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Code review by qodo was updated up to the latest commit 32a06f6 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Summary
Update-capable pnpr requests did not carry the client's current
autoInstallPeers,dedupePeers, orexcludeLinksFromLockfilevalues. Theserver therefore resolved with its defaults even when the user had just changed
one of those settings.
This change:
ResolveRequestas optional booleans, preservingthe difference between an omitted field and explicit
false;value, then the existing server default; and
effective booleans, keeping the interning key bounded.
Focused tests cover explicit
trueandfalse, old-client omission, frozencompatibility, both client/CLI call chains, cache separation, and a real
update-capable pacquet install followed by a frozen replay.
Fixes #13389.
Squash Commit Body
Validation
pnpm --filter @pnpm/pnpr.client test test/resolveViaPnprServer.test.tspnpm --filter pnpm run compilejust ready(8,122 tests, Clippy with warnings denied)just dylintRUSTDOCFLAGS='-D warnings' cargo doc --no-deps --workspace --all-featurestaplo format --checkgit diff --checkChecklist
linked to it solves it.
pnpm/port.
Written by an agent (OpenAI Codex, gpt-5.6-sol).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
Bug Fixes
Tests