Skip to content

fix(deploy): preserve local tarball package names - #12864

Merged
zkochan merged 4 commits into
pnpm:mainfrom
ychampion:fix-deploy-file-tarball-name
Jul 13, 2026
Merged

zkochan merged 4 commits into
pnpm:mainfrom
ychampion:fix-deploy-file-tarball-name

Conversation

@ychampion

@ychampion ychampion commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Keep the package name from the source lockfile when pnpm deploy rewrites local file: tarball dependencies.
  • Add coverage for the deploy lockfile rewrite and the warm-store shared-lockfile deploy path.

Why

Fixes #12792. On the second deploy with a warm store, the generated deploy lockfile used the tarball filename as the package name, so the store content check expected [email protected] while the stored package was [email protected].

Validation

  • corepack pnpm --filter @pnpm/releasing.commands compile — passed
  • NODE_OPTIONS="${NODE_OPTIONS:-} --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169" corepack pnpm exec jest test/deploy/createDeployFiles.test.ts --config ../../__utils__/jest-config/jest-preset.js --rootDir /root/oss/pnpm/pnpm11/releasing/commands --runInBand — passed
  • corepack pnpm --filter pnpm compile — passed
  • Branch-local two-deploy warm-store smoke test using node pnpm11/pnpm/bin/pnpm.mjs — passed
  • git push pre-push hook — passed

Summary by CodeRabbit

  • Bug Fixes
    • Fixed pnpm deploy so local file:/tarball dependencies preserve the intended package name in generated manifests and deploy lockfiles, with consistent “file URL” dependency key naming (including alias/link cases).
    • Improved shared-workspace-lockfile deploy to avoid warm-store failures for local tarballs whose filenames include version numbers.
  • Tests
    • Added coverage for deploy-time rewriting of local tarball dependency specifiers and key preservation.
    • Added coverage for shared lockfile deploy behavior with local tarball inputs.
  • Chores
    • Updated patch-level release metadata for releaser tooling.

Written by an agent (Codex, gpt-5.5).

@ychampion
ychampion requested a review from zkochan as a code owner July 9, 2026 02:38
Copilot AI review requested due to automatic review settings July 9, 2026 02:38
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

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.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 03fe0f00-c839-47aa-b505-d11bca9088b8

📥 Commits

Reviewing files that changed from the base of the PR and between 2b2b9f6 and f0606ff.

📒 Files selected for processing (1)
  • pnpm11/releasing/commands/src/deploy/createDeployFiles.ts

📝 Walkthrough

Walkthrough

This PR updates deploy lockfile generation in both TypeScript and Rust to preserve package names for local file: tarballs. Regression tests cover lockfile conversion, repeated shared-lockfile deploys, and warm-store behavior.

Changes

Deploy tarball package name preservation

Layer / File(s) Summary
TypeScript deploy name resolution
pnpm11/releasing/commands/src/deploy/createDeployFiles.ts
Parsed or fallback package names are threaded through file dependency path construction.
Rust deploy name propagation
pnpm/crates/cli/src/cli_args/deploy.rs
Local dependency aliases and package keys are passed into file URL key construction, preserving tarball package names.
Regression tests and release metadata
pnpm11/releasing/commands/test/deploy/*, pnpm/crates/cli/src/cli_args/deploy/tests.rs, .changeset/deploy-local-tarball-names.md
Tests cover local tarball naming and repeated shared-lockfile deploys; the changeset declares patch releases and documents the fix.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Assessment against linked issues

Objective Addressed Explanation
Use the tarball package metadata name instead of its filename when generating the deploy lockfile (#12792) ✅
Allow repeated shared-lockfile deploys against a warm store without ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE (#12792) ✅

Suggested labels: product: pnpm@11

Suggested reviewers: zkochan, copilot

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 9, 2026
Copilot AI review requested due to automatic review settings July 9, 2026 03:08

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.

Deploy rewrites local file paths into deploy-local file URLs.

Keep the original package name from the source lockfile.

This prevents warm-store content checks from comparing against the tarball filename.

Constraint: shared-lockfile deploy rewrites local paths into deploy-local file URLs.

Confidence: high

Scope-risk: narrow

Tested: `corepack pnpm --filter @pnpm/releasing.commands compile`

Tested: base-preset Jest createDeployFiles regression

Tested: `corepack pnpm --filter pnpm compile`

Tested: branch-local two-deploy warm-store smoke test for pnpm#12792

Not-tested: full with-registry deploy Jest suite; local pnpr build hit ENOSPC.
@zkochan
zkochan force-pushed the fix-deploy-file-tarball-name branch from 5167335 to 68642b6 Compare July 13, 2026 10:57
Copilot AI review requested due to automatic review settings July 13, 2026 10:57

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.

@greptile-apps

greptile-apps Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Safe to merge. The change is a targeted, well-tested fix that adds a fallback name lookup before the filename-based fallback, with no behavioural change to any non-tarball code path.

Both the TypeScript and Rust implementations are updated in lockstep, new unit and integration tests cover the fixed path, and the logic change is minimal and correct.

No files require special attention.

Reviews (3): Last reviewed commit: "refactor(deploy): carry tarball packageN..." | Re-trigger Greptile

@qodo-code-review

qodo-code-review Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (1) 📎 Requirement gaps (0) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 18 rules

Grey Divider


Action required

1. Missing trailing comma packageName ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
The multi-line parameter list for createFileUrlDepPath lacks a trailing comma on the last
parameter, increasing diff noise and violating the TypeScript trailing-comma requirement.
Code

pnpm11/releasing/commands/src/deploy/createDeployFiles.ts[R302-306]

function createFileUrlDepPath (
  { resolvedPath, suffix }: Pick<ResolveLinkOrFileResult, 'resolvedPath' | 'suffix'>,
-  allProjects: CreateDeployFilesOptions['allProjects']
+  allProjects: CreateDeployFilesOptions['allProjects'],
+  packageName?: string
): DepPath {
Evidence
PR Compliance ID 713434 requires trailing commas in multi-line TypeScript constructs. The updated
createFileUrlDepPath signature spans multiple lines but the final parameter line lacks a trailing
comma.

Rule 713434: Require trailing commas in TypeScript collections and multi-line constructs
pnpm11/releasing/commands/src/deploy/createDeployFiles.ts[302-306]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`createFileUrlDepPath` has a multi-line parameter list where the last parameter (`packageName?: string`) is missing a trailing comma.

## Issue Context
Compliance requires trailing commas for multi-line TypeScript constructs to keep formatting consistent and reduce noisy diffs.

## Fix Focus Areas
- pnpm11/releasing/commands/src/deploy/createDeployFiles.ts[302-306]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. writePackageTarball declared too early 📘 Rule violation ⚙ Maintainability
Description
writePackageTarball is declared before its first usage in the same TypeScript file, violating the
rule that function declarations must appear after first use.
Code

pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[R52-65]

+async function writePackageTarball (tarballPath: string, manifest: ProjectManifest): Promise<void> {
+  const pack = tar.pack()
+  pack.entry({ name: 'package/package.json' }, JSON.stringify(manifest, undefined, 2))
+  pack.entry({ name: 'package/index.js' }, '')
+
+  const tarball = fs.createWriteStream(tarballPath)
+  pack.pipe(createGzip()).pipe(tarball)
+  pack.finalize()
+
+  return new Promise((resolve, reject) => {
+    tarball.on('close', resolve)
+    tarball.on('error', reject)
+  })
+}
Evidence
PR Compliance ID 713432 requires top-level TypeScript function declarations to appear after their
first usage within the file. writePackageTarball is declared at lines 52-65 and only used later at
lines 305-308, so no usage occurs before the declaration.

Rule 713432: Declare TypeScript functions only after their first usage
pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[52-65]
pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[303-308]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The helper `writePackageTarball` is declared before any call site in `shared-lockfile.test.ts`, but the style rule requires function declarations to appear after their first usage.

## Issue Context
This rule applies to top-level TypeScript `function` declarations and is intended to keep helpers near the bottom, relying on hoisting.

## Fix Focus Areas
- pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[52-65]
- pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[291-308]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

3. Alias name overwritten 🐞 Bug ≡ Correctness ⭐ New
Description
When rewriting a local dep to a file-URL depPath, the code always uses the importer-map key
(alias) as the package name fallback, which can differ from the name embedded in an existing
ImporterDepVersion::Alias / SnapshotDepRef::Alias depPath. This can rewrite key.name into the
wrong name and cause the generated deploy lockfile to point at a different snapshot/package key than
the source lockfile (potentially re-triggering store/snapshot mismatches).
Code

pnpm/crates/cli/src/cli_args/deploy.rs[R1176-1185]

+    alias: &PkgName,
    local: &LocalResolve,
    ctx: &ConvertCtx,
) -> miette::Result<ImporterDepVersion> {
    let resolved_path = validate_lockfile_local_path(&local.resolved_path, ctx.lockfile_dir)?;
    if same_path(&resolved_path, ctx.deployed_project_root) {
        return Ok(ImporterDepVersion::Link(".".to_string()));
    }
-    let key = create_file_url_key(&resolved_path, &local.suffix, ctx.all_projects)?;
+    let key = create_file_url_key(&resolved_path, &local.suffix, ctx.all_projects, Some(alias))?;
    Ok(ImporterDepVersion::Alias(key))
Evidence
The deploy rewrite resolves local deps and then builds new depPath keys using alias as the
fallback package name, but aliased depPaths are defined to resolve by the embedded depPath name
(key.name), not the importer-map key. The code path already has access to key.name in the Alias
branch, but it’s discarded (no-op with_alias), so the rewrite cannot preserve it today.

pnpm/crates/cli/src/cli_args/deploy.rs[1068-1077]
pnpm/crates/cli/src/cli_args/deploy.rs[1112-1122]
pnpm/crates/cli/src/cli_args/deploy.rs[1169-1186]
pnpm/crates/cli/src/cli_args/deploy.rs[1220-1238]
pnpm/crates/lockfile/src/resolved_dependency.rs[62-71]
pnpm/crates/lockfile/src/resolved_dependency.rs[148-156]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`local_to_importer_dep_version` / `local_to_snapshot_dep_ref` always pass the importer dependency-map key (`alias`) into `create_file_url_key(..., Some(alias))`. For local deps that were originally expressed as an aliased depPath (e.g. `ImporterDepVersion::Alias(key)` where `key.name != importer-map key`), this can rewrite the depPath to use the importer-map key as the *resolved* package name, contradicting the lockfile semantics where alias depPaths resolve by `(alias.name, alias.suffix)`.

## Issue Context
- `ImporterDepVersion::Alias` explicitly resolves via the depPath’s embedded name/suffix, while the importer-map key is only the `node_modules` directory name.
- The resolver path for local deps already attempts to carry `key.name` via `LocalResolve::with_alias(&key.name)`, but `with_alias` is currently a no-op, so that name is lost.

## Fix Focus Areas
- pnpm/crates/cli/src/cli_args/deploy.rs[1112-1138]
- pnpm/crates/cli/src/cli_args/deploy.rs[1169-1203]
- pnpm/crates/cli/src/cli_args/deploy.rs[1220-1239]

### Concrete fix approach
1. Extend `LocalResolve` to carry an optional `package_name: Option<PkgName>`.
2. Implement `LocalResolve::with_alias(self, alias: &PkgName)` to set `self.package_name = Some(alias.clone())`.
3. In `local_to_importer_dep_version` / `local_to_snapshot_dep_ref`, prefer `local.package_name.as_ref()` when passing `package_name` to `create_file_url_key`, falling back to the importer-map `alias` only when `local.package_name` is `None`.
  - This preserves the depPath-embedded name for true alias depPaths, while keeping current behavior for non-alias local deps.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Previous review results

Review updated until commit f0606ff

Results up to commit 68642b6


🐞 Bugs (0) 📘 Rule violations (1) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Action required
1. writePackageTarball declared too early 📘 Rule violation ⚙ Maintainability
Description
writePackageTarball is declared before its first usage in the same TypeScript file, violating the
rule that function declarations must appear after first use.
Code

pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[R52-65]

+async function writePackageTarball (tarballPath: string, manifest: ProjectManifest): Promise<void> {
+  const pack = tar.pack()
+  pack.entry({ name: 'package/package.json' }, JSON.stringify(manifest, undefined, 2))
+  pack.entry({ name: 'package/index.js' }, '')
+
+  const tarball = fs.createWriteStream(tarballPath)
+  pack.pipe(createGzip()).pipe(tarball)
+  pack.finalize()
+
+  return new Promise((resolve, reject) => {
+    tarball.on('close', resolve)
+    tarball.on('error', reject)
+  })
+}
Evidence
PR Compliance ID 713432 requires top-level TypeScript function declarations to appear after their
first usage within the file. writePackageTarball is declared at lines 52-65 and only used later at
lines 305-308, so no usage occurs before the declaration.

Rule 713432: Declare TypeScript functions only after their first usage
pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[52-65]
pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[303-308]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The helper `writePackageTarball` is declared before any call site in `shared-lockfile.test.ts`, but the style rule requires function declarations to appear after their first usage.

## Issue Context
This rule applies to top-level TypeScript `function` declarations and is intended to keep helpers near the bottom, relying on hoisting.

## Fix Focus Areas
- pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[52-65]
- pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[291-308]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Missing trailing comma packageName ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
The multi-line parameter list for createFileUrlDepPath lacks a trailing comma on the last
parameter, increasing diff noise and violating the TypeScript trailing-comma requirement.
Code

pnpm11/releasing/commands/src/deploy/createDeployFiles.ts[R302-306]

function createFileUrlDepPath (
  { resolvedPath, suffix }: Pick<ResolveLinkOrFileResult, 'resolvedPath' | 'suffix'>,
-  allProjects: CreateDeployFilesOptions['allProjects']
+  allProjects: CreateDeployFilesOptions['allProjects'],
+  packageName?: string
): DepPath {
Evidence
PR Compliance ID 713434 requires trailing commas in multi-line TypeScript constructs. The updated
createFileUrlDepPath signature spans multiple lines but the final parameter line lacks a trailing
comma.

Rule 713434: Require trailing commas in TypeScript collections and multi-line constructs
pnpm11/releasing/commands/src/deploy/createDeployFiles.ts[302-306]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`createFileUrlDepPath` has a multi-line parameter list where the last parameter (`packageName?: string`) is missing a trailing comma.

## Issue Context
Compliance requires trailing commas for multi-line TypeScript constructs to keep formatting consistent and reduce noisy diffs.

## Fix Focus Areas
- pnpm11/releasing/commands/src/deploy/createDeployFiles.ts[302-306]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Qodo Logo

Comment on lines +52 to +65
async function writePackageTarball (tarballPath: string, manifest: ProjectManifest): Promise<void> {
const pack = tar.pack()
pack.entry({ name: 'package/package.json' }, JSON.stringify(manifest, undefined, 2))
pack.entry({ name: 'package/index.js' }, '')

const tarball = fs.createWriteStream(tarballPath)
pack.pipe(createGzip()).pipe(tarball)
pack.finalize()

return new Promise((resolve, reject) => {
tarball.on('close', resolve)
tarball.on('error', reject)
})
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

2. writepackagetarball declared too early 📘 Rule violation ⚙ Maintainability

writePackageTarball is declared before its first usage in the same TypeScript file, violating the
rule that function declarations must appear after first use.
Agent Prompt
## Issue description
The helper `writePackageTarball` is declared before any call site in `shared-lockfile.test.ts`, but the style rule requires function declarations to appear after their first usage.

## Issue Context
This rule applies to top-level TypeScript `function` declarations and is intended to keep helpers near the bottom, relying on hoisting.

## Fix Focus Areas
- pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[52-65]
- pnpm11/releasing/commands/test/deploy/shared-lockfile.test.ts[291-308]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@qodo-code-review

qodo-code-review Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

CategorySuggestion                                                                                                                                    Impact
Possible issue
✅ Preserve names for aliased tarballs
Suggestion Impact:The commit addressed package-name propagation for file URL dependency paths by storing fallback names on resolveResult.packageName and making createFileUrlDepPath consistently consume that field. This is a related alternative implementation, though it does not use the suggested localPackageNamesByPath lookup.

code diff:

-    const inputPackageName = dp.parse(inputDepPath).name
     const outputDepPath = resolveResult
-      ? createFileUrlDepPath(resolveResult, allProjects, resolveResult.packageName ?? inputPackageName)
+      ? createFileUrlDepPath(resolveResult, allProjects)
       : inputDepPath
     targetPackageSnapshots[outputDepPath] = convertPackageSnapshot(inputSnapshot, {
       allProjects,
@@ -120,8 +119,9 @@
         continue
       }
 
+      resolveResult.packageName ??= name
       targetSpecifiers[name] = targetDependencies[name] =
-        resolveResult.resolvedPath === deployedProjectRealPath ? 'link:.' : createFileUrlDepPath(resolveResult, allProjects, resolveResult.packageName ?? name)
+        resolveResult.resolvedPath === deployedProjectRealPath ? 'link:.' : createFileUrlDepPath(resolveResult, allProjects)
     }
   }
 
@@ -253,7 +253,8 @@
       continue
     }
 
-    output[key] = createFileUrlDepPath(resolveResult, opts.allProjects, resolveResult.packageName ?? key)
+    resolveResult.packageName ??= key
+    output[key] = createFileUrlDepPath(resolveResult, opts.allProjects)
   }
 
   return output
@@ -300,9 +301,8 @@
 }
 
 function createFileUrlDepPath (
-  { resolvedPath, suffix }: Pick<ResolveLinkOrFileResult, 'resolvedPath' | 'suffix'>,
-  allProjects: CreateDeployFilesOptions['allProjects'],
-  packageName?: string
+  { resolvedPath, suffix, packageName }: Pick<ResolveLinkOrFileResult, 'resolvedPath' | 'suffix' | 'packageName'>,
+  allProjects: CreateDeployFilesOptions['allProjects']

Use the actual package name from lockfile.packages instead of the dependency
alias when generating the deploy lockfile dependency paths for file: references.

pnpm11/releasing/commands/src/deploy/createDeployFiles.ts [123-124]

+const packageName = resolveResult.packageName ??
+  localPackageNamesByPath.get(resolveResult.resolvedPath) ??
+  name
 targetSpecifiers[name] = targetDependencies[name] =
-  resolveResult.resolvedPath === deployedProjectRealPath ? 'link:.' : createFileUrlDepPath(resolveResult, allProjects, resolveResult.packageName ?? name)
+  resolveResult.resolvedPath === deployedProjectRealPath
+    ? 'link:.'
+    : createFileUrlDepPath(resolveResult, allProjects, packageName)

[Suggestion processed]

Suggestion importance[1-10]: 10

__

Why: This suggestion correctly identifies a major bug introduced by the PR where aliased local tarball dependencies would result in a mismatch between the dependencies specifier and the packages snapshot keys, causing the deploy lockfile to be invalid.

High
  • More

Port pnpm#12864 to pacquet: when rewriting a local `file:` tarball
dependency, `create_file_url_key` fell back to the tarball filename
(e.g. `tar-pkg-1.0.0.tgz`) as the package name, so warm-store deploys
failed with `ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE`. Thread the real
package name (the package-key name, or the outer dependency alias for
dependency references) into the file-URL key, matching the TypeScript
fix.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 13, 2026 11:32

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

Code review by qodo was updated up to the latest commit 2b2b9f6

@qodo-code-review

qodo-code-review Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

CategorySuggestion                                                                                                                                    Impact
Possible issue
✅ Preserve names for aliased tarballs
Suggestion Impact:The commit addressed package-name propagation for file URL dependency paths by storing fallback names on resolveResult.packageName and making createFileUrlDepPath consistently consume that field. This is a related alternative implementation, though it does not use the suggested localPackageNamesByPath lookup.

code diff:

-    const inputPackageName = dp.parse(inputDepPath).name
     const outputDepPath = resolveResult
-      ? createFileUrlDepPath(resolveResult, allProjects, resolveResult.packageName ?? inputPackageName)
+      ? createFileUrlDepPath(resolveResult, allProjects)
       : inputDepPath
     targetPackageSnapshots[outputDepPath] = convertPackageSnapshot(inputSnapshot, {
       allProjects,
@@ -120,8 +119,9 @@
         continue
       }
 
+      resolveResult.packageName ??= name
       targetSpecifiers[name] = targetDependencies[name] =
-        resolveResult.resolvedPath === deployedProjectRealPath ? 'link:.' : createFileUrlDepPath(resolveResult, allProjects, resolveResult.packageName ?? name)
+        resolveResult.resolvedPath === deployedProjectRealPath ? 'link:.' : createFileUrlDepPath(resolveResult, allProjects)
     }
   }
 
@@ -253,7 +253,8 @@
       continue
     }
 
-    output[key] = createFileUrlDepPath(resolveResult, opts.allProjects, resolveResult.packageName ?? key)
+    resolveResult.packageName ??= key
+    output[key] = createFileUrlDepPath(resolveResult, opts.allProjects)
   }
 
   return output
@@ -300,9 +301,8 @@
 }
 
 function createFileUrlDepPath (
-  { resolvedPath, suffix }: Pick<ResolveLinkOrFileResult, 'resolvedPath' | 'suffix'>,
-  allProjects: CreateDeployFilesOptions['allProjects'],
-  packageName?: string
+  { resolvedPath, suffix, packageName }: Pick<ResolveLinkOrFileResult, 'resolvedPath' | 'suffix' | 'packageName'>,
+  allProjects: CreateDeployFilesOptions['allProjects']

Use the actual package name from lockfile.packages instead of the dependency
alias when generating the deploy lockfile dependency paths for file: references.

pnpm11/releasing/commands/src/deploy/createDeployFiles.ts [123-124]

+const packageName = resolveResult.packageName ??
+  localPackageNamesByPath.get(resolveResult.resolvedPath) ??
+  name
 targetSpecifiers[name] = targetDependencies[name] =
-  resolveResult.resolvedPath === deployedProjectRealPath ? 'link:.' : createFileUrlDepPath(resolveResult, allProjects, resolveResult.packageName ?? name)
+  resolveResult.resolvedPath === deployedProjectRealPath
+    ? 'link:.'
+    : createFileUrlDepPath(resolveResult, allProjects, packageName)

[Suggestion processed]

Suggestion importance[1-10]: 10

__

Why: This suggestion correctly identifies a major bug introduced by the PR where aliased local tarball dependencies would result in a mismatch between the dependencies specifier and the packages snapshot keys, causing the deploy lockfile to be invalid.

High
  • More

Thread the parsed package name through the `packageName` field of
`ResolveLinkOrFileResult` (where it already lives) instead of a separate
`createFileUrlDepPath` argument. The scheme-shortcut call sites fill the
fallback with `resolveResult.packageName ??= name/key`; the packages loop
drops its redundant `inputPackageName` fallback, since `resolveLinkOrFile`
always parses the name out of the dep-path key there.

No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 13, 2026 11:47

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

Code review by qodo was updated up to the latest commit f0606ff

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

Auto-approved notes - no code suggestions found
- 'approve_pr_on_self_review' flag enabled

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 41.17647% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.25%. Comparing base (d3e1383) to head (f0606ff).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pnpm/crates/cli/src/cli_args/deploy.rs 41.17% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12864      +/-   ##
==========================================
- Coverage   85.26%   85.25%   -0.01%     
==========================================
  Files         486      486              
  Lines       77280    77376      +96     
==========================================
+ Hits        65890    65966      +76     
- Misses      11390    11410      +20     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: f0606ffb8cb7

Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD.

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 3.801 ± 0.148 3.624 4.068 1.79 ± 0.12
pacquet@main 3.863 ± 0.158 3.653 4.094 1.82 ± 0.13
pnpr@HEAD 2.152 ± 0.140 1.979 2.356 1.02 ± 0.09
pnpr@main 2.118 ± 0.122 1.972 2.335 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 3.8014872360199994,
      "stddev": 0.14762450215594547,
      "median": 3.7615795738199997,
      "user": 3.6168992,
      "system": 3.4280178799999996,
      "min": 3.6241576648200002,
      "max": 4.06785235682,
      "times": [
        4.06785235682,
        3.73830037182,
        3.70429758782,
        3.6241576648200002,
        4.03598686282,
        3.75782468882,
        3.82662620482,
        3.65897748282,
        3.76533445882,
        3.8355146808200002
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 3.863479285620001,
      "stddev": 0.1579277426773655,
      "median": 3.8646371758200004,
      "user": 3.6544643999999997,
      "system": 3.4042194799999996,
      "min": 3.65257318082,
      "max": 4.09401318082,
      "times": [
        4.09401318082,
        4.09340134682,
        3.73129121582,
        3.90076966582,
        3.65257318082,
        3.98746123582,
        3.8614793028200003,
        3.73428046482,
        3.86779504882,
        3.71172821382
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 2.15186290572,
      "stddev": 0.1401716476013405,
      "median": 2.13290684482,
      "user": 2.7118315999999996,
      "system": 3.0671012799999997,
      "min": 1.9785537878200001,
      "max": 2.35575010082,
      "times": [
        2.10042147982,
        2.00800131582,
        2.25109853682,
        2.16539220982,
        2.02258987482,
        1.9785537878200001,
        2.30571282382,
        2.35575010082,
        2.29024892482,
        2.04086000282
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 2.1180976559199998,
      "stddev": 0.12215658331824002,
      "median": 2.0843601728200003,
      "user": 2.7380052,
      "system": 3.03683008,
      "min": 1.97208759682,
      "max": 2.33547599482,
      "times": [
        2.33547599482,
        2.10090288182,
        2.14911204782,
        2.06781746382,
        2.31742215982,
        2.06179655682,
        2.05661959682,
        2.12499358282,
        1.97208759682,
        1.99474867782
      ]
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 649.2 ± 8.1 640.0 662.1 1.00
pacquet@main 660.0 ± 9.5 647.8 675.1 1.02 ± 0.02
pnpr@HEAD 707.0 ± 22.9 673.3 743.6 1.09 ± 0.04
pnpr@main 733.7 ± 105.0 675.1 1029.8 1.13 ± 0.16
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6491509754800001,
      "stddev": 0.008121792240250674,
      "median": 0.6475888456800001,
      "user": 0.3786925199999999,
      "system": 1.3483447800000001,
      "min": 0.6399902231800001,
      "max": 0.66213181618,
      "times": [
        0.6399902231800001,
        0.6558424611800001,
        0.66137258318,
        0.6481091051800001,
        0.6470685861800001,
        0.6500186321800001,
        0.6431934771800001,
        0.66213181618,
        0.6420292671800001,
        0.6417536031800001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.6600234353800001,
      "stddev": 0.009498474804215607,
      "median": 0.6595968726800001,
      "user": 0.39081611999999993,
      "system": 1.33662258,
      "min": 0.6477760851800001,
      "max": 0.6751449941800001,
      "times": [
        0.6477760851800001,
        0.6751449941800001,
        0.6644477041800001,
        0.6697346341800001,
        0.6499894391800001,
        0.65635966718,
        0.6628340781800001,
        0.6685111651800001,
        0.65577384518,
        0.6496627411800001
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.70699660748,
      "stddev": 0.022855444105467793,
      "median": 0.7096627796800001,
      "user": 0.39440361999999995,
      "system": 1.35322688,
      "min": 0.6732689591800001,
      "max": 0.7436193451800001,
      "times": [
        0.72125168118,
        0.7289775741800001,
        0.7144408231800001,
        0.6951959901800001,
        0.6785079921800001,
        0.7209835101800001,
        0.7048847361800001,
        0.6732689591800001,
        0.6888354631800001,
        0.7436193451800001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.7336522445800002,
      "stddev": 0.10496161934310311,
      "median": 0.7001510426800001,
      "user": 0.39638171999999994,
      "system": 1.36236808,
      "min": 0.6751236571800001,
      "max": 1.0297820151800001,
      "times": [
        0.6995418371800001,
        0.70076024818,
        0.6945275861800001,
        0.7047754571800001,
        0.6956608051800001,
        0.6992843721800001,
        0.6751236571800001,
        0.7054497121800001,
        1.0297820151800001,
        0.7316167551800001
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.264 ± 0.046 4.212 4.345 1.96 ± 0.11
pacquet@main 4.246 ± 0.041 4.140 4.283 1.96 ± 0.11
pnpr@HEAD 2.263 ± 0.123 2.118 2.426 1.04 ± 0.08
pnpr@main 2.170 ± 0.116 2.070 2.393 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.264163045779999,
      "stddev": 0.0461776767603457,
      "median": 4.257911138879999,
      "user": 3.7860239199999994,
      "system": 3.4064897800000002,
      "min": 4.21172820288,
      "max": 4.34504472288,
      "times": [
        4.25421653688,
        4.300531546879999,
        4.261605740879999,
        4.21405523088,
        4.21172820288,
        4.26913091588,
        4.34504472288,
        4.24723363988,
        4.21611599288,
        4.321967927879999
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.246249345979999,
      "stddev": 0.04125814042681309,
      "median": 4.2570396203800005,
      "user": 3.79956062,
      "system": 3.3996650799999997,
      "min": 4.13972744388,
      "max": 4.2827103938799995,
      "times": [
        4.26581338988,
        4.2827103938799995,
        4.26738767088,
        4.2497556978799995,
        4.239720022879999,
        4.27841947788,
        4.13972744388,
        4.26121426988,
        4.25286497088,
        4.22488012188
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 2.2625776617800004,
      "stddev": 0.1227302438738422,
      "median": 2.2861018248800002,
      "user": 2.5437667200000003,
      "system": 2.9375517799999997,
      "min": 2.11763931288,
      "max": 2.4263855378800003,
      "times": [
        2.39909273788,
        2.1225126488800004,
        2.15118832488,
        2.4263855378800003,
        2.11763931288,
        2.28814994988,
        2.2840536998800003,
        2.12791030588,
        2.3327325448800003,
        2.37611155488
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 2.1703120789800003,
      "stddev": 0.11588119243210507,
      "median": 2.1253422863800004,
      "user": 2.58125222,
      "system": 2.95133558,
      "min": 2.07035806988,
      "max": 2.3930496098800003,
      "times": [
        2.0950726848800003,
        2.09506475488,
        2.11821711388,
        2.14650887188,
        2.16859814188,
        2.3741174288800004,
        2.1096666548800003,
        2.07035806988,
        2.3930496098800003,
        2.1324674588800003
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.390 ± 0.030 1.348 1.438 2.01 ± 0.11
pacquet@main 1.380 ± 0.054 1.351 1.529 2.00 ± 0.12
pnpr@HEAD 0.690 ± 0.034 0.665 0.780 1.00
pnpr@main 0.693 ± 0.064 0.667 0.875 1.00 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.39008547436,
      "stddev": 0.029907334916345094,
      "median": 1.38324089976,
      "user": 1.3500377399999999,
      "system": 1.73473994,
      "min": 1.34755339726,
      "max": 1.43799432826,
      "times": [
        1.38448601026,
        1.36833005426,
        1.36679838426,
        1.34755339726,
        1.38199578926,
        1.37292080926,
        1.39806554026,
        1.40523817726,
        1.43799432826,
        1.4374722532600002
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.37953814166,
      "stddev": 0.05362442066208104,
      "median": 1.36297715526,
      "user": 1.31189914,
      "system": 1.7198343399999998,
      "min": 1.3505095772600002,
      "max": 1.5291262002600001,
      "times": [
        1.36382424526,
        1.35387534126,
        1.5291262002600001,
        1.37129857626,
        1.3505095772600002,
        1.35153580926,
        1.3762442112600002,
        1.3621300652600001,
        1.38150035026,
        1.35533704026
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.6904238977599999,
      "stddev": 0.03373063869501444,
      "median": 0.6826731752599999,
      "user": 0.34429784,
      "system": 1.30324014,
      "min": 0.66513087626,
      "max": 0.78038506326,
      "times": [
        0.67947704126,
        0.78038506326,
        0.70416069926,
        0.68108632526,
        0.66513087626,
        0.66567976326,
        0.66941100826,
        0.68426002526,
        0.68771608126,
        0.68693209426
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.6928609717599999,
      "stddev": 0.06411911331317066,
      "median": 0.67170292676,
      "user": 0.34522234,
      "system": 1.3001439399999999,
      "min": 0.66671258426,
      "max": 0.87496179626,
      "times": [
        0.66945611526,
        0.66932659326,
        0.67135663626,
        0.6703225792599999,
        0.66671258426,
        0.67915906226,
        0.67204921726,
        0.67736069526,
        0.67790443826,
        0.87496179626
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 3.057 ± 0.037 3.027 3.151 4.56 ± 0.06
pacquet@main 3.080 ± 0.053 3.031 3.213 4.59 ± 0.09
pnpr@HEAD 0.670 ± 0.005 0.665 0.679 1.00
pnpr@main 0.684 ± 0.010 0.664 0.700 1.02 ± 0.02
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 3.05709529178,
      "stddev": 0.03650161659992655,
      "median": 3.05191456488,
      "user": 1.7704794199999998,
      "system": 2.0082916399999995,
      "min": 3.02693042738,
      "max": 3.15051306938,
      "times": [
        3.07121098138,
        3.0553849193800002,
        3.02765409638,
        3.02693042738,
        3.0542304483800002,
        3.03185495638,
        3.06803154638,
        3.03554379138,
        3.15051306938,
        3.04959868138
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 3.08049136638,
      "stddev": 0.05274537562108003,
      "median": 3.07116136688,
      "user": 1.80751312,
      "system": 1.96763044,
      "min": 3.03052540238,
      "max": 3.21268113038,
      "times": [
        3.03881295938,
        3.03052540238,
        3.0850035833800002,
        3.07126359438,
        3.09621535438,
        3.03351596038,
        3.06460625338,
        3.07105913938,
        3.21268113038,
        3.10123028638
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.6704464990800001,
      "stddev": 0.004756391582076674,
      "median": 0.6687851058800001,
      "user": 0.34810612,
      "system": 1.30100764,
      "min": 0.66495510438,
      "max": 0.6792108953800001,
      "times": [
        0.6736170833800001,
        0.6655429793800001,
        0.66495510438,
        0.6733344593800001,
        0.6681360913800001,
        0.66943412038,
        0.6756596323800002,
        0.6666951593800001,
        0.6678794653800001,
        0.6792108953800001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.6836278155800001,
      "stddev": 0.010276695436362403,
      "median": 0.6837704813800001,
      "user": 0.34961291999999994,
      "system": 1.3138361399999998,
      "min": 0.6637063643800001,
      "max": 0.70047081738,
      "times": [
        0.6637063643800001,
        0.6806362763800001,
        0.6836677333800001,
        0.6787387453800001,
        0.6749781473800001,
        0.6882234003800001,
        0.6838732293800001,
        0.70047081738,
        0.6869519933800001,
        0.6950314483800001
      ]
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 673.9 ± 12.5 652.9 694.8 6.24 ± 0.13
pacquet@main 675.3 ± 13.9 657.0 705.1 6.25 ± 0.14
pnpr@HEAD 108.0 ± 1.0 107.3 112.2 1.00
pnpr@main 108.8 ± 2.8 106.8 120.4 1.01 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6739438591800001,
      "stddev": 0.012526754427624385,
      "median": 0.67367689008,
      "user": 0.6384163199999999,
      "system": 0.15764081999999996,
      "min": 0.65292591258,
      "max": 0.69483843358,
      "times": [
        0.66467021358,
        0.66704493858,
        0.68894739258,
        0.66399220258,
        0.65292591258,
        0.67245894458,
        0.69483843358,
        0.68119884058,
        0.67489483558,
        0.67846687758
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.6752829680800001,
      "stddev": 0.01388626222136268,
      "median": 0.67302385908,
      "user": 0.6408108199999999,
      "system": 0.15504351999999996,
      "min": 0.65704906958,
      "max": 0.70512422558,
      "times": [
        0.67526977358,
        0.67222711658,
        0.70512422558,
        0.68820173758,
        0.67287015058,
        0.67317756758,
        0.6818293895800001,
        0.65704906958,
        0.66162245758,
        0.66545819258
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.10804101583000002,
      "stddev": 0.0009573941484250593,
      "median": 0.10796539758000001,
      "user": 0.02884898666666666,
      "system": 0.019525069999999995,
      "min": 0.10728765158000002,
      "max": 0.11218918758000002,
      "times": [
        0.11218918758000002,
        0.10732796958000002,
        0.10744868158000001,
        0.10813713658000002,
        0.10805294758000002,
        0.10751813158000001,
        0.10863593258000001,
        0.10781244958000001,
        0.10743115858000002,
        0.10770690258000001,
        0.10804052658000002,
        0.10768120458000001,
        0.10728765158000002,
        0.10858392558000002,
        0.10750928458000002,
        0.10762986858000001,
        0.10798701158000001,
        0.10826468158000001,
        0.10749628058,
        0.10823048758,
        0.10800016858000001,
        0.10806916658000001,
        0.10799984058,
        0.10794378358000001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.10884197530000002,
      "stddev": 0.002824586569840526,
      "median": 0.10798905758,
      "user": 0.02845974,
      "system": 0.021010479999999995,
      "min": 0.10675820458000002,
      "max": 0.12039071458000002,
      "times": [
        0.10742314358000002,
        0.10881797958000002,
        0.10788538458000001,
        0.10784840358000002,
        0.10903114858000001,
        0.10675820458000002,
        0.10798905758,
        0.10798870558000001,
        0.10925591758000001,
        0.11151740858000002,
        0.10809093758000002,
        0.10846966058000002,
        0.10676604058000001,
        0.10815752258000001,
        0.11383043258000002,
        0.12039071458000002,
        0.10869553358000002,
        0.10782479258000001,
        0.10681571258000001,
        0.10828862058000001,
        0.10796921658000001,
        0.10747487058,
        0.10800424658000002,
        0.10790974058000001,
        0.10784598658000001
      ]
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 6.612 ± 0.090 6.480 6.773 1.32 ± 0.03
pacquet@main 6.656 ± 0.146 6.456 6.898 1.33 ± 0.04
pnpr@HEAD 5.033 ± 0.082 4.955 5.231 1.01 ± 0.03
pnpr@main 5.001 ± 0.099 4.892 5.197 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 6.611822469740001,
      "stddev": 0.08973133124368755,
      "median": 6.6215524738400005,
      "user": 3.8502608799999996,
      "system": 3.74567226,
      "min": 6.47966375634,
      "max": 6.77268114934,
      "times": [
        6.61946567134,
        6.52771821334,
        6.57215564934,
        6.708956236340001,
        6.52192692934,
        6.77268114934,
        6.660591877340001,
        6.6314259383400005,
        6.47966375634,
        6.6236392763400005
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 6.6558925144400005,
      "stddev": 0.14605758716168912,
      "median": 6.63060756284,
      "user": 3.8464390799999997,
      "system": 3.70653776,
      "min": 6.455726961340001,
      "max": 6.898240303340001,
      "times": [
        6.66866391134,
        6.55066621934,
        6.82233612134,
        6.66210937934,
        6.509477594340001,
        6.59910574634,
        6.81095405834,
        6.455726961340001,
        6.898240303340001,
        6.581644849340001
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 5.032875834940001,
      "stddev": 0.08170923100462013,
      "median": 5.008740228340001,
      "user": 2.85324398,
      "system": 3.2803707600000003,
      "min": 4.9552420043400005,
      "max": 5.231366627340001,
      "times": [
        5.02979737134,
        4.9876830853400005,
        4.97007469434,
        4.9552420043400005,
        5.04106252734,
        5.231366627340001,
        4.98398163334,
        4.98115361434,
        5.06651159934,
        5.081885192340001
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 5.001306231239999,
      "stddev": 0.09881886119306264,
      "median": 5.00363962384,
      "user": 2.8319382799999997,
      "system": 3.2862794600000003,
      "min": 4.89161755134,
      "max": 5.19681380934,
      "times": [
        5.03731616734,
        4.98913450634,
        4.896236629340001,
        4.89161755134,
        5.08819340334,
        5.01814474134,
        5.19681380934,
        4.902646846340001,
        4.9351033953400005,
        5.05785526234
      ]
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/12864
Testbedpacquet
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
4,264.16 ms
(-1.50%)Baseline: 4,329.17 ms
5,195.00 ms
(82.08%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
3,057.10 ms
(-0.62%)Baseline: 3,076.23 ms
3,691.47 ms
(82.82%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
1,390.09 ms
(-0.21%)Baseline: 1,392.96 ms
1,671.55 ms
(83.16%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
673.94 ms
(+3.22%)Baseline: 652.95 ms
783.54 ms
(86.01%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
3,801.49 ms
(-5.20%)Baseline: 4,010.10 ms
4,812.12 ms
(79.00%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
6,611.82 ms
(-8.77%)Baseline: 7,247.47 ms
8,696.96 ms
(76.02%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
649.15 ms
(-3.08%)Baseline: 669.75 ms
803.70 ms
(80.77%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/12864
Testbedpnpr

⚠️ 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-thresholds flag.

Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
2,262.58 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
670.45 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
690.42 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
108.04 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
2,151.86 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
5,032.88 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
707.00 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan
zkochan merged commit cc00c45 into pnpm:main Jul 13, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pnpm@11 reviewed: coderabbit CodeRabbit submitted an approving review state: automerge

Projects

None yet

4 participants