Repository navigation
feat(install): add loaded linker with GVS exclusions - #16482
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (3)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (2)
📒 Files selected for processing (24)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughAdds the experimental ChangesLoaded linker
Priority: ➖ Normal Estimated code review effort: 5 (Critical) | ~90 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant CLI as pnpm CLI
participant Installer as CAS installer
participant Manifest as Store manifest
participant Loader as Node.js loader
participant Store as CAS store
CLI->>Installer: install with nodeLinker loaded
Installer->>Manifest: write package map and loader
CLI->>Loader: preload through NODE_OPTIONS
Loader->>Manifest: resolve package and dependency metadata
Loader->>Store: read and verify CAS file
Store-->>Loader: return module bytes
Loader-->>CLI: execute resolved module
Suggested labels: Suggested reviewers: Merge Risk: ⚪ Minimal · up to The loaded linker is opt-in and experimental, and no outstanding defects were found in the reviewed changes. Normal checks and the author's reported tests apply before merge. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to This experimental mode changes how dependency code is selected and loaded across application processes. Content verification and build-approval controls provide important safeguards, but interrupted installation can leave inconsistent runnable outputs. Recovery and concurrent-operation coverage remain incomplete. Retained concerns
Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
✨ 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 |
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-workspace scenario compares 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.43942338384,
"stddev": 0.1166422533117999,
"median": 2.45593895614,
"user": 1.454647,
"system": 1.47093222,
"min": 2.30513717464,
"max": 2.63556488964
},
{
"command": "pacquet@main",
"mean": 2.4283063996399994,
"stddev": 0.16172982798622332,
"median": 2.3400330181399998,
"user": 1.4698362,
"system": 1.47140982,
"min": 2.2708677646399997,
"max": 2.66845676964
},
{
"command": "pnpr@HEAD",
"mean": 1.4028084752399999,
"stddev": 0.1185512168432622,
"median": 1.35792584014,
"user": 1.3638312,
"system": 1.28596022,
"min": 1.29390736864,
"max": 1.6699200916399999
},
{
"command": "pnpr@main",
"mean": 1.41050224034,
"stddev": 0.10985825293180397,
"median": 1.38437116564,
"user": 1.2458421999999998,
"system": 1.2750925199999998,
"min": 1.28200054164,
"max": 1.62972119564
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.23204284712,
"stddev": 0.008574555398638203,
"median": 0.22891208282,
"user": 0.267937,
"system": 0.5516139599999998,
"min": 0.22233897282,
"max": 0.25187825582
},
{
"command": "pacquet@main",
"mean": 0.23011503332000002,
"stddev": 0.008930299318189578,
"median": 0.22824738032,
"user": 0.2678616,
"system": 0.5609219599999999,
"min": 0.21786147582,
"max": 0.24435403382
},
{
"command": "pnpr@HEAD",
"mean": 0.32260702412,
"stddev": 0.08932824592110761,
"median": 0.31431035582,
"user": 0.36731389999999997,
"system": 0.6804211599999999,
"min": 0.22051056482,
"max": 0.43972774582
},
{
"command": "pnpr@main",
"mean": 0.26183420122,
"stddev": 0.016804550627970847,
"median": 0.26018377032,
"user": 0.29054129999999995,
"system": 0.5661569599999999,
"min": 0.24409962582,
"max": 0.29082234882
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.009810080844502168,
"stddev": 0.00065637721368418,
"median": 0.00975256568,
"user": 0.005846591861471862,
"system": 0.004879828051948051,
"min": 0.00837203368,
"max": 0.013101690680000002
},
{
"command": "pacquet@main",
"mean": 0.009704738855862073,
"stddev": 0.0007752813807388421,
"median": 0.009564186180000002,
"user": 0.005523992413793105,
"system": 0.00504896979310345,
"min": 0.00822118068,
"max": 0.01270237968
},
{
"command": "pnpr@HEAD",
"mean": 0.009844245323678173,
"stddev": 0.0006730527273137896,
"median": 0.00975138168,
"user": 0.005888733026819918,
"system": 0.004754273409961689,
"min": 0.00866626568,
"max": 0.01275274468
},
{
"command": "pnpr@main",
"mean": 0.00944378861750001,
"stddev": 0.000543813885476122,
"median": 0.00934341168,
"user": 0.005899279722222223,
"system": 0.004347567777777777,
"min": 0.008337659680000001,
"max": 0.01196306268
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.009803956127272723,
"stddev": 0.0006551326313927106,
"median": 0.0097200184,
"user": 0.005651823636363635,
"system": 0.0053717376363636325,
"min": 0.0083743179,
"max": 0.0128014619
},
{
"command": "pacquet@main",
"mean": 0.01004978959333333,
"stddev": 0.0007814890870543916,
"median": 0.009913782900000001,
"user": 0.005381344444444445,
"system": 0.0058793208888888865,
"min": 0.0087317179,
"max": 0.013998967900000001
},
{
"command": "pnpr@HEAD",
"mean": 0.009615408010132158,
"stddev": 0.0007267670723543085,
"median": 0.0094324539,
"user": 0.005139363083700437,
"system": 0.005587395594713656,
"min": 0.0083018079,
"max": 0.0126219529
},
{
"command": "pnpr@main",
"mean": 0.008990792149999998,
"stddev": 0.000592307292833252,
"median": 0.0089452114,
"user": 0.005328908934426227,
"system": 0.004565009999999999,
"min": 0.0079555839,
"max": 0.0117928159
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.67441397404,
"stddev": 0.08577500822523874,
"median": 2.66906042434,
"user": 2.40233672,
"system": 1.8388879,
"min": 2.59689036884,
"max": 2.89337441584
},
{
"command": "pacquet@main",
"mean": 2.8942193089400003,
"stddev": 0.06899791155993233,
"median": 2.8754673023399997,
"user": 3.01555572,
"system": 2.2397587999999997,
"min": 2.79822159284,
"max": 3.00439213184
},
{
"command": "pnpr@HEAD",
"mean": 1.7118782430400004,
"stddev": 0.06712933804397274,
"median": 1.7356508013400003,
"user": 1.8359594200000005,
"system": 1.9365625000000002,
"min": 1.5990561948400002,
"max": 1.8089876498400002
},
{
"command": "pnpr@main",
"mean": 1.6234608809400002,
"stddev": 0.0962925212026404,
"median": 1.58593210584,
"user": 1.7024064200000002,
"system": 1.7378156999999999,
"min": 1.53312825284,
"max": 1.8295165688400001
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.45771294244000005,
"stddev": 0.02069306405506403,
"median": 0.4557042226400001,
"user": 0.6326557999999999,
"system": 0.69651954,
"min": 0.42801959464000006,
"max": 0.48938823964000006
},
{
"command": "pacquet@main",
"mean": 0.46937277194,
"stddev": 0.021706778308828674,
"median": 0.4747992911400001,
"user": 0.6432214999999999,
"system": 0.74016044,
"min": 0.43036099664000005,
"max": 0.49955267764000005
},
{
"command": "pnpr@HEAD",
"mean": 0.3486933919400001,
"stddev": 0.04736445950216572,
"median": 0.35066252514000007,
"user": 0.3234797,
"system": 0.67957894,
"min": 0.28533026464000005,
"max": 0.4145954666400001
},
{
"command": "pnpr@main",
"mean": 0.28775759614000007,
"stddev": 0.007037040801066906,
"median": 0.28794128214000003,
"user": 0.25224149999999995,
"system": 0.5543579399999999,
"min": 0.27806349164000005,
"max": 0.29993579464000003
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.7687202593999998,
"stddev": 0.039560852779474236,
"median": 1.7659724731,
"user": 1.2007472200000002,
"system": 1.14179336,
"min": 1.6904605710999998,
"max": 1.8381351731
},
{
"command": "pacquet@main",
"mean": 1.7123906077000002,
"stddev": 0.044386931400673,
"median": 1.6988294841,
"user": 1.1293713200000002,
"system": 1.11258726,
"min": 1.6529774911,
"max": 1.7954334990999998
},
{
"command": "pnpr@HEAD",
"mean": 0.3368706751,
"stddev": 0.016224284584762876,
"median": 0.34178237310000004,
"user": 0.31934922,
"system": 0.6292236600000001,
"min": 0.3064722691,
"max": 0.35922381010000004
},
{
"command": "pnpr@main",
"mean": 0.3523729791,
"stddev": 0.046961302760950493,
"median": 0.33241380610000004,
"user": 0.31463991999999996,
"system": 0.6649990599999999,
"min": 0.31675720910000005,
"max": 0.4697734351000001
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.22049795112,
"stddev": 0.018554428883107005,
"median": 0.22275482712,
"user": 0.20956408461538462,
"system": 0.08287642461538464,
"min": 0.19134279712000002,
"max": 0.25498863912
},
{
"command": "pacquet@main",
"mean": 0.22753976278666668,
"stddev": 0.018753134939437678,
"median": 0.22357717762,
"user": 0.19620944999999998,
"system": 0.07833920666666666,
"min": 0.19850907012000002,
"max": 0.25976131912
},
{
"command": "pnpr@HEAD",
"mean": 0.09336916644258066,
"stddev": 0.0032447100094279654,
"median": 0.09246945812,
"user": 0.033341474193548395,
"system": 0.015621523870967735,
"min": 0.08660047812,
"max": 0.10125059112
},
{
"command": "pnpr@main",
"mean": 0.09360303128129034,
"stddev": 0.002260753996739939,
"median": 0.09311105812,
"user": 0.035854474193548376,
"system": 0.014696943225806452,
"min": 0.09044916712,
"max": 0.09743364212
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.22812177510444442,
"stddev": 0.008438175136542674,
"median": 0.22573046666000002,
"user": 0.22089226666666664,
"system": 0.06049044666666666,
"min": 0.21928688866,
"max": 0.24124355866
},
{
"command": "pacquet@main",
"mean": 0.23195351310444445,
"stddev": 0.013292166966845072,
"median": 0.23220772766,
"user": 0.23897893333333334,
"system": 0.04946066888888888,
"min": 0.21368951066,
"max": 0.25155338866
},
{
"command": "pnpm@HEAD",
"mean": 3.512697538326667,
"stddev": 0.3147601639458193,
"median": 3.38684728866,
"user": 5.352790933333333,
"system": 0.38374411333333325,
"min": 3.28807478866,
"max": 4.24430612066
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.20734602696,
"stddev": 0.004574875442622051,
"median": 0.20797909546,
"user": 0.1622379257142857,
"system": 0.08539655714285713,
"min": 0.20023300596000002,
"max": 0.21676314196000002
},
{
"command": "pacquet@main",
"mean": 0.20800432267428576,
"stddev": 0.00985542950530533,
"median": 0.20673423096,
"user": 0.15693471142857143,
"system": 0.08589934285714285,
"min": 0.19628358296,
"max": 0.22651342896
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.53850761128,
"stddev": 0.1549359959557625,
"median": 4.496240394580001,
"user": 1.9175166399999999,
"system": 1.8177506,
"min": 4.38049614308,
"max": 4.84236041008
},
{
"command": "pacquet@main",
"mean": 4.681942113680001,
"stddev": 0.13972573779456937,
"median": 4.66471453958,
"user": 2.31243034,
"system": 2.1273304,
"min": 4.5330814550800005,
"max": 5.00454335908
},
{
"command": "pnpr@HEAD",
"mean": 3.8428249355800004,
"stddev": 0.1570053861086172,
"median": 3.83171523708,
"user": 2.4969825400000003,
"system": 2.1904775,
"min": 3.64457620308,
"max": 4.15241121908
},
{
"command": "pnpr@main",
"mean": 3.7619265823800005,
"stddev": 0.07150085706825553,
"median": 3.75342667458,
"user": 2.44677924,
"system": 2.2056294999999997,
"min": 3.65721646708,
"max": 3.87729214908
}
]
}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.1576770838375,
"stddev": 0.00794180514401061,
"median": 0.15721201540000002,
"user": 0.1968685875,
"system": 0.19021411749999997,
"min": 0.13861914690000002,
"max": 0.16962510290000002
},
{
"command": "pacquet@main",
"mean": 0.14841880365000001,
"stddev": 0.005333081372548648,
"median": 0.1497144199,
"user": 0.1886205875,
"system": 0.17406143,
"min": 0.14033361390000001,
"max": 0.1568974099
},
{
"command": "pnpr@HEAD",
"mean": 0.18852804478235297,
"stddev": 0.024784644614714378,
"median": 0.18781979990000003,
"user": 0.22155678235294116,
"system": 0.21081720941176468,
"min": 0.15018127990000002,
"max": 0.22197759890000002
},
{
"command": "pnpr@main",
"mean": 0.20152184005384616,
"stddev": 0.010048421554404817,
"median": 0.20246520090000003,
"user": 0.24208589999999994,
"system": 0.22373006461538467,
"min": 0.18558082090000003,
"max": 0.21395088290000003
}
]
} |
|
The repository compatibility run does not pass yet. I built an isolated copy from the installed graph: 1,791 package instances, 37,795 files, 659 MiB of CAS blobs. The loader itself was bundled. A filesystem scan confirmed no node_modules directories and no symlinks outside the isolated tree.
Jest reports that the preset is missing. Calling its resolver with The draft PR will include a reproducible manual harness ( This is evidence that the standalone runtime is not sufficient for the pnpm test suite. Native tooling, resolver integration, and filesystem-dependent modules need to be addressed before claiming that compatibility. Written by an agent (Codex, GPT-6). |
|
Selective materialization works for the CLI argument-parser suite: all 51 tests pass with no node_modules directory or symlinks outside the isolated fixture. The experiment materialized 71 of 1,585 registry package instances (656 files, 3.4 MiB). The other 1,514 remain represented by CAS blobs. A second run with a load-hook audit confirmed that 299 modules from 83 package instances actually loaded from CAS during the passing suite. The materialized subset includes Jest's VM support and some dependencies of the tested code, including The reproducible experiment is Written by an agent (Codex, GPT-6). |
|
Tested pinned Vue, Vite, and Svelte repositories on Node 26.10.0 with isolated snapshots and no node_modules directories.
Native Node resolution with the loader successfully resolves both missing packages. The remaining integration problem is the runners' separate package resolution, including Vite's filesystem walk through node_modules directories. The diagnostic uses native config loading and disables result caching so it does not recreate node_modules for cache files. The scripts and exact revisions/commands are documented in pnpm/docs/store-loader.md. These remain separate diagnostic tools; no install-time static analyzer or automatic materialization policy was added. Testing also found a package.json BOM parsing defect, fixed with a shared JSON reader and regression test. All 21 loader/patch regression tests pass locally. The PR remains a draft, and the results do not claim complete repository-suite compatibility. Written by an agent (Codex, GPT-6). |
This comment has been minimized.
This comment has been minimized.
|
Fixed the dependency-status test failure in commit 9991ef2. Its mock used the wall clock for equal lockfile mtimes. When that landed on a whole second, the coarse-timestamp safeguard correctly compared lockfile contents, so the test no longer exercised an unused read. A fixed whole-second timestamp reproduced the CI failure locally; a fixed sub-second timestamp preserves the intended scenario, and all 101 tests in the file pass. No production dependency-status behavior changed. Written by an agent (Codex, GPT-6). |
|
Implemented explicit opt-outs into normal GVS installations, including the complete locked dependency tree and ordinary dependency links. The loader delegates resolution inside these packages to Node. There is no project node_modules directory; GVS and the retained staging installation use their normal layouts. The standalone diagnostic reuses pnpm lockfile utilities and Validation:
Commands and the new manifest field are documented in pnpm/docs/store-loader.md. This remains a standalone runtime and diagnostic, not automatic pnpm install integration. The PR remains a draft as requested. Written by an agent (Codex, GPT-6). |
|
Expanded compatibility testing to Astro, Nuxt, VueUse, and Mermaid in commit e8aa555. The compatibility report now covers all eight tested projects, including the previous pnpm, Vue, Vite, and Svelte probes, with revisions, commands, setup, and failure details.
The failed tool lookups all resolve through Node with the loader. More materialization alone does not teach independent resolvers how to use the manifest. No tests execute in these three GVS failures. Also reran Vue's 445 passing tests with 4 existing skips, Svelte's 200 matching compiler outputs, and all 23 loader/resolver regressions. The diagnostics now support Node's test runner, audit CAS loads across inherited worker preloads, and preserve legacy package.json pnpm settings when staging frozen GVS graphs. Pre-push checks passed. The PR remains a draft as requested. Installer integration and independent tool-resolver support remain outstanding; no automatic materialization policy was added. Written by an agent (Codex, GPT-6). |
|
Tested the next four projects in commit 5267b78. The compatibility report now covers pnpm and eleven external workspaces, with pinned revisions and reproduction commands.
All-CAS startup fails on native Rolldown/Rollup bindings or Vite's direct package.json read. The imports blocking the GVS runs resolve through Node with the loader, including packages already in GVS. NextAuth's hkdf package also imports and derives a key directly from CAS. These are partial results, not complete passing workloads. SvelteKit uses a diagnostic wrapper around its existing config to move Vite's cache outside node_modules. That cache is excluded from the snapshot, and the clean-cache rerun produces the same result. NextAuth needs its normal core build; Rollup plugin-utils needs its normal package build. The harness now preserves package-relative working directories. GVS staging omits unused patch entries from both configuration and the selected lockfile, fixing a frozen-install mismatch caused by NextAuth's unrelated pnpm 9 release-tool patch. Used patches remain intact: pnpm's existing 51-test GVS parser probe still passes. All 23 loader/resolver regression tests and pre-push checks pass. The report also records the unsuccessful larger NextAuth opt-out: selecting the Preact preset exposed conflicting Babel GVS roots for one original package instance, so the diagnostic rejected that mapping before running tests. Keeping the PR as a draft as requested. Automatic installer integration and independent resolver support remain outstanding. Written by an agent (Codex, GPT-6). |
|
Tested the next four workspaces and recorded the pinned revisions, commands, and limitations in the compatibility report.
All copied application trees remain free of node_modules. These are scoped probes, not full repository test passes. The diagnostic now supports Mocha and preserves timeout output and termination details. The 23 loader/resolver regressions and scoped ESLint pass. The PR remains a draft as requested. Independent resolver integration and the installer integration tracked in pnpm/tasks remain outstanding. Written by an agent (Codex, GPT-6). |
|
Tested Qwik, Turborepo, Cycle.js, and ByteMD in commit a816526. The compatibility report now covers pnpm and nineteen external projects, with pinned revisions and reproduction commands.
Turborepo uncovered a real loader defect: CommonJS require('..') was incorrectly classified as a package subpath. The fix handles dot directories within the owning package and retains the package-root escape check. A regression test fails before the fix and passes afterward; all 24 loader/resolver tests and scoped ESLint pass. The diagnostic now supports package-local Jest, reads runner binary entries from package metadata, and rejects incompatible lockfiles explicitly using the existing lockfile reader. No dependency graph was upgraded to force a GVS result. Every copied application remains free of node_modules. Keeping this PR as a draft as requested. Installer integration, independent resolver support, extensionless stored executables, and the documented GVS diagnostic limitations remain outstanding. Written by an agent (Codex, GPT-6). |
|
Tested Prisma, Verdaccio, Logto, and Stimulus Components in commit 970e41c. The compatibility report now covers pnpm and twenty-three external projects, with pinned revisions, reproduction commands, and limits.
Node resolution with the loader finds the imports and workspace tsconfig that block the independent runner lookups. The report distinguishes those lookups from native-binding and filesystem failures during all-CAS startup. The Prisma Node probe disables inherited Git tag signing only in the test process; test sources and assertions are unchanged. These are scoped workloads, not full repository passes. All copied application trees remain free of node_modules. All 24 loader/resolver regressions pass. This batch changes documentation only; no runtime fix was needed. The PR remains a draft as requested. Installer integration and the documented independent resolver limitations remain outstanding. Written by an agent (Codex, GPT-6). |
|
Implemented normal installer integration in de989d4 and rebased onto main. Configure Local validation passed: 14,506 Rust tests (24 skipped), 24 loader tests, the patched-unrs regression, the embedded-bundle consistency check, TypeScript compilation, lint, Rust documentation, Clippy, custom Rust lints, formatting, and spelling. All six CAS CLI tests were rerun successfully after the final test-fixture lint corrections. CI is running on this head. Kept as a draft at the author's request. The next compatibility step is exercising this normal install mode on the external repositories; the existing 23-project report documents the earlier standalone diagnostic harness. Independent resolvers and direct filesystem access remain compatibility limits. Written by an agent (Codex, GPT-6). |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #16482 +/- ##
==========================================
+ Coverage 92.29% 92.31% +0.01%
==========================================
Files 1568 1576 +8
Lines 207972 208719 +747
==========================================
+ Hits 191957 192679 +722
- Misses 16015 16040 +25 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Micro-Benchmark ResultsLinux |
|
Normal installer integration is pushed, with final head The final CI fix routes WASM worker shutdown through the updated thread manager. The previous code reproduced a worker-exit crash locally; all 93 WASM host/runtime tests now pass, including 40 repeated CLI runs. The opt-in mode is configured with Keeping this PR as a draft at the author's request. Further compatibility testing should exercise the new normal install mode; the existing external-project table describes standalone diagnostic probes and remains labeled accordingly. No review findings are outstanding. Written by an agent (Codex, GPT-6). |
|
Implemented the loaded-linker object form in nodeLinker:
type: loaded
excluded:
- vitestThis replaces the unreleased The broader linker-settings and hoisting refactor is recorded separately in pnpm/tasks#72; it is not implemented here. Validation: 7,633 tests passed across the affected Rust crates after rebasing. The final CLI/config selection passed 930 tests, and the config suite passed 827 tests after the lint refactor. CI is green on this head: 68 successful checks and one skipped job. No review findings are outstanding. The rebase retains main's WASM shutdown fix and drops this branch's redundant fix. Keeping the PR as a draft at the author's request while further real-project compatibility testing of the normal installer remains future work. Written by an agent (Codex, GPT-6). |
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.
|
Rebased onto the latest fetched main at 1e5d031 and force-pushed with a lease. The new head is 557598f. Conflict resolutions preserve main's LockfileSetting import and recorded_auto_dedupe behavior together with the loader settings and state-directory handling. The latest verified findings are fixed: importer IDs are validated before loaded bin writes, configured external project anchors remain trusted, and loaded installs require durable registration even with a project-local store. A regression verifies that prune preserves that store's live CAS bin and that blocked registration fails installation. The summary-only pruning finding is also fixed: slot extraction rejects noncanonical components and empty slot prefixes, with a regression for nonexistent roots containing traversal. The patch-package finding is a confirmed external-tool layout limitation. Source inspection and follow-up probe criteria are recorded in pnpm/tasks#64 (comment). The experimental loader does not emulate application fs APIs or supply application node_modules paths. The existing patchedDependencies flow remains included and materializes patched package trees. After rebase, pnpm ready:rust passed all 14,570 tests (28 skipped), workspace checks and Clippy. All 27 loader tests and the patched-unrs regression passed. The final state-settings extraction also passed 142 repeat-install tests. Required push hooks passed. Waiting for CI and the new review round on this head. Written by an agent (Codex, GPT-6). |
|
Code review by qodo was updated up to the latest commit 557598f |
|
The two late review findings about scanning a project-local store and writing loaded-project registration with The repeated prefetch/index work for excluded dependency trees is confirmed and tracked separately in pnpm/tasks#77, with regression and benchmark completion criteria. Reusing a caller-supplied prefetch task requires a shared phase/result contract; simply splitting the snapshot lists does not eliminate the repeat work. That refactor is outside the two correctness fixes in the follow-up PR. Written by an agent (Codex, GPT-6). |
…ies (#16600) Exclude the store from registered-project scans and direct directory walks so GVS entries cannot mark themselves live when the store is inside the project. Skip loaded-project registration for frozen stores, preserving the existing strict registration requirement for writable loaded stores. Document external ownership of frozen-store retention and cover both cases with regressions. Follow-up to #16482.
modifiedAtOrAfter widens whole-second mtimes (mtimeMs % 1000 === 0) by a second. Date.now() lands on an exact second once in a thousand runs, causing tests that derive fake mtimes from Date.now() - 10_000 to report unmodified files as modified. Use recentTimestamp() across the suite instead of fixing individual tests piecemeal (#16385, #16482).
Summary
Adds experimental
nodeLinker: { type: loaded }installation to pnpm v12. Enable it inpnpm-workspace.yaml, optionally list package names innodeLinker.excluded, and use normal install, run, and exec commands. Compatible packages load directly from verified content-addressable store blobs. Selected packages and their complete dependency trees use ordinary global virtual store entries, with their existing graph identities and dependency links.pnpm generates the runtime manifest, embeds and writes the standalone loader, creates JavaScript executable shims, and preloads the loader for scripts and child processes. Store pruning preserves live CAS blobs and materialized GVS trees. Patched packages materialize automatically; packages requiring builds must be selected explicitly, and normal build approval still applies. The default application layout has state and bins under
.pnpm/and creates no application node_modules.Node.js 26.10.0 or later is required. This is opt-in and experimental: direct filesystem access and independent tool resolvers can still require additional materialization or resolver integration. Existing node_modules directories must be removed when switching modes. CAS repeat installs regenerate the runtime manifest; the optimistic installation shortcut is disabled. No static analyzer is included.
Related to pnpm/tasks#64. Future linker-specific settings and nested hoisting configuration are tracked separately in pnpm/tasks#72. Only the loaded-linker object form is included here. This change extends the existing standalone runtime and diagnostics with normal installer integration. The runtime preserves ESM/CommonJS/JSON loading, peer contexts, exports/imports, aliases, and workspace mappings, using enhanced-resolve through a private filesystem view. Application fs APIs are unchanged.
The repository's unrs-resolver patch adds opt-in native Node resolution through
UNRS_RESOLVER_NODE_RESOLUTION=1, retaining the native resolver otherwise. It forwards conditional exports without emulating unrs aliases, tsconfig paths, or custom extensions.Validation after rebasing onto main at
1e5d031de93fb85997f8bcc018c617c1d5adac7a:pnpm ready:rustpassed all 14,570 Rust tests (28 skipped), workspace checks and Clippy. All 27 loader integration tests and the patched-unrs regression passed. The final state-settings extraction passed 142 repeat-install tests. Required push hooks passed. CI and review are running on557598fb7e507ebfd58afc6cb05556ce3d609569.CLI coverage includes production-only installs, nested bins, child processes, workspaces and aliases, frozen reinstalls, opt-out changes, builds, removal, store pruning, workspace-state validation without reinstalling, missing runtime repair, and hook changes to linker defaults. Configuration tests cover object parsing, invalid fields, JSON environment values, source replacement, resets, and resolved-settings round trips. The embedded runtime is checked against its source bundle.
Review fixes validate importer and blob paths, publish the installation manifest atomically, constrain stored entry points to their selected package root, discover directories.bin entries from virtual files, and cache selected graphs and verified metadata. Loaded installation requires durable ownership registration, including project-local stores, so pruning preserves its live blobs. Up-to-date state writes and timestamp probes use the configured installation directory. Pruning rejects noncanonical loader slot paths. The separate pnpm/update action cleanup is tracked in pnpm/tasks#75. Patch-package's application-layout limitation is recorded in pnpm/tasks#64 (comment).
External repository compatibility results and reproduction notes are recorded in the implementation task. They were collected with the standalone diagnostic harness, not the integrated install mode, and are scoped probes rather than full repository passes.
Squash Commit Body
Checklist
Written by an agent (Codex, GPT-6).
Summary by CodeRabbit
loadednode linker, which lets supported JavaScript and JSON modules load from pnpm’s content-addressable store without creating an applicationnode_modulesdirectory.