Repository navigation
test(cli): observe the read set of a pnpm v11 full install too - #17705
Conversation
The read-set test runs each fixture through pnpm v11 as well when `PNPM_V11_BUNDLE` names its bundle, and the convergence job runs it that way. Every file a v11 full install opens in the workspace outside `node_modules` must be one v11's workspace state records or one the test classifies, and every kind of input must be observed through v11 too. v11 records project manifests by digest in `validation.manifests`, so the test reads those records as well as `manifest_files`. v11 lists the project directories while it discovers the projects, which the test counts as project discovery. It also opens a workspace project's command to read its shebang. That file is no input: v11 repairs only files under `node_modules`. Part of pnpm/tasks#254. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Micro-Benchmark ResultsLinux |
PR Summary by QodoTest pnpm v11 full-install read sets alongside v12
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
[Low impact] The PR appears safe to merge. Reviews (1) · Last reviewed commit: "test(cli): observe the read set of a pnp..." · Reviewed by Greptile |
Code Review by Qodo
1. Loaded runners can time out the new test
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17705 +/- ##
=======================================
Coverage 92.93% 92.94%
=======================================
Files 2099 2099
Lines 270801 270801
=======================================
+ Hits 251670 251685 +15
+ Misses 19131 19116 -15 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Step 4 of pnpm/tasks#254: the repeat-install read-set contract now covers pnpm v11 as well.
Steps 1 and 3 already cover v11. Its check lives in its own package (
pnpm11/deps/status), and the oracle's generated edit axes run through the v11 and mixed drivers in the convergence job. This PR extends the step 2 contract, the read-set test from #17694, to v11.PNPM_V11_BUNDLEset, the test runs every fixture through the v11 bundle too. Every file a v11 full install opens in the workspace outsidenode_modulesmust be in v11's workspace state or classified, and everyInputkind must be observed through v11.PNPM_V11_BUNDLE, now runsrepeat_install_read_set::. Its path filter gains the test file andrepeat_install_oracle/**, whereInputlives.What v11 reads beyond v12, and how the test treats it:
validation.manifests, not inmanifest_files. The test reads both records.node_modulesdirectories. These are install output, which the test already left out of scope.packages/b/cli.js). v11 reads its shebang to decide whether to repair it, and repairs only files undernode_modules. It is listed as a read that is no input, for v11 only.No v11 gap turned up: every input file a v11 full install reads is one v11's state records.
Verification:
sharedInputPathspatched in the bundle to drop patch files, the v11 run reportspatches/[email protected]as unrecorded.Squash Commit Body
Checklist
Written by an agent (Claude Code, claude-opus-5-5).
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit