Skip to content

fix(lockfile): keep a recorded deprecation when an unchanged resolution is rebuilt - #13878

Merged
zkochan merged 2 commits into
mainfrom
fix-metadata-churn
Aug 12, 2026
Merged

zkochan merged 2 commits into
mainfrom
fix-metadata-churn

Conversation

@zkochan

@zkochan zkochan commented Aug 12, 2026 •

Copy link
Copy Markdown
Member

Summary

The one lockfile flap still reproducible on main for the #13846 workload is not a resolver-ordering bug: node-registry.bit.cloud serves @teambit/[email protected] with and without its deprecated field across consecutive requests. Whenever an operation re-resolves the containing subtree — an override edit, a targeted update — and lands on the unchanged resolution, the packages: entry was rebuilt from whatever document the registry happened to serve, silently dropping (or restoring) the deprecated: line. Identical dependencies, different lockfile.

Following the fast-path principle that an operation must not change entries it doesn't affect: deprecated is the one registry-mutable field of a published version, so it gets an asymmetric carry-over. A rebuilt entry whose resolution equals the previous lockfile entry's keeps its recorded deprecation when the fresh metadata lacks one; a genuinely new deprecation still flows in through the fresh metadata. Carrying the whole previous entry over verbatim was considered and rejected: it would freeze legacy field forms and defeat rebuild-time normalization (the bundledDependencies normalization tests pin that repair).

Implemented in both stacks:

  • pacquet: the wanted lockfile's packages: map is threaded into dependencies_graph_to_lockfile next to the existing pnpm update changes link to file for workspace dependency #10433 previous_importers plumbing.
  • TypeScript: the same rule in updateLockfile's toLockfileDependency, which already threads prevSnapshot for the tarball-integrity carry-over.

Verified on the #13846 workspace with the genuinely drifted cache from that investigation: adding an override re-resolves the subtree, and main drops the deprecated: line while this branch preserves all nine. Cold installs (no previous lockfile) are byte-identical to main's output, and the full pacquet-package-manager suite (581) plus the TS updateLockfile tests (16, including the normalization matrix) pass. Cost is one map lookup and a resolution compare per rebuilt entry.

Related to #13846.

Squash Commit Body

Registries can serve a published version's metadata inconsistently —
node-registry.bit.cloud was observed serving a package with and without
its deprecated field across consecutive requests. When an operation
re-resolves such a package (an override edit, a targeted update) and
lands on the unchanged resolution, the lockfile entry was rebuilt from
whatever document the registry happened to serve, silently dropping the
deprecated line: identical dependencies, different lockfile
(pnpm/pnpm#13846).

deprecated is the one registry-mutable field of a published version, so
it gets an asymmetric carry-over: a rebuilt entry whose resolution
equals the previous lockfile entry's keeps the recorded deprecation
when the fresh metadata lacks one, while a genuinely new deprecation
still flows in. Carrying the whole previous entry over verbatim was
considered and rejected — it would freeze legacy field forms and defeat
rebuild-time normalization.

Implemented in both stacks: pacquet threads the wanted lockfile's
packages map into dependencies_graph_to_lockfile next to the existing
pnpm/pnpm#10433 previous_importers plumbing; the TypeScript resolver
applies the same rule in updateLockfile's toLockfileDependency, which
already threads prevSnapshot for the tarball-integrity carry-over.

Related to pnpm/pnpm#13846.

Checklist

  • I checked the referenced issue and verified that none of the PRs already linked to it solves it.
  • The change is implemented in both the TypeScript CLI and the Rust pnpm/ port, or the description notes what still needs porting.
  • Added a changeset (pnpm changeset) if this PR changes any published package.
  • Added or updated tests.
  • Updated the documentation if needed. (no user-facing surface changed)

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


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Bug Fixes
    • Preserved package deprecation notices in lockfiles when re-resolving to the same package version.
    • Prevented existing deprecation metadata from being lost when registry information is temporarily incomplete.
    • Updated deprecation information correctly when package resolutions or integrity values change.
    • Improved lockfile consistency during fresh lockfile generation while retaining relevant package metadata.

…on is rebuilt

Registries can serve a published version's metadata inconsistently —
node-registry.bit.cloud was observed serving
`@teambit/[email protected]` with and without
its deprecated field across consecutive requests. When an operation
re-resolves such a package (an override edit, a targeted update) and
lands on the unchanged resolution, the lockfile entry was rebuilt from
whatever document the registry happened to serve, silently dropping the
deprecated line: identical dependencies, different lockfile
(#13846).

deprecated is the one registry-mutable field of a published version, so
it gets an asymmetric carry-over: a rebuilt entry whose resolution
equals the previous lockfile entry's keeps the recorded deprecation
when the fresh metadata lacks one, while a genuinely new deprecation
still flows in. Carrying the whole previous entry over verbatim was
considered and rejected — it would freeze legacy field forms and defeat
rebuild-time normalization (the bundledDependencies normalization tests
pin that repair).

Implemented in both stacks: pacquet threads the wanted lockfile's
packages map into dependencies_graph_to_lockfile next to the existing
#10433 previous_importers plumbing; the TypeScript resolver
applies the same rule in updateLockfile's toLockfileDependency, which
already threads prevSnapshot for the tarball-integrity carry-over.

Verified on the #13846 workload: with a drifted metadata cache,
adding an override re-resolves the subtree and main drops the
deprecated line, while this branch preserves it; cold installs (no
previous lockfile) are byte-identical to main's output.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 12, 2026 19:15

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 Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

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: 2ea946f6-9ee6-4897-a6c5-690512af81d4

📥 Commits

Reviewing files that changed from the base of the PR and between cda0a4b and 09ebce0.

📒 Files selected for processing (3)
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs
  • pnpm11/installing/deps-resolver/src/updateLockfile.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • pnpm11/installing/deps-resolver/src/updateLockfile.ts
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs

📝 Walkthrough

Walkthrough

Changes

Unchanged package metadata preservation

Layer / File(s) Summary
TypeScript lockfile metadata reuse
pnpm11/installing/deps-resolver/src/updateLockfile.ts, pnpm11/installing/deps-resolver/test/updateLockfile.test.ts
The updater preserves deprecated metadata for unchanged resolutions and removes stale metadata when tarball integrity changes.
Rust lockfile metadata reuse and integration
pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs, pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs, pnpm/crates/package-manager/src/install_with_fresh_lockfile.rs, .changeset/preserve-unchanged-package-metadata.md
Rust lockfile generation receives previous package metadata, preserves deprecated values for unchanged resolutions, and passes the prior package map during fresh lockfile generation. Tests cover metadata reuse, changed resolutions, and default options. The changeset records patch releases.

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

Possibly related PRs

Suggested labels: product: pacquet, product: pnpm@11

Suggested reviewers: greptile-apps

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-metadata-churn

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration.


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.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Preserve lockfile deprecations when unchanged resolutions are rebuilt

🐞 Bug fix 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Preserve deprecated in lockfile entries when re-resolving to the same resolution
• Thread previous packages snapshots into both Rust and TS lockfile builders
• Add regression tests covering metadata drift vs. resolution changes
Diagram

graph TD
  R[/Registry metadata/ ] --> A["Rust deps_graph_to_lockfile"] --> L[("Lockfile packages")]
  R --> T["TS updateLockfile"] --> L
  P[("Previous lockfile") ] --> A

  subgraph Legend
    direction LR
    _io[/Input/] ~~~ _proc[Process] ~~~ _db[(Stored data)]
  end
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Carry forward entire previous package entry verbatim on unchanged resolution
  • ➕ Simplest implementation; guarantees no metadata churn for unchanged resolutions
  • ➖ Freezes legacy field shapes/normalization bugs (e.g., bundledDependencies normalization)
  • ➖ Prevents intentional rebuild-time normalization/repair of other fields
2. Cache registry metadata at fetch layer and reuse identical documents during an operation
  • ➕ Solves churn for all registry fields (not just deprecated) within the same run
  • ➕ Keeps lockfile builder simpler
  • ➖ Does not help when the next operation fetches a different document later
  • ➖ More invasive: impacts fetch/cache layers and potentially offline/store semantics
3. Persist deprecations in a separate stable metadata store keyed by (name, version)
  • ➕ Avoids lockfile mutation due to registry drift across runs
  • ➕ Could support additional mutable metadata in the future
  • ➖ Introduces new persistence surface and migration concerns
  • ➖ Increases conceptual and operational complexity vs. a narrow lockfile rule

Recommendation: The PR’s asymmetric carry-over is the best tradeoff: it targets the known mutable field (deprecated) while still allowing rebuild-time normalization of other lockfile metadata. The resolution equality guard keeps behavior correct when the underlying artifact truly changes (e.g., integrity differs), and the added tests lock in the intended semantics.

Files changed (6) +165 / -14

Bug fix (3) +54 / -12
dependencies_graph_to_lockfile.rsCarry over 'deprecated' from previous packages map when resolution is unchanged +41/-11

Carry over 'deprecated' from previous packages map when resolution is unchanged

• Extends GraphToLockfileOptions with 'previous_packages' and threads it into package rendering. When freshly built metadata lacks 'deprecated' but the previous entry has it and the resolution matches, the previous deprecation string is preserved.

pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs

install_with_fresh_lockfile.rsPass previous lockfile 'packages' into lockfile generation on rebuilds +1/-0

Pass previous lockfile 'packages' into lockfile generation on rebuilds

• Wires 'wanted_lockfile.packages' into 'dependencies_graph_to_lockfile' as 'previous_packages' so rebuilds can retain recorded deprecations for unchanged resolutions.

pnpm/crates/package-manager/src/install_with_fresh_lockfile.rs

updateLockfile.tsPreserve prior 'deprecated' in TS lockfile updates when resolution matches +12/-1

Preserve prior 'deprecated' in TS lockfile updates when resolution matches

• Uses deep equality on 'resolution' to detect unchanged entries and carry forward 'deprecated' from the previous snapshot when the newly served metadata lacks it. Keeps new deprecations flowing in from fresh metadata.

pnpm11/installing/deps-resolver/src/updateLockfile.ts

Tests (2) +104 / -2
tests.rsAdd regression test for preserving 'deprecated' on unchanged resolution (Rust) +77/-2

Add regression test for preserving 'deprecated' on unchanged resolution (Rust)

• Updates test helpers to pass the new 'previous_packages' option and adds a new test asserting that 'deprecated' is retained only when the resolution is identical, and dropped when the resolution differs.

pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs

updateLockfile.test.tsAdd TS tests for unchanged vs changed resolution deprecation behavior +27/-0

Add TS tests for unchanged vs changed resolution deprecation behavior

• Adds two tests asserting that 'deprecated' survives metadata drift when the resolution is unchanged, but is not carried over when the resolution changes (e.g., integrity differs).

pnpm11/installing/deps-resolver/test/updateLockfile.test.ts

Documentation (1) +7 / -0
preserve-unchanged-package-metadata.mdAdd changeset documenting stable 'deprecated' handling under metadata drift +7/-0

Add changeset documenting stable 'deprecated' handling under metadata drift

• Adds a patch changeset for pnpm/pacquet deps-resolver describing that unchanged resolutions retain recorded 'deprecated' markers when registries serve inconsistent metadata.

.changeset/preserve-unchanged-package-metadata.md

@greptile-apps

greptile-apps Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (2): Last reviewed commit: "refactor(lockfile): check the previous r..." | Re-trigger Greptile

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Aug 12, 2026
Comment on lines +718 to +725
Some(named_registry) => {
(named_registry.as_str(), sources.lockfile_include_tarball_url)
}
None => (sources.registry, true),
},
None => (registry, lockfile_include_tarball_url),
None => (sources.registry, sources.lockfile_include_tarball_url),
};
build_package_metadata(node, key, registry, include_tarball_url)
let mut metadata = build_package_metadata(node, key, registry, include_tarball_url);

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.

P2 Remove redundant behavior narration

This comment restates the missing-deprecation and equal-resolution branches already expressed by the predicate and covered by tests. The same narration also appears in the Rust test and TypeScript implementation, increasing maintenance cost and allowing the prose to drift from the tested behavior.

Context Used: Comments and docs in code are suspicious. Is test ... (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@qodo-code-review

qodo-code-review Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Remediation recommended

1. Empty deprecation carried over 🐞 Bug ⚙ Maintainability ⭐ New
Description
In toLockfileDependency(), the new fallback copies opts.prevSnapshot.deprecated when it is
merely non-null, so an empty-string sentinel ('', used to represent “undeprecated”) can be
preserved into the new lockfile object even though the fresh-metadata path would not record it. This
can retain meaningless metadata and may cause avoidable lockfile diffs depending on serialization
behavior.
Code

pnpm11/installing/deps-resolver/src/updateLockfile.ts[R184-187]

+    opts.prevSnapshot?.deprecated != null &&
+    equals(opts.prevSnapshot.resolution, lockfileResolution)
+  ) {
+    result['deprecated'] = opts.prevSnapshot.deprecated
Relevance

●●● Strong

Team often fixes empty-string sentinel handling; likely align fallback with existing truthy
deprecated behavior.

PR-#12571
PR-#12567

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new condition checks only non-nullness, so '' passes and is assigned, while the normal path
uses a truthy check and would not write empty strings. The repo also uses '' to represent
undeprecation and treats falsy deprecated as “not deprecated,” making the carried-over empty
string meaningless.

pnpm11/installing/deps-resolver/src/updateLockfile.ts[176-188]
pnpm11/registry-access/commands/src/deprecation/common.ts[74-83]
pnpm11/cli/default-reporter/src/reporterForClient/reportSummary.ts[113-121]

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

## Issue description
`toLockfileDependency()` falls back to `opts.prevSnapshot.deprecated` when it is non-null. This allows `''` (empty string) to be carried over into the new lockfile snapshot, even though the primary path only writes `deprecated` when the value is truthy.

## Issue Context
Empty-string `deprecated` is used elsewhere as an undeprecation sentinel and is treated as falsy by consumers, so preserving it provides no user-facing value and may cause unnecessary lockfile churn.

## Fix Focus Areas
- pnpm11/installing/deps-resolver/src/updateLockfile.ts[179-187]

### Suggested change
Tighten the condition to only carry over when the previous value is a non-empty string, e.g.:
- `typeof opts.prevSnapshot?.deprecated === 'string' && opts.prevSnapshot.deprecated.length > 0`
(or simply `opts.prevSnapshot?.deprecated` if the type is guaranteed).

### Test
Add/extend a unit test where `prevSnapshot.deprecated` is `''` and the resolution is unchanged, asserting that the resulting lockfile snapshot does **not** include `deprecated`.

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


2. Deep equals on hotpath ✓ Resolved 🐞 Bug ➹ Performance
Description
toLockfileDependency() computes prevDeprecated using Ramda equals() for every processed
package snapshot, even when the freshly resolved package already has additionalInfo.deprecated (so
carry-over cannot apply). This adds avoidable CPU work on large dependency graphs during lockfile
updates.
Code

pnpm11/installing/deps-resolver/src/updateLockfile.ts[R102-104]

+  const prevDeprecated = opts.prevSnapshot != null && equals(opts.prevSnapshot.resolution, lockfileResolution)
+    ? opts.prevSnapshot.deprecated
+    : undefined
Relevance

●●● Strong

Low-risk micro-optimization on lockfile hot path; team has accepted similar perf cleanups in
deps-resolver.

PR-#12491

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The diff introduces an unconditional deep comparison (equals) to compute prevDeprecated before
the code decides whether it will use fresh pkg.additionalInfo.deprecated or the carried-over
value. Since updateLockfile() iterates all dependency graph entries, this comparison is on the
lockfile-update hot path.

pnpm11/installing/deps-resolver/src/updateLockfile.ts[18-52]
pnpm11/installing/deps-resolver/src/updateLockfile.ts[97-105]
pnpm11/installing/deps-resolver/src/updateLockfile.ts[186-190]

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

### Issue description
`equals(opts.prevSnapshot.resolution, lockfileResolution)` runs for every depPath processed by `updateLockfile()`, even though the result is only used when `pkg.additionalInfo.deprecated` is absent.

### Issue Context
`updateLockfile()` walks the entire `dependenciesGraph` and calls `toLockfileDependency()` for every entry. Ramda `equals()` is a deep structural equality check, so calling it unconditionally adds overhead proportional to lockfile size.

### Fix Focus Areas
- pnpm11/installing/deps-resolver/src/updateLockfile.ts[97-105]
- pnpm11/installing/deps-resolver/src/updateLockfile.ts[186-190]

### Suggested fix
1. Compute `prevDeprecated` *lazily*, only when:
  - `pkg.additionalInfo.deprecated` is falsy/absent, and
  - `opts.prevSnapshot?.deprecated` is not null/undefined.
2. (Optional) Replace deep `equals()` with a cheaper comparison for common resolution shapes (e.g. tarball+integrity, integrity-only), falling back to deep equality only when needed.

Example sketch:
```ts
let prevDeprecated: string | undefined
if (!pkg.additionalInfo.deprecated && opts.prevSnapshot?.deprecated != null) {
 if (equals(opts.prevSnapshot.resolution, lockfileResolution)) {
   prevDeprecated = opts.prevSnapshot.deprecated
 }
}
```
This preserves the intended behavior but avoids the deep compare for the common case where the fresh metadata already contains `deprecated` (or there is no previous deprecation to carry).

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


Grey Divider

Context
✅ Compliance rules (platform): 26 rules

Grey Divider

Tip of the day
💡 Did you know, you can enable the Remediation agent and Qodo fixes findings in a dedicated fix PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous review results

Review updated until commit 09ebce0

Results up to commit cda0a4b ⚖️ Balanced


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


Remediation recommended
1. Deep equals on hotpath ✓ Resolved 🐞 Bug ➹ Performance
Description
toLockfileDependency() computes prevDeprecated using Ramda equals() for every processed
package snapshot, even when the freshly resolved package already has additionalInfo.deprecated (so
carry-over cannot apply). This adds avoidable CPU work on large dependency graphs during lockfile
updates.
Code

pnpm11/installing/deps-resolver/src/updateLockfile.ts[R102-104]

+  const prevDeprecated = opts.prevSnapshot != null && equals(opts.prevSnapshot.resolution, lockfileResolution)
+    ? opts.prevSnapshot.deprecated
+    : undefined
Relevance

●●● Strong

Low-risk micro-optimization on lockfile hot path; team has accepted similar perf cleanups in
deps-resolver.

PR-#12491

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The diff introduces an unconditional deep comparison (equals) to compute prevDeprecated before
the code decides whether it will use fresh pkg.additionalInfo.deprecated or the carried-over
value. Since updateLockfile() iterates all dependency graph entries, this comparison is on the
lockfile-update hot path.

pnpm11/installing/deps-resolver/src/updateLockfile.ts[18-52]
pnpm11/installing/deps-resolver/src/updateLockfile.ts[97-105]
pnpm11/installing/deps-resolver/src/updateLockfile.ts[186-190]

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

### Issue description
`equals(opts.prevSnapshot.resolution, lockfileResolution)` runs for every depPath processed by `updateLockfile()`, even though the result is only used when `pkg.additionalInfo.deprecated` is absent.

### Issue Context
`updateLockfile()` walks the entire `dependenciesGraph` and calls `toLockfileDependency()` for every entry. Ramda `equals()` is a deep structural equality check, so calling it unconditionally adds overhead proportional to lockfile size.

### Fix Focus Areas
- pnpm11/installing/deps-resolver/src/updateLockfile.ts[97-105]
- pnpm11/installing/deps-resolver/src/updateLockfile.ts[186-190]

### Suggested fix
1. Compute `prevDeprecated` *lazily*, only when:
  - `pkg.additionalInfo.deprecated` is falsy/absent, and
  - `opts.prevSnapshot?.deprecated` is not null/undefined.
2. (Optional) Replace deep `equals()` with a cheaper comparison for common resolution shapes (e.g. tarball+integrity, integrity-only), falling back to deep equality only when needed.

Example sketch:
```ts
let prevDeprecated: string | undefined
if (!pkg.additionalInfo.deprecated && opts.prevSnapshot?.deprecated != null) {
 if (equals(opts.prevSnapshot.resolution, lockfileResolution)) {
   prevDeprecated = opts.prevSnapshot.deprecated
 }
}
```
This preserves the intended behavior but avoids the deep compare for the common case where the fresh metadata already contains `deprecated` (or there is no previous deprecation to carry).

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


Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

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

No code suggestions found for the PR.

…-over can apply

The deep resolution compare now runs only for entries whose fresh
metadata lacks a deprecation, and the comments shrink to the why the
tests don't carry.

Co-Authored-By: Claude Fable 5 <[email protected]>
@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     13.6±1.15ms    27.5 MB/sec    1.26     17.1±2.40ms    21.8 MB/sec
packument/parse                                  1.00     40.2±1.26µs  1652.0 MB/sec    1.12     44.9±5.40µs  1477.3 MB/sec
tarball/download_dependency                      1.00      2.9±0.28ms  1482.1 KB/sec    1.11      3.2±0.53ms  1335.3 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00   218.4±10.05ms 73.3 KElem/sec    1.14   249.2±18.52ms 64.2 KElem/sec
workspace_resolution/hoist_heavy                 1.00   307.4±19.76ms        ? ?/sec    1.31   402.4±95.51ms        ? ?/sec

@zkochan

zkochan commented Aug 12, 2026

Copy link
Copy Markdown
Member Author

Addressed both bot findings in 09ebce0: the TypeScript resolution compare now runs only when the fresh metadata lacks a deprecation (Qodo's hot-path point — the Rust side already short-circuited), and the narration comments are trimmed to the why-only remainder per the repo's tests-are-the-documentation convention (Greptile).


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

Copilot AI review requested due to automatic review settings August 12, 2026 19:22

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 09ebce0

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

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.29%. Comparing base (e6f2249) to head (09ebce0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13878      +/-   ##
==========================================
- Coverage   88.29%   88.29%   -0.01%     
==========================================
  Files         627      627              
  Lines      103689   103700      +11     
==========================================
+ Hits        91552    91558       +6     
- Misses      12137    12142       +5     

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

@blacksmith-sh

blacksmith-sh Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Found 5 test failures on Blacksmith runners:

Failures

Test View Logs
test/dlx.ts/dlx View Logs
test/install/denoRuntime.ts (142.631 s)/denoRuntime.ts (142.631 s) View Logs
test/install/fromTarball.ts/fromTarball View Logs
test/update.ts/update View Logs
test/update.ts (49.045 s)/update.ts (49.045 s) View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@github-actions

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 09ebce080808

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time).

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.702 ± 0.132 2.522 2.862 1.79 ± 0.22
pacquet@main 2.560 ± 0.144 2.386 2.767 1.70 ± 0.21
pnpr@HEAD 1.507 ± 0.170 1.364 1.827 1.00
pnpr@main 1.528 ± 0.173 1.347 1.781 1.01 ± 0.16
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.7022475252,
      "stddev": 0.1320418913148711,
      "median": 2.7220665947000002,
      "user": 2.2761676599999996,
      "system": 1.7673176199999996,
      "min": 2.5223772492,
      "max": 2.8618238542,
      "times": [
        2.6931066202,
        2.8618238542,
        2.7510265692,
        2.6672854552,
        2.5453951712,
        2.8587838082,
        2.5372483192,
        2.7558839462,
        2.5223772492,
        2.8295442592
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.5603265544999996,
      "stddev": 0.14377824239599485,
      "median": 2.5290690622,
      "user": 1.77656736,
      "system": 1.4451881200000003,
      "min": 2.3860183632,
      "max": 2.7666561892,
      "times": [
        2.5903428902,
        2.4677952342,
        2.3860183632,
        2.6943042082,
        2.4598453422,
        2.7072191422,
        2.4344120062,
        2.6859322752,
        2.7666561892,
        2.4107398942000002
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5074026205000002,
      "stddev": 0.17011224885452797,
      "median": 1.4242833012,
      "user": 1.25849706,
      "system": 1.23463702,
      "min": 1.3644797772000001,
      "max": 1.8271242032000001,
      "times": [
        1.3664800692,
        1.3644797772000001,
        1.5875498402000001,
        1.8271242032000001,
        1.3801472252,
        1.3993524482000002,
        1.7557321522000002,
        1.4492141542,
        1.3823090682,
        1.5616372672
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.528367194,
      "stddev": 0.17263517748047197,
      "median": 1.4642768662,
      "user": 1.15957506,
      "system": 1.17190392,
      "min": 1.3467542072,
      "max": 1.7808295872,
      "times": [
        1.7808295872,
        1.7781938832000002,
        1.7301840772000001,
        1.5219241682,
        1.4022725072000002,
        1.5339780872,
        1.3467542072,
        1.4066295642000002,
        1.3851988292000001,
        1.3977070292
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 277.3 ± 20.1 247.1 310.7 1.05 ± 0.08
pacquet@main 264.0 ± 4.9 257.9 274.1 1.00
pnpr@HEAD 293.6 ± 15.1 274.3 325.5 1.11 ± 0.06
pnpr@main 294.2 ± 15.1 279.9 330.3 1.11 ± 0.06
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.27733554116,
      "stddev": 0.02010108391186101,
      "median": 0.27254581506,
      "user": 0.24745896000000003,
      "system": 0.5231290200000001,
      "min": 0.24705391006000002,
      "max": 0.31069504906,
      "times": [
        0.24705391006000002,
        0.26634873706,
        0.26560026606,
        0.27874289306,
        0.26288563206,
        0.28466507206,
        0.31069504906,
        0.29801631106,
        0.29763331206,
        0.26171422905999997
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.26399956836,
      "stddev": 0.0049440687245349965,
      "median": 0.26295462656,
      "user": 0.23167285999999998,
      "system": 0.51139892,
      "min": 0.25786679606,
      "max": 0.27414630606,
      "times": [
        0.27414630606,
        0.26944083706,
        0.25865567206,
        0.26148809606,
        0.26173136106,
        0.26417789206,
        0.25786679606,
        0.26487347506,
        0.26169326006,
        0.26592198806
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.29359029966000005,
      "stddev": 0.015143355974853357,
      "median": 0.29195194455999995,
      "user": 0.25736425999999996,
      "system": 0.55457082,
      "min": 0.27429430406,
      "max": 0.32549514006,
      "times": [
        0.30004917506,
        0.30952797406,
        0.29201417106,
        0.27767730806,
        0.29310997406,
        0.27429430406,
        0.28505851806,
        0.29188971805999997,
        0.32549514006,
        0.28678671406
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.29421453785999996,
      "stddev": 0.015056416114520653,
      "median": 0.29388771055999996,
      "user": 0.25423805999999993,
      "system": 0.5297786200000001,
      "min": 0.27994804006,
      "max": 0.33033859906,
      "times": [
        0.28065312006,
        0.29538144806,
        0.28139162206,
        0.29860373006,
        0.27994804006,
        0.30144826605999997,
        0.28441985206,
        0.29239397306,
        0.33033859906,
        0.29756672806
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.918 ± 0.141 2.771 3.164 1.82 ± 0.21
pacquet@main 2.832 ± 0.053 2.771 2.918 1.77 ± 0.19
pnpr@HEAD 1.654 ± 0.155 1.450 1.834 1.03 ± 0.15
pnpr@main 1.600 ± 0.170 1.440 1.906 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.9176990911800003,
      "stddev": 0.14131559851328349,
      "median": 2.83942434028,
      "user": 2.1305600399999998,
      "system": 1.71742536,
      "min": 2.77079967278,
      "max": 3.16433906478,
      "times": [
        2.79931734578,
        3.06040594378,
        3.16433906478,
        3.0908981417800003,
        2.96672438178,
        2.85132961578,
        2.8220469717800003,
        2.82751906478,
        2.8236107087800004,
        2.77079967278
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.83231211668,
      "stddev": 0.05283637039740279,
      "median": 2.82309120878,
      "user": 1.9532049399999998,
      "system": 1.5693600599999997,
      "min": 2.7707796467800003,
      "max": 2.91780896778,
      "times": [
        2.91780896778,
        2.89547369878,
        2.8466858427800004,
        2.86936391378,
        2.79071840778,
        2.77357113078,
        2.86268996078,
        2.79949657478,
        2.7965330227800003,
        2.7707796467800003
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.6536643947799998,
      "stddev": 0.15525737184190264,
      "median": 1.67855073578,
      "user": 1.1711448399999997,
      "system": 1.2037539599999998,
      "min": 1.4496100127799998,
      "max": 1.83352757078,
      "times": [
        1.4827973907799998,
        1.82836680278,
        1.76835862078,
        1.7979415937799998,
        1.5220794647799998,
        1.4968610197799999,
        1.4496100127799998,
        1.6232017587799998,
        1.83352757078,
        1.73389971278
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.59986693848,
      "stddev": 0.1701637912857125,
      "median": 1.52962171928,
      "user": 1.16562364,
      "system": 1.28468316,
      "min": 1.44026480478,
      "max": 1.90566994078,
      "times": [
        1.56288704278,
        1.6480900757799999,
        1.90566994078,
        1.84384492878,
        1.4664421937799998,
        1.70850496878,
        1.48302094978,
        1.44358808378,
        1.44026480478,
        1.49635639578
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 426.2 ± 21.5 391.5 469.5 1.40 ± 0.08
pacquet@main 431.0 ± 21.4 400.6 465.5 1.41 ± 0.08
pnpr@HEAD 309.1 ± 5.9 298.5 317.9 1.01 ± 0.03
pnpr@main 304.9 ± 8.4 295.1 316.8 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.4261749113800001,
      "stddev": 0.021454308381225664,
      "median": 0.42336822808,
      "user": 0.5506041199999999,
      "system": 0.6972856599999999,
      "min": 0.39153109208000003,
      "max": 0.46952434108,
      "times": [
        0.39153109208000003,
        0.42151622708,
        0.42522022908,
        0.41101227908,
        0.41347891508,
        0.44889863108,
        0.43180175608,
        0.46952434108,
        0.43127696308,
        0.41748868008
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.43104317468,
      "stddev": 0.021382854194208767,
      "median": 0.43279742858000003,
      "user": 0.52321372,
      "system": 0.6980135599999999,
      "min": 0.40057038808,
      "max": 0.46554289008,
      "times": [
        0.40493179008,
        0.42782332008,
        0.43346949608,
        0.43506788708,
        0.46044088108000003,
        0.41202050608,
        0.43843922708,
        0.40057038808,
        0.43212536108,
        0.46554289008
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30912292848,
      "stddev": 0.005861286427962605,
      "median": 0.30870017408,
      "user": 0.21759022,
      "system": 0.54664576,
      "min": 0.29851954708,
      "max": 0.31791927208,
      "times": [
        0.30786664908,
        0.30953369908,
        0.30777025908,
        0.29851954708,
        0.31504687608,
        0.31472762008,
        0.30532397108,
        0.31099797008,
        0.30352342108,
        0.31791927208
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.30486766098,
      "stddev": 0.008448179067446687,
      "median": 0.30291400607999996,
      "user": 0.22169002,
      "system": 0.51506726,
      "min": 0.29513449108,
      "max": 0.31680906508,
      "times": [
        0.30555958208,
        0.31548927508,
        0.29638122608,
        0.29653274808,
        0.29513449108,
        0.31305665208,
        0.29915608808,
        0.30026843008,
        0.31028905208,
        0.31680906508
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.923 ± 0.049 1.875 2.039 5.14 ± 0.33
pacquet@main 2.026 ± 0.028 1.988 2.083 5.42 ± 0.32
pnpr@HEAD 0.374 ± 0.022 0.348 0.425 1.00
pnpr@main 0.377 ± 0.024 0.346 0.427 1.01 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.9225697408200002,
      "stddev": 0.0489517512745197,
      "median": 1.90422179622,
      "user": 0.87414922,
      "system": 0.7713117199999999,
      "min": 1.8751171082200002,
      "max": 2.03855676522,
      "times": [
        1.98021450122,
        1.9034487292200002,
        1.90499486322,
        1.9122192932200002,
        1.9146568352200002,
        1.8751171082200002,
        1.90040035422,
        1.89780874522,
        1.8982802132200003,
        2.03855676522
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.02638810842,
      "stddev": 0.028375425788678764,
      "median": 2.02921717122,
      "user": 1.0309273199999998,
      "system": 0.91941892,
      "min": 1.98786431422,
      "max": 2.0831707802199997,
      "times": [
        1.99075267322,
        2.0152287472199997,
        2.03820250722,
        2.00541510322,
        2.0831707802199997,
        2.02641982922,
        2.0455242502199997,
        1.98786431422,
        2.03928836622,
        2.03201451322
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.37368353392,
      "stddev": 0.021708991355315847,
      "median": 0.36834925872,
      "user": 0.26041512,
      "system": 0.6448034199999999,
      "min": 0.34803608822000004,
      "max": 0.42525768722,
      "times": [
        0.38461451322,
        0.36352272322,
        0.42525768722,
        0.35963753522,
        0.36364311022,
        0.38537740122,
        0.34803608822000004,
        0.37305540722,
        0.37612846422,
        0.35756240922000004
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.37664518222000004,
      "stddev": 0.024113502177094563,
      "median": 0.37326677122,
      "user": 0.2784676199999999,
      "system": 0.6341841199999999,
      "min": 0.34595209522000003,
      "max": 0.42728745622000003,
      "times": [
        0.35614082722,
        0.34595209522000003,
        0.38733563822,
        0.36093102422,
        0.37268258422,
        0.37421026622000003,
        0.37385095822000003,
        0.36395226322,
        0.40410870922000003,
        0.42728745622000003
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 271.0 ± 15.6 251.2 292.5 2.74 ± 0.18
pacquet@main 280.2 ± 22.0 254.8 323.7 2.84 ± 0.24
pnpr@HEAD 99.5 ± 3.3 94.6 110.9 1.01 ± 0.05
pnpr@main 98.7 ± 3.3 94.1 104.8 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.27100297102000004,
      "stddev": 0.015554308188528723,
      "median": 0.26943055632,
      "user": 0.24364496,
      "system": 0.07697906,
      "min": 0.25120930282000004,
      "max": 0.29251289182000006,
      "times": [
        0.29251289182000006,
        0.26707713682000006,
        0.27332965282000005,
        0.29146927282,
        0.25120930282000004,
        0.25166602382000003,
        0.28780401782000004,
        0.26928897882,
        0.26957213382000006,
        0.25610029882
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.28019788332000006,
      "stddev": 0.022038347359053315,
      "median": 0.27631690782000007,
      "user": 0.25054266000000003,
      "system": 0.06519776,
      "min": 0.25480560682000003,
      "max": 0.32367702282000005,
      "times": [
        0.32367702282000005,
        0.27569307082000005,
        0.29131921982000003,
        0.25724071082000005,
        0.30683539082000005,
        0.27694074482000003,
        0.25480560682000003,
        0.26481453882000006,
        0.28429029982000004,
        0.26636222782
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09954241435571429,
      "stddev": 0.003335588345967198,
      "median": 0.09917148732,
      "user": 0.02763838142857143,
      "system": 0.013224674285714286,
      "min": 0.09462843182,
      "max": 0.11085603482,
      "times": [
        0.09960768582,
        0.10568049082,
        0.11085603482,
        0.10005842582,
        0.09964692882,
        0.10355955982,
        0.10108594382,
        0.09787345282,
        0.09859599682,
        0.09886484382,
        0.09592289282,
        0.09852429082,
        0.09947234982,
        0.09462843182,
        0.09702313981999999,
        0.09989435582,
        0.10085114082,
        0.10026362282,
        0.09577727982,
        0.09530650982,
        0.09789947182,
        0.09887062482,
        0.10287635182,
        0.10003877782,
        0.09867457482,
        0.09681516782,
        0.09704432882,
        0.10147492682
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.09874264411629628,
      "stddev": 0.0033127939613839994,
      "median": 0.09804878482,
      "user": 0.027956004444444443,
      "system": 0.012637997037037036,
      "min": 0.09406107182,
      "max": 0.10477301882,
      "times": [
        0.10300314082,
        0.10416536282,
        0.09804878482,
        0.09553964082,
        0.10297394482,
        0.09920888282,
        0.09614684582,
        0.10126339782,
        0.09406107182,
        0.09684164682,
        0.10477301882,
        0.10452405982,
        0.10006921582,
        0.09538507882,
        0.09711255782,
        0.09677773582,
        0.10189669382,
        0.09955723982,
        0.09639378082,
        0.10103474682,
        0.10018752882,
        0.09700814082,
        0.09503534982,
        0.09940479182,
        0.09406150182,
        0.09647003582,
        0.09510719482
      ]
    }
  ]
}

Scenario: Isolated linker: peer-heavy resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 711.0 ± 94.9 562.6 833.0 1.05 ± 0.25
pacquet@main 677.9 ± 135.0 490.9 926.8 1.00
pnpm@HEAD 3555.4 ± 326.0 3142.7 4013.2 5.24 ± 1.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.7109560358488888,
      "stddev": 0.0948860449586774,
      "median": 0.7068392959600001,
      "user": 0.6894809288888889,
      "system": 0.1389712866666667,
      "min": 0.56261023696,
      "max": 0.83295644696,
      "times": [
        0.83295644696,
        0.56261023696,
        0.81578899096,
        0.68948375496,
        0.59357265796,
        0.8021155159600001,
        0.7068392959600001,
        0.6728832679600001,
        0.7223541549600001
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.6778762840711112,
      "stddev": 0.13503349672884804,
      "median": 0.6944756819600001,
      "user": 0.6720232622222222,
      "system": 0.1409319533333333,
      "min": 0.49094972996,
      "max": 0.9268464609600001,
      "times": [
        0.68162243396,
        0.49094972996,
        0.71955905296,
        0.6001902329600001,
        0.6944756819600001,
        0.70351959296,
        0.50469236496,
        0.7790310059600001,
        0.9268464609600001
      ]
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.5554213276266666,
      "stddev": 0.32604495677031337,
      "median": 3.44272184496,
      "user": 5.444852595555556,
      "system": 0.3401502866666667,
      "min": 3.14269598496,
      "max": 4.01319572096,
      "times": [
        3.14269598496,
        3.19580632696,
        3.89555449696,
        3.44272184496,
        4.01319572096,
        3.73925982296,
        3.30553018296,
        3.86098236996,
        3.40304519796
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.622 ± 0.134 4.449 4.907 1.31 ± 0.06
pacquet@main 4.593 ± 0.171 4.406 4.924 1.30 ± 0.07
pnpr@HEAD 3.536 ± 0.123 3.448 3.870 1.00
pnpr@main 3.712 ± 0.164 3.509 4.004 1.05 ± 0.06
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.621507518,
      "stddev": 0.13449797380551762,
      "median": 4.5939133031,
      "user": 2.13666324,
      "system": 1.65634244,
      "min": 4.4489471426,
      "max": 4.9074221836,
      "times": [
        4.5744221326,
        4.6134044736,
        4.4892439316,
        4.685986875599999,
        4.7389982376,
        4.4489471426,
        4.5245378006,
        4.9074221836,
        4.5708760076,
        4.6612363945999995
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.5928789964,
      "stddev": 0.17050424410342213,
      "median": 4.5526562276,
      "user": 1.89723774,
      "system": 1.49032514,
      "min": 4.4064699376,
      "max": 4.9240405026,
      "times": [
        4.9240405026,
        4.5521925826,
        4.8373799896,
        4.4550878176,
        4.5770242266,
        4.6637661926,
        4.5531198726,
        4.4329491946,
        4.4064699376,
        4.5267596476
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.535674542,
      "stddev": 0.12323546613357414,
      "median": 3.5012284586,
      "user": 1.22241514,
      "system": 1.2351285400000003,
      "min": 3.4476653736,
      "max": 3.8698066496,
      "times": [
        3.5251986176,
        3.5724005846,
        3.8698066496,
        3.5261551386,
        3.4476653736,
        3.4802804256,
        3.4983554406,
        3.5041014766000003,
        3.4849007956,
        3.4478809176
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.7118731195000003,
      "stddev": 0.16384370165580972,
      "median": 3.6714037536,
      "user": 1.7361709399999998,
      "system": 1.75229514,
      "min": 3.5087276666,
      "max": 4.0039729946,
      "times": [
        3.5505806106000004,
        3.6363131326,
        3.5087276666,
        3.6241228836,
        4.0039729946,
        3.8399646186000003,
        3.9139156156,
        3.7064943746,
        3.5825842686000002,
        3.7520550296
      ]
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13878
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
2,770.80 ms
(+1.01%)Baseline: 2,743.08 ms
3,291.69 ms
(84.18%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,875.12 ms
(+1.15%)Baseline: 1,853.87 ms
2,224.65 ms
(84.29%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
391.53 ms
(-14.93%)Baseline: 460.27 ms
552.32 ms
(70.89%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
251.21 ms
(+10.66%)Baseline: 227.00 ms
272.40 ms
(92.22%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,522.38 ms
(+1.70%)Baseline: 2,480.21 ms
2,976.25 ms
(84.75%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,448.95 ms
(-1.38%)Baseline: 4,511.11 ms
5,413.33 ms
(82.18%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
247.05 ms
(-16.30%)Baseline: 295.15 ms
354.18 ms
(69.75%)
isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
562.61 ms
(-14.49%)Baseline: 657.94 ms
789.53 ms
(71.26%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13878
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
1,449.61 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
348.04 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
298.52 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
94.63 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,364.48 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,447.67 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
274.29 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan
zkochan merged commit e240d17 into main Aug 12, 2026
32 of 37 checks passed
@zkochan
zkochan deleted the fix-metadata-churn branch August 12, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants