Skip to content

docs(pacquet): true up TEST_PORTING.md with the current port status - #13145

Merged
zkochan merged 1 commit into
mainfrom
docs-refresh-test-porting-plan
Jul 19, 2026
Merged

zkochan merged 1 commit into
mainfrom
docs-refresh-test-porting-plan

Conversation

@zkochan

@zkochan zkochan commented Jul 19, 2026 •

Copy link
Copy Markdown
Member

Summary

A full audit of pnpm/plans/TEST_PORTING.md against 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.ts scenarios, 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, the devEngines/engines runtime 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 the peersSuffixMaxLength / patch-mtime checkDepsStatus branches.

Corrected the other way: hoist.ts:71 is now unchecked (the known_failures stub it cited no longer exists), hoist.ts:540/hoist.ts:813 cite their real ports instead of stubs, the deps-restorer run-scripts entry is unchecked (nothing covers pendingBuilds), the createNpmResolutionVerifier no-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

An audit of every checklist item in TEST_PORTING.md against the Rust
code found drift in both directions: ports that had landed without a
checkbox update, checked entries citing stubs or test fns that no
longer exist, and cross-section duplicates of the same upstream test
carrying different statuses.

Check off landed ports (metadata cache-key split, optional prefetch
skip, install-level patch tests, sideEffects.ts scenarios, lifecycle
failure, hoisted-workspace frozen install, current-lockfile optional
assertions, auth-file precedence, proxy/noProxy equivalents,
config set --global https-proxy, runtime manifest conversions,
git subfolder resolution, tarball ignore-scripts fast path,
trust-check exclude+missing-time, abbreviated-modified shortcut,
peersSuffixMaxLength and patch-mtime checkDepsStatus branches).

Uncheck or correct stale entries (hoist.ts:71 stub gone,
hoist.ts:540/:813 promoted to real ports, deps-restorer run-scripts
pendingBuilds gap, renamed createNpmResolutionVerifier test fns) and
tighten prose that overstated frozen-reinstall coverage. All added
citations verified against the code.

Related to: pnpm/pacquet#299

Checklist

  • Added or updated tests. — N/A: documentation-only update to the test-porting plan; the checklist items merely record already-landed tests.
  • Updated the documentation if needed.

Written by an agent (Claude Code, claude-fable-5).


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Documentation
    • Updated test coverage tracking across multiple package management features, including dependency resolution, hoisting, workspace installs, caching, proxy configuration, authentication, lifecycle scripts, and frozen reinstalls.
    • Clarified which scenarios are now covered, which remain unported, and where coverage is still incomplete.
    • Added notes for newly supported parity checks and documented remaining peer-resolution edge cases.

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
Copilot AI review requested due to automatic review settings July 19, 2026 14:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Docs: sync TEST_PORTING.md checklist with current Rust port status

📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Audit TEST_PORTING.md against current Rust tests and implementations.
• Check off items already ported and add accurate Rust test citations.
• Uncheck or rewrite stale entries where cited stubs/tests no longer exist.
Diagram

graph TD
  A["TEST_PORTING.md"] --> B["Port status checklist"] --> C["Rust crates/tests"]
  B --> D["Upstream TS tests"]

  subgraph Legend
    direction LR
    _doc["Document"] ~~~ _code["Code/tests"]
  end
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Generate checklist from machine-readable annotations
  • ➕ Reduces drift by making the checklist derivable from code/test metadata
  • ➕ Makes it easier to validate citations in CI (e.g., ensure referenced test names exist)
  • ➖ Requires introducing/maintaining annotation conventions across many crates
  • ➖ Upfront tooling work may not be worth it until porting stabilizes
2. Add a lightweight CI linter for citations
  • ➕ Catches the most common drift: renamed/removed Rust test functions or modules
  • ➕ Lower effort than a full generator; keeps the doc as the source-of-truth
  • ➖ Still relies on humans for the actual ported/unported judgment
  • ➖ Doesn’t prevent semantic drift (partial coverage overstated)

Recommendation: Given this is a docs-only reconciliation, the manual audit approach is appropriate and low risk. If this document is expected to remain long-lived during ongoing porting, a small CI linter that verifies referenced Rust symbols exist would provide the best ROI to prevent future drift without committing to full checklist generation.

Files changed (1) +76 / -74

Documentation (1) +76 / -74
TEST_PORTING.mdReconcile test-porting checklist with current Rust coverage and citations +76/-74

Reconcile test-porting checklist with current Rust coverage and citations

• Updates many checklist items to reflect current port status: checks off previously-landed ports, adds/updates Rust test/function citations, and unchecks items that referenced removed stubs or still-missing behaviors. Also tightens notes around partial ports (e.g., frozen reinstall tails, GVS '.modules.yaml' state, pendingBuilds coverage) to avoid overstating coverage and to keep duplicates consistent across sections.

pnpm/plans/TEST_PORTING.md

@coderabbitai

coderabbitai Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The 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.

Changes

Test porting plan

Layer / File(s) Summary
Install state and dependency coverage
pnpm/plans/TEST_PORTING.md
Updates .modules.yaml, optional dependency, hoisting, patching, lifecycle, side-effects-cache, and workspace porting status.
Link, lockfile, and reporting coverage
pnpm/plans/TEST_PORTING.md
Updates hoisted linking, dependency binaries, current-lockfile, reporter, progress, authentication, and proxy coverage.
Runtime and fetch coverage
pnpm/plans/TEST_PORTING.md
Records runtime manifest conversion, resolver failures, tarball fetching, and trust-check coverage.
Resolution and repeat-install coverage
pnpm/plans/TEST_PORTING.md
Adds npm resolution verifier, abbreviated shortcut, optimistic repeat-install, and peer-resolution coverage notes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • pnpm/pnpm#13141: Adds Rust optional-dependency test coverage referenced by this porting-plan update.
  • pnpm/pnpm#13144: Introduces related optional-dependency and install-some scenarios tracked in the plan.

Suggested reviewers: copilot, kairosci, kyungseopk1m

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs-refresh-test-porting-plan

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Documentation-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

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan
zkochan merged commit 31af30e into main Jul 19, 2026
25 of 26 checks passed
@zkochan
zkochan deleted the docs-refresh-test-porting-plan branch July 19, 2026 14:32

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between ebacfa6 and c76f373.

📒 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants