Skip to content

fix(pacquet): preserve lockfile before scripts - #13469

Merged
zkochan merged 1 commit into
mainfrom
fix-13466
Jul 28, 2026
Merged

zkochan merged 1 commit into
mainfrom
fix-13466

Conversation

@zkochan

@zkochan zkochan commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #13466.

Verifier-triggered installs now keep the configured preferFrozenLockfile behavior, so an up-to-date regenerated wanted lockfile is reused instead of freshly resolving its peer graph. The verifier mode still bypasses repeat-install exits, which ensures the required install and root lifecycle scripts finish before the requested script starts.

The regression test asserts that resolution is skipped, the lockfile remains byte-identical, and postinstall runs before the requested script. The pinned Vue reproduction also retains the original lockfile SHA-256 (3090fe80629d31be0f459ce3eb29d4d1fd87ba19df57d0f92ae1c5b7fee26f55) after pnpm run lint.

This is Rust-only because the TypeScript CLI already has the target behavior.

Squash Commit Body

Keep verifier-triggered installs on the normal prefer-frozen dispatch path. A regenerated lockfile that is fresh for the current configuration can then be materialized without re-resolving and rewriting its peer graph.

Continue bypassing both optimistic and frozen repeat-install exits for this mode so root lifecycle scripts still run before the requested command.

Fixes pnpm/pnpm#13466.

Checklist

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

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


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

Summary by CodeRabbit

  • Bug Fixes

    • Improved dependency verification when install scripts run after lockfile regeneration.
    • Prevented unnecessary lockfile updates when the lockfile is already current.
    • Ensured scripts complete successfully while preserving the regenerated lockfile.
    • Corrected handling of frozen-lockfile preferences so configured behavior is respected.
    • Added support for forcing a complete install instead of using the repeat-install shortcut when configured.
  • Documentation

    • Clarified the setting that disables optimistic repeat-install behavior.

Copilot AI review requested due to automatic review settings July 28, 2026 12:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Preserve lockfiles during pre-script dependency verification

🐞 Bug fix 🧪 Tests 🕐 20-40 Minutes

Grey Divider

AI Description

• Preserve preferred-frozen behavior during verifier-triggered installs.
• Bypass repeat-install exits so lifecycle scripts complete before requested scripts.
• Verify resolution is skipped and regenerated lockfiles remain unchanged.
Diagram

graph TD
  A["Run command"] --> B["Dependency verifier"] --> C{"Prefer frozen?"}
  C -- "Yes" --> D["Reuse lockfile"] --> F["Root lifecycle"] --> G["Requested script"]
  C -- "No" --> E["Fresh resolution"] --> F
Loading
High-Level Assessment

The current approach is optimal: retain normal preferred-frozen option resolution and narrowly disable both repeat-install exits for verifier mode. Forcing frozen behavior unconditionally would ignore explicit configuration, while a separate verifier-specific install path would duplicate dispatch logic and risk future divergence.

Files changed (4) +30 / -9

Bug fix (2) +7 / -8
install.rsPreserve preferred-frozen install configuration +1/-3

Preserve preferred-frozen install configuration

• Stops verifier-triggered installs from forcing 'preferFrozenLockfile' off. Explicit CLI flags and configured defaults now follow the normal install dispatch path.

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

install.rsDisable frozen repeat-install exit for verifier installs +6/-5

Disable frozen repeat-install exit for verifier installs

• Applies the existing repeat-install suppression flag to the frozen-path shortcut as well as the optimistic shortcut. This ensures verifier-triggered installs reach materialization and root lifecycle execution.

pnpm/crates/package-manager/src/install.rs

Tests (1) +18 / -1
verify_deps_before_run.rsAssert lockfile reuse and lifecycle ordering +18/-1

Assert lockfile reuse and lifecycle ordering

• Extends the regenerated-lockfile regression test to verify resolution is skipped, the lockfile remains byte-identical, and 'postinstall' completes before the requested script.

pnpm/crates/cli/tests/verify_deps_before_run.rs

Documentation (1) +5 / -0
calm-wolves-reuse-lockfile.mdDocument lockfile preservation fix +5/-0

Document lockfile preservation fix

• Adds a patch changeset for pacquet explaining that pre-script dependency verification no longer rewrites an up-to-date lockfile.

.changeset/calm-wolves-reuse-lockfile.md

@greptile-apps

greptile-apps Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge, with verifier-triggered installs preserving lockfile reuse while still completing required lifecycle work.

The changed flag propagation and frozen-path guard align with the verifier’s full-install contract, and the regression test covers the intended lockfile and script-ordering behavior without revealing a reachable failure.

Reviews (1): Last reviewed commit: "fix(pacquet): preserve lockfile before s..." | Re-trigger Greptile

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

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

Context used
✅ Compliance rules (platform): 24 rules

Grey Divider


Informational

1. Remove pacquet-only changeset 🐞 Bug ⚙ Maintainability
Description
This pacquet-only fix adds release metadata even though repository policy explicitly says
pacquet-only PRs do not get changesets. Keeping it incorrectly queues a pacquet patch release
through the changeset process.
Code

.changeset/calm-wolves-reuse-lockfile.md[2]

+"pacquet": patch
Relevance

⭐⭐ Medium

Recent pacquet-only changesets are retained, but no exact precedent rejects deleting one under the
cited policy.

PR-#13460
PR-#13459
PR-#13350

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added metadata targets only pacquet, while the repository's release policy explicitly states
that pacquet-only PRs do not receive changesets.

.changeset/calm-wolves-reuse-lockfile.md[1-5]
REVIEW_GUIDE.md[248-257]

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

## Issue description
This Rust-only pacquet fix adds a changeset, but repository policy states that pacquet-only PRs do not get changesets.

## Issue Context
The changeset targets only `pacquet`; no `pnpm` package release is part of this PR.

## Fix Focus Areas
- .changeset/calm-wolves-reuse-lockfile.md[1-5]

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


2. pnpm omitted from changeset 📘 Rule violation § Compliance
Description
The new changeset declares only pacquet, while every changeset must explicitly include the pnpm
package with an appropriate bump type. This bug fix requires a patch entry for pnpm.
Code

.changeset/calm-wolves-reuse-lockfile.md[2]

+"pacquet": patch
Relevance

⭐ Low

Numerous recent Rust-only pacquet changesets retained pacquet-only metadata despite identical
pnpm-entry requests.

PR-#13459
PR-#13455
PR-#13448

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713436 requires every newly added or modified changeset to explicitly declare
pnpm with a valid bump type. The new changeset front matter contains only "pacquet": patch.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/calm-wolves-reuse-lockfile.md[1-3]

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

## Issue description
The new changeset omits the required explicit `pnpm` package entry.

## Issue Context
This PR is a bug fix, so add `"pnpm": patch` to the changeset front matter while retaining any other affected package entries.

## Fix Focus Areas
- .changeset/calm-wolves-reuse-lockfile.md[1-3]

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


Grey Divider

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

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

@zkochan

zkochan commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

The changeset feedback conflicts with the current root AGENTS.md release policy. That policy requires user-visible Rust changes to target pacquet and explicitly says a Rust-only changeset must omit pnpm, because pnpm names the TypeScript CLI package. This PR is Rust-only and fixes published pacquet behavior, so the existing "pacquet": patch changeset is retained. This also matches the immediately preceding verifier fix in #13463.


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

@github-actions

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     12.3±0.36ms    30.4 MB/sec    1.00     12.3±1.68ms    30.4 MB/sec
packument/parse                                  1.13     44.6±2.85µs  1488.3 MB/sec    1.00     39.4±1.09µs  1683.1 MB/sec
tarball/download_dependency                      1.17      3.3±0.29ms  1301.2 KB/sec    1.00      2.9±0.18ms  1517.1 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.04    203.6±9.73ms 78.6 KElem/sec    1.00   194.9±15.68ms 82.1 KElem/sec

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.69%. Comparing base (7d4d91c) to head (8319fa9).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13469      +/-   ##
==========================================
- Coverage   87.69%   87.69%   -0.01%     
==========================================
  Files         546      546              
  Lines       94484    94483       -1     
==========================================
- Hits        82859    82858       -1     
  Misses      11625    11625              

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

@zkochan

zkochan commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Jul 28, 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: a6f97a1e-720b-469a-9217-83f644fe0fae

📥 Commits

Reviewing files that changed from the base of the PR and between e7ec776 and 8319fa9.

📒 Files selected for processing (4)
  • .changeset/calm-wolves-reuse-lockfile.md
  • pnpm/crates/cli/src/cli_args/install.rs
  • pnpm/crates/cli/tests/verify_deps_before_run.rs
  • pnpm/crates/package-manager/src/install.rs

📝 Walkthrough

Walkthrough

The install CLI no longer overrides frozen-lockfile configuration during dependency verification. The package manager bypasses its optimistic frozen-install short circuit when disabled, and regression coverage verifies script success, lockfile reuse, and unchanged lockfile contents.

Changes

Lockfile verification flow

Layer / File(s) Summary
Install verification and lockfile reuse
pnpm/crates/cli/src/cli_args/install.rs, pnpm/crates/package-manager/src/install.rs, pnpm/crates/cli/tests/verify_deps_before_run.rs
CLI override handling now respects configuration, the frozen install path can proceed through full materialization, and regression coverage verifies successful script execution with unchanged regenerated lockfile contents.
Release note
.changeset/calm-wolves-reuse-lockfile.md
Adds a patch changeset describing dependency verification before scripts that rewrite an up-to-date lockfile.

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

Sequence Diagram(s)

sequenceDiagram
  participant InstallArgs
  participant PackageManager
  participant Lockfile
  participant HelloScript
  InstallArgs->>PackageManager: preserve configured frozen-lockfile behavior
  PackageManager->>Lockfile: run full frozen materialization
  PackageManager->>HelloScript: execute hello
  HelloScript-->>PackageManager: report lockfile reuse
  PackageManager-->>Lockfile: retain regenerated contents
Loading

Assessment against linked issues

Objective Addressed Explanation
Detect stale pre-run dependency state and perform the required install and lifecycle scripts [#13466] ✅
Reuse the byte-identical regenerated lockfile without resolving it into a different peer graph [#13466] ✅
Leave the lockfile unchanged before running the requested script [#13466] ✅

Possibly related issues

  • [#12490] — Both changes modify frozen-install short-circuit and materialization behavior in Install::run_inner.

Possibly related PRs

  • pnpm/pnpm#13463 — Directly related pre-run dependency verification and regenerated lockfile behavior.
  • pnpm/pnpm#13161 — Adds coverage for optimistic repeat-install and lockfile verification behavior.
  • pnpm/pnpm#13418 — Modifies frozen-install freshness and short-circuit logic.

Suggested labels: product: pacquet

Suggested reviewers: ksxgithub

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-13466

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 added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 8319fa9cdc00

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.637 ± 0.108 2.433 2.761 1.72 ± 0.21
pacquet@main 2.573 ± 0.145 2.362 2.746 1.68 ± 0.21
pnpr@HEAD 1.530 ± 0.172 1.354 1.767 1.00
pnpr@main 1.609 ± 0.122 1.426 1.845 1.05 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.6366307957400004,
      "stddev": 0.10797494749938909,
      "median": 2.68155045244,
      "user": 1.9424519399999998,
      "system": 1.5381613399999998,
      "min": 2.4334027039399997,
      "max": 2.76085306394,
      "times": [
        2.72222317594,
        2.51843851694,
        2.76085306394,
        2.71269541694,
        2.5512471509399997,
        2.66078134294,
        2.58720661394,
        2.71714040994,
        2.4334027039399997,
        2.70231956194
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.5725354448399997,
      "stddev": 0.14492366966242562,
      "median": 2.6444229439399995,
      "user": 1.8675296399999997,
      "system": 1.4387933399999997,
      "min": 2.36181290494,
      "max": 2.74624705494,
      "times": [
        2.69218094394,
        2.40007129394,
        2.66594653694,
        2.4991430759399997,
        2.63465396194,
        2.38890195294,
        2.36181290494,
        2.74624705494,
        2.68220479694,
        2.6541919259399998
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.53010609004,
      "stddev": 0.17182426388128028,
      "median": 1.4917684474400001,
      "user": 1.39532624,
      "system": 1.2892448399999998,
      "min": 1.35358369794,
      "max": 1.76691172294,
      "times": [
        1.59069006894,
        1.39284682594,
        1.35358369794,
        1.37307841294,
        1.71743646094,
        1.74275315694,
        1.36918181994,
        1.3901796509400002,
        1.60439908294,
        1.76691172294
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.6091597919400003,
      "stddev": 0.12205905780433157,
      "median": 1.62240294844,
      "user": 1.5257455399999997,
      "system": 1.42941544,
      "min": 1.4259483159400002,
      "max": 1.84495001994,
      "times": [
        1.4259483159400002,
        1.84495001994,
        1.6863529779400002,
        1.6196454119400001,
        1.54991128394,
        1.43670671394,
        1.58959447994,
        1.6716793519400002,
        1.62516048494,
        1.6416488789400001
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 310.4 ± 28.7 273.8 345.9 1.03 ± 0.12
pacquet@main 300.7 ± 20.2 265.4 333.6 1.00
pnpr@HEAD 368.5 ± 25.7 331.7 403.0 1.23 ± 0.12
pnpr@main 385.6 ± 20.6 352.1 412.8 1.28 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.31043056892000004,
      "stddev": 0.028739200737139065,
      "median": 0.31407881212,
      "user": 0.2660515,
      "system": 0.6082509399999999,
      "min": 0.27376037362000005,
      "max": 0.34587022962,
      "times": [
        0.33648295362,
        0.27376037362000005,
        0.30205052162,
        0.27678552362000003,
        0.27544598362000006,
        0.34587022962,
        0.33729738262000003,
        0.32610710262000003,
        0.33414530162000006,
        0.29636031662000006
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.30065087002,
      "stddev": 0.020172821511728528,
      "median": 0.29500178812,
      "user": 0.2613525,
      "system": 0.59399824,
      "min": 0.26543373462000003,
      "max": 0.33360014662000004,
      "times": [
        0.30302872062,
        0.29231318662000005,
        0.28614901362000006,
        0.26543373462000003,
        0.29265862262000003,
        0.29734495362,
        0.32295843062,
        0.29219321562000006,
        0.32082867562000006,
        0.33360014662000004
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.36852276672000006,
      "stddev": 0.02573313137544773,
      "median": 0.37726311662000006,
      "user": 0.30094760000000004,
      "system": 0.70595634,
      "min": 0.33174742262000007,
      "max": 0.40304404062000004,
      "times": [
        0.37291203062000006,
        0.33174742262000007,
        0.33826011462000005,
        0.33717147462,
        0.35635534362000004,
        0.38409529362000006,
        0.38161420262000006,
        0.38757110662000005,
        0.40304404062000004,
        0.39245663762000005
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.38557424712000005,
      "stddev": 0.020589331905589685,
      "median": 0.38829039712,
      "user": 0.3350688,
      "system": 0.7045565399999999,
      "min": 0.35214674962000003,
      "max": 0.41283455362000004,
      "times": [
        0.36962294662000006,
        0.36765833062000003,
        0.39881364562000005,
        0.39778453062,
        0.40800308062000007,
        0.40093779962000003,
        0.37879626362,
        0.36914457062000006,
        0.41283455362000004,
        0.35214674962000003
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.831 ± 0.090 2.762 2.996 1.75 ± 0.17
pacquet@main 2.815 ± 0.030 2.772 2.865 1.74 ± 0.16
pnpr@HEAD 1.616 ± 0.150 1.456 1.890 1.00
pnpr@main 1.668 ± 0.164 1.465 1.868 1.03 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.83051045178,
      "stddev": 0.08957492487492855,
      "median": 2.7792842578799997,
      "user": 2.1308959799999996,
      "system": 1.54369584,
      "min": 2.76154196138,
      "max": 2.99609874738,
      "times": [
        2.99609874738,
        2.8695269093799998,
        2.9805443653799997,
        2.77646171538,
        2.8264662823799998,
        2.78210680038,
        2.76728198938,
        2.76154196138,
        2.7710552803799997,
        2.77402046638
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.81548738948,
      "stddev": 0.030048055952178302,
      "median": 2.8140535713799997,
      "user": 2.13213778,
      "system": 1.48968634,
      "min": 2.77182855238,
      "max": 2.86508913438,
      "times": [
        2.81202764138,
        2.8192780053799997,
        2.77966639938,
        2.81607950138,
        2.79721035038,
        2.8478451473799997,
        2.86508913438,
        2.8448107983799997,
        2.8010383643799996,
        2.77182855238
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.61640888338,
      "stddev": 0.150244402663057,
      "median": 1.5720239633800002,
      "user": 1.3363210799999998,
      "system": 1.28645584,
      "min": 1.4561318383800002,
      "max": 1.8895525833800002,
      "times": [
        1.7984647983800002,
        1.50872077538,
        1.63312668938,
        1.46578767638,
        1.4561318383800002,
        1.7519926113800002,
        1.6094732263800002,
        1.8895525833800002,
        1.5162639343800002,
        1.53457470038
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.6676496716800002,
      "stddev": 0.16378015643838298,
      "median": 1.62255022138,
      "user": 1.39584458,
      "system": 1.35985914,
      "min": 1.46497171338,
      "max": 1.8681249353800002,
      "times": [
        1.4943221343800002,
        1.8681249353800002,
        1.8119354433800001,
        1.8621878903800002,
        1.6337692083800002,
        1.51492979738,
        1.56493542938,
        1.46497171338,
        1.8499889303800001,
        1.61133123438
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 699.6 ± 38.6 654.9 793.1 2.02 ± 0.14
pacquet@main 694.1 ± 30.1 666.6 761.7 2.01 ± 0.13
pnpr@HEAD 350.3 ± 18.3 320.7 369.9 1.01 ± 0.07
pnpr@main 345.8 ± 15.5 328.9 368.0 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6995558641399999,
      "stddev": 0.038606156039612774,
      "median": 0.6895165544399999,
      "user": 0.8852335799999999,
      "system": 0.8180410200000001,
      "min": 0.65485392794,
      "max": 0.79308217994,
      "times": [
        0.71627562694,
        0.70912634794,
        0.68459886594,
        0.67743798994,
        0.79308217994,
        0.66639901594,
        0.69443424294,
        0.65485392794,
        0.68452943294,
        0.71482101094
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.69409091754,
      "stddev": 0.030051490906443067,
      "median": 0.68048744794,
      "user": 0.88588278,
      "system": 0.82574492,
      "min": 0.66662991694,
      "max": 0.76170302394,
      "times": [
        0.67161129894,
        0.71500695494,
        0.67706493394,
        0.6698176219399999,
        0.71795809494,
        0.70014243394,
        0.66662991694,
        0.6819127229399999,
        0.67906217294,
        0.76170302394
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.35029070864000006,
      "stddev": 0.01826537321995251,
      "median": 0.35055052094000005,
      "user": 0.24505148000000002,
      "system": 0.6011533200000001,
      "min": 0.32065685194000004,
      "max": 0.36985049094000005,
      "times": [
        0.36362040194,
        0.36973782594000004,
        0.33453144094000004,
        0.32065685194000004,
        0.32663426894,
        0.34907010494,
        0.34737872794,
        0.35203093694000004,
        0.36985049094000005,
        0.36939603594000003
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.34575593564,
      "stddev": 0.015503501982060667,
      "median": 0.34150517094,
      "user": 0.23352057999999998,
      "system": 0.59185652,
      "min": 0.32885747694,
      "max": 0.36796032694,
      "times": [
        0.36796032694,
        0.36673674794000005,
        0.33903232094,
        0.36179664294,
        0.32885747694,
        0.34397802094,
        0.33377189094000004,
        0.35344432094,
        0.33109251194,
        0.33088909594000004
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.041 ± 0.051 1.985 2.152 6.01 ± 0.33
pacquet@main 2.001 ± 0.059 1.930 2.105 5.89 ± 0.34
pnpr@HEAD 0.340 ± 0.017 0.310 0.363 1.00
pnpr@main 0.373 ± 0.012 0.356 0.399 1.10 ± 0.06
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.04069900416,
      "stddev": 0.05081634488523354,
      "median": 2.02897065556,
      "user": 1.2142497,
      "system": 0.94060028,
      "min": 1.98526329906,
      "max": 2.15157896306,
      "times": [
        2.15157896306,
        1.98526329906,
        2.00944253506,
        1.99662675506,
        2.00160281206,
        2.01866306106,
        2.07358129706,
        2.04774683206,
        2.0832062370599997,
        2.0392782500599997
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.00109430866,
      "stddev": 0.05889706096860197,
      "median": 1.9866752355600001,
      "user": 1.190133,
      "system": 0.8853735799999999,
      "min": 1.93025520906,
      "max": 2.10491465106,
      "times": [
        1.9808872510600002,
        2.00252832706,
        2.10491465106,
        2.10184929506,
        2.00974297406,
        1.99246322006,
        1.9739730650600003,
        1.94953307106,
        1.93025520906,
        1.9647960230600001
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.33965093736,
      "stddev": 0.01671109192810741,
      "median": 0.33980706656000004,
      "user": 0.2255627,
      "system": 0.59404568,
      "min": 0.31022761506,
      "max": 0.36320559106,
      "times": [
        0.31022761506,
        0.31891066306,
        0.33950108406,
        0.34011304906,
        0.35523858206,
        0.36320559106,
        0.35574471406,
        0.34782180906,
        0.33381441706,
        0.33193184906
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.37341934146,
      "stddev": 0.011519154495006602,
      "median": 0.37198184006,
      "user": 0.2407922,
      "system": 0.6703524799999999,
      "min": 0.35569697206,
      "max": 0.39886762406,
      "times": [
        0.39886762406,
        0.37102996606,
        0.36351862406,
        0.37627131406,
        0.37967427206,
        0.35569697206,
        0.36836020106,
        0.37917378206,
        0.36866694506,
        0.37293371406
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 442.4 ± 24.3 398.0 469.0 4.45 ± 0.29
pacquet@main 475.5 ± 11.9 460.5 494.3 4.78 ± 0.20
pnpr@HEAD 100.4 ± 3.9 93.7 109.0 1.01 ± 0.05
pnpr@main 99.5 ± 3.4 92.7 104.8 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.44242784328000007,
      "stddev": 0.024260532998213263,
      "median": 0.45181019778000003,
      "user": 0.43128893999999995,
      "system": 0.09934208,
      "min": 0.39800262128,
      "max": 0.46896141028000005,
      "times": [
        0.39800262128,
        0.41477334028000007,
        0.43773682228000005,
        0.41911750528,
        0.44947710228000004,
        0.46896141028000005,
        0.45907973728000007,
        0.45414329328,
        0.45448727228,
        0.46849932828000007
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.47550713558,
      "stddev": 0.011910749515700049,
      "median": 0.4743100292800001,
      "user": 0.46990893999999994,
      "system": 0.10341467999999998,
      "min": 0.46048439428000004,
      "max": 0.49430203428,
      "times": [
        0.48119309828000006,
        0.46314202428000006,
        0.47143647828000007,
        0.46361415128000005,
        0.48643840028000007,
        0.48895140528000003,
        0.49430203428,
        0.46832578928000007,
        0.4771835802800001,
        0.46048439428000004
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.10041458236,
      "stddev": 0.0038588693268247196,
      "median": 0.10006621728000001,
      "user": 0.026979459999999997,
      "system": 0.01627666,
      "min": 0.09371401028000001,
      "max": 0.10901480028000002,
      "times": [
        0.10901480028000002,
        0.09958489828000001,
        0.10779002728,
        0.09891533428000002,
        0.10280418528000002,
        0.09709171628,
        0.09646181828000001,
        0.10540866928,
        0.10118000628000001,
        0.09712792828000001,
        0.09985086628,
        0.09559581628000001,
        0.09371401028000001,
        0.09711308428000001,
        0.10143555228000001,
        0.09915826628,
        0.10402703928000001,
        0.09436942328000002,
        0.10026661028000002,
        0.09941572528,
        0.10006621728000001,
        0.10232140428000001,
        0.10317830628,
        0.10407698928000002,
        0.10039586428000001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.0994747326874074,
      "stddev": 0.0033888340345793705,
      "median": 0.09904299428,
      "user": 0.027273554814814815,
      "system": 0.014318491111111116,
      "min": 0.09274109528,
      "max": 0.10477178728000001,
      "times": [
        0.10246845328000001,
        0.09705109828000001,
        0.10118445428000002,
        0.09951105428000001,
        0.10350749828000001,
        0.10352421428000001,
        0.10088695628000001,
        0.10441877028000002,
        0.09525917928000001,
        0.09714319628000001,
        0.09506136128,
        0.10290883128000002,
        0.09548180928000001,
        0.09743325928000002,
        0.10286730528000002,
        0.09904299428,
        0.09658587128000001,
        0.09692267128000001,
        0.09873143928000001,
        0.09869190728,
        0.10020867828,
        0.10243951028,
        0.09593140328000001,
        0.09274109528,
        0.10383392128,
        0.09720906228000001,
        0.10477178728000001
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.747 ± 0.146 4.595 5.011 1.27 ± 0.07
pacquet@main 4.800 ± 0.162 4.545 5.058 1.28 ± 0.08
pnpr@HEAD 3.736 ± 0.179 3.547 3.991 1.00
pnpr@main 3.752 ± 0.137 3.551 3.974 1.00 ± 0.06
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.7470696102000005,
      "stddev": 0.14563581089656863,
      "median": 4.6955886399,
      "user": 2.7828292199999995,
      "system": 2.09025666,
      "min": 4.595311486400001,
      "max": 5.0109969304,
      "times": [
        5.0109969304,
        4.8155648194000005,
        4.635909473400001,
        4.633014545400001,
        4.6415190934,
        4.7975337044,
        4.6378920574,
        4.953295805400001,
        4.7496581864000005,
        4.595311486400001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.800476704700001,
      "stddev": 0.161555410835694,
      "median": 4.8040271164,
      "user": 2.8201735200000004,
      "system": 2.1959620600000003,
      "min": 4.5452436274000005,
      "max": 5.058306920400001,
      "times": [
        4.8186666024,
        4.846703815400001,
        4.7893876304,
        4.643287727400001,
        4.8714671974,
        4.5452436274000005,
        4.686611489400001,
        5.058306920400001,
        5.0268005864,
        4.718291450400001
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.7358332843,
      "stddev": 0.17931222565502875,
      "median": 3.6951565604,
      "user": 1.9783017199999997,
      "system": 1.8134295599999999,
      "min": 3.5471248674,
      "max": 3.9905175534,
      "times": [
        3.7052408634,
        3.9854695094,
        3.6850722574,
        3.6060357144,
        3.8126103034,
        3.9195181234,
        3.5520500764,
        3.5546935744,
        3.9905175534,
        3.5471248674
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.7522595469000004,
      "stddev": 0.13711785943066124,
      "median": 3.7614616204,
      "user": 2.05397342,
      "system": 1.8727198600000001,
      "min": 3.5514342984,
      "max": 3.9735619654,
      "times": [
        3.6938563854,
        3.7568312074,
        3.8042380364,
        3.6234899674,
        3.5514342984,
        3.9735619654,
        3.5957927474,
        3.7660920334,
        3.8617817794,
        3.8955170484
      ]
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13469
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,761.54 ms
(-1.99%)Baseline: 2,817.53 ms
3,381.04 ms
(81.68%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,985.26 ms
(+0.10%)Baseline: 1,983.33 ms
2,379.99 ms
(83.41%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
654.85 ms
(+0.88%)Baseline: 649.16 ms
778.99 ms
(84.06%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
398.00 ms
(-1.47%)Baseline: 403.93 ms
484.71 ms
(82.11%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,433.40 ms
(+0.44%)Baseline: 2,422.77 ms
2,907.32 ms
(83.70%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,595.31 ms
(+1.71%)Baseline: 4,517.92 ms
5,421.50 ms
(84.76%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
273.76 ms
(-1.80%)Baseline: 278.77 ms
334.52 ms
(81.84%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13469
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,456.13 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
310.23 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
320.66 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
93.71 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,353.58 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,547.12 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
331.75 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: pacquet reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pacquet pre-run dependency verification rewrites Vue lockfile

3 participants