Repository navigation
Conversation
|
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 (1)
📝 WalkthroughWalkthroughAdds unit coverage for ChangesString-or-list metadata tests
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
PR Summary by QodoTest libc metadata parser for string-or-array and invalid shapes
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Confidence Score: 5/5The 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 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
Integrated-Benchmark Report (Linux)Commit: 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
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
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
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
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
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
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
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
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13367 |
| 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,438.36 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 303.31 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 294.53 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 82.43 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,370.32 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,439.64 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 252.91 ms |
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.
Summary
libcmetadata parser added in fix(package-manager): preserve scalar libc metadata #13346.libcmetadata remains ignored.Follow-up to #13346 and #13324.
Squash Commit Body
Checklist
Written by an agent (Codex, gpt-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit