Repository navigation
test(install): count the manifest opens of an up-to-date install and run - #17653
Conversation
The record-based fast paths promise that an up-to-date install, and a gated `pnpm run`, open no project manifest that did not change. No filesystem seam reaches discovery and the checks, so on Linux the tests watch the non-active manifests through inotify and count IN_OPEN events. A control test edits one manifest and asserts the fallback opens the unchanged one, which shows the count sees reads at all. A recursive `pnpm -r exec` test covers the records gate under a recursive command. Part of pnpm/tasks#256. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Micro-Benchmark ResultsLinux |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
PR Summary by QodoTest manifest opens on up-to-date installs and gated runs
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17653 +/- ##
=======================================
Coverage 92.81% 92.82%
=======================================
Files 2074 2074
Lines 267563 267563
=======================================
+ Hits 248347 248359 +12
+ Misses 19216 19204 -12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Code Review by Qodo
1. Linux regression tests cannot compile
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the Linux manifest fast-path regression test additions.
No open issues 🎉
What changed in this PR
Adds regression tests for the Rust CLI’s manifest-record fast paths, checking filesystem opens rather than relying only on debug traces. No production behavior changes.
Changes:
- Uses Linux inotify to verify that up-to-date installs and gated runs open no non-root project manifests.
- Adds an edited-manifest control to confirm the watcher detects fallback reads.
- Checks that recursive
execdecides its dependency gate from recorded manifests.
| File | Description |
|---|---|
pnpm/crates/cli/tests/suite/repeat_install_records/opens.rs |
Adds the inotify helper and four regression tests. |
pnpm/crates/cli/tests/suite/repeat_install_records.rs |
Registers the new test module on Linux. |
Review effort: Balanced
|
Re Qodo's "Linux regression tests cannot compile": not a defect. Written by an agent (Claude Code, claude-opus-5-5). |
Summary
Closes the verification item of pnpm/tasks#256. #17637 and #17647 made an up-to-date
pnpm install, and apnpm rungated byverifyDepsBeforeRun, decide from the workspace state's manifest records. Their tests observed that through a debug trace, which a read added anywhere else would not change.No filesystem seam reaches project discovery and the checks. So on Linux these tests watch the project manifests other than the workspace root's through inotify and count
IN_OPENevents:pnpm run noopopens neither project manifest.pnpm -r execdecides its gate from the records. This was a CodeRabbit nitpick on feat(run): decide the verify-deps gate from the recorded manifests #17647.Disabling the install's records attempt makes the zero-open install test fail.
Squash Commit Body
Checklist
Test-only, so no changeset or docs.
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