Repository navigation
refactor(pacquet): ship the CLI under its final pnpm name - #12923
Conversation
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (84)
✅ Files skipped from review due to trivial changes (13)
🚧 Files skipped from review as they are similar to previous changes (70)
📝 WalkthroughWalkthroughThe Rust CLI binary is renamed from ChangesCLI binary and branding migration
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
Possibly related PRs
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 |
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1. ERR_PNPM_ZIP code divergence
|
PR Summary by QodoShip CLI as
AI Description
Diagram
High-Level Assessment
Files changed (82)
|
PR Code Suggestions ✨Latest suggestions up to 9eb1c7e Warning
Previous suggestionsSuggestions up to commit a68e679
Suggestions up to commit a47132e
|
||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Actionable comments posted: 9
🧹 Nitpick comments (3)
.github/workflows/ecosystem-e2e.yml (1)
44-45: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueStale step name: "Build pacquet and the harness"
The step name still says "pacquet" but the command on line 45 now builds
--bin pnpm. Consider updating for clarity.🔧 Suggested fix
- name: Build pacquet and the harness + - name: Build pnpm and the harness run: cargo build --release --bin pnpm --bin ecosystem-e2e🤖 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 @.github/workflows/ecosystem-e2e.yml around lines 44 - 45, Update the workflow step name currently labeled “Build pacquet and the harness” to accurately reference the pnpm binary and ecosystem-e2e harness built by the cargo command, without changing the build command itself.pnpm/crates/cli/tests/pnpr_install.rs (1)
95-95: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winExpect message "find the pacquet binary" is now misleading
cargo_bin("pnpm")looks up thepnpmbinary, but the panic message still says "pacquet." If the lookup fails, this will confuse whoever reads the error.🔧 Suggested fix
fn pacquet_at(workspace: &Path) -> Command { - Command::cargo_bin("pnpm").expect("find the pacquet binary").with_current_dir(workspace) + Command::cargo_bin("pnpm").expect("find the pnpm binary").with_current_dir(workspace) }🤖 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/crates/cli/tests/pnpr_install.rs` at line 95, Update the expect message in the pnpm command setup to accurately say “find the pnpm binary” instead of referring to the obsolete “pacquet” name.pnpm/crates/cli/tests/list.rs (1)
173-176: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueBinary name change is correct; consider updating stale "pacquet" error messages.
The
cargo_bin("pnpm")change is correct. However, the error messages on lines 36 and 174 still say "spawn pacquet list" and "find the pacquet binary" respectively, which are now factually incorrect. While the PR objectives note that internal names are intentionally left unchanged, these user-facing test failure messages could confuse developers debugging CI failures.As per coding guidelines for
pnpm/**/*.rs, keep pacquet and the TypeScript pnpm CLI behaviorally identical. As per path instructions referencingpnpm/AGENTS.md, error codes and user-facing messages are part of the behavioral identity contract.♻️ Optional: update stale error messages
fn recursive_project_names(pacquet: Command, extra_args: &[&str]) -> BTreeSet<String> { let output = pacquet .with_arg("-r") .with_arg("list") .with_args(extra_args) .with_arg("--depth") .with_arg("-1") .with_arg("--json") .output() - .expect("spawn pacquet list"); + .expect("spawn pnpm list");let changed_project_names = |extra_args: &[&str]| { let pacquet = Command::cargo_bin("pnpm") - .expect("find the pacquet binary") + .expect("find the pnpm binary") .with_current_dir(&workspace); recursive_project_names(pacquet, &[&["--filter", "[origin/main]"], extra_args].concat()) };🤖 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/crates/cli/tests/list.rs` around lines 173 - 176, Update the stale expect messages in the list test, including the messages associated with spawning the list command and locating the binary, to refer to the pnpm binary instead of pacquet. Preserve the existing cargo_bin("pnpm") behavior and test logic in recursive_project_names.Sources: Coding guidelines, Path instructions
🤖 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 @.github/workflows/pacquet-integrated-benchmark.yml:
- Line 200: Update the comment above the cache path addition to state that pnpr
builds may produce either the pnpm or pacquet client binary, while retaining
both cache paths in the workflow.
In `@pnpm/crates/cli/tests/config_dependencies.rs`:
- Line 11: Update the expect message on the Command::cargo_bin("pnpm") call to
refer to finding the pnpm binary instead of the outdated “pacquet” name.
In `@pnpm/crates/cli/tests/dedupe_direct_deps.rs`:
- Line 355: Update the `.expect()` message in the `Command::cargo_bin("pnpm")`
invocation within the dedupe direct dependencies test from “find the pacquet
binary” to “find the pnpm binary” so it matches the requested executable.
In `@pnpm/crates/cli/tests/dry_run.rs`:
- Line 15: Update the stale expect message paired with cargo_bin("pnpm") in the
dry-run test and the corresponding setup code in fetch.rs, lockfile_only.rs, and
remove.rs to reference the pnpm binary instead of “pacquet”.
In `@pnpm/crates/cli/tests/search.rs`:
- Line 15: Update the stale expect message in the search test’s
Command::cargo_bin("pnpm") invocation from “find the pacquet binary” to “find
the pnpm binary,” matching the requested executable.
In `@pnpm/crates/cli/tests/set_script.rs`:
- Line 9: The expect message in the test command setup is misspelled and does
not match the requested binary. Update the expect call associated with
Command::cargo_bin("pnpm") to say "find the pnpm binary" instead of "find the
pacquet binary".
In `@pnpm/crates/cli/tests/side_effects_cache.rs`:
- Around line 79-80: The expect message in the cargo_bin("pnpm") invocation is
misspelled and names the wrong binary. Update the expect call in the
side-effects cache test to say “find the pnpm binary,” matching the command
being located.
In `@pnpm/tasks/ecosystem-e2e/README.md`:
- Around line 47-48: Update the inline comment above the cargo command to say
that pnpm must be built, matching the --bin pnpm argument and the
./target/release/pnpm path.
In `@pnpm/tasks/integrated-benchmark/src/work_env.rs`:
- Around line 305-335: Add regression tests in work_env/tests.rs for
cli_bin_name and client_binary_in using temporary directories. Cover CLI
manifests declaring name = "pnpm" and name = "pacquet" (including both directory
layouts), and verify client_binary_in selects an existing target/release/pnpm
binary, otherwise an existing pacquet binary, with the expected fallback when
neither exists.
---
Nitpick comments:
In @.github/workflows/ecosystem-e2e.yml:
- Around line 44-45: Update the workflow step name currently labeled “Build
pacquet and the harness” to accurately reference the pnpm binary and
ecosystem-e2e harness built by the cargo command, without changing the build
command itself.
In `@pnpm/crates/cli/tests/list.rs`:
- Around line 173-176: Update the stale expect messages in the list test,
including the messages associated with spawning the list command and locating
the binary, to refer to the pnpm binary instead of pacquet. Preserve the
existing cargo_bin("pnpm") behavior and test logic in recursive_project_names.
In `@pnpm/crates/cli/tests/pnpr_install.rs`:
- Line 95: Update the expect message in the pnpm command setup to accurately say
“find the pnpm binary” instead of referring to the obsolete “pacquet” name.
🪄 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: 57b8c9c5-e33f-4cad-8357-4f93dd07c229
📒 Files selected for processing (82)
.github/workflows/ecosystem-e2e.yml.github/workflows/pacquet-integrated-benchmark.yml.github/workflows/pacquet-release-to-npm.ymljustfilepackage.jsonpnpm/crates/cli/Cargo.tomlpnpm/crates/cli/README.mdpnpm/crates/cli/src/cli_args/cli_command.rspnpm/crates/cli/src/cli_args/completion.rspnpm/crates/cli/src/cli_args/completion/tests.rspnpm/crates/cli/src/cli_args/install.rspnpm/crates/cli/src/cli_args/sbom.rspnpm/crates/cli/src/cli_args/self_update.rspnpm/crates/cli/src/cli_args/setup.rspnpm/crates/cli/src/cli_args/switch_cli_version.rspnpm/crates/cli/src/lib.rspnpm/crates/cli/tests/add.rspnpm/crates/cli/tests/approve_builds.rspnpm/crates/cli/tests/audit.rspnpm/crates/cli/tests/bin.rspnpm/crates/cli/tests/bugs.rspnpm/crates/cli/tests/cat_index.rspnpm/crates/cli/tests/catalog.rspnpm/crates/cli/tests/completion.rspnpm/crates/cli/tests/config_dependencies.rspnpm/crates/cli/tests/custom_fetchers.rspnpm/crates/cli/tests/custom_resolvers.rspnpm/crates/cli/tests/dedupe.rspnpm/crates/cli/tests/dedupe_direct_deps.rspnpm/crates/cli/tests/dedupe_injected_deps.rspnpm/crates/cli/tests/deploy.rspnpm/crates/cli/tests/dist_tag.rspnpm/crates/cli/tests/docs.rspnpm/crates/cli/tests/dry_run.rspnpm/crates/cli/tests/fetch.rspnpm/crates/cli/tests/find_hash.rspnpm/crates/cli/tests/global.rspnpm/crates/cli/tests/hoisted_node_linker.rspnpm/crates/cli/tests/install.rspnpm/crates/cli/tests/lifecycle_scripts.rspnpm/crates/cli/tests/list.rspnpm/crates/cli/tests/lockfile_only.rspnpm/crates/cli/tests/lockfile_resolution_reuse.rspnpm/crates/cli/tests/outdated.rspnpm/crates/cli/tests/patch.rspnpm/crates/cli/tests/ping.rspnpm/crates/cli/tests/pnpr_install.rspnpm/crates/cli/tests/pnpx_alias.rspnpm/crates/cli/tests/prefix.rspnpm/crates/cli/tests/publish.rspnpm/crates/cli/tests/remove.rspnpm/crates/cli/tests/repo.rspnpm/crates/cli/tests/root.rspnpm/crates/cli/tests/run.rspnpm/crates/cli/tests/run_recursive.rspnpm/crates/cli/tests/sbom.rspnpm/crates/cli/tests/search.rspnpm/crates/cli/tests/set_script.rspnpm/crates/cli/tests/side_effects_cache.rspnpm/crates/cli/tests/stale_pin_dedupe.rspnpm/crates/cli/tests/store.rspnpm/crates/cli/tests/tarball_url_dependency.rspnpm/crates/cli/tests/unlink.rspnpm/crates/cli/tests/update.rspnpm/crates/cli/tests/verify_deps_before_run.rspnpm/crates/cli/tests/version.rspnpm/crates/cli/tests/whoami.rspnpm/crates/cli/tests/why.rspnpm/crates/cli/tests/with.rspnpm/crates/config/src/defaults.rspnpm/crates/config/src/defaults/tests.rspnpm/crates/config/src/lib.rspnpm/crates/napi/src/lib.rspnpm/crates/napi/src/pack.rspnpm/crates/package-manager/src/build_modules.rspnpm/crates/package-manager/src/hoisted_dep_graph.rspnpm/crates/package-manager/src/link_hoisted_modules.rspnpm/crates/tarball/src/lib.rspnpm/crates/tarball/src/tests.rspnpm/crates/testing-utils/src/bin.rspnpm/tasks/ecosystem-e2e/README.mdpnpm/tasks/integrated-benchmark/src/work_env.rs
a47132e to
a68e679
Compare
|
Rebased over latest main (the conflict was with #12918's staged-archive fix — resolved keeping the scratch-dir approach, with the source path now Qodo — stale-binary bug (valid, fixed): bench dirs are keyed by revision label, so a moving label (e.g. Qodo — historical comments (fixed): reworded to state the current constraint (revisions disagree on the bin name) rather than the rename transition. Qodo — hand-parsed TOML (declined): the workspace has no TOML-parser crate anywhere in its dependency tree, and adding one for a single boolean probe in the benchmark harness isn't worth the dependency. The probe now carries a comment documenting that tradeoff. CodeRabbit: all 56 stale Validated: 🤖 Generated with Claude Code |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pnpm/tasks/integrated-benchmark/src/work_env/tests.rs (1)
288-340: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse
tempfile::TempDirfor these test directories. This crate doesn’t currently depend ontempfile, so add it as a dev-dependency if you want automatic cleanup on panic.🤖 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/tasks/integrated-benchmark/src/work_env/tests.rs` around lines 288 - 340, Replace the manually constructed temp paths and cleanup calls in cli_bin_name_reads_the_declared_bin_from_either_layout and client_binary_in_prefers_the_existing_binary with tempfile::TempDir instances, using each TempDir path as the test root. Add tempfile as a dev-dependency for this crate, and rely on TempDir’s automatic cleanup instead of fs::remove_dir_all.Source: Coding guidelines
🤖 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.
Nitpick comments:
In `@pnpm/tasks/integrated-benchmark/src/work_env/tests.rs`:
- Around line 288-340: Replace the manually constructed temp paths and cleanup
calls in cli_bin_name_reads_the_declared_bin_from_either_layout and
client_binary_in_prefers_the_existing_binary with tempfile::TempDir instances,
using each TempDir path as the test root. Add tempfile as a dev-dependency for
this crate, and rely on TempDir’s automatic cleanup instead of
fs::remove_dir_all.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 10a99237-5ce1-4044-aa81-a4e7fcaf96e1
📒 Files selected for processing (83)
.github/workflows/ecosystem-e2e.yml.github/workflows/pacquet-integrated-benchmark.yml.github/workflows/pacquet-release-to-npm.ymljustfilepackage.jsonpnpm/crates/cli/Cargo.tomlpnpm/crates/cli/README.mdpnpm/crates/cli/src/cli_args/cli_command.rspnpm/crates/cli/src/cli_args/completion.rspnpm/crates/cli/src/cli_args/completion/tests.rspnpm/crates/cli/src/cli_args/install.rspnpm/crates/cli/src/cli_args/sbom.rspnpm/crates/cli/src/cli_args/self_update.rspnpm/crates/cli/src/cli_args/setup.rspnpm/crates/cli/src/cli_args/switch_cli_version.rspnpm/crates/cli/src/lib.rspnpm/crates/cli/tests/add.rspnpm/crates/cli/tests/approve_builds.rspnpm/crates/cli/tests/audit.rspnpm/crates/cli/tests/bin.rspnpm/crates/cli/tests/bugs.rspnpm/crates/cli/tests/cat_index.rspnpm/crates/cli/tests/catalog.rspnpm/crates/cli/tests/completion.rspnpm/crates/cli/tests/config_dependencies.rspnpm/crates/cli/tests/custom_fetchers.rspnpm/crates/cli/tests/custom_resolvers.rspnpm/crates/cli/tests/dedupe.rspnpm/crates/cli/tests/dedupe_direct_deps.rspnpm/crates/cli/tests/dedupe_injected_deps.rspnpm/crates/cli/tests/deploy.rspnpm/crates/cli/tests/dist_tag.rspnpm/crates/cli/tests/docs.rspnpm/crates/cli/tests/dry_run.rspnpm/crates/cli/tests/fetch.rspnpm/crates/cli/tests/find_hash.rspnpm/crates/cli/tests/global.rspnpm/crates/cli/tests/hoisted_node_linker.rspnpm/crates/cli/tests/install.rspnpm/crates/cli/tests/lifecycle_scripts.rspnpm/crates/cli/tests/list.rspnpm/crates/cli/tests/lockfile_only.rspnpm/crates/cli/tests/lockfile_resolution_reuse.rspnpm/crates/cli/tests/outdated.rspnpm/crates/cli/tests/patch.rspnpm/crates/cli/tests/ping.rspnpm/crates/cli/tests/pnpr_install.rspnpm/crates/cli/tests/pnpx_alias.rspnpm/crates/cli/tests/prefix.rspnpm/crates/cli/tests/publish.rspnpm/crates/cli/tests/remove.rspnpm/crates/cli/tests/repo.rspnpm/crates/cli/tests/root.rspnpm/crates/cli/tests/run.rspnpm/crates/cli/tests/run_recursive.rspnpm/crates/cli/tests/sbom.rspnpm/crates/cli/tests/search.rspnpm/crates/cli/tests/set_script.rspnpm/crates/cli/tests/side_effects_cache.rspnpm/crates/cli/tests/stale_pin_dedupe.rspnpm/crates/cli/tests/store.rspnpm/crates/cli/tests/tarball_url_dependency.rspnpm/crates/cli/tests/unlink.rspnpm/crates/cli/tests/update.rspnpm/crates/cli/tests/verify_deps_before_run.rspnpm/crates/cli/tests/version.rspnpm/crates/cli/tests/whoami.rspnpm/crates/cli/tests/why.rspnpm/crates/cli/tests/with.rspnpm/crates/config/src/defaults.rspnpm/crates/config/src/defaults/tests.rspnpm/crates/config/src/lib.rspnpm/crates/napi/src/lib.rspnpm/crates/napi/src/pack.rspnpm/crates/package-manager/src/build_modules.rspnpm/crates/package-manager/src/hoisted_dep_graph.rspnpm/crates/package-manager/src/link_hoisted_modules.rspnpm/crates/tarball/src/lib.rspnpm/crates/tarball/src/tests.rspnpm/crates/testing-utils/src/bin.rspnpm/tasks/ecosystem-e2e/README.mdpnpm/tasks/integrated-benchmark/src/work_env.rspnpm/tasks/integrated-benchmark/src/work_env/tests.rs
✅ Files skipped from review due to trivial changes (12)
- pnpm/crates/cli/Cargo.toml
- pnpm/crates/cli/README.md
- pnpm/tasks/ecosystem-e2e/README.md
- pnpm/crates/cli/tests/find_hash.rs
- pnpm/crates/cli/tests/bugs.rs
- pnpm/crates/cli/src/cli_args/install.rs
- pnpm/crates/cli/tests/unlink.rs
- pnpm/crates/cli/tests/fetch.rs
- pnpm/crates/cli/tests/add.rs
- pnpm/crates/cli/src/lib.rs
- pnpm/crates/cli/tests/lifecycle_scripts.rs
- pnpm/crates/cli/src/cli_args/completion/tests.rs
🚧 Files skipped from review as they are similar to previous changes (70)
- pnpm/crates/cli/tests/ping.rs
- pnpm/crates/cli/tests/pnpx_alias.rs
- pnpm/crates/cli/tests/patch.rs
- pnpm/crates/napi/src/lib.rs
- pnpm/crates/cli/tests/hoisted_node_linker.rs
- pnpm/crates/cli/src/cli_args/cli_command.rs
- pnpm/crates/cli/tests/deploy.rs
- pnpm/crates/cli/tests/whoami.rs
- pnpm/crates/cli/tests/why.rs
- pnpm/crates/cli/tests/docs.rs
- pnpm/crates/cli/tests/pnpr_install.rs
- pnpm/crates/cli/tests/run_recursive.rs
- pnpm/crates/cli/tests/publish.rs
- pnpm/crates/cli/tests/dry_run.rs
- pnpm/crates/cli/tests/set_script.rs
- pnpm/crates/cli/tests/config_dependencies.rs
- pnpm/crates/package-manager/src/hoisted_dep_graph.rs
- pnpm/crates/cli/tests/repo.rs
- pnpm/crates/cli/tests/dedupe_injected_deps.rs
- pnpm/crates/napi/src/pack.rs
- pnpm/crates/cli/tests/custom_fetchers.rs
- pnpm/crates/cli/tests/cat_index.rs
- pnpm/crates/cli/tests/lockfile_resolution_reuse.rs
- pnpm/crates/cli/tests/dedupe_direct_deps.rs
- pnpm/crates/cli/tests/version.rs
- pnpm/crates/config/src/defaults.rs
- pnpm/crates/cli/tests/run.rs
- .github/workflows/pacquet-integrated-benchmark.yml
- pnpm/crates/cli/tests/custom_resolvers.rs
- pnpm/crates/cli/tests/update.rs
- pnpm/crates/cli/tests/audit.rs
- pnpm/crates/cli/tests/list.rs
- pnpm/crates/cli/tests/side_effects_cache.rs
- pnpm/crates/cli/tests/lockfile_only.rs
- pnpm/crates/cli/tests/outdated.rs
- pnpm/crates/cli/tests/verify_deps_before_run.rs
- pnpm/crates/cli/tests/store.rs
- pnpm/crates/cli/tests/with.rs
- pnpm/crates/cli/tests/tarball_url_dependency.rs
- pnpm/crates/cli/tests/bin.rs
- pnpm/crates/cli/tests/root.rs
- .github/workflows/ecosystem-e2e.yml
- pnpm/crates/cli/tests/search.rs
- pnpm/crates/testing-utils/src/bin.rs
- pnpm/crates/cli/tests/install.rs
- pnpm/crates/cli/tests/approve_builds.rs
- pnpm/crates/cli/tests/dist_tag.rs
- pnpm/crates/package-manager/src/build_modules.rs
- pnpm/crates/cli/tests/remove.rs
- pnpm/crates/cli/src/cli_args/sbom.rs
- pnpm/crates/package-manager/src/link_hoisted_modules.rs
- pnpm/crates/config/src/lib.rs
- pnpm/crates/cli/tests/stale_pin_dedupe.rs
- pnpm/crates/cli/tests/sbom.rs
- pnpm/crates/cli/src/cli_args/self_update.rs
- justfile
- pnpm/crates/tarball/src/lib.rs
- pnpm/crates/tarball/src/tests.rs
- package.json
- pnpm/crates/cli/tests/dedupe.rs
- pnpm/crates/cli/tests/prefix.rs
- pnpm/crates/cli/src/cli_args/switch_cli_version.rs
- pnpm/crates/cli/src/cli_args/setup.rs
- pnpm/crates/config/src/defaults/tests.rs
- .github/workflows/pacquet-release-to-npm.yml
- pnpm/crates/cli/tests/global.rs
- pnpm/crates/cli/tests/catalog.rs
- pnpm/crates/cli/src/cli_args/completion.rs
- pnpm/tasks/integrated-benchmark/src/work_env.rs
- pnpm/crates/cli/tests/completion.rs
|
Code review by qodo was updated up to the latest commit a68e679 |
Micro-Benchmark ResultsLinux |
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.2007842927,
"stddev": 0.12373944233679189,
"median": 4.157438109099999,
"user": 3.9372324199999995,
"system": 3.5462837200000004,
"min": 4.0483159381,
"max": 4.4378299771,
"times": [
4.4378299771,
4.186595457099999,
4.3650944770999995,
4.131418913099999,
4.183457305099999,
4.1308248311,
4.2875596831,
4.1135064261,
4.1232399190999995,
4.0483159381
]
},
{
"command": "pacquet@main",
"mean": 4.108977233100001,
"stddev": 0.09927215507823071,
"median": 4.090435316599999,
"user": 3.8806353199999997,
"system": 3.53857202,
"min": 3.9875937461000004,
"max": 4.295048459099999,
"times": [
4.152905060099999,
4.085446977099999,
4.0483592611,
4.295048459099999,
4.1519417201,
4.2302535421,
3.9875937461000004,
4.0954236560999995,
4.0448859111,
3.9979139981
]
},
{
"command": "pnpr@HEAD",
"mean": 2.2098445087000003,
"stddev": 0.1121180559312941,
"median": 2.1846163581000004,
"user": 2.64820762,
"system": 3.05805972,
"min": 2.0460359951,
"max": 2.3638492101,
"times": [
2.1509195501000002,
2.3167492211000003,
2.1538166801000003,
2.2688869391,
2.3580589551,
2.2154160361,
2.1073030631000003,
2.0460359951,
2.1174094371,
2.3638492101
]
},
{
"command": "pnpr@main",
"mean": 2.1225186897999997,
"stddev": 0.1098381704065599,
"median": 2.0810005246000003,
"user": 2.70279862,
"system": 3.0694493200000004,
"min": 2.0001481801,
"max": 2.3605377681,
"times": [
2.0445089011,
2.0495808041,
2.0514194601,
2.0001481801,
2.2256415781,
2.0610738511,
2.1349274261,
2.3605377681,
2.1009271981,
2.1964217311
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.67691931394,
"stddev": 0.012994610638517127,
"median": 0.6736322800400001,
"user": 0.39947476000000004,
"system": 1.36208076,
"min": 0.66191170454,
"max": 0.69866346754,
"times": [
0.66761164454,
0.66191170454,
0.69822090954,
0.68284137554,
0.66574921454,
0.69866346754,
0.67852029254,
0.67010462254,
0.67715993754,
0.6684099705400001
]
},
{
"command": "pacquet@main",
"mean": 0.67775480184,
"stddev": 0.008292804078374695,
"median": 0.6779301980400001,
"user": 0.41413365999999996,
"system": 1.3622445600000002,
"min": 0.66428613254,
"max": 0.6914980135400001,
"times": [
0.66428613254,
0.6914980135400001,
0.67222870254,
0.67102382854,
0.67227425854,
0.6802980535400001,
0.6889163955400001,
0.67809282654,
0.68116223754,
0.6777675695400001
]
},
{
"command": "pnpr@HEAD",
"mean": 0.7530397783399999,
"stddev": 0.08765660097064937,
"median": 0.7284898345399999,
"user": 0.42387976,
"system": 1.3886470599999998,
"min": 0.70088560454,
"max": 1.00030933254,
"times": [
0.72530187954,
0.7433740855400001,
0.73637612854,
0.71476839254,
0.73006282554,
0.73036566354,
0.72691684354,
0.70088560454,
1.00030933254,
0.72203702754
]
},
{
"command": "pnpr@main",
"mean": 0.76594677364,
"stddev": 0.09538839146288706,
"median": 0.74291650204,
"user": 0.43823596,
"system": 1.38459536,
"min": 0.70983159454,
"max": 1.03358504654,
"times": [
0.71370429754,
0.74855511454,
0.70983159454,
0.74509318154,
0.74073982254,
0.7310593495400001,
0.75165322754,
1.03358504654,
0.75843301454,
0.7268130875400001
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.342443086499999,
"stddev": 0.0569436386916842,
"median": 4.3341125306,
"user": 3.8187321599999997,
"system": 3.46977748,
"min": 4.2379014926,
"max": 4.4242549966,
"times": [
4.3969640586,
4.4242549966,
4.4150904446,
4.2379014926,
4.3184436236,
4.3244522466,
4.3438662076,
4.3295512916,
4.2952327336,
4.3386737696
]
},
{
"command": "pacquet@main",
"mean": 4.314298509800001,
"stddev": 0.03439128124908716,
"median": 4.3147614456,
"user": 3.845364459999999,
"system": 3.4171084799999996,
"min": 4.2698396346,
"max": 4.3859652986,
"times": [
4.2992100836,
4.3166625336,
4.3128603576,
4.2898451996,
4.3168919116,
4.3859652986,
4.3378873236,
4.2698396346,
4.3387433006,
4.2750794546
]
},
{
"command": "pnpr@HEAD",
"mean": 2.2450154125,
"stddev": 0.12061172350185072,
"median": 2.2326371146,
"user": 2.52840586,
"system": 2.9626061799999994,
"min": 2.0707227716,
"max": 2.4253259486,
"times": [
2.1540116346,
2.3609999696,
2.1523621396,
2.3720708675999997,
2.4253259486,
2.0707227716,
2.2942975286,
2.1709767006,
2.1445789326,
2.3048076316
]
},
{
"command": "pnpr@main",
"mean": 2.2056561996000004,
"stddev": 0.10085686027060058,
"median": 2.1911385146,
"user": 2.54754526,
"system": 2.95833828,
"min": 2.0541048226,
"max": 2.3660979206,
"times": [
2.0541048226,
2.3204176616,
2.2092914766,
2.2778124926,
2.1729855526,
2.1555452595999998,
2.2539339666,
2.1728749656,
2.0734978776,
2.3660979206
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.4174539971199998,
"stddev": 0.01696641013384423,
"median": 1.41969702142,
"user": 1.3598571600000002,
"system": 1.75312054,
"min": 1.38478109892,
"max": 1.44681355292,
"times": [
1.42351720192,
1.38478109892,
1.42213439692,
1.4007289649199999,
1.4104351449199999,
1.43319131192,
1.42022560892,
1.41916843392,
1.41354425592,
1.44681355292
]
},
{
"command": "pacquet@main",
"mean": 1.43127487262,
"stddev": 0.0674382631366562,
"median": 1.4132088184199998,
"user": 1.3944588599999999,
"system": 1.7394867399999998,
"min": 1.38215396892,
"max": 1.61741427892,
"times": [
1.61741427892,
1.38215396892,
1.3990307469199998,
1.4322819999199998,
1.40902237792,
1.40244568692,
1.43561105592,
1.4203702089199999,
1.4173952589199998,
1.39702314292
]
},
{
"command": "pnpr@HEAD",
"mean": 0.7038996657200001,
"stddev": 0.05256918337957157,
"median": 0.68763992242,
"user": 0.34827485999999996,
"system": 1.3265256399999998,
"min": 0.67474941292,
"max": 0.8515766289200001,
"times": [
0.67474941292,
0.6944742769200001,
0.8515766289200001,
0.70276741692,
0.6871081789200001,
0.6848747969200001,
0.6843851269200001,
0.68817166592,
0.6946657809200001,
0.67622337192
]
},
{
"command": "pnpr@main",
"mean": 0.7205340577200001,
"stddev": 0.07134516939370132,
"median": 0.6986567269200001,
"user": 0.36969266,
"system": 1.30790224,
"min": 0.6908759079200001,
"max": 0.92311473992,
"times": [
0.6908759079200001,
0.6938396709200001,
0.6988806469200001,
0.70191871892,
0.6944052859200001,
0.70495098292,
0.6984328069200001,
0.6938705899200001,
0.70505122692,
0.92311473992
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.0968463008800002,
"stddev": 0.031488877799632435,
"median": 3.0891915061799997,
"user": 1.8501849,
"system": 1.9809210199999998,
"min": 3.06740229418,
"max": 3.1815206891799996,
"times": [
3.09323581618,
3.0984152041799997,
3.1039579381799998,
3.07909750418,
3.0921517391799997,
3.08365459418,
3.0862312731799997,
3.08279595618,
3.1815206891799996,
3.06740229418
]
},
{
"command": "pacquet@main",
"mean": 3.1540733395799996,
"stddev": 0.06617054597110252,
"median": 3.1413176201799997,
"user": 1.8485029000000002,
"system": 2.04729552,
"min": 3.0858267481799997,
"max": 3.33241610918,
"times": [
3.1616610271799996,
3.13447432118,
3.14479148018,
3.0858267481799997,
3.1330672311799996,
3.11353637218,
3.15232486618,
3.33241610918,
3.14239140118,
3.1402438391799996
]
},
{
"command": "pnpr@HEAD",
"mean": 0.67179515378,
"stddev": 0.007067837672906956,
"median": 0.6726671211800002,
"user": 0.3559157,
"system": 1.28234462,
"min": 0.6560233441800001,
"max": 0.6795600031800001,
"times": [
0.6665291951800001,
0.67866335418,
0.6771844571800001,
0.6693516031800001,
0.6699566491800001,
0.6701078531800001,
0.6560233441800001,
0.6795600031800001,
0.6752263891800001,
0.67534868918
]
},
{
"command": "pnpr@main",
"mean": 0.72316888508,
"stddev": 0.07452194892596964,
"median": 0.69864147168,
"user": 0.38554659999999996,
"system": 1.30393612,
"min": 0.68571067318,
"max": 0.9329992061800001,
"times": [
0.70944662118,
0.69370785818,
0.6882253341800001,
0.70138603018,
0.71162299918,
0.6930243811800001,
0.69589691318,
0.68571067318,
0.9329992061800001,
0.71966883418
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.65281891784,
"stddev": 0.018934144074724674,
"median": 0.65107055174,
"user": 0.62053414,
"system": 0.1564172,
"min": 0.6238806892400001,
"max": 0.68102214924,
"times": [
0.65515639724,
0.63609647924,
0.64719130524,
0.6238806892400001,
0.64543618024,
0.63647595224,
0.68102214924,
0.66877848624,
0.65494979824,
0.67920174124
]
},
{
"command": "pacquet@main",
"mean": 0.64905285114,
"stddev": 0.013558287910863137,
"median": 0.65069297124,
"user": 0.60977474,
"system": 0.1641936,
"min": 0.62554932224,
"max": 0.67017851724,
"times": [
0.63301076724,
0.62554932224,
0.64659014024,
0.65423480924,
0.65189117224,
0.63990089724,
0.64949477024,
0.65532382324,
0.67017851724,
0.66435429224
]
},
{
"command": "pnpr@HEAD",
"mean": 0.11118133357333333,
"stddev": 0.0021970753329482004,
"median": 0.11191146774,
"user": 0.03058535666666666,
"system": 0.01939458333333333,
"min": 0.10758250024,
"max": 0.11583829724,
"times": [
0.11232915024,
0.11311115824,
0.11208222724,
0.10892836624,
0.11156806224,
0.10846088124,
0.10805552724,
0.11265597324,
0.11177836324,
0.10758250024,
0.10986213924,
0.11303340224,
0.11325898124,
0.11280136724,
0.11254215024,
0.10864028924000001,
0.11184396924000001,
0.10825731624,
0.11285708224,
0.10781898424,
0.11583829724,
0.11075976424,
0.11197896624,
0.11230708724
]
},
{
"command": "pnpr@main",
"mean": 0.11174258124000001,
"stddev": 0.0019232280022251306,
"median": 0.11255896974,
"user": 0.029357773333333337,
"system": 0.01985658333333333,
"min": 0.10723048524,
"max": 0.11349946124,
"times": [
0.11300746724,
0.11207316424,
0.10818333124,
0.10800371424,
0.11241471524,
0.11333957224,
0.11343949824,
0.11273032824,
0.11234613624,
0.11238480924,
0.11349946124,
0.11257060724,
0.11312531024,
0.11314668824,
0.11264396524,
0.11262332624,
0.11273508624,
0.11300700824,
0.11254733224,
0.11087627724,
0.10864472824,
0.10723048524,
0.10932063624,
0.11192830124
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 6.8896933772799995,
"stddev": 0.12726293265321081,
"median": 6.89532921978,
"user": 4.0315279,
"system": 3.822399500000001,
"min": 6.76223055778,
"max": 7.1768373827800005,
"times": [
6.7637479137800005,
7.1768373827800005,
6.76714479878,
6.81348075978,
6.93575222678,
6.90628808378,
6.97633736078,
6.91074433278,
6.88437035578,
6.76223055778
]
},
{
"command": "pacquet@main",
"mean": 6.960402339379999,
"stddev": 0.13887110860405485,
"median": 6.94581572428,
"user": 4.058136,
"system": 3.8278558999999994,
"min": 6.76642350678,
"max": 7.26739130478,
"times": [
7.26739130478,
6.8721854037800005,
7.04288400078,
6.76642350678,
6.87670305578,
7.0211872707800005,
7.00436139178,
6.99176618278,
6.86125601078,
6.89986526578
]
},
{
"command": "pnpr@HEAD",
"mean": 5.00238025658,
"stddev": 0.07309669477487166,
"median": 4.99512865728,
"user": 2.7714423,
"system": 3.2517568999999993,
"min": 4.894296117780001,
"max": 5.11331496578,
"times": [
5.00410552578,
4.98615178878,
5.11331496578,
4.939844931780001,
5.09999864578,
5.03834126778,
5.05520942578,
4.894296117780001,
4.943795579780001,
4.94874431678
]
},
{
"command": "pnpr@main",
"mean": 5.16639821538,
"stddev": 0.1709256053641383,
"median": 5.14511578178,
"user": 2.837981799999999,
"system": 3.3451844,
"min": 4.97727492978,
"max": 5.50699260378,
"times": [
5.08691141378,
5.01518213978,
4.99719197878,
4.97727492978,
5.203320149780001,
5.32867074178,
5.05953700678,
5.2124081457800004,
5.27649304378,
5.50699260378
]
}
]
} |
|
| Branch | pr/12923 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 2,245.02 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 671.80 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 703.90 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 111.18 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 2,209.84 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 5,002.38 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 753.04 ms |
Stage 2a of retiring the pacquet codename — the user-facing surfaces: - The cargo bin is now `pnpm`, so every build outputs the binary under its shipped name and the release workflow no longer renames at archive time. `-p pacquet-cli --bin pnpm` until the crate renames land (stage 2b). - The 16 port-original `ERR_PACQUET_*` error codes are now `ERR_PNPM_*`, matching the 302 codes already ported as `ERR_PNPM_*`. (`PACQUET_VERSION` rides along as `PNPM_VERSION`.) - Shell completions register for (and invoke) `pnpm` instead of `pacquet` — they were broken for v12, which installs the binary as `pnpm`. The completion-server still accepts `pacquet` as argv[0] so scripts installed by earlier alphas keep working until re-setup. - SBOM output identifies the tool as `pnpm` (CycloneDX component and SPDX creator), matching what v11 emits. The integrated-benchmark harness builds and runs arbitrary revisions, which now disagree on the bin name: it detects the name from the clone's CLI manifest for `--bin=` and resolves the produced binary by existence (mirroring how the pnpm target resolves its bundle), and the CI binary-cache paths cover both names. Co-Authored-By: Claude Fable 5 <[email protected]>
- Delete the sibling-named client binary after each harness build and name the pnpr-copy destination after its source, so existence-based resolution can never pick a stale executable when a moving revision label leaves both names in target/release (Qodo). - Add regression tests for cli_bin_name and client_binary_in. - Reword harness comments to state current constraints instead of rename history; document why the manifest probe is a line scan (the workspace has no TOML-parser dependency). - Fix 56 stale "find the pacquet binary" expect messages, the ecosystem-e2e step name and README comment, and the benchmark cache comment (CodeRabbit). Co-Authored-By: Claude Fable 5 <[email protected]>
a68e679 to
9eb1c7e
Compare
|
Code review by qodo was updated up to the latest commit 9eb1c7e |
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/crates/cli/tests/stage.rs`:
- Line 1: Update the module documentation comment and all three spawn-related
`.expect()` messages in the stage integration tests to refer to “pnpm stage”
instead of “pacquet stage”, including the occurrences near the test setup and
later stage tests.
🪄 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: d14ea688-e3a8-4359-82c9-8405d5e3aa0c
📒 Files selected for processing (84)
.github/workflows/ecosystem-e2e.yml.github/workflows/pacquet-integrated-benchmark.yml.github/workflows/pacquet-release-to-npm.ymljustfilepackage.jsonpnpm/crates/cli/Cargo.tomlpnpm/crates/cli/README.mdpnpm/crates/cli/src/cli_args/cli_command.rspnpm/crates/cli/src/cli_args/completion.rspnpm/crates/cli/src/cli_args/completion/tests.rspnpm/crates/cli/src/cli_args/install.rspnpm/crates/cli/src/cli_args/sbom.rspnpm/crates/cli/src/cli_args/self_update.rspnpm/crates/cli/src/cli_args/setup.rspnpm/crates/cli/src/cli_args/switch_cli_version.rspnpm/crates/cli/src/lib.rspnpm/crates/cli/tests/add.rspnpm/crates/cli/tests/approve_builds.rspnpm/crates/cli/tests/audit.rspnpm/crates/cli/tests/bin.rspnpm/crates/cli/tests/bugs.rspnpm/crates/cli/tests/cat_index.rspnpm/crates/cli/tests/catalog.rspnpm/crates/cli/tests/completion.rspnpm/crates/cli/tests/config_dependencies.rspnpm/crates/cli/tests/custom_fetchers.rspnpm/crates/cli/tests/custom_resolvers.rspnpm/crates/cli/tests/dedupe.rspnpm/crates/cli/tests/dedupe_direct_deps.rspnpm/crates/cli/tests/dedupe_injected_deps.rspnpm/crates/cli/tests/deploy.rspnpm/crates/cli/tests/dist_tag.rspnpm/crates/cli/tests/docs.rspnpm/crates/cli/tests/dry_run.rspnpm/crates/cli/tests/fetch.rspnpm/crates/cli/tests/find_hash.rspnpm/crates/cli/tests/global.rspnpm/crates/cli/tests/hoisted_node_linker.rspnpm/crates/cli/tests/install.rspnpm/crates/cli/tests/lifecycle_scripts.rspnpm/crates/cli/tests/list.rspnpm/crates/cli/tests/lockfile_only.rspnpm/crates/cli/tests/lockfile_resolution_reuse.rspnpm/crates/cli/tests/outdated.rspnpm/crates/cli/tests/patch.rspnpm/crates/cli/tests/ping.rspnpm/crates/cli/tests/pnpr_install.rspnpm/crates/cli/tests/pnpx_alias.rspnpm/crates/cli/tests/prefix.rspnpm/crates/cli/tests/publish.rspnpm/crates/cli/tests/remove.rspnpm/crates/cli/tests/repo.rspnpm/crates/cli/tests/root.rspnpm/crates/cli/tests/run.rspnpm/crates/cli/tests/run_recursive.rspnpm/crates/cli/tests/sbom.rspnpm/crates/cli/tests/search.rspnpm/crates/cli/tests/set_script.rspnpm/crates/cli/tests/side_effects_cache.rspnpm/crates/cli/tests/stage.rspnpm/crates/cli/tests/stale_pin_dedupe.rspnpm/crates/cli/tests/store.rspnpm/crates/cli/tests/tarball_url_dependency.rspnpm/crates/cli/tests/unlink.rspnpm/crates/cli/tests/update.rspnpm/crates/cli/tests/verify_deps_before_run.rspnpm/crates/cli/tests/version.rspnpm/crates/cli/tests/whoami.rspnpm/crates/cli/tests/why.rspnpm/crates/cli/tests/with.rspnpm/crates/config/src/defaults.rspnpm/crates/config/src/defaults/tests.rspnpm/crates/config/src/lib.rspnpm/crates/napi/src/lib.rspnpm/crates/napi/src/pack.rspnpm/crates/package-manager/src/build_modules.rspnpm/crates/package-manager/src/hoisted_dep_graph.rspnpm/crates/package-manager/src/link_hoisted_modules.rspnpm/crates/tarball/src/lib.rspnpm/crates/tarball/src/tests.rspnpm/crates/testing-utils/src/bin.rspnpm/tasks/ecosystem-e2e/README.mdpnpm/tasks/integrated-benchmark/src/work_env.rspnpm/tasks/integrated-benchmark/src/work_env/tests.rs
✅ Files skipped from review due to trivial changes (13)
- pnpm/crates/package-manager/src/hoisted_dep_graph.rs
- pnpm/crates/cli/src/cli_args/install.rs
- pnpm/tasks/ecosystem-e2e/README.md
- pnpm/crates/cli/tests/dedupe_direct_deps.rs
- pnpm/crates/package-manager/src/link_hoisted_modules.rs
- pnpm/crates/cli/tests/run_recursive.rs
- pnpm/crates/cli/README.md
- pnpm/crates/cli/tests/dist_tag.rs
- pnpm/crates/cli/tests/with.rs
- pnpm/crates/cli/tests/config_dependencies.rs
- pnpm/crates/cli/src/cli_args/sbom.rs
- pnpm/crates/cli/tests/run.rs
- pnpm/crates/config/src/defaults.rs
🚧 Files skipped from review as they are similar to previous changes (70)
- pnpm/crates/cli/tests/pnpx_alias.rs
- pnpm/crates/cli/tests/custom_fetchers.rs
- pnpm/crates/cli/tests/ping.rs
- pnpm/crates/cli/tests/dry_run.rs
- pnpm/crates/cli/tests/lockfile_only.rs
- pnpm/crates/cli/Cargo.toml
- pnpm/crates/cli/tests/pnpr_install.rs
- pnpm/crates/cli/tests/deploy.rs
- pnpm/crates/napi/src/lib.rs
- pnpm/crates/cli/tests/verify_deps_before_run.rs
- pnpm/crates/cli/tests/cat_index.rs
- pnpm/crates/cli/tests/audit.rs
- pnpm/crates/cli/tests/dedupe_injected_deps.rs
- pnpm/crates/cli/tests/outdated.rs
- pnpm/crates/cli/src/lib.rs
- pnpm/crates/cli/tests/find_hash.rs
- pnpm/crates/cli/tests/list.rs
- package.json
- pnpm/crates/cli/src/cli_args/cli_command.rs
- pnpm/crates/cli/tests/patch.rs
- pnpm/crates/cli/tests/approve_builds.rs
- pnpm/crates/cli/tests/whoami.rs
- pnpm/crates/package-manager/src/build_modules.rs
- pnpm/crates/napi/src/pack.rs
- pnpm/crates/cli/tests/tarball_url_dependency.rs
- pnpm/crates/cli/tests/remove.rs
- pnpm/crates/cli/tests/why.rs
- pnpm/crates/cli/src/cli_args/setup.rs
- pnpm/crates/cli/tests/bin.rs
- pnpm/crates/cli/tests/prefix.rs
- pnpm/crates/cli/tests/add.rs
- .github/workflows/pacquet-integrated-benchmark.yml
- pnpm/crates/cli/tests/global.rs
- pnpm/crates/cli/tests/side_effects_cache.rs
- pnpm/crates/cli/tests/update.rs
- pnpm/crates/cli/tests/fetch.rs
- pnpm/crates/cli/tests/bugs.rs
- pnpm/crates/cli/tests/lifecycle_scripts.rs
- pnpm/crates/cli/tests/lockfile_resolution_reuse.rs
- pnpm/crates/cli/tests/publish.rs
- pnpm/crates/cli/tests/sbom.rs
- pnpm/crates/config/src/defaults/tests.rs
- pnpm/crates/config/src/lib.rs
- justfile
- pnpm/crates/cli/tests/catalog.rs
- pnpm/crates/cli/tests/root.rs
- pnpm/crates/cli/tests/set_script.rs
- pnpm/crates/cli/tests/stale_pin_dedupe.rs
- pnpm/crates/cli/tests/unlink.rs
- pnpm/crates/cli/tests/search.rs
- pnpm/crates/tarball/src/tests.rs
- pnpm/crates/cli/src/cli_args/self_update.rs
- pnpm/crates/testing-utils/src/bin.rs
- pnpm/crates/cli/tests/repo.rs
- pnpm/crates/cli/tests/docs.rs
- .github/workflows/pacquet-release-to-npm.yml
- .github/workflows/ecosystem-e2e.yml
- pnpm/crates/cli/tests/install.rs
- pnpm/crates/cli/tests/version.rs
- pnpm/crates/tarball/src/lib.rs
- pnpm/crates/cli/tests/dedupe.rs
- pnpm/crates/cli/tests/hoisted_node_linker.rs
- pnpm/tasks/integrated-benchmark/src/work_env/tests.rs
- pnpm/crates/cli/src/cli_args/completion/tests.rs
- pnpm/crates/cli/src/cli_args/switch_cli_version.rs
- pnpm/crates/cli/tests/store.rs
- pnpm/crates/cli/src/cli_args/completion.rs
- pnpm/crates/cli/tests/custom_resolvers.rs
- pnpm/crates/cli/tests/completion.rs
- pnpm/tasks/integrated-benchmark/src/work_env.rs
There was a problem hiding this comment.
Caution
Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.
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/crates/cli/tests/stage.rs`:
- Line 1: Update the module documentation comment and all three spawn-related
`.expect()` messages in the stage integration tests to refer to “pnpm stage”
instead of “pacquet stage”, including the occurrences near the test setup and
later stage tests.
🪄 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: d14ea688-e3a8-4359-82c9-8405d5e3aa0c
📒 Files selected for processing (84)
.github/workflows/ecosystem-e2e.yml.github/workflows/pacquet-integrated-benchmark.yml.github/workflows/pacquet-release-to-npm.ymljustfilepackage.jsonpnpm/crates/cli/Cargo.tomlpnpm/crates/cli/README.mdpnpm/crates/cli/src/cli_args/cli_command.rspnpm/crates/cli/src/cli_args/completion.rspnpm/crates/cli/src/cli_args/completion/tests.rspnpm/crates/cli/src/cli_args/install.rspnpm/crates/cli/src/cli_args/sbom.rspnpm/crates/cli/src/cli_args/self_update.rspnpm/crates/cli/src/cli_args/setup.rspnpm/crates/cli/src/cli_args/switch_cli_version.rspnpm/crates/cli/src/lib.rspnpm/crates/cli/tests/add.rspnpm/crates/cli/tests/approve_builds.rspnpm/crates/cli/tests/audit.rspnpm/crates/cli/tests/bin.rspnpm/crates/cli/tests/bugs.rspnpm/crates/cli/tests/cat_index.rspnpm/crates/cli/tests/catalog.rspnpm/crates/cli/tests/completion.rspnpm/crates/cli/tests/config_dependencies.rspnpm/crates/cli/tests/custom_fetchers.rspnpm/crates/cli/tests/custom_resolvers.rspnpm/crates/cli/tests/dedupe.rspnpm/crates/cli/tests/dedupe_direct_deps.rspnpm/crates/cli/tests/dedupe_injected_deps.rspnpm/crates/cli/tests/deploy.rspnpm/crates/cli/tests/dist_tag.rspnpm/crates/cli/tests/docs.rspnpm/crates/cli/tests/dry_run.rspnpm/crates/cli/tests/fetch.rspnpm/crates/cli/tests/find_hash.rspnpm/crates/cli/tests/global.rspnpm/crates/cli/tests/hoisted_node_linker.rspnpm/crates/cli/tests/install.rspnpm/crates/cli/tests/lifecycle_scripts.rspnpm/crates/cli/tests/list.rspnpm/crates/cli/tests/lockfile_only.rspnpm/crates/cli/tests/lockfile_resolution_reuse.rspnpm/crates/cli/tests/outdated.rspnpm/crates/cli/tests/patch.rspnpm/crates/cli/tests/ping.rspnpm/crates/cli/tests/pnpr_install.rspnpm/crates/cli/tests/pnpx_alias.rspnpm/crates/cli/tests/prefix.rspnpm/crates/cli/tests/publish.rspnpm/crates/cli/tests/remove.rspnpm/crates/cli/tests/repo.rspnpm/crates/cli/tests/root.rspnpm/crates/cli/tests/run.rspnpm/crates/cli/tests/run_recursive.rspnpm/crates/cli/tests/sbom.rspnpm/crates/cli/tests/search.rspnpm/crates/cli/tests/set_script.rspnpm/crates/cli/tests/side_effects_cache.rspnpm/crates/cli/tests/stage.rspnpm/crates/cli/tests/stale_pin_dedupe.rspnpm/crates/cli/tests/store.rspnpm/crates/cli/tests/tarball_url_dependency.rspnpm/crates/cli/tests/unlink.rspnpm/crates/cli/tests/update.rspnpm/crates/cli/tests/verify_deps_before_run.rspnpm/crates/cli/tests/version.rspnpm/crates/cli/tests/whoami.rspnpm/crates/cli/tests/why.rspnpm/crates/cli/tests/with.rspnpm/crates/config/src/defaults.rspnpm/crates/config/src/defaults/tests.rspnpm/crates/config/src/lib.rspnpm/crates/napi/src/lib.rspnpm/crates/napi/src/pack.rspnpm/crates/package-manager/src/build_modules.rspnpm/crates/package-manager/src/hoisted_dep_graph.rspnpm/crates/package-manager/src/link_hoisted_modules.rspnpm/crates/tarball/src/lib.rspnpm/crates/tarball/src/tests.rspnpm/crates/testing-utils/src/bin.rspnpm/tasks/ecosystem-e2e/README.mdpnpm/tasks/integrated-benchmark/src/work_env.rspnpm/tasks/integrated-benchmark/src/work_env/tests.rs
✅ Files skipped from review due to trivial changes (13)
- pnpm/crates/package-manager/src/hoisted_dep_graph.rs
- pnpm/crates/cli/src/cli_args/install.rs
- pnpm/tasks/ecosystem-e2e/README.md
- pnpm/crates/cli/tests/dedupe_direct_deps.rs
- pnpm/crates/package-manager/src/link_hoisted_modules.rs
- pnpm/crates/cli/tests/run_recursive.rs
- pnpm/crates/cli/README.md
- pnpm/crates/cli/tests/dist_tag.rs
- pnpm/crates/cli/tests/with.rs
- pnpm/crates/cli/tests/config_dependencies.rs
- pnpm/crates/cli/src/cli_args/sbom.rs
- pnpm/crates/cli/tests/run.rs
- pnpm/crates/config/src/defaults.rs
🚧 Files skipped from review as they are similar to previous changes (70)
- pnpm/crates/cli/tests/pnpx_alias.rs
- pnpm/crates/cli/tests/custom_fetchers.rs
- pnpm/crates/cli/tests/ping.rs
- pnpm/crates/cli/tests/dry_run.rs
- pnpm/crates/cli/tests/lockfile_only.rs
- pnpm/crates/cli/Cargo.toml
- pnpm/crates/cli/tests/pnpr_install.rs
- pnpm/crates/cli/tests/deploy.rs
- pnpm/crates/napi/src/lib.rs
- pnpm/crates/cli/tests/verify_deps_before_run.rs
- pnpm/crates/cli/tests/cat_index.rs
- pnpm/crates/cli/tests/audit.rs
- pnpm/crates/cli/tests/dedupe_injected_deps.rs
- pnpm/crates/cli/tests/outdated.rs
- pnpm/crates/cli/src/lib.rs
- pnpm/crates/cli/tests/find_hash.rs
- pnpm/crates/cli/tests/list.rs
- package.json
- pnpm/crates/cli/src/cli_args/cli_command.rs
- pnpm/crates/cli/tests/patch.rs
- pnpm/crates/cli/tests/approve_builds.rs
- pnpm/crates/cli/tests/whoami.rs
- pnpm/crates/package-manager/src/build_modules.rs
- pnpm/crates/napi/src/pack.rs
- pnpm/crates/cli/tests/tarball_url_dependency.rs
- pnpm/crates/cli/tests/remove.rs
- pnpm/crates/cli/tests/why.rs
- pnpm/crates/cli/src/cli_args/setup.rs
- pnpm/crates/cli/tests/bin.rs
- pnpm/crates/cli/tests/prefix.rs
- pnpm/crates/cli/tests/add.rs
- .github/workflows/pacquet-integrated-benchmark.yml
- pnpm/crates/cli/tests/global.rs
- pnpm/crates/cli/tests/side_effects_cache.rs
- pnpm/crates/cli/tests/update.rs
- pnpm/crates/cli/tests/fetch.rs
- pnpm/crates/cli/tests/bugs.rs
- pnpm/crates/cli/tests/lifecycle_scripts.rs
- pnpm/crates/cli/tests/lockfile_resolution_reuse.rs
- pnpm/crates/cli/tests/publish.rs
- pnpm/crates/cli/tests/sbom.rs
- pnpm/crates/config/src/defaults/tests.rs
- pnpm/crates/config/src/lib.rs
- justfile
- pnpm/crates/cli/tests/catalog.rs
- pnpm/crates/cli/tests/root.rs
- pnpm/crates/cli/tests/set_script.rs
- pnpm/crates/cli/tests/stale_pin_dedupe.rs
- pnpm/crates/cli/tests/unlink.rs
- pnpm/crates/cli/tests/search.rs
- pnpm/crates/tarball/src/tests.rs
- pnpm/crates/cli/src/cli_args/self_update.rs
- pnpm/crates/testing-utils/src/bin.rs
- pnpm/crates/cli/tests/repo.rs
- pnpm/crates/cli/tests/docs.rs
- .github/workflows/pacquet-release-to-npm.yml
- .github/workflows/ecosystem-e2e.yml
- pnpm/crates/cli/tests/install.rs
- pnpm/crates/cli/tests/version.rs
- pnpm/crates/tarball/src/lib.rs
- pnpm/crates/cli/tests/dedupe.rs
- pnpm/crates/cli/tests/hoisted_node_linker.rs
- pnpm/tasks/integrated-benchmark/src/work_env/tests.rs
- pnpm/crates/cli/src/cli_args/completion/tests.rs
- pnpm/crates/cli/src/cli_args/switch_cli_version.rs
- pnpm/crates/cli/tests/store.rs
- pnpm/crates/cli/src/cli_args/completion.rs
- pnpm/crates/cli/tests/custom_resolvers.rs
- pnpm/crates/cli/tests/completion.rs
- pnpm/tasks/integrated-benchmark/src/work_env.rs
🛑 Comments failed to post (1)
pnpm/crates/cli/tests/stage.rs (1)
1-1: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Update stale "pacquet stage" references to "pnpm stage".
The module doc comment (line 1) says
`pacquet stage` integration testsand three.expect()messages (lines 38, 153, 500) say"spawn pacquet stage", but the binary is nowpnpm(confirmed byCommand::cargo_bin("pnpm")on line 26 and the[[bin]] name = "pnpm"inCargo.toml). The PR objectives explicitly include "update stale messages and comments" as part of the changes.✏️ Proposed fix
-//! `pacquet stage` integration tests: drive the real binary end-to-end +//! `pnpm stage` integration tests: drive the real binary end-to-end- pacquet(workspace).with_arg("stage").with_args(args).output().expect("spawn pacquet stage") + pacquet(workspace).with_arg("stage").with_args(args).output().expect("spawn pnpm stage")- .expect("spawn pacquet stage"); + .expect("spawn pnpm stage");(Line 500 has the same
.expect("spawn pacquet stage")pattern as line 153.)Also applies to: 38-38, 153-153, 500-500
🤖 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/crates/cli/tests/stage.rs` at line 1, Update the module documentation comment and all three spawn-related `.expect()` messages in the stage integration tests to refer to “pnpm stage” instead of “pacquet stage”, including the occurrences near the test setup and later stage tests.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12923 +/- ##
=======================================
Coverage 85.43% 85.44%
=======================================
Files 474 474
Lines 74546 74545 -1
=======================================
+ Hits 63691 63694 +3
+ Misses 10855 10851 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
What
Stage 2a of retiring the pacquet codename — the user-facing surfaces, kept separate from the internal crate renames (stage 2b):
pacquet→pnpm. Every build now outputs the binary under its shipped name; the release workflow's archive steps no longer rename, so the released artifact is byte-for-byte what cargo produced. Build invocations stay-p pacquet-cli --bin pnpmuntil stage 2b renames the crates.ERR_PACQUET_*→ERR_PNPM_*. The port already emits 302 codes asERR_PNPM_*; these were the 16 port-original stragglers (ERR_PACQUET_NO_OFFLINE_TARBALL,ERR_PACQUET_PATH_TRAVERSAL, …) that users would otherwise see, script against, and document before v12 stabilizes.PACQUET_VERSIONrides along asPNPM_VERSION.pnpm. They were broken for v12 — the scripts registered completion for a command namedpacquet, but v12 installs the binary aspnpm. All four shells' scripts now register and invokepnpm; the completion-server still acceptspacquetas the completed command's argv[0], so completion scripts installed by earlier alphas keep working until the user re-runs setup.pnpm(CycloneDX tool component + SPDXTool:creator), matching v11's output.Benchmark harness
The integrated-benchmark builds and runs arbitrary revisions, which now disagree on the bin name. Rather than breaking either side:
cli_bin_name()reads the revision clone's CLI crate manifest (whitespace-tolerant, under either directory layout) to pick the right--bin=flag — this also covers the window of revisions between the directory rename (refactor: rename the pacquet/ directory to pnpm/ #12913) and this PR.pnpm.mjs/pnpm.cjsbundle.Deliberately unchanged
pnpm11's@pacquet/<platform>-<arch>package references and itsPACQUET_VERSION = '0.11.7'test constants (those name the old published npm packages, which still exist under those names), the.pacquetvirtual-store dir, the harness clone dir, crate names, and prose.Verification
cargo check --workspace --all-targetspasses.completion,sbom,version,pnpx_alias), including the completion integration tests that spawn the renamed binary.cargo fmt --checkand typos (CI's pinned version) clean; all workflow YAML parses.🤖 Generated with Claude Code
Summary by CodeRabbit
pnpm, with updated dev commands and release artifacts.pnpmand generatepnpm completion-serverwiring.pnpm.ERR_PNPM_*.pnpmbuild outputs.pnpm.pnpmbinary.