Skip to content

test(pacquet): complete progress reporting port (stage 7) - #13155

Merged
zkochan merged 4 commits into
mainfrom
stage-7
Jul 19, 2026
Merged

zkochan merged 4 commits into
mainfrom
stage-7

Conversation

@zkochan

@zkochan zkochan commented Jul 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Related to #13146.

  • Port all stage 7 progress-reporting scenarios from the TypeScript reporter to pacquet, including recursive, append-only, hidden-prefix, hidden-added, download, and fixed-line rendering.
  • Align pacquet's large-download byte formatting with pnpm by truncating fractional values to two decimal places.
  • Assert the real install reporter event sequence and mark every stage 7 entry complete in the test-porting plan.
  • Add a pacquet patch changeset for the user-visible formatting parity fix.

The TypeScript implementation and tests already define the behavior; this PR ports that existing behavior to the Rust CLI.

Validation:

  • Deliberately broke the progress counters and verified the new renderer tests failed.
  • Deliberately removed the real install's resolved event and verified the new install assertion failed.
  • just ready (6,413 tests passed, 3 skipped; workspace clippy clean).
  • Full pre-push TypeScript build, bundle, spellcheck, metadata checks, Rust format/clippy/docs, dylint, typos, and TOML formatting checks.

Squash Commit Body

Port the stage 7 default-reporter progress scenarios to pacquet and cover the
real install reporter event stream. Add renderer options for append-only,
hidden-added, and hidden-prefix behavior so the Rust tests exercise the same
surface as pnpm's reporter tests.

Match pnpm's byte formatting by truncating fractional values to two decimal
places, then record the user-visible parity fix in a pacquet changeset.

Related to pnpm/pnpm#13146.

Checklist

  • 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. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.
  • Updated the documentation if needed.

Written by an agent (Codex, GPT-5).


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

Summary by CodeRabbit

  • Bug Fixes
    • Aligned large-download progress byte formatting with pnpm, including zero-byte output formatting.
    • Improved progress rendering behavior: conditional “added packages” visibility, refined progress prefix handling (including work outside the current directory) and correct behavior in append-only mode.
  • Tests
    • Expanded reporter progress rendering coverage with more granular stage/progress/fetching scenarios.
    • Strengthened installation event assertions by recording and validating emitted telemetry and ordering.
  • Documentation
    • Updated progress-reporting parity porting status in the test plan.

Copilot AI review requested due to automatic review settings July 19, 2026 19:11

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 19, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@zkochan, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 13 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: db78493e-355d-4a88-82c2-8f009a7054e3

📥 Commits

Reviewing files that changed from the base of the PR and between 2342abf and 896c770.

📒 Files selected for processing (3)
  • pnpm/crates/default-reporter/src/format.rs
  • pnpm/crates/default-reporter/tests/render.rs
  • pnpm/crates/package-manager/src/install/tests.rs
📝 Walkthrough

Walkthrough

Progress reporting now supports centralized rendering options, two-decimal byte formatting, expanded reporter tests, and recorded install-event assertions. Porting documentation and a pacquet patch changeset were updated accordingly.

Changes

Progress reporting parity

Layer / File(s) Summary
Reporter options and rendering
pnpm/crates/default-reporter/src/state.rs, pnpm/crates/default-reporter/src/format.rs
Adds ReporterOptions, threads rendering flags through ReporterState, conditionally renders progress details, and formats byte values with two decimals.
Reporter rendering validation
pnpm/crates/default-reporter/tests/render.rs
Adds structured progress-event helpers and coverage for stages, fetching, prefixes, append-only output, hidden added counts, and frame ordering.
Install event coverage and port records
pnpm/crates/package-manager/src/install/tests.rs, pnpm/plans/TEST_PORTING.md, .changeset/pacquet-progress-reporting-parity.md
Records install reporter events, verifies expected event sequences, marks corresponding porting cases complete, and declares a pacquet patch release.

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

Sequence Diagram(s)

sequenceDiagram
  participant InstallTest
  participant RecordingReporter
  participant ReporterState
  participant pretty_bytes
  InstallTest->>RecordingReporter: run dependency installation
  RecordingReporter->>ReporterState: emit install and progress events
  ReporterState->>pretty_bytes: format download byte counts
  ReporterState-->>InstallTest: render configured progress frames
  RecordingReporter-->>InstallTest: provide recorded LogEvents
Loading

Possibly related issues

  • pnpm/pnpm#13146 — Covers related progress-reporting parity and porting work.

Possibly related PRs

  • pnpm/pnpm#13151 — Also changes install test event handling and assertions around reporter statistics.

Suggested labels: product: pacquet

Suggested reviewers: copilot

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch stage-7

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

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

Copy link
Copy Markdown

PR Summary by Qodo

Pacquet: finish stage-7 progress reporter parity + install event assertions

🧪 Tests ✨ Enhancement 🐞 Bug fix 📝 Documentation 🕐 20-40 Minutes

Grey Divider

AI Description

• Port stage-7 default-reporter progress rendering scenarios from TypeScript to pacquet.
• Add reporter rendering options for append-only mode and hidden prefix/added counters.
• Match pnpm’s large-download byte formatting (truncate to 2 decimals) and assert install events.
Diagram

graph TD
  T[["Render tests"]] -->|"drive"| A["LogEvent stream"] -->|"fold"| B["ReporterState"] -->|"render"| C["Terminal frame"]
  D["ReporterOptions"] -->|"configure"| B
  E["pretty_bytes"] -->|"format bytes"| B
  F[["Install test"]] -->|"runs"| G["Install runner"] -->|"emit"| R[["RecordingReporter"]] -->|"capture"| A
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Encode rendering flags into the event stream
  • ➕ ReporterState becomes fully reconstructable from LogEvents (better determinism/replay)
  • ➕ Avoids threading side options through constructors/config at call sites
  • ➖ Requires changing the reporter wire/event schema (higher compatibility risk)
  • ➖ Harder to keep aligned with pnpm if options are CLI-only concerns
2. Apply hide/append behaviors as a post-processing layer
  • ➕ Keeps ReporterState API smaller; options live in a wrapper/sink
  • ➕ Potentially reduces branching inside core rendering code
  • ➖ More fragile: filtering/rewriting already-rendered strings is error-prone
  • ➖ Tests would no longer exercise the same surface area as pnpm reporter options

Recommendation: The chosen approach (explicit ReporterOptions passed into ReporterState) is the best tradeoff here: it preserves the existing event schema while letting tests and the CLI model pnpm’s option-driven rendering behavior. Keep an eye on ensuring production wiring passes the intended options into ReporterState (not just tests), since these flags are not inferable from events by design.

Files changed (6) +364 / -28

Enhancement (1) +61 / -4
state.rsAdd ReporterOptions and support hiding prefix/added counters +61/-4

Add ReporterOptions and support hiding prefix/added counters

• Introduces ReporterOptions for rendering-time settings that aren’t recoverable from LogEvents and threads them through new constructors. Updates progress line rendering to optionally omit the added counter and/or workspace prefix gutter.

pnpm/crates/default-reporter/src/state.rs

Bug fix (1) +3 / -4
format.rsTruncate pretty-bytes output to two fractional digits +3/-4

Truncate pretty-bytes output to two fractional digits

• Adjusts pretty-bytes formatting to truncate (floor) to two decimals, matching pnpm’s pinned behavior for progress values. This also changes the 0-byte display to render as a two-decimal value used by download progress lines.

pnpm/crates/default-reporter/src/format.rs

Tests (2) +284 / -9
render.rsPort stage-7 progress-reporting scenarios into renderer tests +225/-8

Port stage-7 progress-reporting scenarios into renderer tests

• Adds helpers for per-prefix progress/stage events and fetching-progress events, then ports the remaining stage-7 progress scenarios from pnpm’s TypeScript reporter tests. Expands coverage for append-only mode, hidden prefix/added, fixed-line ordering, and big-file download rendering with byte-format expectations.

pnpm/crates/default-reporter/tests/render.rs

tests.rsRecord and assert real install reporter event sequence +59/-1

Record and assert real install reporter event sequence

• Replaces SilentReporter with a RecordingReporter that captures LogEvents during install. Adds assertions that the install emits initial package manifest, nonzero added stats, zero removed stats, importing stage completion, and resolved direct dependency events.

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

Documentation (2) +16 / -11
pacquet-progress-reporting-parity.mdAdd pacquet patch changeset for byte-formatting parity +5/-0

Add pacquet patch changeset for byte-formatting parity

• Introduces a patch changeset noting user-visible alignment of large-download progress byte formatting with pnpm.

.changeset/pacquet-progress-reporting-parity.md

TEST_PORTING.mdMark stage-7 progress and install reporter plan items complete +11/-11

Mark stage-7 progress and install reporter plan items complete

• Checks off all stage-7 progress-reporting scenarios and the simple install event-stream assertion task, linking each to its Rust test counterpart.

pnpm/plans/TEST_PORTING.md

@github-actions

github-actions Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                          main                                   pr
-----                          ----                                   --
lockfile/parse_pnpm_lock       1.01     11.8±0.08ms    31.8 MB/sec    1.00     11.7±0.14ms    32.1 MB/sec
packument/parse                1.06     38.4±0.08µs  1726.7 MB/sec    1.00     36.3±0.10µs  1825.7 MB/sec
tarball/download_dependency    1.00      2.2±0.07ms  1942.3 KB/sec    1.00      2.2±0.07ms  1948.0 KB/sec

@greptile-apps

greptile-apps Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Safe to merge — all changes are test additions plus a well-validated arithmetic fix in the byte formatter with no production logic regressions.

The pretty_bytes rewrite eliminates floating-point rounding and is verified by the new truncation unit test and the frame-by-frame download scenario. The ReporterOptions struct is additive and backward-compatible. The install test static Mutex pattern has a minor poison-handling inconsistency confined to the test itself.

pnpm/crates/package-manager/src/install/tests.rs — inconsistent poison-error handling between emit and the initial clear().

Reviews (4): Last reviewed commit: "fix(reporter): make progress byte format..." | Re-trigger Greptile

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
pnpm/crates/package-manager/src/install/tests.rs (1)

176-186: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Strengthen event assertions beyond presence-only checks.

The recording-reporter pattern matches pnpm/AGENTS.md's guidance, but the assertions only check that each expected event exists somewhere in captured via .any(...), not the relative ordering the guideline calls for ("assert the exact captured sequence"). This won't catch regressions where events are duplicated, dropped alongside a duplicate, or emitted out of the expected order (e.g., ImportingDone firing before the manifest event).

A full exact-sequence assert is impractical here given non-deterministic content (paths, versions), but recording each match's index and asserting relative ordering (e.g., manifest index < resolved-progress index < ImportingDone index) would strengthen coverage at low cost.

Based on path instructions, pnpm/AGENTS.md states: "use a recording-fake Reporter with a per-test static Mutex<Vec<LogEvent>>, clear it at the start, assert the exact captured sequence, and verify the test would fail without the emit (temporary removal discipline)."

Also applies to: 249-292

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pnpm/crates/package-manager/src/install/tests.rs` around lines 176 - 186,
Strengthen assertions in should_install_dependencies using the captured EVENTS
sequence: record the indices of the manifest, resolved-progress, and
ImportingDone events, assert each occurs exactly once, and verify their indices
are strictly ordered. Apply the same ordering and uniqueness checks to the
related assertions around the later test range, while retaining flexible
matching for non-deterministic event fields.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@pnpm/crates/package-manager/src/install/tests.rs`:
- Around line 176-186: Strengthen assertions in should_install_dependencies
using the captured EVENTS sequence: record the indices of the manifest,
resolved-progress, and ImportingDone events, assert each occurs exactly once,
and verify their indices are strictly ordered. Apply the same ordering and
uniqueness checks to the related assertions around the later test range, while
retaining flexible matching for non-deterministic event fields.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: cb74e0ee-9a6c-4f0f-95d6-5b5de80c20a8

📥 Commits

Reviewing files that changed from the base of the PR and between b25e845 and ca12484.

📒 Files selected for processing (6)
  • .changeset/pacquet-progress-reporting-parity.md
  • pnpm/crates/default-reporter/src/format.rs
  • pnpm/crates/default-reporter/src/state.rs
  • pnpm/crates/default-reporter/tests/render.rs
  • pnpm/crates/package-manager/src/install/tests.rs
  • pnpm/plans/TEST_PORTING.md

@codecov-commenter

codecov-commenter commented Jul 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.91%. Comparing base (ebacfa6) to head (896c770).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13155      +/-   ##
==========================================
+ Coverage   85.85%   85.91%   +0.05%     
==========================================
  Files         505      505              
  Lines       84029    84091      +62     
==========================================
+ Hits        72147    72246      +99     
+ Misses      11882    11845      -37     

☔ 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 github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 19, 2026
@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Remediation recommended

1. Unbounded test event capture 🐞 Bug ➹ Performance ⭐ New
Description
should_install_dependencies now clones and stores every emitted LogEvent in a global Vec, even
though the test only needs to verify a handful of conditions, adding avoidable overhead to an
already heavy install test. Additionally, the failure messages pretty-print the entire captured
vector ({captured:#?}), which can produce very large output when events include full manifest
payloads.
Code

pnpm/crates/package-manager/src/install/tests.rs[R177-185]

+    static EVENTS: Mutex<Vec<LogEvent>> = Mutex::new(Vec::new());
+    EVENTS.lock().unwrap().clear();
+
+    struct RecordingReporter;
+    impl Reporter for RecordingReporter {
+        fn emit(event: &LogEvent) {
+            EVENTS.lock().unwrap().push(event.clone());
+        }
+    }
Evidence
The test’s custom reporter clones and accumulates every event, and the assertions embed the entire
captured buffer in failure messages; since one of the asserted events includes a full manifest
Value, the captured vector can contain large payloads and high-volume entries.

pnpm/crates/package-manager/src/install/tests.rs[175-186]
pnpm/crates/package-manager/src/install/tests.rs[247-292]

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 test reporter currently clones and retains every `LogEvent` in a `Vec<LogEvent>` and includes the entire vector in multiple assertion failure messages. This adds unnecessary work/memory during successful runs, and can generate extremely verbose output on failures.

### Issue Context
This is test-only, but it runs through a real install and the reporter stream may contain high-volume events and large payloads (e.g., `PackageManifestMessage::Initial { initial: Value, .. }`).

### Fix Focus Areas
- pnpm/crates/package-manager/src/install/tests.rs[175-293]

### Suggested fix
- Replace the `Vec<LogEvent>` capture with a small struct of atomic/locked booleans (or a small enum/state machine) that records only what the assertions need (e.g., `saw_initial_manifest_match`, `saw_added_gt_zero`, `saw_removed_zero`, `saw_importing_done`, `saw_resolved_direct_dep`).
- If detailed diagnostics are still desired, keep a *bounded* ring buffer (e.g., last N events’ `Debug` strings or `(kind, small fields)` tuples).
- Update assertion messages to print a concise summary (flags + optional last N events), rather than `events={captured:#?}`.

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


2. Float truncation boundary drift ✓ Resolved 🐞 Bug ≡ Correctness
Description
pretty_bytes() now truncates via f64 math and floor(), which makes the displayed hundredths
sensitive to floating-point approximation and can produce an incorrect 0.01-lower value for some
inputs. This can break pnpm parity in big-tarball progress output where pretty_bytes() is used to
render download counters.
Code

pnpm/crates/default-reporter/src/format.rs[R15-22]

    let mut value = n as f64;
    let mut idx = 0;
    while value >= 1000.0 && idx < UNITS.len() - 1 {
        value /= 1000.0;
        idx += 1;
    }
+    value = (value * 100.0).floor() / 100.0;
    format!("{value:.2} {}", UNITS[idx])
Evidence
The truncation is implemented by casting u64 to f64 and applying floor() after scaling, and
the resulting string is used directly in the big-tarball download progress line renderer.

pnpm/crates/default-reporter/src/format.rs[8-23]
pnpm/crates/default-reporter/src/state.rs[520-553]

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

### Issue description
`pretty_bytes(n: u64)` truncates to two decimal places using `f64` and `floor()`. Because `f64` can’t exactly represent most decimal fractions, `value * 100.0` can land slightly below the intended integer boundary and `floor()` can drop it by 1, yielding a string that is 0.01 lower than the exact rational truncation.

### Issue Context
This formatting is used for user-visible big-tarball progress lines (`Downloading ... {downloaded}/{size}`), so even small formatting mismatches undermine the stated parity goal.

### Fix Focus Areas
- pnpm/crates/default-reporter/src/format.rs[8-23]
- pnpm/crates/default-reporter/src/state.rs[545-553]

### Suggested fix
Implement base-1000 unit selection with integer arithmetic and compute the two fractional digits via `u128`:
- Determine `idx` and `divisor = 1000^idx` (as `u128`).
- `whole = n / divisor`, `frac = (n % divisor) * 100 / divisor` (truncation).
- Format as `"{whole}.{frac:02} {unit}"`.
Add a small regression test for an input that is exactly at a 2-decimal boundary in MB/kB to lock behavior.

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



Informational

3. Test reporter can panic ✓ Resolved 🐞 Bug ☼ Reliability
Description
The new RecordingReporter::emit uses EVENTS.lock().unwrap(), which will panic if the mutex is
poisoned, contradicting the Reporter contract that emit must not panic. This is test-only but
can obscure the original failure by causing a secondary panic during concurrent event emission.
Code

pnpm/crates/package-manager/src/install/tests.rs[R177-184]

+    static EVENTS: Mutex<Vec<LogEvent>> = Mutex::new(Vec::new());
+    EVENTS.lock().unwrap().clear();
+
+    struct RecordingReporter;
+    impl Reporter for RecordingReporter {
+        fn emit(event: &LogEvent) {
+            EVENTS.lock().unwrap().push(event.clone());
+        }
Evidence
The Reporter trait explicitly documents that emit must not panic, while the new test reporter
uses unwrap() on a Mutex lock inside emit, which can panic on poisoning.

pnpm/crates/reporter/src/lib.rs[854-875]
pnpm/crates/package-manager/src/install/tests.rs[175-186]

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

### Issue description
`RecordingReporter::emit` calls `EVENTS.lock().unwrap()`. If the mutex becomes poisoned (due to any panic while holding it), subsequent emits will panic, violating the `Reporter` contract that `emit` must not panic.

### Issue Context
Even though this is test-only, `emit` may be invoked concurrently from multiple threads/tasks, and a secondary panic can hide the primary failure signal.

### Fix Focus Areas
- pnpm/crates/package-manager/src/install/tests.rs[175-186]
- pnpm/crates/reporter/src/lib.rs[854-875]

### Suggested fix
Replace `lock().unwrap()` with poison-tolerant locking, e.g.:
- `let mut guard = EVENTS.lock().unwrap_or_else(|p| p.into_inner());`
Or gracefully drop events if the lock can’t be acquired without panicking (keeping the trait contract).

ⓘ 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 896c770

Results up to commit ca12484 ⚖️ Balanced


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


Remediation recommended
1. Float truncation boundary drift ✓ Resolved 🐞 Bug ≡ Correctness
Description
pretty_bytes() now truncates via f64 math and floor(), which makes the displayed hundredths
sensitive to floating-point approximation and can produce an incorrect 0.01-lower value for some
inputs. This can break pnpm parity in big-tarball progress output where pretty_bytes() is used to
render download counters.
Code

pnpm/crates/default-reporter/src/format.rs[R15-22]

    let mut value = n as f64;
    let mut idx = 0;
    while value >= 1000.0 && idx < UNITS.len() - 1 {
        value /= 1000.0;
        idx += 1;
    }
+    value = (value * 100.0).floor() / 100.0;
    format!("{value:.2} {}", UNITS[idx])
Evidence
The truncation is implemented by casting u64 to f64 and applying floor() after scaling, and
the resulting string is used directly in the big-tarball download progress line renderer.

pnpm/crates/default-reporter/src/format.rs[8-23]
pnpm/crates/default-reporter/src/state.rs[520-553]

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

### Issue description
`pretty_bytes(n: u64)` truncates to two decimal places using `f64` and `floor()`. Because `f64` can’t exactly represent most decimal fractions, `value * 100.0` can land slightly below the intended integer boundary and `floor()` can drop it by 1, yielding a string that is 0.01 lower than the exact rational truncation.

### Issue Context
This formatting is used for user-visible big-tarball progress lines (`Downloading ... {downloaded}/{size}`), so even small formatting mismatches undermine the stated parity goal.

### Fix Focus Areas
- pnpm/crates/default-reporter/src/format.rs[8-23]
- pnpm/crates/default-reporter/src/state.rs[545-553]

### Suggested fix
Implement base-1000 unit selection with integer arithmetic and compute the two fractional digits via `u128`:
- Determine `idx` and `divisor = 1000^idx` (as `u128`).
- `whole = n / divisor`, `frac = (n % divisor) * 100 / divisor` (truncation).
- Format as `"{whole}.{frac:02} {unit}"`.
Add a small regression test for an input that is exactly at a 2-decimal boundary in MB/kB to lock behavior.

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



Informational
2. Test reporter can panic ✓ Resolved 🐞 Bug ☼ Reliability
Description
The new RecordingReporter::emit uses EVENTS.lock().unwrap(), which will panic if the mutex is
poisoned, contradicting the Reporter contract that emit must not panic. This is test-only but
can obscure the original failure by causing a secondary panic during concurrent event emission.
Code

pnpm/crates/package-manager/src/install/tests.rs[R177-184]

+    static EVENTS: Mutex<Vec<LogEvent>> = Mutex::new(Vec::new());
+    EVENTS.lock().unwrap().clear();
+
+    struct RecordingReporter;
+    impl Reporter for RecordingReporter {
+        fn emit(event: &LogEvent) {
+            EVENTS.lock().unwrap().push(event.clone());
+        }
Evidence
The Reporter trait explicitly documents that emit must not panic, while the new test reporter
uses unwrap() on a Mutex lock inside emit, which can panic on poisoning.

pnpm/crates/reporter/src/lib.rs[854-875]
pnpm/crates/package-manager/src/install/tests.rs[175-186]

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

### Issue description
`RecordingReporter::emit` calls `EVENTS.lock().unwrap()`. If the mutex becomes poisoned (due to any panic while holding it), subsequent emits will panic, violating the `Reporter` contract that `emit` must not panic.

### Issue Context
Even though this is test-only, `emit` may be invoked concurrently from multiple threads/tasks, and a secondary panic can hide the primary failure signal.

### Fix Focus Areas
- pnpm/crates/package-manager/src/install/tests.rs[175-186]
- pnpm/crates/reporter/src/lib.rs[854-875]

### Suggested fix
Replace `lock().unwrap()` with poison-tolerant locking, e.g.:
- `let mut guard = EVENTS.lock().unwrap_or_else(|p| p.into_inner());`
Or gracefully drop events if the lock can’t be acquired without panicking (keeping the trait contract).

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

Copilot AI review requested due to automatic review settings July 19, 2026 19:25

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 9c26474

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

Copilot AI review requested due to automatic review settings July 19, 2026 19:37

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.

@zkochan

zkochan commented Jul 19, 2026

Copy link
Copy Markdown
Member Author

Addressed the CodeRabbit maintainability note in commit 2342abf. The install reporter test now requires the manifest, direct-dependency resolution, and importing-done events to occur exactly once and in that order.


Written by an agent (Codex, GPT-5).

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 2342abf

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

Copilot AI review requested due to automatic review settings July 19, 2026 19:52

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.

@zkochan

zkochan commented Jul 19, 2026

Copy link
Copy Markdown
Member Author

Reviewed the three Qodo findings against the current code:

  • Fixed floating-point byte-format drift in 896c770 by using exact integer arithmetic; the new regression test first reproduced 1.12 kB for 1130 bytes and now matches pnpm at 1.13 kB.
  • Fixed the test reporter panic risk in the same commit by recovering a poisoned mutex guard inside Reporter::emit.
  • Kept the finite Vec capture intentionally. pnpm/CODE_STYLE_GUIDE.md explicitly prescribes a per-test static Mutex<Vec> recording fake and captured-sequence assertions for reporter emissions; this test needs the complete ordering, and the debug rendering is evaluated only on assertion failure.

Written by an agent (Codex, GPT-5).

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 896c770

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

@github-actions

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 896c7701d689

Each scenario reports direct installs and pnpr installs. 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.515 ± 0.113 2.367 2.706 1.65 ± 0.19
pacquet@main 2.487 ± 0.135 2.345 2.762 1.63 ± 0.19
pnpr@HEAD 1.577 ± 0.153 1.386 1.786 1.03 ± 0.15
pnpr@main 1.524 ± 0.161 1.339 1.786 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.51477024766,
      "stddev": 0.11297475317273473,
      "median": 2.5012156344600003,
      "user": 1.5146643800000001,
      "system": 1.3099452,
      "min": 2.36735093546,
      "max": 2.70550570146,
      "times": [
        2.38611318046,
        2.70550570146,
        2.57611862246,
        2.45149959146,
        2.36735093546,
        2.67409560746,
        2.5395685444600002,
        2.52576693546,
        2.44501902446,
        2.47666433346
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.48735575106,
      "stddev": 0.13486480476085208,
      "median": 2.46182553746,
      "user": 1.5376018800000002,
      "system": 1.2612875000000001,
      "min": 2.34532288146,
      "max": 2.76176152946,
      "times": [
        2.41807379946,
        2.34532288146,
        2.49686065746,
        2.5455672534600002,
        2.46229892446,
        2.35127800946,
        2.76176152946,
        2.37670815146,
        2.46135215046,
        2.6543341534600002
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5769274673600002,
      "stddev": 0.15279070639555653,
      "median": 1.55887311946,
      "user": 1.0566391800000001,
      "system": 1.1293475,
      "min": 1.38617287746,
      "max": 1.78608308046,
      "times": [
        1.7488371044600002,
        1.40712741246,
        1.55385574746,
        1.6399641634600002,
        1.78608308046,
        1.38617287746,
        1.56389049146,
        1.76310805846,
        1.41032547746,
        1.50991026046
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.5242439398600003,
      "stddev": 0.16085992028583196,
      "median": 1.51131213146,
      "user": 1.0337929799999999,
      "system": 1.1592472999999999,
      "min": 1.3387875494600001,
      "max": 1.7862707044600001,
      "times": [
        1.3761175844600002,
        1.3885555544600001,
        1.74086506546,
        1.3387875494600001,
        1.37122656946,
        1.7862707044600001,
        1.6224359324600002,
        1.46615806746,
        1.55646619546,
        1.59555617546
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 257.3 ± 11.7 245.2 277.5 1.01 ± 0.06
pacquet@main 253.8 ± 9.5 241.1 264.5 1.00
pnpr@HEAD 264.8 ± 5.5 256.2 276.3 1.04 ± 0.04
pnpr@main 265.7 ± 5.6 256.3 272.1 1.05 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.25727017016000003,
      "stddev": 0.011658428233133188,
      "median": 0.25208119066,
      "user": 0.20960829999999997,
      "system": 0.5390511600000001,
      "min": 0.24523812966,
      "max": 0.27752916066000005,
      "times": [
        0.25197758566,
        0.24523812966,
        0.26012028566,
        0.25218479566,
        0.26651246766000003,
        0.24593847966000001,
        0.24781064566,
        0.25165177166,
        0.27373837966000003,
        0.27752916066000005
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.25378662856,
      "stddev": 0.009515771731695818,
      "median": 0.25606715516,
      "user": 0.2034678,
      "system": 0.52568846,
      "min": 0.24114543866,
      "max": 0.26446283566,
      "times": [
        0.24632208166,
        0.24114543866,
        0.26446283566,
        0.24235176066,
        0.25539436266000004,
        0.26314617666,
        0.26081089666,
        0.25673994766,
        0.24358664766,
        0.26390613766000004
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.26482719046000003,
      "stddev": 0.005530178986869738,
      "median": 0.26577230416000003,
      "user": 0.20467450000000004,
      "system": 0.53688096,
      "min": 0.25622453666000006,
      "max": 0.27633232866,
      "times": [
        0.26685637666,
        0.27633232866,
        0.25622453666000006,
        0.25942809266000005,
        0.26488089466000003,
        0.26263777866000004,
        0.26666371366,
        0.26082161666000003,
        0.26717155966000006,
        0.26725500666
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.26573072346000004,
      "stddev": 0.005567634595447543,
      "median": 0.26624160316,
      "user": 0.2125184,
      "system": 0.53302496,
      "min": 0.25632168866000005,
      "max": 0.27213277666,
      "times": [
        0.25632168866000005,
        0.26625337966,
        0.26622982666000006,
        0.27179074266000003,
        0.25969946266000005,
        0.26035651066000004,
        0.26384130566,
        0.27213277666,
        0.27100838866000004,
        0.26967315266
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.708 ± 0.020 2.671 2.743 1.72 ± 0.13
pacquet@main 2.697 ± 0.017 2.670 2.722 1.72 ± 0.13
pnpr@HEAD 1.593 ± 0.143 1.398 1.803 1.01 ± 0.12
pnpr@main 1.570 ± 0.119 1.378 1.753 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.7082945935800002,
      "stddev": 0.02049337989548368,
      "median": 2.7084541784800003,
      "user": 1.5877690599999998,
      "system": 1.26346688,
      "min": 2.67066898398,
      "max": 2.74271624598,
      "times": [
        2.74271624598,
        2.72564221898,
        2.71089827298,
        2.72682798298,
        2.69847830398,
        2.7074020559800003,
        2.6884370369800004,
        2.7095063009800002,
        2.7023685329800005,
        2.67066898398
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.69654249658,
      "stddev": 0.01746730872671602,
      "median": 2.69780034498,
      "user": 1.5945599599999998,
      "system": 1.25865038,
      "min": 2.67017350498,
      "max": 2.72216538898,
      "times": [
        2.69610729598,
        2.6874227529800003,
        2.67813404298,
        2.69949339398,
        2.7041855039800002,
        2.72070254198,
        2.67017350498,
        2.72216538898,
        2.68121627898,
        2.70582426098
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5929521116799998,
      "stddev": 0.1430258122949771,
      "median": 1.59790180148,
      "user": 0.9984604599999998,
      "system": 1.09590508,
      "min": 1.39791507298,
      "max": 1.80322506598,
      "times": [
        1.48972958398,
        1.50137750798,
        1.60967208698,
        1.39791507298,
        1.74990863598,
        1.58613151598,
        1.41715782698,
        1.7549565359800001,
        1.80322506598,
        1.61944728398
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.5704363332799998,
      "stddev": 0.11930647060613962,
      "median": 1.6043190849800002,
      "user": 0.9616365599999999,
      "system": 1.13151308,
      "min": 1.37840020698,
      "max": 1.7534725009799998,
      "times": [
        1.46345576198,
        1.64905894298,
        1.64577819198,
        1.6437862089800002,
        1.37840020698,
        1.4381704579799999,
        1.50897431198,
        1.65841478798,
        1.56485196098,
        1.7534725009799998
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 552.4 ± 6.2 542.8 559.9 1.88 ± 0.05
pacquet@main 540.1 ± 10.4 523.3 553.0 1.84 ± 0.06
pnpr@HEAD 296.4 ± 4.8 287.1 302.1 1.01 ± 0.03
pnpr@main 293.7 ± 7.3 283.6 304.4 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.55238555766,
      "stddev": 0.00623569443473439,
      "median": 0.5535187679600001,
      "user": 0.6783502199999998,
      "system": 0.6658889599999999,
      "min": 0.54283856996,
      "max": 0.55985410296,
      "times": [
        0.55985410296,
        0.5518679379600001,
        0.5576327479600001,
        0.54283856996,
        0.5460110759600001,
        0.5590848929600001,
        0.5551695979600001,
        0.54982008096,
        0.54486039896,
        0.55671617096
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.5400806159600001,
      "stddev": 0.010364452996183104,
      "median": 0.54264400896,
      "user": 0.67411422,
      "system": 0.64638586,
      "min": 0.5232974399600001,
      "max": 0.5530211809600001,
      "times": [
        0.52809993696,
        0.5391506929600001,
        0.54633707996,
        0.5530211809600001,
        0.54613732496,
        0.55023574496,
        0.54775094396,
        0.53817800096,
        0.5232974399600001,
        0.52859781396
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.29635091996,
      "stddev": 0.004793231836695944,
      "median": 0.29615117846000005,
      "user": 0.18793611999999998,
      "system": 0.51397486,
      "min": 0.28714768896000004,
      "max": 0.30205061096,
      "times": [
        0.29266465096000005,
        0.29182696296000005,
        0.29661235696000005,
        0.29568999996000006,
        0.28714768896000004,
        0.29568723496000004,
        0.30027277296000005,
        0.30081113696000006,
        0.30205061096,
        0.30074578396000007
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.29371798336000005,
      "stddev": 0.007281717562710552,
      "median": 0.29374701496000005,
      "user": 0.17413972000000003,
      "system": 0.5241725599999999,
      "min": 0.28355775696,
      "max": 0.30439222296000007,
      "times": [
        0.28706335996000004,
        0.29764294896000004,
        0.29382842296000006,
        0.29720610496000005,
        0.28605858696,
        0.30428093296000003,
        0.28948388996,
        0.29366560696000005,
        0.28355775696,
        0.30439222296000007
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.853 ± 0.009 1.840 1.873 6.32 ± 0.23
pacquet@main 1.838 ± 0.008 1.827 1.853 6.27 ± 0.23
pnpr@HEAD 0.293 ± 0.011 0.278 0.319 1.00
pnpr@main 0.295 ± 0.004 0.289 0.300 1.00 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.8526572628800004,
      "stddev": 0.008936182120094857,
      "median": 1.85114964618,
      "user": 0.9013825399999998,
      "system": 0.7341010799999999,
      "min": 1.84045945868,
      "max": 1.87334386368,
      "times": [
        1.8502667836800002,
        1.8590252206800002,
        1.8494793896800001,
        1.8440538186800002,
        1.85203250868,
        1.87334386368,
        1.85485802168,
        1.85290577368,
        1.84045945868,
        1.85014778968
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.8379453557799998,
      "stddev": 0.008320298951831095,
      "median": 1.8378228271800001,
      "user": 0.8667200399999999,
      "system": 0.72582348,
      "min": 1.82676847868,
      "max": 1.85256458168,
      "times": [
        1.8348307646800002,
        1.82818074768,
        1.85256458168,
        1.83120296168,
        1.84080294668,
        1.84071479968,
        1.84181810868,
        1.84763931368,
        1.83493085468,
        1.82676847868
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.29324105118,
      "stddev": 0.010808593361805787,
      "median": 0.29376320868,
      "user": 0.18387093999999998,
      "system": 0.5269734799999999,
      "min": 0.27757887268000003,
      "max": 0.31864281568,
      "times": [
        0.29122876468000003,
        0.29613386468,
        0.29346682068,
        0.31864281568,
        0.28628264768,
        0.29405959668,
        0.27757887268000003,
        0.28392479468,
        0.29457150068,
        0.29652083368
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.29462011328000004,
      "stddev": 0.0038876920694554404,
      "median": 0.29566268718,
      "user": 0.19529214,
      "system": 0.52113038,
      "min": 0.28918634768,
      "max": 0.30021273868,
      "times": [
        0.29005120668,
        0.29503774968,
        0.30021273868,
        0.29103403768,
        0.28918634768,
        0.29730481068000003,
        0.29870257368,
        0.29151867068,
        0.29628762468000003,
        0.29686537268
      ]
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 315.0 ± 6.1 308.7 330.3 3.80 ± 0.10
pacquet@main 314.1 ± 3.7 309.9 321.4 3.79 ± 0.08
pnpr@HEAD 83.7 ± 1.9 80.8 89.0 1.01 ± 0.03
pnpr@main 82.8 ± 1.4 80.9 86.3 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.3149973328199999,
      "stddev": 0.0061449314677626725,
      "median": 0.31440990722,
      "user": 0.30882438,
      "system": 0.052073020000000005,
      "min": 0.30870825772,
      "max": 0.33033154772,
      "times": [
        0.31215255572,
        0.31846015572,
        0.31485353272,
        0.31396628172,
        0.31557202672,
        0.33033154772,
        0.30915556072,
        0.31485955372,
        0.30870825772,
        0.31191385572
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.31407868042,
      "stddev": 0.0036891877641074622,
      "median": 0.31361063172000003,
      "user": 0.29710678,
      "system": 0.06378592000000001,
      "min": 0.30985109972,
      "max": 0.32144602072,
      "times": [
        0.31504843972,
        0.31370089172,
        0.31080500772,
        0.31140577872,
        0.31174072972,
        0.31412854772,
        0.31913991672,
        0.30985109972,
        0.32144602072,
        0.31352037172
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.0836525893082353,
      "stddev": 0.001921932334718103,
      "median": 0.08342953472,
      "user": 0.017200850588235294,
      "system": 0.010230784705882352,
      "min": 0.08076990972,
      "max": 0.08897610772,
      "times": [
        0.08278043772,
        0.08591617372,
        0.08444941072,
        0.08619789472,
        0.08661419872000001,
        0.08194610572000001,
        0.08286736172,
        0.08186687672000001,
        0.08175262172,
        0.08547000272000001,
        0.08494912272,
        0.08263344072,
        0.08182773272,
        0.08350892972,
        0.08123083972,
        0.08395185372000001,
        0.08205875872,
        0.08383914072000001,
        0.08759915372,
        0.08524954872,
        0.08076990972,
        0.08482622172000001,
        0.08162857672,
        0.08163721372,
        0.08320579872,
        0.08383168672,
        0.08897610772,
        0.08409701872,
        0.08395772472,
        0.08423006772000001,
        0.08335013972000001,
        0.08138107172,
        0.08275871572,
        0.08282817772
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.08283725297714285,
      "stddev": 0.0014346858016907672,
      "median": 0.08243043872,
      "user": 0.019206780000000003,
      "system": 0.008226389714285715,
      "min": 0.08087833472,
      "max": 0.08633337972,
      "times": [
        0.08087833472,
        0.08258161272,
        0.08173791372,
        0.08243839372,
        0.08304294272,
        0.08156219272000001,
        0.08209053772000001,
        0.08243043872,
        0.08287915272,
        0.08143074472,
        0.08502614772,
        0.08611718272,
        0.08243854272000001,
        0.08125251872,
        0.08535870372000001,
        0.08414934572,
        0.08298329972,
        0.08136819672000001,
        0.08524925672,
        0.08473652172,
        0.08263807972000001,
        0.08227362272000001,
        0.08140306272,
        0.08303408572000001,
        0.08218417472,
        0.08242143172000001,
        0.08198170272000001,
        0.08223859772,
        0.08197629272000001,
        0.08207721272,
        0.08358186672000001,
        0.08235080772,
        0.08115542672,
        0.08390212972000001,
        0.08633337972
      ]
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.531 ± 0.106 4.416 4.745 1.29 ± 0.04
pacquet@main 4.514 ± 0.124 4.429 4.780 1.29 ± 0.04
pnpr@HEAD 3.510 ± 0.072 3.448 3.658 1.00
pnpr@main 3.539 ± 0.096 3.467 3.749 1.01 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.5314817427400005,
      "stddev": 0.10551488114853874,
      "median": 4.518449370839999,
      "user": 1.69285796,
      "system": 1.3767393199999998,
      "min": 4.415776965339999,
      "max": 4.74516979434,
      "times": [
        4.415776965339999,
        4.74516979434,
        4.537870272339999,
        4.42938320434,
        4.42975921234,
        4.4775026123399995,
        4.49902846934,
        4.6449465523399995,
        4.54677834434,
        4.58860200034
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.513872265739999,
      "stddev": 0.12374719387308447,
      "median": 4.44978877134,
      "user": 1.7037773599999997,
      "system": 1.3601520199999997,
      "min": 4.429125390339999,
      "max": 4.78028226134,
      "times": [
        4.442118553339999,
        4.452153795339999,
        4.429125390339999,
        4.447423747339999,
        4.43299001734,
        4.43829613334,
        4.695212433339999,
        4.78028226134,
        4.486780586339999,
        4.534339739339999
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.5103898307400003,
      "stddev": 0.07152278178480256,
      "median": 3.48464144834,
      "user": 1.19277816,
      "system": 1.2352140199999997,
      "min": 3.44764833734,
      "max": 3.65771154834,
      "times": [
        3.53464100834,
        3.47912094934,
        3.45427838534,
        3.50433769934,
        3.46164468134,
        3.61276807134,
        3.46158567934,
        3.65771154834,
        3.4901619473400003,
        3.44764833734
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.5385775090399996,
      "stddev": 0.09622264979835629,
      "median": 3.49942862784,
      "user": 1.17729606,
      "system": 1.24099812,
      "min": 3.46733706234,
      "max": 3.74915056534,
      "times": [
        3.67465647534,
        3.47673289234,
        3.50782344534,
        3.74915056534,
        3.46757590334,
        3.50025372634,
        3.49860352934,
        3.55308957934,
        3.46733706234,
        3.49055191134
      ]
    }
  ]
}

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/13155
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,670.67 ms
(-0.07%)Baseline: 2,672.63 ms
3,207.16 ms
(83.27%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,840.46 ms
(+0.38%)Baseline: 1,833.58 ms
2,200.30 ms
(83.65%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
542.84 ms
(+1.55%)Baseline: 534.55 ms
641.46 ms
(84.63%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
308.71 ms
(-4.02%)Baseline: 321.63 ms
385.96 ms
(79.98%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,367.35 ms
(-0.07%)Baseline: 2,368.98 ms
2,842.77 ms
(83.28%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,415.78 ms
(-0.43%)Baseline: 4,434.68 ms
5,321.61 ms
(82.98%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
245.24 ms
(+0.36%)Baseline: 244.36 ms
293.23 ms
(83.63%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchpr/13155
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,397.92 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
277.58 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
287.15 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
80.77 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,386.17 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,447.65 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
256.22 ms
🐰 View full continuous benchmarking report in Bencher

@zkochan
zkochan merged commit f5ce646 into main Jul 19, 2026
32 checks passed
@zkochan
zkochan deleted the stage-7 branch July 19, 2026 20:20
@coderabbitai coderabbitai Bot mentioned this pull request Jul 28, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants