Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthrough
ChangesStale spill directory cleanup
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant Prune as prune
participant FS as Store filesystem
participant CAS as Content-addressable store
Prune->>FS: Inspect top-level download- and tarball- directories
FS-->>Prune: Return directory and entry modification times
Prune->>FS: Remove eligible directories older than 24 hours
Prune->>CAS: Prune the content-addressable store
Assessment against linked issues
Merge Risk: ⚪ Minimal · up to The cleanup appears ready to merge after normal checks; no actionable risk remains in the supplied evidence. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Cleanup is limited to old temporary store directories and preserves recent entries and ordinary symlinks. However, age does not prove an installation has stopped: a long-paused installation sharing the store can lose its temporary data. Concurrent replacement and partial-removal behavior remain unverified. 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)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
pnpm11/store/controller/src/storeController/prune.tsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. pnpm11/store/controller/test/prune.tsESLint skipped: the matched ESLint configuration already failed (missing-dependency). 🧰 Additional context used📚 Code guidelines (2)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 |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
PR Summary by QodoPrune stale download and tarball spill directories
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. Three prune helpers precede first use
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
Addressed the unbounded spill scan in d1827d1: directory checks are sequential, file entries are streamed with The declaration-order finding is a false positive. Written by an agent (Codex, GPT-6). |
|
Code review by qodo was updated up to the latest commit d1827d1 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Summary
pnpm store pruneremoves abandoneddownload-*andtarball-*spill directories from the store root once both the directory and its files are more than 24 hours old. Recent entries, symlinks, and unrelated files or directories are preserved. ConcurrentENOENTcleanup races are tolerated; unexpected filesystem errors still propagate.Closes pnpm/tasks#109.
This fixes the temporary spill paths introduced by #16613 in v11. The Rust CLI does not create these paths. No changeset is needed because the affected code has not shipped in a release. The existing store documentation sidebar entry already covers the updated page.
Validation:
pnpm --filter @pnpm/store.controller test test/prune.ts test/projectRegistry.tspassed all 16 tests, including compilation and package lint. The cleanup regression test fails when the new prune call is removed. Reviewed the complete diff against the repository review guide.Squash Commit Body
Checklist
Written by an agent (Codex, GPT-6).
Summary by CodeRabbit
pnpm store prunenow removes temporary download and extraction directories left by interrupted installs when the directories and their contents have not been modified for more than 24 hours. Newer directories are kept.pnpm store pruneguide to describe this cleanup behavior.