Repository navigation
test(cli): correct the stale frozen-gate comment in lockfile_only - #13085
Conversation
The comment justifying `--no-prefer-frozen-lockfile` in `lockfile_only_updates_importers_when_a_project_is_added` claimed the auto-frozen freshness gate validates only the root importer. That stopped being true in #13081, which made `check_lockfile_freshness` loop over every project manifest. The flag is still required, for a reason that only became true in that same change: project-2 declares no dependencies, and the auto-frozen gate deliberately tolerates a missing importer entry for a dependency-free project (`allow_missing_dependency_free_importers`, matching the TypeScript CLI's `allProjectsAreUpToDate`). Without the flag the run short-circuits to the frozen path and never records the new importer, so the `packages/project-2:` assertion fails. Restate the comment against the actual reason so the next reader doesn't drop the flag on the assumption it is leftover scaffolding.
PR Summary by QodoFix stale comment explaining --no-prefer-frozen-lockfile in lockfile_only test
AI Description
High-Level Assessment
Files changed (1)
|
|
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 selected for processing (1)
📝 WalkthroughWalkthroughThe pull request revises an inline test comment to explain why ChangesLockfile-only test documentation
Estimated code review effort: 1 (Trivial) | ~2 minutes 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/5This is a comment-only change to a single test file with no runtime, behavioral, or lockfile-format implications. The replacement comment accurately describes the allow_missing_dependency_free_importers path that makes the flag necessary, cross-references the TypeScript counterpart (allProjectsAreUpToDate), and removes the previously misleading claim about root-importer-only validation. No logic was altered. No files require special attention. Reviews (1): Last reviewed commit: "test(cli): correct the stale frozen-gate..." | Re-trigger Greptile |
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13085 +/- ##
=======================================
Coverage 85.59% 85.59%
=======================================
Files 499 499
Lines 79945 79945
=======================================
+ Hits 68431 68432 +1
+ Misses 11514 11513 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Corrects a test comment that #13081 left stale, and that was already leading readers to the wrong conclusion.
The comment justifying
--no-prefer-frozen-lockfileinlockfile_only_updates_importers_when_a_project_is_addedsaid pacquet's auto-frozen freshness gate "only validates the root importer today". #13081 madecheck_lockfile_freshnessloop over every project manifest, so that stopped being true.The flag itself still has to stay, for a reason that only became true in that same change:
project-2declares no dependencies, and the auto-frozen gate now deliberately tolerates a missing importer entry for a dependency-free project (allow_missing_dependency_free_importersininstall.rs, matching the TypeScript CLI'sallProjectsAreUpToDate). Verified by removing the flag and running the test — it fails, with the re-read lockfile containing onlypackages/project-1:and nopackages/project-2:, because the run short-circuits to the frozen path and never records the new importer.This matters because the stale comment is actively misleading: #13028 (now closed as superseded by #13081) read it as leftover scaffolding and dropped the flag on that basis. Restating the comment against the real reason keeps the next reader from repeating that.
Test-only comment change — no changeset, no TypeScript counterpart.
Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Claude Code, claude-opus-4-8).
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit