Repository navigation
fix(pacquet): align license report metadata - #13461
Conversation
Normalize license-report authors and repository-derived homepages like the TypeScript CLI. Preserve license groups in package-first order. Addresses item 1 of #13457.
|
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 (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthrough
ChangesLicense report normalization
Estimated code review effort: 3 (Moderate) | ~25 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 QodoFix pacquet license report metadata and preserve license-group ordering
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (2): Last reviewed commit: "fix(pacquet): stabilize license metadata..." | Re-trigger Greptile |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pnpm/crates/cli/src/cli_args/licenses.rs`:
- Around line 213-215: Update the dependency sorting comparator near the
existing dependencies.sort_by call to add a final comparison using the full
package key, including belongs_to, after name and version comparisons. Preserve
the current ordering by package name and compare_versions, while ensuring
candidates with identical names and versions have deterministic ordering for
licenses list --json.
In `@pnpm/crates/resolving-git-resolver/src/hosted_git.rs`:
- Around line 270-274: Update the `/tree/` committish extraction in the hosted
GitHub parsing logic to percent-decode the extracted ref before assigning
`hosted.committish`, so later rendering does not double-encode it. Add a
regression case covering `/tree/feature%2Ffoo` and verify the generated README
URL retains `feature%2Ffoo` rather than producing `%252F`.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 389c2d88-900f-4b3f-9afb-96e524ae1fa2
📒 Files selected for processing (6)
.changeset/calm-cats-report.mdpnpm/crates/cli/src/cli_args/licenses.rspnpm/crates/cli/src/cli_args/licenses/tests.rspnpm/crates/cli/tests/licenses.rspnpm/crates/resolving-git-resolver/src/hosted_git.rspnpm/crates/resolving-git-resolver/src/hosted_git/tests.rs
Micro-Benchmark ResultsLinux |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13461 +/- ##
==========================================
+ Coverage 87.66% 87.68% +0.02%
==========================================
Files 546 546
Lines 94260 94373 +113
==========================================
+ Hits 82630 82750 +120
+ Misses 11630 11623 -7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Tie equal package versions by their full dependency key. Avoid double-encoding hosted Git branch names.
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Code Review by Qodo
Context used✅ Compliance rules (platform):
24 rules 1. Comparator does extra work
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
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.5453352909199998,
"stddev": 0.17323721178147714,
"median": 2.5109796745199997,
"user": 1.9613795999999997,
"system": 1.5628325200000002,
"min": 2.37268694702,
"max": 2.82317781002,
"times": [
2.38489524402,
2.42481699902,
2.50665023402,
2.51530911502,
2.8083029800199997,
2.82317781002,
2.55009172102,
2.37268694702,
2.69337873302,
2.37404312602
]
},
{
"command": "pacquet@main",
"mean": 2.5099781242199994,
"stddev": 0.16705350699937435,
"median": 2.42386116852,
"user": 1.8653442999999998,
"system": 1.4569283199999998,
"min": 2.34752631402,
"max": 2.81649104502,
"times": [
2.40090882202,
2.6023061730199997,
2.42742866102,
2.81649104502,
2.42029367602,
2.34752631402,
2.6059238680199996,
2.3641472000199997,
2.73141382902,
2.38334165402
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5257695447200001,
"stddev": 0.15831494913938005,
"median": 1.5283643395200002,
"user": 1.2802186,
"system": 1.24253292,
"min": 1.3461932420200002,
"max": 1.7973495790200003,
"times": [
1.4754839640200001,
1.7973495790200003,
1.37172400202,
1.5812447150200002,
1.3461932420200002,
1.5893163580200003,
1.3624048290200002,
1.6481741170200002,
1.3946847270200002,
1.6911199140200002
]
},
{
"command": "pnpr@main",
"mean": 1.4931952711200003,
"stddev": 0.14798105271445788,
"median": 1.42064627252,
"user": 1.2624429,
"system": 1.16800022,
"min": 1.3529472750200002,
"max": 1.7854332650200002,
"times": [
1.50568390102,
1.39849084302,
1.42927228702,
1.5856895270200002,
1.3529472750200002,
1.41202025802,
1.39030277402,
1.69321285202,
1.3788997290200002,
1.7854332650200002
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.25537158422,
"stddev": 0.0073135835450127955,
"median": 0.25367111852,
"user": 0.20789569999999996,
"system": 0.5051140999999999,
"min": 0.24593625752,
"max": 0.26519409152,
"times": [
0.25983965852,
0.24791205652,
0.26519409152,
0.26343194152,
0.25377729452000003,
0.26447934252,
0.24593625752,
0.25356494252,
0.25124780252,
0.24833245452000002
]
},
{
"command": "pacquet@main",
"mean": 0.25836663782,
"stddev": 0.012551358298203889,
"median": 0.25443529752000005,
"user": 0.21095379999999997,
"system": 0.5091965,
"min": 0.24619236852,
"max": 0.28477069252000003,
"times": [
0.25654207752,
0.26773457452,
0.25232851752,
0.24877129452000002,
0.25075064552000004,
0.28477069252000003,
0.27135175152,
0.24713579352,
0.25808866252,
0.24619236852
]
},
{
"command": "pnpr@HEAD",
"mean": 0.28186117442,
"stddev": 0.004847247662236544,
"median": 0.28214649302000006,
"user": 0.21703679999999995,
"system": 0.5598477,
"min": 0.27507606252,
"max": 0.28923420252000004,
"times": [
0.27507606252,
0.27556539752000003,
0.28549239452,
0.28923420252000004,
0.28225667652,
0.27953398452,
0.28203630952000003,
0.28661728552,
0.27755322052000003,
0.28524621052
]
},
{
"command": "pnpr@main",
"mean": 0.28216909432000004,
"stddev": 0.015732676833011012,
"median": 0.27811272302,
"user": 0.22273370000000003,
"system": 0.5455723,
"min": 0.26158900152000003,
"max": 0.30229182452000003,
"times": [
0.30211796852,
0.29509536352,
0.26158900152000003,
0.26422868752,
0.27888308552,
0.27734236052,
0.27694005752,
0.29660467252,
0.26659792152,
0.30229182452000003
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.8033070966,
"stddev": 0.048113718769930466,
"median": 2.7842617725,
"user": 2.0556898400000003,
"system": 1.44240658,
"min": 2.7537466420000003,
"max": 2.896453261,
"times": [
2.787670872,
2.896453261,
2.869675855,
2.7631724440000003,
2.780852673,
2.7537466420000003,
2.7743453820000004,
2.839158394,
2.789821266,
2.778174177
]
},
{
"command": "pacquet@main",
"mean": 2.7677070349,
"stddev": 0.020936131460148225,
"median": 2.7642342105,
"user": 1.9814291400000001,
"system": 1.4111703800000002,
"min": 2.7426889770000002,
"max": 2.805885518,
"times": [
2.772336997,
2.746768303,
2.7426889770000002,
2.759276003,
2.749223846,
2.805885518,
2.797199882,
2.7686152610000003,
2.7752224020000003,
2.75985316
]
},
{
"command": "pnpr@HEAD",
"mean": 1.6393733255999998,
"stddev": 0.14819346273838158,
"median": 1.6160657485,
"user": 1.34203874,
"system": 1.3545130799999998,
"min": 1.4761712770000002,
"max": 1.928266389,
"times": [
1.587954882,
1.728443506,
1.5610993210000002,
1.928266389,
1.8168119530000002,
1.486902426,
1.6441766150000001,
1.650889786,
1.513017101,
1.4761712770000002
]
},
{
"command": "pnpr@main",
"mean": 1.7453269114999999,
"stddev": 0.12329579823309145,
"median": 1.7209849785000002,
"user": 1.5852526400000002,
"system": 1.5051320799999999,
"min": 1.5985976280000003,
"max": 1.934106764,
"times": [
1.934106764,
1.7358861110000001,
1.654766752,
1.7060838460000003,
1.5985976280000003,
1.7985491480000002,
1.6008985260000002,
1.657285597,
1.8926537110000001,
1.874441032
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.70407457322,
"stddev": 0.04042471917102561,
"median": 0.71513492682,
"user": 0.9019822599999999,
"system": 0.8129869799999998,
"min": 0.6314150618200001,
"max": 0.75151363282,
"times": [
0.7055781698200001,
0.63429408982,
0.6314150618200001,
0.72252476682,
0.72449945782,
0.75151363282,
0.73373637682,
0.7000828788200001,
0.72935621082,
0.70774508682
]
},
{
"command": "pacquet@main",
"mean": 0.74889365432,
"stddev": 0.032731172384131396,
"median": 0.74761667882,
"user": 0.9557078599999999,
"system": 0.8701311800000001,
"min": 0.6986065088200001,
"max": 0.81075140282,
"times": [
0.74669201982,
0.7822513078200001,
0.7656177808200001,
0.7358932438200001,
0.81075140282,
0.6986065088200001,
0.7485413378200001,
0.7137764668200001,
0.75801267082,
0.72879380382
]
},
{
"command": "pnpr@HEAD",
"mean": 0.33748097172,
"stddev": 0.011812512401497749,
"median": 0.33701150882,
"user": 0.23825365999999998,
"system": 0.5843345799999999,
"min": 0.32290952282,
"max": 0.35793631482000005,
"times": [
0.34523106182,
0.35793631482000005,
0.32583981582000004,
0.34283089882,
0.33747826282000004,
0.33266547182,
0.35038975882,
0.33654475482,
0.32298385482,
0.32290952282
]
},
{
"command": "pnpr@main",
"mean": 0.35132254502000004,
"stddev": 0.024232597704261397,
"median": 0.34356795232000004,
"user": 0.23355555999999997,
"system": 0.60645898,
"min": 0.31950713382,
"max": 0.38249572382,
"times": [
0.31950713382,
0.33283673282000004,
0.33690667582,
0.34356126382,
0.32489551482,
0.34357464082000005,
0.37871467682000004,
0.38249572382,
0.37174528382000005,
0.37898780382
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.09234290432,
"stddev": 0.036311698988395744,
"median": 2.1021083661200004,
"user": 1.3918211399999998,
"system": 1.0212192999999998,
"min": 2.02043375162,
"max": 2.13791602062,
"times": [
2.11060779262,
2.13791602062,
2.07480316062,
2.0754008446200003,
2.12836452762,
2.09360893962,
2.1160921906200003,
2.1118821536200003,
2.05431966162,
2.02043375162
]
},
{
"command": "pacquet@main",
"mean": 2.18537917242,
"stddev": 0.10109431971710495,
"median": 2.1919761821200003,
"user": 1.4870648400000004,
"system": 1.1335346999999998,
"min": 2.05272682762,
"max": 2.3588830246200003,
"times": [
2.05272682762,
2.20570181262,
2.05587181262,
2.17825055162,
2.3588830246200003,
2.29812932362,
2.2123423306200003,
2.15815562362,
2.24489749362,
2.08883292362
]
},
{
"command": "pnpr@HEAD",
"mean": 0.3726037799200001,
"stddev": 0.022936537551919833,
"median": 0.36991818162,
"user": 0.24288233999999997,
"system": 0.6691467999999998,
"min": 0.33736705862,
"max": 0.42231913962,
"times": [
0.42231913962,
0.33736705862,
0.36382326862000003,
0.38448176762,
0.35037213362,
0.37312693862,
0.36394803862,
0.38545449462000003,
0.37843553462,
0.36670942462
]
},
{
"command": "pnpr@main",
"mean": 0.37675987592000004,
"stddev": 0.02282908753631855,
"median": 0.36967853812,
"user": 0.27349303999999997,
"system": 0.6400991,
"min": 0.34842126862,
"max": 0.42971117762,
"times": [
0.40257449562000003,
0.42971117762,
0.37032181662,
0.36869608862000003,
0.37413165762,
0.36498299462,
0.36759410262000003,
0.37212989762,
0.36903525962,
0.34842126862
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.44683354370000006,
"stddev": 0.014229591910001591,
"median": 0.44440079180000003,
"user": 0.4314343599999999,
"system": 0.10370572,
"min": 0.4231146183,
"max": 0.4665402403,
"times": [
0.4599222653,
0.4582173483,
0.4231146183,
0.4395054493,
0.46147386830000003,
0.4421521793,
0.4665402403,
0.4383908123,
0.43236925130000003,
0.4466494043
]
},
{
"command": "pacquet@main",
"mean": 0.44156995779999997,
"stddev": 0.01482945924018225,
"median": 0.43884156480000003,
"user": 0.4242071599999999,
"system": 0.10755701999999998,
"min": 0.4181635843,
"max": 0.4627141313,
"times": [
0.4540956043,
0.4314827203,
0.4627141313,
0.4375224863,
0.44952046830000003,
0.4278116243,
0.4181635843,
0.4330911353,
0.4401606433,
0.4611371803
]
},
{
"command": "pnpr@HEAD",
"mean": 0.09906502588620689,
"stddev": 0.004440735299753871,
"median": 0.0984327223,
"user": 0.02717338068965517,
"system": 0.013827681379310343,
"min": 0.0931139643,
"max": 0.1159406033,
"times": [
0.0951746963,
0.0931139643,
0.0981960763,
0.09865620630000001,
0.1064924213,
0.0985991573,
0.0972024243,
0.0984327223,
0.1011287123,
0.0987617663,
0.0974193903,
0.09499262530000001,
0.1003393363,
0.0997729153,
0.1159406033,
0.0987498403,
0.0976731993,
0.09964033530000001,
0.0947572613,
0.0963526903,
0.0984093103,
0.0937965213,
0.0937834813,
0.1014794883,
0.10224962030000001,
0.1039068653,
0.0981487003,
0.0982746843,
0.1014407353
]
},
{
"command": "pnpr@main",
"mean": 0.11244785652222224,
"stddev": 0.006929620275722865,
"median": 0.11254646730000001,
"user": 0.03418553777777778,
"system": 0.019388512592592593,
"min": 0.0946199103,
"max": 0.12812077830000002,
"times": [
0.1029047953,
0.1018644063,
0.0946199103,
0.1049264933,
0.11334028430000001,
0.11011034430000001,
0.11943210530000001,
0.1079481333,
0.10882643930000001,
0.11749590530000001,
0.1105547543,
0.1198701793,
0.1124259403,
0.11121040730000001,
0.1102069703,
0.1211958793,
0.1130646113,
0.1073772083,
0.11254646730000001,
0.1149209483,
0.1080925063,
0.1183223213,
0.11721705630000001,
0.1187505813,
0.11387999130000001,
0.12812077830000002,
0.11686670830000001
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.75383143478,
"stddev": 0.17219243526557332,
"median": 4.67456122958,
"user": 2.4803964400000007,
"system": 1.83541974,
"min": 4.58171419108,
"max": 5.00903117808,
"times": [
4.594015887079999,
4.675996556079999,
4.58171419108,
4.64907051608,
4.89799452908,
4.8820496990799995,
4.58332737708,
5.00903117808,
4.99198851108,
4.67312590308
]
},
{
"command": "pacquet@main",
"mean": 4.623062436080001,
"stddev": 0.08286911358398168,
"median": 4.61551554108,
"user": 2.5455357399999996,
"system": 1.97007144,
"min": 4.53527160008,
"max": 4.823695188079999,
"times": [
4.55438911908,
4.63065176608,
4.65052682308,
4.53527160008,
4.823695188079999,
4.54892720608,
4.59103206008,
4.60037931608,
4.64292229208,
4.65282899008
]
},
{
"command": "pnpr@HEAD",
"mean": 3.659809444780001,
"stddev": 0.14615787257639595,
"median": 3.6041599410800003,
"user": 1.8184059399999999,
"system": 1.6137919399999998,
"min": 3.52929483608,
"max": 3.88348763208,
"times": [
3.6499278520800003,
3.8797307180800003,
3.52929483608,
3.8113507760800003,
3.53656903908,
3.88348763208,
3.54631960708,
3.6671397690800003,
3.5583920300800003,
3.53588218808
]
},
{
"command": "pnpr@main",
"mean": 3.59646559228,
"stddev": 0.08092882971517908,
"median": 3.5715873680800003,
"user": 1.7689505399999998,
"system": 1.6171633399999998,
"min": 3.4706833230800003,
"max": 3.7472641570800005,
"times": [
3.57939566208,
3.62784043108,
3.54517165908,
3.53785999208,
3.55655230908,
3.7472641570800005,
3.56377907408,
3.4706833230800003,
3.67614720808,
3.65996210708
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13461 |
| 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,476.17 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 337.37 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 322.91 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 93.11 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,346.19 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,529.29 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 275.08 ms |
Summary
This addresses item 1 of #13457. The TypeScript CLI already defines the expected behavior, so no TypeScript implementation change is required.
Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Codex, GPT-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
licenses list --jsonoutput more consistent by deterministically ordering license groups and package entries.#readmehandling for branches and subdirectories.