Repository navigation
fix(publish): preserve registry paths in OIDC token exchanges - #17006
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17006 +/- ##
=======================================
Coverage 92.53% 92.53%
=======================================
Files 1775 1775
Lines 228551 228551
=======================================
+ Hits 211490 211495 +5
+ Misses 17061 17056 -5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Same-run regression checkHEAD and main are measured on the same runner. The tolerance is 5% of the main median or 2 ms, whichever is larger. A regression requires both the median slowdown and the gap between the fastest retained HEAD sample and slowest retained main sample to exceed this tolerance, after trimming up to 10% from each tail. Suspected regressions are rerun once with target order reversed and only fail if reproduced. This conservative noise guard is not a statistical confidence interval. Inconclusive rows do not fail the check. They remain visible for performance review. Bencher retains absolute minimum timings for historical tracking; historical alerts do not gate this PR. Sequential measurements can still be affected by runner drift.
Integrated-Benchmark Report (Linux)Commit: Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm; the linked and injected workspace scenarios compare current Rust against main Rust. Bencher consumes pacquet@HEAD and pnpr@HEAD. The tables below show mean ± σ. Bencher tracks absolute minimum latency; PR regression checks compare HEAD and main samples from the same runner. Historical timing alerts do not gate PRs. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.44979213686,
"stddev": 0.1642304912519322,
"median": 2.42549598396,
"user": 1.3127095399999997,
"system": 1.3743860399999999,
"min": 2.26275366496,
"max": 2.76098416296
},
{
"command": "pacquet@main",
"mean": 2.3969290621599995,
"stddev": 0.1462436169310103,
"median": 2.35517898646,
"user": 1.23573674,
"system": 1.29987024,
"min": 2.2463350369599997,
"max": 2.59176328696
},
{
"command": "pnpr@HEAD",
"mean": 1.43183169786,
"stddev": 0.11431749489128394,
"median": 1.4489583704600002,
"user": 1.0985363399999997,
"system": 1.2136025399999997,
"min": 1.2866593109600002,
"max": 1.5880847049600002
},
{
"command": "pnpr@main",
"mean": 1.3849230733600002,
"stddev": 0.09162090035582474,
"median": 1.36826917996,
"user": 1.1207625399999999,
"system": 1.1900275399999996,
"min": 1.2857281679600001,
"max": 1.5496974969600001
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2277642889,
"stddev": 0.006399660763575207,
"median": 0.228168369,
"user": 0.25912562,
"system": 0.56517406,
"min": 0.21868553550000003,
"max": 0.23689851250000002
},
{
"command": "pacquet@main",
"mean": 0.22418987260000006,
"stddev": 0.005446479350657701,
"median": 0.22379804450000002,
"user": 0.26379122,
"system": 0.56559556,
"min": 0.21359189950000002,
"max": 0.2316824395
},
{
"command": "pnpr@HEAD",
"mean": 0.24440900250000003,
"stddev": 0.01232879096947599,
"median": 0.242660796,
"user": 0.26473902,
"system": 0.57020836,
"min": 0.22660350250000003,
"max": 0.2754698425
},
{
"command": "pnpr@main",
"mean": 0.24337088190000006,
"stddev": 0.005927188959309288,
"median": 0.24098022800000002,
"user": 0.26522651999999997,
"system": 0.58108886,
"min": 0.23765640350000003,
"max": 0.2566666565
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.014804780614251502,
"stddev": 0.003557986694697324,
"median": 0.01424344674,
"user": 0.007684766227544911,
"system": 0.008560332934131732,
"min": 0.009432505740000001,
"max": 0.02485212674
},
{
"command": "pacquet@main",
"mean": 0.011170409784247786,
"stddev": 0.0017466749664945876,
"median": 0.010711499740000002,
"user": 0.005902274867256641,
"system": 0.006431641858407077,
"min": 0.008783122740000001,
"max": 0.01683111374
},
{
"command": "pnpr@HEAD",
"mean": 0.010964900950116726,
"stddev": 0.0017863847439614476,
"median": 0.01056372474,
"user": 0.005763577431906614,
"system": 0.006325255097276267,
"min": 0.008324994740000001,
"max": 0.01799175674
},
{
"command": "pnpr@main",
"mean": 0.011239631179688726,
"stddev": 0.001803885719580031,
"median": 0.010611065740000002,
"user": 0.006113199999999999,
"system": 0.006297338910505836,
"min": 0.00889904874,
"max": 0.01799424474
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.008227833468571434,
"stddev": 0.0004490825656399937,
"median": 0.00819292704,
"user": 0.005305657807308969,
"system": 0.0037470330897009987,
"min": 0.007345685040000001,
"max": 0.011203889040000001
},
{
"command": "pacquet@main",
"mean": 0.008000563668975265,
"stddev": 0.00047531331615533536,
"median": 0.007965610040000001,
"user": 0.0050738515901060065,
"system": 0.0036823238869257958,
"min": 0.007093370040000001,
"max": 0.011630411040000002
},
{
"command": "pnpr@HEAD",
"mean": 0.008175741821818176,
"stddev": 0.0003326776749593422,
"median": 0.008150859040000001,
"user": 0.004835425454545455,
"system": 0.004136027345454547,
"min": 0.007357767040000001,
"max": 0.009580446040000001
},
{
"command": "pnpr@main",
"mean": 0.008213096687940076,
"stddev": 0.0003680767586857052,
"median": 0.008205180040000001,
"user": 0.005001827715355807,
"system": 0.004008545318352059,
"min": 0.007356975040000001,
"max": 0.00964645004
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.53873725014,
"stddev": 0.117844854062612,
"median": 2.4961785245400003,
"user": 2.0447212599999998,
"system": 1.7007805200000004,
"min": 2.4570253815400003,
"max": 2.8328909065400003
},
{
"command": "pacquet@main",
"mean": 2.4751906703400004,
"stddev": 0.047450085748082474,
"median": 2.45710213754,
"user": 1.8886163599999999,
"system": 1.4917929200000002,
"min": 2.43652670254,
"max": 2.58609484154
},
{
"command": "pnpr@HEAD",
"mean": 1.5441223873400003,
"stddev": 0.12017470861220543,
"median": 1.50035302404,
"user": 1.2035783599999996,
"system": 1.25179902,
"min": 1.42157514054,
"max": 1.73954755154
},
{
"command": "pnpr@main",
"mean": 1.5636701057399998,
"stddev": 0.1437570817041988,
"median": 1.55218779504,
"user": 1.2443565599999997,
"system": 1.1493287200000002,
"min": 1.40831335554,
"max": 1.73088431254
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.45334935888,
"stddev": 0.015373898171633173,
"median": 0.45075049118,
"user": 0.6607892399999999,
"system": 0.7398709400000001,
"min": 0.43302499518000004,
"max": 0.48700073318000003
},
{
"command": "pacquet@main",
"mean": 0.5556244595800001,
"stddev": 0.12894907952761106,
"median": 0.47849209618,
"user": 0.8103627399999999,
"system": 0.9243452399999998,
"min": 0.41851711618000004,
"max": 0.72863489018
},
{
"command": "pnpr@HEAD",
"mean": 0.29002121068,
"stddev": 0.009274815870300117,
"median": 0.29203080068,
"user": 0.24489223999999998,
"system": 0.58573934,
"min": 0.27404774518,
"max": 0.30566921318
},
{
"command": "pnpr@main",
"mean": 0.29640494688,
"stddev": 0.007249330874251531,
"median": 0.29849741368000005,
"user": 0.25259054,
"system": 0.58673424,
"min": 0.28296570518,
"max": 0.30375821718
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.6383497090999999,
"stddev": 0.02699422607064524,
"median": 1.6364544134,
"user": 0.9216158999999999,
"system": 0.92275338,
"min": 1.5999673723999999,
"max": 1.6891322174
},
{
"command": "pacquet@main",
"mean": 1.6886927591999998,
"stddev": 0.09627251969952329,
"median": 1.6572610558999998,
"user": 1.0223506,
"system": 0.9654412800000001,
"min": 1.6323602503999999,
"max": 1.9552464564
},
{
"command": "pnpr@HEAD",
"mean": 0.3120386365,
"stddev": 0.011051720323446963,
"median": 0.3092195399,
"user": 0.2577104,
"system": 0.6134767799999999,
"min": 0.3000821644,
"max": 0.3334644324
},
{
"command": "pnpr@main",
"mean": 0.2810683696,
"stddev": 0.011659522537017677,
"median": 0.2804970579,
"user": 0.2267258,
"system": 0.51718728,
"min": 0.2677327174,
"max": 0.2999154904
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.30539619281999997,
"stddev": 0.026323098981547118,
"median": 0.30596821442,
"user": 0.30696968,
"system": 0.11707969999999998,
"min": 0.27253762042,
"max": 0.34796020642000003
},
{
"command": "pacquet@main",
"mean": 0.26574340122000006,
"stddev": 0.04388158062726885,
"median": 0.27299760042,
"user": 0.24768777999999997,
"system": 0.10653199999999999,
"min": 0.20555606542000002,
"max": 0.31531590542000004
},
{
"command": "pnpr@HEAD",
"mean": 0.09182245400064515,
"stddev": 0.0025860836170373126,
"median": 0.09130142542000001,
"user": 0.032892080000000004,
"system": 0.015615977419354839,
"min": 0.08706026042000001,
"max": 0.09649035142000001
},
{
"command": "pnpr@main",
"mean": 0.0924089628716129,
"stddev": 0.001952418856100569,
"median": 0.09223086242,
"user": 0.033496563870967735,
"system": 0.015527816129032255,
"min": 0.08926272142000001,
"max": 0.09950132342000001
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2155161144311111,
"stddev": 0.009481337481658764,
"median": 0.21664956032000002,
"user": 0.2101115688888889,
"system": 0.057041864444444444,
"min": 0.20565884432,
"max": 0.23542304432
},
{
"command": "pacquet@main",
"mean": 0.22345767387555554,
"stddev": 0.015426500560679832,
"median": 0.22475134532000002,
"user": 0.21231379111111115,
"system": 0.05565753111111111,
"min": 0.20283425032,
"max": 0.25681444232
},
{
"command": "pnpm@HEAD",
"mean": 3.4308519372088893,
"stddev": 0.11230277302174077,
"median": 3.39060939032,
"user": 4.873940902222222,
"system": 0.44314541999999996,
"min": 3.32777698132,
"max": 3.63716793732
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.28535775122,
"stddev": 0.09960930325453086,
"median": 0.21870993122000001,
"user": 0.2257215999999999,
"system": 0.10323374,
"min": 0.20761339122000003,
"max": 0.47179172222
},
{
"command": "pacquet@main",
"mean": 0.21424886307714286,
"stddev": 0.005211440497382006,
"median": 0.21314984122000002,
"user": 0.15837645714285714,
"system": 0.08992689714285713,
"min": 0.20809207122,
"max": 0.22548293222000002
}
]
}Scenario: Isolated linker: injected workspace repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.10530520846820512,
"stddev": 0.02857313902795691,
"median": 0.10810293034,
"user": 0.04025771897435898,
"system": 0.0726451687179487,
"min": 0.07109680934,
"max": 0.15581853734
},
{
"command": "pacquet@main",
"mean": 0.09473585473130433,
"stddev": 0.03213405947578513,
"median": 0.07388609834,
"user": 0.03900314260869565,
"system": 0.06256174173913044,
"min": 0.06884109734,
"max": 0.14942157334
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.462459256600001,
"stddev": 0.16070505822007095,
"median": 4.402018411,
"user": 1.4807875999999998,
"system": 1.5499162,
"min": 4.352802299,
"max": 4.8231934160000005
},
{
"command": "pacquet@main",
"mean": 4.4460852332,
"stddev": 0.10889805853365071,
"median": 4.426493206,
"user": 1.4437479999999998,
"system": 1.4102514999999998,
"min": 4.341128833,
"max": 4.651282542000001
},
{
"command": "pnpr@HEAD",
"mean": 3.4856107302,
"stddev": 0.059439253318906114,
"median": 3.483944255,
"user": 1.3565608999999998,
"system": 1.3157086,
"min": 3.409684563,
"max": 3.575173198
},
{
"command": "pnpr@main",
"mean": 3.5872114877000003,
"stddev": 0.14759577997052992,
"median": 3.578187605,
"user": 1.3768279999999997,
"system": 1.3623591999999998,
"min": 3.4137365469999996,
"max": 3.8074687189999996
}
]
}Scenario: GVS linker: fresh restore, hot cache + hot storeSame install as the isolated fresh-restore hot/hot scenario, into the shared virtual store, the layout pnpm 12 installs into by default. Scenarios run on separate machines, so compare main and branch within each table.
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.14871267979764702,
"stddev": 0.003933917454715671,
"median": 0.14912327768,
"user": 0.18132153764705883,
"system": 0.18407521411764707,
"min": 0.14236846768,
"max": 0.15790344168
},
{
"command": "pacquet@main",
"mean": 0.14561865273882352,
"stddev": 0.003971268893857678,
"median": 0.14568893168,
"user": 0.18326253764705877,
"system": 0.18206468470588236,
"min": 0.13873533268,
"max": 0.15329775468
},
{
"command": "pnpr@HEAD",
"mean": 0.1574650116175,
"stddev": 0.002026213164227642,
"median": 0.15754843468,
"user": 0.1854746075,
"system": 0.17909567000000004,
"min": 0.15434061568,
"max": 0.16086962468
},
{
"command": "pnpr@main",
"mean": 0.20664970993,
"stddev": 0.05832684019988891,
"median": 0.16482388067999998,
"user": 0.24360873249999995,
"system": 0.21885554499999998,
"min": 0.15912557268,
"max": 0.30300994668000003
}
]
}Scenario: Store only: unlocked direct deps, cold cache + hot storeStore-only install (
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.1688537904399998,
"stddev": 0.029391595907444022,
"median": 1.1691231686399999,
"user": 0.5802435599999999,
"system": 0.21705158,
"min": 1.1246125516399998,
"max": 1.2228214416399998
},
{
"command": "pacquet@main",
"mean": 1.1484003109399998,
"stddev": 0.019791847527787468,
"median": 1.15239751264,
"user": 0.5591081599999999,
"system": 0.20641318000000003,
"min": 1.11781428864,
"max": 1.17312731264
}
]
} |
7c290ff to
aa0ed44
Compare
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Join the exchange endpoint relative to the normalized registry URL in both CLIs, preserving path prefixes with or without a trailing slash. Add regression coverage for publishing and dist-tag operations. Update documentation and add a changeset. Fixes pnpm/tasks#124 Co-authored-by: Amp <[email protected]>
Revert the unrelated `@pnpm/exe` packageManagerDependencies entry that a local install added to pnpm-lock.yaml. Remove the docs sentences: they describe the expected URL handling rather than a setting or behavior a user acts on. Reword the changeset around what users see. Co-Authored-By: Claude Opus 5.5 <[email protected]>
aa0ed44 to
d842f1a
Compare
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
Code review by qodo was updated up to the latest commit d842f1a |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
The visibility request that decides automatic provenance joined an absolute path onto the registry URL, so a path-prefixed registry got the exchanged OIDC token sent to the host root. Join it relative to the normalized registry URL in both CLIs, as the token exchange now does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
Code review by qodo was updated up to the latest commit 05a2b07 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Review-and-fix pass is done. Head is 05a2b07. Changes pushed on top of the original commit:
Status:
Nothing else remains within this PR's scope. Written by an agent (Claude Code, claude-opus-5-5). |
|
Congrats on merging your first pull request! 🎉🎉🎉 |
Summary
Join the exchange endpoint relative to the normalized registry URL in both CLIs, preserving path prefixes with or without a trailing slash. Fixes pnpm/tasks#124
Squash Commit Body
Checklist
already linked to it solves it.
are implemented in every affected version.
pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit