Repository navigation
test(pacquet): recalibrate the peer-heavy pacquet-vs-pnpm floor - #13552
Conversation
The peer-heavy scenario asserted that pacquet resolves the fixture at least 10x faster than the TypeScript CLI. That headroom was measured against a base that still re-filtered the packument and re-parsed semver ranges once per dependency edge on the offline hot-cache path. #13504 removed that per-edge work, so the same 401-package DAG now resolves in ~2.9s instead of ~34.4s and the ratio fell to ~1.7x, failing the benchmark on main. Tie the floor to what the assertion is actually for: a peer-resolution blowup of the kind #13540 tracked runs slower than the TypeScript CLI (7.0s versus 2.9s, ~0.4x), so 1.25x clears the run-to-run noise while still catching it, and no longer breaks whenever the TypeScript resolver gets faster. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe integrated benchmark documents the peer-heavy speedup threshold and lowers ChangesIntegrated benchmark threshold
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoRecalibrate peer-heavy pacquet vs pnpm benchmark speedup floor
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Confidence Score: 5/5The PR appears safe to merge because the recalibrated threshold preserves the benchmark’s intended regression signal. The changed threshold is applied in the correct ratio direction and remains between the documented healthy and regressed benchmark results. Reviews (1): Last reviewed commit: "test(pacquet): recalibrate the peer-heav..." | Re-trigger Greptile |
Code Review by Qodo
Context used✅ Compliance rules (platform):
24 rules 1. Speedup floor comment historical
|
There was a problem hiding this comment.
🟢 Ready to approve
The change is a narrow, low-risk benchmark threshold recalibration consistent with the stated CI regression-gate intent.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Pull request overview
Recalibrates the integrated benchmark guardrail for the peer-heavy (offline, hot-cache) scenario so it no longer fails on main after TypeScript pnpm’s resolver became significantly faster, while still catching pacquet peer-resolution regressions where pacquet falls behind pnpm.
Changes:
- Lowered the minimum required pacquet-vs-pnpm speedup threshold for the peer-heavy DAG from
10.0xto1.25x. - Added rationale explaining that the threshold is meant to clear measurement noise and catch peer-resolution blowups, not encode large headroom that can shrink as pnpm improves.
File summaries
| File | Description |
|---|---|
| pnpm/tasks/integrated-benchmark/src/work_env.rs | Lowers the peer-heavy pacquet-vs-pnpm speedup floor and documents the intent of the regression gate. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
| // A pacquet peer-resolution blowup lands *below* 1x on this DAG, so the floor | ||
| // only has to clear measurement noise, not encode how far ahead pacquet is. | ||
| // The TypeScript resolver's own hot-cache cost moves independently — offline | ||
| // resolution of this fixture dropped from ~34s to ~3s in pnpm/pnpm#13504 — and | ||
| // a floor tracking that headroom would fail on every TypeScript perf win. |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13552 +/- ##
==========================================
- Coverage 87.93% 87.93% -0.01%
==========================================
Files 550 550
Lines 97112 97112
==========================================
- Hits 85394 85393 -1
- Misses 11718 11719 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
The peer-heavy integrated benchmark has failed on every
mainpush since itlanded, e.g.
run 30699800078:
The 10x floor was calibrated on
the benchmark's own PR run,
whose base predated #13504 — that PR merged nine minutes after the
benchmark run started, and landed on
maintwenty minutes before#13545 did. #13504 removed exactly the per-edge work this
scenario stresses (
filterPkgMetadataByPublishDateand semver re-parsing onevery dependency edge, offline hot cache), so the TypeScript arm collapsed:
mainrun (post-13504)pacquet@HEADpnpm@HEADpacquet did not move; TypeScript pnpm got ~12x faster on this workload. Both
failing
mainruns agree (1.78x and 1.72x), so this is not measurement noise.This lowers the floor to 1.25x and documents what it is actually guarding.
Related to #13540.
Squash Commit Body
Checklist
already linked to it solves it.
Written by an agent (Claude Code, claude-opus-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
Documentation
Bug Fixes