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 ignored due to path filters (1)
📒 Files selected for processing (4)
📝 WalkthroughWalkthroughNAPI install mode now disables the optimistic repeat-install fast path, ensuring changed caller-supplied in-memory manifests are processed. A regression test covers repeated installs, and a patch changeset plus test dependency support the fix. ChangesNAPI repeat-install handling
Estimated code review effort: 2 (Simple) | ~10 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 |
Confidence Score: 5/5The PR appears safe to merge, with the changed in-memory manifests correctly flowing through existing freshness and resolution logic. The NAPI install mode now bypasses both optimistic shortcuts, downstream freshness checks consume the caller-supplied manifest overrides, rebuild paths remain independently excluded from those shortcuts, and the regression test exercises the intended repeat-install behavior. Reviews (1): Last reviewed commit: "fix(napi): respect in-memory manifest ch..." | Re-trigger Greptile |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13488 +/- ##
==========================================
+ Coverage 87.76% 87.88% +0.11%
==========================================
Files 549 549
Lines 95452 95455 +3
==========================================
+ Hits 83778 83886 +108
+ Misses 11674 11569 -105 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Micro-Benchmark ResultsLinux |
PR Summary by QodoFix NAPI repeat installs to respect in-memory manifest changes
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
24 rules 1. Overbroad fast-path disable
|
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.6278164299799998,
"stddev": 0.1426492633197849,
"median": 2.62181625788,
"user": 1.78133486,
"system": 1.4126015799999998,
"min": 2.4330025168800002,
"max": 2.83821898888,
"times": [
2.4577467468800003,
2.4330025168800002,
2.59904107788,
2.83821898888,
2.52173310388,
2.5422245338800002,
2.76001080088,
2.8089885748800003,
2.64459143788,
2.6726065178800003
]
},
{
"command": "pacquet@main",
"mean": 2.5498895682800002,
"stddev": 0.1449652001719302,
"median": 2.50946013038,
"user": 1.8238563600000002,
"system": 1.41885138,
"min": 2.36625849788,
"max": 2.7441071638800003,
"times": [
2.49743513588,
2.36625849788,
2.7441071638800003,
2.7328618058800003,
2.6714510428800002,
2.45500767888,
2.68238294088,
2.37956900288,
2.44833728888,
2.5214851248800003
]
},
{
"command": "pnpr@HEAD",
"mean": 1.59626194788,
"stddev": 0.12338392617739953,
"median": 1.6344032778800002,
"user": 1.2667945600000003,
"system": 1.3071914799999997,
"min": 1.3951411818800001,
"max": 1.7389796458800002,
"times": [
1.3951411818800001,
1.6762804288800002,
1.73302680688,
1.7389796458800002,
1.61701253788,
1.4320500438800001,
1.6517940178800001,
1.4723108748800002,
1.6666692048800003,
1.57935473588
]
},
{
"command": "pnpr@main",
"mean": 1.5545856369800002,
"stddev": 0.12097785415562708,
"median": 1.5219606703800002,
"user": 1.23163996,
"system": 1.26046518,
"min": 1.41469496688,
"max": 1.74459710088,
"times": [
1.41469496688,
1.74459710088,
1.50609261588,
1.6897685508800002,
1.4386884638800002,
1.47787487388,
1.5654923148800002,
1.7154177818800003,
1.4554009758800002,
1.5378287248800002
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.28657725118000005,
"stddev": 0.0063057560025186424,
"median": 0.28459743568000007,
"user": 0.22972969999999998,
"system": 0.5764508599999999,
"min": 0.27942558918000004,
"max": 0.30168456218,
"times": [
0.29129345918000005,
0.30168456218,
0.28845087318,
0.28712802518,
0.28353006818000004,
0.28498608618000004,
0.27942558918000004,
0.28146407218,
0.28420878518000003,
0.28360099118000004
]
},
{
"command": "pacquet@main",
"mean": 0.27670766658,
"stddev": 0.009788697081450545,
"median": 0.27414006368,
"user": 0.2232317,
"system": 0.55722286,
"min": 0.26772574418,
"max": 0.29479720918,
"times": [
0.26898610418,
0.26772574418,
0.27572375518000003,
0.29479720918,
0.27505270318,
0.26923714618,
0.26787033518000003,
0.27322742418,
0.29067429118000004,
0.28378195318000005
]
},
{
"command": "pnpr@HEAD",
"mean": 0.29975353798,
"stddev": 0.007821788321352292,
"median": 0.29897358018000003,
"user": 0.25703789999999993,
"system": 0.56293346,
"min": 0.28501611518000003,
"max": 0.31094610218,
"times": [
0.29453274118,
0.30136391218,
0.29601064018,
0.30032857418000003,
0.30777002618000004,
0.29761858618000003,
0.30850435718,
0.29544432518,
0.28501611518000003,
0.31094610218
]
},
{
"command": "pnpr@main",
"mean": 0.28945220768,
"stddev": 0.012260014015713111,
"median": 0.29020149868,
"user": 0.24036559999999998,
"system": 0.55067886,
"min": 0.26290469218,
"max": 0.31072218018000003,
"times": [
0.28404574918000003,
0.28364746018000003,
0.26290469218,
0.29102128418,
0.29354867818,
0.29886637318000003,
0.28674993618,
0.31072218018000003,
0.28938171318,
0.29363401018
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.8636425490200006,
"stddev": 0.03381756360710606,
"median": 2.86874816152,
"user": 1.9247815,
"system": 1.43925964,
"min": 2.79248262552,
"max": 2.89999139752,
"times": [
2.87422962752,
2.8985471475200004,
2.8531499685200004,
2.85377104352,
2.89701510852,
2.8739742605200003,
2.82974224852,
2.89999139752,
2.8635220625200004,
2.79248262552
]
},
{
"command": "pacquet@main",
"mean": 2.88455555122,
"stddev": 0.048451205040624716,
"median": 2.8793087075200003,
"user": 1.9792855999999996,
"system": 1.43363364,
"min": 2.8261990695200003,
"max": 2.9781095045200003,
"times": [
2.8763898565200003,
2.8261990695200003,
2.8550069495200003,
2.9781095045200003,
2.8822275585200003,
2.8610753405200002,
2.8881524885200003,
2.95083034552,
2.83057855952,
2.89698583952
]
},
{
"command": "pnpr@HEAD",
"mean": 1.61437788892,
"stddev": 0.17698114774678325,
"median": 1.51410772802,
"user": 1.151193,
"system": 1.2468900399999998,
"min": 1.44087661652,
"max": 1.8583607815199998,
"times": [
1.53076464052,
1.48940055652,
1.84024446852,
1.8583607815199998,
1.49745081552,
1.69935105652,
1.44087661652,
1.84928370952,
1.48157770352,
1.45646854052
]
},
{
"command": "pnpr@main",
"mean": 1.63413023942,
"stddev": 0.17521686822086713,
"median": 1.62200868452,
"user": 1.1050271999999999,
"system": 1.26395104,
"min": 1.44492371352,
"max": 1.87910374652,
"times": [
1.4567980105199998,
1.59861629152,
1.64540107752,
1.8501854175199999,
1.75277560852,
1.44492371352,
1.45505890752,
1.79473583352,
1.4637037875199999,
1.87910374652
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6707313086,
"stddev": 0.021597658779456633,
"median": 0.6662633393,
"user": 0.7972902600000001,
"system": 0.7409402399999999,
"min": 0.6409008793000001,
"max": 0.7056687173,
"times": [
0.6508904183,
0.6689892493,
0.6510254123,
0.6409008793000001,
0.6610358623,
0.7001967493000001,
0.6635374293,
0.6802921793000001,
0.6847761893000001,
0.7056687173
]
},
{
"command": "pacquet@main",
"mean": 0.6379709860000001,
"stddev": 0.01984668427164648,
"median": 0.6338526998,
"user": 0.78564706,
"system": 0.68385574,
"min": 0.6158612963000001,
"max": 0.6640730063,
"times": [
0.6169178653,
0.6158612963000001,
0.6619017513000001,
0.6640730063,
0.6561484333000001,
0.6539933973000001,
0.6238807583,
0.6215493813,
0.6215593293,
0.6438246413000001
]
},
{
"command": "pnpr@HEAD",
"mean": 0.31193756990000004,
"stddev": 0.010103513390517899,
"median": 0.31104067280000003,
"user": 0.21478556,
"system": 0.5305118400000001,
"min": 0.3019974693,
"max": 0.3375533423,
"times": [
0.3136013473,
0.3153468123,
0.3060301483,
0.3019974693,
0.3375533423,
0.3054243383,
0.30403709830000003,
0.3133037973,
0.3092868673,
0.3127944783
]
},
{
"command": "pnpr@main",
"mean": 0.3125862898,
"stddev": 0.008281375336024637,
"median": 0.30854998629999997,
"user": 0.22181756,
"system": 0.5198843400000001,
"min": 0.30295298730000003,
"max": 0.3250839773,
"times": [
0.30528199030000003,
0.3057724733,
0.3077771463,
0.3087598163,
0.3171589923,
0.3250839773,
0.3228131123,
0.3083401563,
0.3219222463,
0.30295298730000003
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.95022460344,
"stddev": 0.027644800603389745,
"median": 1.95179004084,
"user": 1.0190901399999999,
"system": 0.7857288199999999,
"min": 1.89463263484,
"max": 1.98123714584,
"times": [
1.96180351784,
1.94177656384,
1.92905598584,
1.9337650878400001,
1.96904836684,
1.89463263484,
1.93828081584,
1.98123714584,
1.98091464884,
1.97173126684
]
},
{
"command": "pacquet@main",
"mean": 1.9455311434400002,
"stddev": 0.03484893540008934,
"median": 1.93983206484,
"user": 0.99859904,
"system": 0.7517700199999999,
"min": 1.90723082384,
"max": 2.00853820384,
"times": [
1.9894088538399999,
1.93550022284,
1.90723082384,
1.9085315308400002,
1.96985436384,
1.92142197984,
1.9164158178400001,
1.95424573084,
2.00853820384,
1.9441639068399998
]
},
{
"command": "pnpr@HEAD",
"mean": 0.31264482674000005,
"stddev": 0.009570583923176956,
"median": 0.31364100134,
"user": 0.20522723999999998,
"system": 0.53002782,
"min": 0.29991191484,
"max": 0.33272246084,
"times": [
0.31004059584000004,
0.33272246084,
0.31777784684000004,
0.31738145084,
0.30188434684000004,
0.31386243784,
0.29991191484,
0.30386611584,
0.31558153284,
0.31341956484
]
},
{
"command": "pnpr@main",
"mean": 0.31048108494000004,
"stddev": 0.006842898136435598,
"median": 0.30840018934,
"user": 0.21446983999999997,
"system": 0.53451882,
"min": 0.30297155284000005,
"max": 0.32236459884,
"times": [
0.32236459884,
0.32200993084,
0.30838261584000004,
0.30571700884,
0.31166443184000003,
0.30297155284000005,
0.30604761184,
0.31258907184,
0.30464626384000004,
0.30841776284
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.44451122614000005,
"stddev": 0.03919786313886473,
"median": 0.43972516524000005,
"user": 0.43621635999999997,
"system": 0.06879832,
"min": 0.36762330224000006,
"max": 0.50458469624,
"times": [
0.36762330224000006,
0.4480969912400001,
0.48333593024000004,
0.44242297924000007,
0.50458469624,
0.48507555324000007,
0.43702735124000003,
0.42863606824000006,
0.42479932224000005,
0.42351006724000007
]
},
{
"command": "pacquet@main",
"mean": 0.4046694055400001,
"stddev": 0.02646909065458799,
"median": 0.4085849302400001,
"user": 0.39614755999999995,
"system": 0.06086221999999999,
"min": 0.35105786524000004,
"max": 0.44519627524000005,
"times": [
0.35105786524000004,
0.38278076124000004,
0.38685453424000005,
0.4039563292400001,
0.41384823424000006,
0.44519627524000005,
0.41321353124000004,
0.40077275124000006,
0.4285325132400001,
0.42048126024000004
]
},
{
"command": "pnpr@HEAD",
"mean": 0.09354042865379313,
"stddev": 0.0028328720893778005,
"median": 0.09249584924000001,
"user": 0.024048284137931038,
"system": 0.011541040689655169,
"min": 0.08818540124,
"max": 0.10142095524,
"times": [
0.09721790024,
0.09499138224,
0.09291220124,
0.09457884624,
0.09720136924,
0.09656663624,
0.09742848624,
0.09394275024000001,
0.09797044524000001,
0.09154406824,
0.09075610724000001,
0.10142095524,
0.09329572324,
0.09244366124,
0.09233661924,
0.09193742824000001,
0.09061101424000001,
0.09132727024000001,
0.09212367924,
0.09222624224,
0.09124913324,
0.09249584924000001,
0.09191629824,
0.09104554024,
0.09575083124,
0.08818540124,
0.09418915424,
0.09139325524,
0.09361418224000001
]
},
{
"command": "pnpr@main",
"mean": 0.09266063678838711,
"stddev": 0.0026469523163262657,
"median": 0.09178107424000001,
"user": 0.02281865677419355,
"system": 0.011713392903225804,
"min": 0.08966079624,
"max": 0.10017443124,
"times": [
0.09228480124,
0.08975582624,
0.09137855724,
0.09065897324000001,
0.09025839124,
0.09265878524,
0.09010498124,
0.09168460224000001,
0.10017443124,
0.08966079624,
0.09093916024000001,
0.09385619724000001,
0.09051175724,
0.09218710824000001,
0.09162187524000001,
0.09208285124,
0.08985688624,
0.09178107424000001,
0.09598702524000001,
0.09652817224,
0.09515062224000001,
0.09144003324000001,
0.09296746624,
0.09115588824000001,
0.09174574824000001,
0.09218714824,
0.09553264124000001,
0.09360610724,
0.09951686424,
0.09413198624,
0.09107298224
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.64807544202,
"stddev": 0.1428004282724939,
"median": 4.686675043819999,
"user": 2.0697967000000004,
"system": 1.51980784,
"min": 4.46383933832,
"max": 4.919214558319999,
"times": [
4.52254375032,
4.919214558319999,
4.68917786932,
4.69291191632,
4.550297832319999,
4.68417221832,
4.75104985632,
4.46383933832,
4.7287093013199994,
4.47883777932
]
},
{
"command": "pacquet@main",
"mean": 4.570141945319999,
"stddev": 0.07429404038147909,
"median": 4.5484312633199995,
"user": 2.0534545,
"system": 1.50671354,
"min": 4.489498462319999,
"max": 4.741382155319999,
"times": [
4.741382155319999,
4.62399589932,
4.55117792932,
4.6165149333199995,
4.56897176932,
4.500965583319999,
4.489498462319999,
4.545684597319999,
4.525063225319999,
4.53816489832
]
},
{
"command": "pnpr@HEAD",
"mean": 3.55943800722,
"stddev": 0.06741959769584202,
"median": 3.56183408582,
"user": 1.3455783999999997,
"system": 1.30979364,
"min": 3.45518734532,
"max": 3.66067507832,
"times": [
3.52569363332,
3.45518734532,
3.58988112032,
3.50128312032,
3.57057780832,
3.55309036332,
3.5787176943200003,
3.66023449932,
3.49903940932,
3.66067507832
]
},
{
"command": "pnpr@main",
"mean": 3.5680924708200004,
"stddev": 0.10716956940869002,
"median": 3.53024946282,
"user": 1.4127309000000001,
"system": 1.37643664,
"min": 3.46482859932,
"max": 3.82838501132,
"times": [
3.54127879732,
3.51865789032,
3.46482859932,
3.63112087532,
3.60630581032,
3.49837288932,
3.59594077532,
3.51922012832,
3.82838501132,
3.47681393132
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13488 |
| 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,440.88 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 299.91 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 302.00 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 88.19 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,395.14 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,455.19 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 285.02 ms |
Summary
This is specific to the NAPI embedding boundary. The TypeScript CLI reads its authoritative manifests from disk, so no corresponding TypeScript change is needed.
Squash Commit Body
Validation
just ready(7,458 tests passed; 4 skipped)commitlintandtsgoare not installed; no TypeScript files are changed.Checklist
@pnpm/napi.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
package.json.