Skip to content

test(package-manager): cover libc metadata shapes - #13367

Merged
zkochan merged 1 commit into
mainfrom
fix-13324
Jul 25, 2026
Merged

zkochan merged 1 commit into
mainfrom
fix-13324

Conversation

@zkochan

@zkochan zkochan commented Jul 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow-up to #13346 and #13324.

Squash Commit Body

The scalar libc regression test covered the string branch added in pnpm/pnpm#13346, while Codecov identified the array and invalid-value branches as uncovered.

Exercise both remaining shapes directly so the parser keeps accepting arrays and rejecting malformed metadata without changing production behavior.

Follow-up to pnpm/pnpm#13346.

Checklist

  • The change is test-only and does not alter TypeScript or Rust CLI behavior.
  • 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

  • Tests
    • Added coverage to verify metadata values are correctly accepted when provided as arrays.
    • Added validation that unsupported object values are rejected.

Copilot AI review requested due to automatic review settings July 25, 2026 14:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@coderabbitai

coderabbitai Bot commented Jul 25, 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: fdaa9b16-61bc-45c1-9aa4-e8450b898810

📥 Commits

Reviewing files that changed from the base of the PR and between 547b461 and 48b5007.

📒 Files selected for processing (1)
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs

📝 Walkthrough

Walkthrough

Adds unit coverage for read_string_or_list, confirming JSON arrays produce string lists while non-array objects return None.

Changes

String-or-list metadata tests

Layer / File(s) Summary
Metadata parser coverage
pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs
Imports read_string_or_list and tests its handling of array and object metadata values.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

  • pnpm/pnpm#13346: Updates read_string_or_list usage and adds related libc lockfile regression coverage.

Suggested labels: product: pacquet

Suggested reviewers: copilot, yeshyungseok

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

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.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Test libc metadata parser for string-or-array and invalid shapes

🧪 Tests 🕐 10-20 Minutes

Grey Divider

AI Description

• Add unit test coverage for libc metadata when provided as an array of strings.
• Assert malformed non-string/non-array libc metadata is ignored (returns None).
• Keep production behavior unchanged while increasing branch coverage.
Diagram

graph TD
  A["tests.rs"] --> B["read_string_or_list()"] --> C["libc: string[]"]
  A --> B --> D["libc: object (invalid)"]
Loading
High-Level Assessment

The direct unit test approach is the most appropriate way to lock in the intended metadata shape handling (array accepted, other types ignored) without changing production code. A broader property-based test was considered but is unnecessary for this targeted branch-coverage gap.

Files changed (1) +13 / -1

Tests (1) +13 / -1
tests.rsAdd tests for libc metadata array and invalid-value handling +13/-1

Add tests for libc metadata array and invalid-value handling

• Imports 'read_string_or_list' into the test module and adds a new unit test that asserts the parser returns a string list for array-shaped 'libc' metadata and returns 'None' for object-shaped (invalid) metadata.

pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs

@greptile-apps

greptile-apps Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge because it only adds valid coverage for existing metadata-parser branches.

Production libc metadata already uses the tested helper, while the new assertions accurately cover accepted arrays and rejected malformed values without altering runtime code.

Reviews (1): Last reviewed commit: "test(package-manager): cover libc metada..." | Re-trigger Greptile

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

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.

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

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                          main                                   pr
-----                          ----                                   --
lockfile/parse_pnpm_lock       1.04     11.7±0.08ms    31.9 MB/sec    1.00     11.3±0.03ms    33.2 MB/sec
packument/parse                1.00     38.4±0.18µs  1725.3 MB/sec    1.00     38.5±0.08µs  1723.7 MB/sec
tarball/download_dependency    1.00      2.4±0.06ms  1816.7 KB/sec    1.00      2.4±0.07ms  1822.8 KB/sec

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.07%. Comparing base (547b461) to head (48b5007).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13367   +/-   ##
=======================================
  Coverage   87.07%   87.07%           
=======================================
  Files         536      536           
  Lines       92012    92012           
=======================================
+ Hits        80117    80122    +5     
+ Misses      11895    11890    -5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 48b5007ebc82

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.501 ± 0.158 2.361 2.743 1.67 ± 0.17
pacquet@main 2.544 ± 0.199 2.346 2.807 1.70 ± 0.19
pnpr@HEAD 1.496 ± 0.122 1.370 1.778 1.00
pnpr@main 1.552 ± 0.137 1.342 1.744 1.04 ± 0.12
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.5009448553999998,
      "stddev": 0.15829017050952138,
      "median": 2.414074725,
      "user": 1.5679127199999998,
      "system": 1.3222262399999998,
      "min": 2.3606404295,
      "max": 2.7429053015,
      "times": [
        2.7315434585,
        2.4079697425,
        2.5182429515,
        2.6872107765,
        2.4201797075,
        2.3606404295,
        2.7429053015,
        2.3905387645,
        2.3689636335,
        2.3812537885
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.5438909876,
      "stddev": 0.19887253823273507,
      "median": 2.449879496,
      "user": 1.5641767199999999,
      "system": 1.3157481399999997,
      "min": 2.3460392535,
      "max": 2.8070425145,
      "times": [
        2.3750706454999997,
        2.3682014845,
        2.8070425145,
        2.3460392535,
        2.3783332475,
        2.6959399605,
        2.7884975195,
        2.7800262585,
        2.4030039385,
        2.4967550535
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.4963097125,
      "stddev": 0.12199520862542781,
      "median": 1.4888251275,
      "user": 1.1026053199999999,
      "system": 1.1230412399999998,
      "min": 1.3703229905,
      "max": 1.7784554735,
      "times": [
        1.4387172735,
        1.5098879694999998,
        1.7784554735,
        1.3960022355,
        1.5072213245,
        1.5911774715,
        1.5242903294999999,
        1.3703229905,
        1.3765931265,
        1.4704289305
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.5522093781000001,
      "stddev": 0.1373452998408344,
      "median": 1.5595061355,
      "user": 1.0649414199999998,
      "system": 1.1764786400000002,
      "min": 1.3424537515,
      "max": 1.7440550364999998,
      "times": [
        1.5656766995,
        1.5533355715,
        1.6594044824999998,
        1.3424537515,
        1.4055334714999999,
        1.7438392944999999,
        1.4588579735,
        1.7440550364999998,
        1.5908334974999998,
        1.4581040024999998
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 254.5 ± 10.0 240.0 278.1 1.01 ± 0.05
pacquet@main 253.2 ± 7.2 237.0 261.3 1.00
pnpr@HEAD 266.9 ± 8.9 252.9 279.3 1.05 ± 0.05
pnpr@main 264.9 ± 5.2 257.2 271.8 1.05 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.25452720272,
      "stddev": 0.010033838715997096,
      "median": 0.25521254812000005,
      "user": 0.20196047999999997,
      "system": 0.49525231999999997,
      "min": 0.23998273162000003,
      "max": 0.27808096162,
      "times": [
        0.25449436762000005,
        0.23998273162000003,
        0.25768732962,
        0.24942199462000003,
        0.25753409162,
        0.25642115662000003,
        0.24818347462,
        0.24753519062,
        0.25593072862000005,
        0.27808096162
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.25316414362000006,
      "stddev": 0.0071749521135702045,
      "median": 0.25523306612,
      "user": 0.19932497999999998,
      "system": 0.5240533199999999,
      "min": 0.23704477862000004,
      "max": 0.26133171662000004,
      "times": [
        0.25487921862,
        0.24595737562000003,
        0.25183005662,
        0.25592721162000004,
        0.25558691362,
        0.25863354162,
        0.25147018262000004,
        0.25898044062000003,
        0.26133171662000004,
        0.23704477862000004
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.26688767512,
      "stddev": 0.008921184782470096,
      "median": 0.26758292562,
      "user": 0.22389477999999996,
      "system": 0.50382602,
      "min": 0.25290930762,
      "max": 0.27926608262,
      "times": [
        0.26585271662000004,
        0.26904204862000003,
        0.27690921862,
        0.25335029462,
        0.25290930762,
        0.26218374262000005,
        0.27394008562000005,
        0.27926608262,
        0.26612380262,
        0.26929945162
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.26485906292,
      "stddev": 0.005181713705393118,
      "median": 0.26610276362,
      "user": 0.20043218000000002,
      "system": 0.50774262,
      "min": 0.25721916162,
      "max": 0.27175097462000003,
      "times": [
        0.26879517762000005,
        0.25826291762000003,
        0.26198487962,
        0.25721916162,
        0.26813247662,
        0.27034066262,
        0.26592760562,
        0.27175097462000003,
        0.26627792162,
        0.25989885162000004
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.779 ± 0.021 2.749 2.814 1.68 ± 0.18
pacquet@main 2.780 ± 0.018 2.749 2.802 1.68 ± 0.18
pnpr@HEAD 1.654 ± 0.179 1.438 1.846 1.00
pnpr@main 1.658 ± 0.163 1.434 1.842 1.00 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.77941867314,
      "stddev": 0.021403853704412185,
      "median": 2.77778731944,
      "user": 1.6944146,
      "system": 1.3754692,
      "min": 2.74916438894,
      "max": 2.81385127794,
      "times": [
        2.79387259194,
        2.74916438894,
        2.76170601294,
        2.81385127794,
        2.8082629789399998,
        2.77097497794,
        2.77213538194,
        2.78388079494,
        2.78343925694,
        2.75689906894
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.77959327674,
      "stddev": 0.018201423141661646,
      "median": 2.78427849494,
      "user": 1.7373026999999996,
      "system": 1.3319519,
      "min": 2.74928635194,
      "max": 2.80193093194,
      "times": [
        2.78997008694,
        2.78023366294,
        2.80193093194,
        2.77300194294,
        2.74928635194,
        2.78832332694,
        2.8010749979400003,
        2.76000783894,
        2.79132041394,
        2.7607832129400003
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.65396307854,
      "stddev": 0.17928540237269672,
      "median": 1.68163739994,
      "user": 1.0504701,
      "system": 1.163175,
      "min": 1.43836231594,
      "max": 1.84582604594,
      "times": [
        1.81891950794,
        1.84582604594,
        1.4648250039400001,
        1.82394573394,
        1.45670876894,
        1.49659355194,
        1.83117505694,
        1.5880798709400001,
        1.43836231594,
        1.77519492894
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.6577066630400001,
      "stddev": 0.16268065398398318,
      "median": 1.65502795244,
      "user": 1.0093811999999998,
      "system": 1.1572001000000003,
      "min": 1.43445573694,
      "max": 1.84211108594,
      "times": [
        1.8183631549400001,
        1.47476835294,
        1.43445573694,
        1.50325106394,
        1.82365341594,
        1.62665148394,
        1.68340442094,
        1.84211108594,
        1.54284842094,
        1.82755949394
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 595.2 ± 13.5 578.3 616.0 1.95 ± 0.06
pacquet@main 579.9 ± 10.9 560.7 598.5 1.90 ± 0.06
pnpr@HEAD 307.6 ± 7.1 294.5 319.5 1.01 ± 0.03
pnpr@main 305.8 ± 7.3 296.0 317.7 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.5952336452000001,
      "stddev": 0.013456967474402495,
      "median": 0.593870042,
      "user": 0.6862640199999999,
      "system": 0.71832224,
      "min": 0.5782897365,
      "max": 0.6159567455000001,
      "times": [
        0.5782897365,
        0.5846173315000001,
        0.5791924075000001,
        0.6119501895000001,
        0.6159567455000001,
        0.6061828945000001,
        0.5933125925000001,
        0.5944274915000001,
        0.5859135405000001,
        0.6024935225000001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.5798963589000001,
      "stddev": 0.010902527911958068,
      "median": 0.5797117460000001,
      "user": 0.6856644199999999,
      "system": 0.6832082399999999,
      "min": 0.5606582645000001,
      "max": 0.5984608675,
      "times": [
        0.5815621875000001,
        0.5777523405000001,
        0.5606582645000001,
        0.5893156945000001,
        0.5822891595,
        0.5984608675,
        0.5890341765000001,
        0.5729914305000001,
        0.5778613045000001,
        0.5690381635000001
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30761877039999996,
      "stddev": 0.0070752508587684435,
      "median": 0.30904810400000005,
      "user": 0.19823061999999997,
      "system": 0.5246221399999998,
      "min": 0.2945286225,
      "max": 0.3195463825,
      "times": [
        0.2945286225,
        0.29925489650000003,
        0.31199374350000003,
        0.3064432735,
        0.3038832175,
        0.3195463825,
        0.3110617075,
        0.3101430255,
        0.30795318250000003,
        0.3113796525
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.30581311479999995,
      "stddev": 0.007260783748458747,
      "median": 0.30711081,
      "user": 0.19954592,
      "system": 0.5158584399999999,
      "min": 0.2959519485,
      "max": 0.3176667815,
      "times": [
        0.2961975495,
        0.2959519485,
        0.3138041855,
        0.3052144115,
        0.30018993850000003,
        0.3091901305,
        0.3090986885,
        0.3176667815,
        0.3090072085,
        0.3018103055
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.905 ± 0.009 1.887 1.918 6.24 ± 0.12
pacquet@main 1.907 ± 0.012 1.888 1.928 6.24 ± 0.13
pnpr@HEAD 0.306 ± 0.003 0.303 0.315 1.00 ± 0.02
pnpr@main 0.305 ± 0.006 0.297 0.317 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.90465102776,
      "stddev": 0.008781456918320303,
      "median": 1.90496586246,
      "user": 0.9307857599999998,
      "system": 0.7637620599999999,
      "min": 1.88728827646,
      "max": 1.91834684046,
      "times": [
        1.91542633846,
        1.90417864746,
        1.90575307746,
        1.89848285746,
        1.91834684046,
        1.90851194546,
        1.90056083946,
        1.9068841064600002,
        1.88728827646,
        1.9010773484599999
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.9074580241599999,
      "stddev": 0.012176309795409323,
      "median": 1.9052837279600001,
      "user": 0.9216105600000001,
      "system": 0.77087336,
      "min": 1.88825650846,
      "max": 1.92831735946,
      "times": [
        1.9011996074600002,
        1.90207929446,
        1.91134767746,
        1.92531625646,
        1.88825650846,
        1.90692761746,
        1.89718982446,
        1.9036398384600002,
        1.92831735946,
        1.91030625746
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30643664445999996,
      "stddev": 0.0033440527591486278,
      "median": 0.30572186846,
      "user": 0.19971245999999998,
      "system": 0.5345080600000001,
      "min": 0.30330752946,
      "max": 0.31456341746,
      "times": [
        0.30330752946,
        0.31456341746,
        0.30679351046,
        0.30921553846,
        0.30633379046,
        0.30331582646,
        0.30558244246,
        0.30586129446,
        0.30448190046,
        0.30491119446
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.30543887496,
      "stddev": 0.005952517962844897,
      "median": 0.30586979045999996,
      "user": 0.19541155999999998,
      "system": 0.53528406,
      "min": 0.29735669146,
      "max": 0.31693379646,
      "times": [
        0.30333276746,
        0.29767155246,
        0.30478191245999997,
        0.30948805846,
        0.30695766846,
        0.31693379646,
        0.30801568046,
        0.30102860146,
        0.29735669146,
        0.30882202046
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 348.6 ± 7.9 337.0 359.9 4.03 ± 0.14
pacquet@main 348.3 ± 7.3 337.1 358.5 4.03 ± 0.13
pnpr@HEAD 86.8 ± 1.8 82.4 89.5 1.00 ± 0.03
pnpr@main 86.5 ± 2.2 82.0 90.4 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.34857146812000006,
      "stddev": 0.007881817720051379,
      "median": 0.34828192832000004,
      "user": 0.33868103999999993,
      "system": 0.0578951,
      "min": 0.33696574482,
      "max": 0.35989252482000006,
      "times": [
        0.33741536682000006,
        0.34358014582,
        0.35391422482000007,
        0.35064132382,
        0.35919351482000006,
        0.33696574482,
        0.34754797882000005,
        0.34832663682000004,
        0.34823721982000005,
        0.35989252482000006
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.34831474522,
      "stddev": 0.007267775020046339,
      "median": 0.34883629232,
      "user": 0.32897413999999997,
      "system": 0.06682869999999999,
      "min": 0.33713604382000006,
      "max": 0.35849967382000003,
      "times": [
        0.35317622282000005,
        0.35095884882000006,
        0.34281917982000004,
        0.33713604382000006,
        0.35599549482000004,
        0.34671373582000004,
        0.35849967382000003,
        0.34242796682000004,
        0.35437797482000005,
        0.34104231082
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.08675172421393942,
      "stddev": 0.0018207429191397734,
      "median": 0.08730438582000001,
      "user": 0.020213855151515147,
      "system": 0.008669393939393937,
      "min": 0.08242798982,
      "max": 0.08952448482000001,
      "times": [
        0.08471000482000002,
        0.08952448482000001,
        0.08743262482000001,
        0.08588348382000001,
        0.08702389882000001,
        0.08244240682000001,
        0.08730438582000001,
        0.08778192982000001,
        0.08876180582000001,
        0.08634076982000001,
        0.08742782782000001,
        0.08880112882,
        0.08798813582000001,
        0.08575884982000001,
        0.08909138182000001,
        0.08547206282000001,
        0.08676252982000002,
        0.08338609482,
        0.08690146082000001,
        0.08242798982,
        0.08826131882000002,
        0.08632318682000001,
        0.08265435382000001,
        0.08755970382000001,
        0.08752170282,
        0.08698132082000001,
        0.08743618282000001,
        0.08731219982,
        0.08784659082000001,
        0.08723611682000001,
        0.08750481082000001,
        0.08726378982,
        0.08768236382000001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.08649242460124998,
      "stddev": 0.0021837254870776903,
      "median": 0.08681626082000002,
      "user": 0.021109965,
      "system": 0.007993187499999999,
      "min": 0.08200319382000001,
      "max": 0.09035955782,
      "times": [
        0.08885381782000001,
        0.08664180382000002,
        0.08624405982000001,
        0.08951821282000001,
        0.08512417182000001,
        0.08808301382000001,
        0.08691479682000001,
        0.08992732882000001,
        0.08541933482000001,
        0.08600356782000002,
        0.08200319382000001,
        0.08292375882000001,
        0.08725395082000001,
        0.08743251582000001,
        0.08683245082000002,
        0.08850257082000001,
        0.08879218282000001,
        0.08700348182,
        0.08598876982,
        0.08409580582000001,
        0.08632811582000001,
        0.08878755382000002,
        0.08508282282000001,
        0.08680007082,
        0.08362596382000001,
        0.08629053582000001,
        0.08252992082,
        0.08761564782000002,
        0.08739632782000001,
        0.08696374682,
        0.08241853382000001,
        0.09035955782
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.531 ± 0.152 4.426 4.904 1.29 ± 0.06
pacquet@main 4.707 ± 0.160 4.445 4.914 1.34 ± 0.06
pnpr@HEAD 3.519 ± 0.117 3.440 3.831 1.00
pnpr@main 3.540 ± 0.110 3.441 3.813 1.01 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.53115528452,
      "stddev": 0.15193792326156538,
      "median": 4.47608584022,
      "user": 1.72532942,
      "system": 1.4014449399999998,
      "min": 4.42574308522,
      "max": 4.90350244322,
      "times": [
        4.469661150219999,
        4.69979947422,
        4.49312003722,
        4.42574308522,
        4.44565377822,
        4.43914257422,
        4.90350244322,
        4.48251053022,
        4.46721458422,
        4.485205188219999
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.706967279020001,
      "stddev": 0.1602288251603601,
      "median": 4.70676241722,
      "user": 1.74368352,
      "system": 1.36891214,
      "min": 4.44536544222,
      "max": 4.913513679219999,
      "times": [
        4.4683074422199995,
        4.63166992722,
        4.85222506922,
        4.85456596522,
        4.44536544222,
        4.69770544922,
        4.6699048872199995,
        4.71581938522,
        4.82059554322,
        4.913513679219999
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.5194735224199993,
      "stddev": 0.11680261415975493,
      "median": 3.47920946872,
      "user": 1.2106831200000001,
      "system": 1.23052934,
      "min": 3.4396424912200003,
      "max": 3.8309254202200003,
      "times": [
        3.4446654742200002,
        3.8309254202200003,
        3.49243050822,
        3.57030607122,
        3.4637140202200003,
        3.48628378222,
        3.47213515522,
        3.5364656142200004,
        3.4581666872200003,
        3.4396424912200003
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.53992171832,
      "stddev": 0.10974210154839563,
      "median": 3.51869296022,
      "user": 1.1850060199999999,
      "system": 1.2230130399999999,
      "min": 3.4412085552200002,
      "max": 3.81329614322,
      "times": [
        3.4589341902200004,
        3.81329614322,
        3.48552937322,
        3.58552433522,
        3.47881011322,
        3.5689971162200003,
        3.5518565472200003,
        3.45511786922,
        3.55994294022,
        3.4412085552200002
      ]
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13367
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,749.16 ms
(-0.25%)Baseline: 2,756.14 ms
3,307.37 ms
(83.12%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,887.29 ms
(-1.11%)Baseline: 1,908.43 ms
2,290.12 ms
(82.41%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
578.29 ms
(-2.63%)Baseline: 593.91 ms
712.69 ms
(81.14%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
336.97 ms
(-5.53%)Baseline: 356.68 ms
428.02 ms
(78.73%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,360.64 ms
(-0.26%)Baseline: 2,366.68 ms
2,840.02 ms
(83.12%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,425.74 ms
(-0.29%)Baseline: 4,438.40 ms
5,326.08 ms
(83.10%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
239.98 ms
(-4.44%)Baseline: 251.13 ms
301.36 ms
(79.63%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13367
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,438.36 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
303.31 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
294.53 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
82.43 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,370.32 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,439.64 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
252.91 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan
zkochan merged commit a1e3225 into main Jul 25, 2026
34 checks passed
@zkochan
zkochan deleted the fix-13324 branch July 25, 2026 14:45
kairosci added a commit to kairosci/pnpm that referenced this pull request Jul 27, 2026
The scalar libc regression test covered the string branch added in pnpm#13346, while Codecov identified the array and invalid-value branches as uncovered.

Exercise both remaining shapes directly so the parser keeps accepting arrays and rejecting malformed metadata without changing production behavior.

Follow-up to pnpm#13346.
@coderabbitai coderabbitai Bot mentioned this pull request Jul 27, 2026
3 tasks done
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.

3 participants