Repository navigation
docs(pacquet): true up TEST_PORTING.md with the current port status - #13145
Conversation
An audit of every checklist item against the Rust code found drift in both directions. Newly checked (ports had landed without a checkbox update): the npm-resolver metadata cache-key split, the prefetch skip for uninstallable optionals, the install-level exact/range patch tests, the four sideEffects.ts scenarios (unit-level in build_modules), the lifecycle-failure unit test, the hoisted-workspace frozen install, the hoisted-linker variant of the supported-architectures optional test, the current-lockfile assertions of the OS-skip optional test, the auth-file-over-npmrc precedence test, nine proxy dispatcher/noProxy equivalents, config set --global https-proxy, the devEngines/engines runtime manifest conversions, the git-resolver subfolder resolution, the tarball-side ignore-scripts fast path, the two trust-check exclude+missing-time cases, the abbreviated-modified shortcut tests, and the peersSuffixMaxLength / patch-mtime checkDepsStatus branches. Corrected in the other direction: hoist.ts:71 is marked unported (the cited known_failures stub no longer exists), hoist.ts:540 and hoist.ts:813 now cite their real ports instead of stubs, the deps-restorer run-scripts entry is unchecked (no pendingBuilds coverage), and the createNpmResolutionVerifier no-policy entry now cites the renamed test fns. Several entries whose prose overstated frozen-reinstall coverage now say exactly which tail is missing, and cross-section duplicates of already-ported tests carry the same status everywhere. Also recorded partial/adjacent coverage notes (libc metadata, GVS allowBuilds, node offline resolver error, reporter scaffolding, peer alias coverage) so the next audit does not re-derive them. Related to: pnpm/pacquet#299
PR Summary by QodoDocs: sync TEST_PORTING.md checklist with current Rust port status
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
📝 WalkthroughWalkthroughThe test-porting plan updates coverage status across pnpm installation, dependency resolution, configuration, fetching, reporting, runtime handling, caching, and repeat-install scenarios. Newly ported cases are distinguished from remaining unported or partially covered cases. ChangesTest porting plan
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: ✨ Finishing Touches🧪 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/5Documentation-only update with no code changes; the worst-case outcome of a wrong checkbox is a misleading tracking document, not a broken build or regression. Every change is a checkbox flip or prose clarification in a Markdown tracking document. The multi-section duplicate entries (e.g. hoist.ts:341, hoist.ts:813, lifecycleScripts.ts:331/:372) carry the same status in all sections consistently, the newly-unchecked hoist.ts:71 correctly notes the stub is gone, and the removed checkDepsStatus.test.ts:328 from 'Not yet ported' correctly mirrors its new checked status above. No logic, no data, no tests are touched. No files require special attention — the single changed file is a planning document with no executable content. Reviews (1): Last reviewed commit: "docs(pacquet): true up TEST_PORTING.md w..." | Re-trigger Greptile |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pnpm/plans/TEST_PORTING.md`:
- Line 167: Update the affected coverage entries in TEST_PORTING.md that
reference known_failures stubs or unimplemented behavior, including the
hoisted_packages_dont_override_direct_dep_bins entry and the entries at the
referenced locations, from [x] to [ ]. Only retain [x] when the corresponding
test has real Rust coverage, replacing stub references with actual ported test
references where applicable.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: eca6088f-6df8-4fbc-a98e-06f175307f10
📒 Files selected for processing (1)
pnpm/plans/TEST_PORTING.md
| - [x] `TypeScript repo: installing/deps-installer/test/install/hoist.ts:514` `should recreate node_modules with hoisting`. Stubbed (#433). | ||
| - [x] `TypeScript repo: installing/deps-installer/test/install/hoist.ts:540` `hoisting should not create a broken symlink to a skipped optional dependency` covers hoisting with skipped optional packages. Stubbed in `known_failures::hoisting_skips_broken_symlink_for_skipped_optional` — pacquet doesn't yet skip optional deps on platform constraints. | ||
| - [x] `TypeScript repo: installing/deps-installer/test/install/hoist.ts:540` `hoisting should not create a broken symlink to a skipped optional dependency` covers hoisting with skipped optional packages. Ported as the real `hoisting_skips_broken_symlink_for_skipped_optional` in `crates/cli/tests/hoist.rs` (previously a `known_failures` stub). | ||
| - [x] `TypeScript repo: installing/deps-installer/test/install/hoist.ts:567` `the hoisted packages should not override the bin files of the direct dependencies` covers public hoist bin precedence after frozen reinstall. Stubbed in `known_failures::hoisted_packages_dont_override_direct_dep_bins` — bin-conflict resolution rules not implemented. |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Do not check off entries that still point to stubs.
These entries are marked [x] but explicitly say the tests remain stubbed or the behavior is unimplemented. Change them to [ ] until real coverage lands, or replace the stub references with the actual ported tests; otherwise this plan overstates current Rust coverage.
As per path instructions, port coverage status must reflect reality because checkboxes are authoritative.
Also applies to: 441-441, 450-451
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pnpm/plans/TEST_PORTING.md` at line 167, Update the affected coverage entries
in TEST_PORTING.md that reference known_failures stubs or unimplemented
behavior, including the hoisted_packages_dont_override_direct_dep_bins entry and
the entries at the referenced locations, from [x] to [ ]. Only retain [x] when
the corresponding test has real Rust coverage, replacing stub references with
actual ported test references where applicable.
Source: Path instructions
Summary
A full audit of
pnpm/plans/TEST_PORTING.mdagainst the Rust code found that the checklist had drifted in both directions, so this PR trues it up. Docs-only; no code changes. Related to pnpm/pacquet#299.Newly checked off (the port had landed but the box was never updated): the npm-resolver metadata cache-key split, the prefetch skip for uninstallable optionals, the install-level exact/range patch tests, the four
sideEffects.tsscenarios, the lifecycle-failure unit test, the hoisted-workspace frozen install, the hoisted-linker variant of the supported-architectures optional test, the current-lockfile assertions of the OS-skip optional test, auth-file-over-npmrc precedence, nine proxy dispatcher/noProxy equivalents,config set --global https-proxy, thedevEngines/enginesruntime manifest conversions, git-resolver subfolder resolution, the tarball-side ignore-scripts fast path, two trust-check exclude+missing-time cases, the abbreviated-modified shortcut tests, and thepeersSuffixMaxLength/ patch-mtimecheckDepsStatusbranches.Corrected the other way:
hoist.ts:71is now unchecked (theknown_failuresstub it cited no longer exists),hoist.ts:540/hoist.ts:813cite their real ports instead of stubs, the deps-restorer run-scripts entry is unchecked (nothing coverspendingBuilds), thecreateNpmResolutionVerifierno-policy entry cites the renamed test fns, and entries whose prose overstated frozen-reinstall coverage now say exactly which tail is missing. Cross-section duplicates of the same upstream test now carry the same status everywhere. Every citation added by this PR was verified against the code (rg "fn <name>").Squash Commit Body
Checklist
Written by an agent (Claude Code, claude-fable-5).
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit