Skip to content

refactor(deploy): move path comparison helpers out of target.rs - #16480

Merged
zkochan merged 1 commit into
mainfrom
fix/deploy-target-line-cap
Oct 1, 2026
Merged

zkochan merged 1 commit into
mainfrom
fix/deploy-target-line-cap

Conversation

@zkochan

@zkochan zkochan commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Rust CI on main fails the Dylint job since #16476: pnpm/crates/cli/src/cli_args/deploy/target.rs has 403 lines of code, above the 400-line cap. Every open PR's Dylint check runs against the merge with main, so all of them go red too.

This moves the path comparison helpers (same_path, is_child_path, is_ancestor_path, has_path_prefix, ProjectPathKey and their private helpers) into a new deploy/path_compare.rs. No behavior changes.

Squash Commit Body

target.rs grew to 403 lines of code after the legacy-deploy fix and
failed the dylint file-length cap on main. The path comparison helpers
form a separate concern, so they move to their own module. No behavior
changes.

Checklist

  • Added or updated tests. (Not applicable: a code move. The existing deploy tests cover it.)

Local checks: cargo dylint on pnpm-cli passes, and the 80 deploy tests in pnpm-cli pass.


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

🤖 Generated with Claude Code


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
    • Deployment path comparisons now account for normalized path components and platform-specific casing, helping paths be matched consistently.
    • Parent, child, and identical paths are distinguished consistently, including when paths are equal.

target.rs grew to 403 lines of code after the legacy-deploy fix and
failed the dylint file-length cap on main. The path comparison helpers
form a separate concern, so they move to their own module.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: pnpm/pnpm/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 0b338a06-0e5a-4e1f-a3dc-c8f8c3f21096

📥 Commits

Reviewing files that changed from the base of the PR and between 5a389e4 and 6478b8a.

📒 Files selected for processing (3)
  • pnpm/crates/cli/src/cli_args/deploy.rs
  • pnpm/crates/cli/src/cli_args/deploy/path_compare.rs
  • pnpm/crates/cli/src/cli_args/deploy/target.rs
 _____________________________________
< No code too small, no bug too tall. >
 -------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.20%. Comparing base (5a389e4) to head (6478b8a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16480   +/-   ##
=======================================
  Coverage   92.20%   92.20%           
=======================================
  Files        1525     1526    +1     
  Lines      205424   205424           
=======================================
  Hits       189405   189405           
  Misses      16019    16019           

☔ 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 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.00     13.1±0.45ms    28.6 MB/sec    1.12     14.7±0.56ms    25.4 MB/sec
packument/parse                                  1.00     43.5±0.61µs  1525.6 MB/sec    1.06     46.1±0.76µs  1437.5 MB/sec
tarball/download_dependency                      1.00      4.8±0.42ms   907.7 KB/sec    1.05      5.0±0.63ms   861.9 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00    224.3±9.22ms 71.3 KElem/sec    1.05    235.5±9.35ms 67.9 KElem/sec
version_pick/repeated_ranges_file                1.00      4.5±0.07ms  6.9 KElem/sec    1.09      5.0±0.15ms  6.3 KElem/sec
version_pick/repeated_ranges_raw                 1.00      4.5±0.06ms  7.0 KElem/sec    1.12      5.0±0.19ms  6.2 KElem/sec
workspace_resolution/hoist_heavy                 1.00    254.0±8.87ms        ? ?/sec    1.17    297.7±8.18ms        ? ?/sec
workspace_sort/chained_projects                  1.00     13.5±1.08ms        ? ?/sec    1.11     15.0±0.69ms        ? ?/sec

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Same-run regression check

HEAD and main are measured on the same runner. The tolerance is 5% of the main median or 2 ms, whichever is larger. A regression requires both the median slowdown and the gap between the fastest retained HEAD sample and slowest retained main sample to exceed this tolerance, after trimming up to 10% from each tail. Suspected regressions are rerun once with target order reversed and only fail if reproduced. This conservative noise guard is not a statistical confidence interval.

Inconclusive rows do not fail the check. They remain visible for performance review. Bencher retains absolute minimum timings for historical tracking; historical alerts do not gate this PR. Sequential measurements can still be affected by runner drift.

Scenario Engine main median HEAD median Change Tolerance Result
isolated-fresh-restore-cold-cache-cold-store pacquet 2481.98 ms 2476.33 ms -0.2% 124.10 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr 1486.92 ms 1436.67 ms -3.4% 74.35 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet 271.59 ms 282.14 ms 3.9% 13.58 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr 284.90 ms 287.63 ms 1.0% 14.25 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pacquet 8.87 ms 8.99 ms 1.3% 2.00 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr 8.52 ms 8.99 ms 5.5% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet 9.83 ms 10.05 ms 2.3% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr 10.78 ms 10.26 ms -4.9% 2.00 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet 2472.94 ms 2709.32 ms 9.6% 123.65 ms Inconclusive (overlapping samples)
isolated-fresh-install-cold-cache-cold-store pnpr 1444.18 ms 1439.79 ms -0.3% 72.21 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet 450.81 ms 434.73 ms -3.6% 22.54 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr 332.58 ms 302.78 ms -9.0% 16.63 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet 1776.31 ms 1813.27 ms 2.1% 88.82 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr 398.24 ms 379.70 ms -4.7% 19.91 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet 226.03 ms 224.47 ms -0.7% 11.30 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr 117.88 ms 122.24 ms 3.7% 5.89 ms Within tolerance
isolated-peer-heavy-resolve-hot-cache-offline pacquet 285.70 ms 225.58 ms -21.0% 14.28 ms Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet 335.23 ms 208.89 ms -37.7% 16.76 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet 4559.31 ms 4581.64 ms 0.5% 227.97 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr 3826.20 ms 3650.15 ms -4.6% 191.31 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet 173.66 ms 179.13 ms 3.2% 8.68 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pnpr 142.52 ms 134.80 ms -5.4% 7.13 ms Within tolerance

Integrated-Benchmark Report (Linux)

Commit: 6478b8a722dc

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

The tables below show mean ± σ. Bencher tracks absolute minimum latency; PR regression checks compare HEAD and main samples from the same runner. Historical timing alerts do not gate PRs.

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.456 ± 0.146 2.266 2.647 1.71 ± 0.17
pacquet@main 2.466 ± 0.133 2.249 2.634 1.72 ± 0.17
pnpr@HEAD 1.433 ± 0.114 1.300 1.648 1.00
pnpr@main 1.491 ± 0.115 1.316 1.648 1.04 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.45575032006,
      "stddev": 0.1455640034791469,
      "median": 2.47632642336,
      "user": 1.4491554199999999,
      "system": 1.38511528,
      "min": 2.26648725836,
      "max": 2.64687388836
    },
    {
      "command": "pacquet@main",
      "mean": 2.46633793186,
      "stddev": 0.13306307887270255,
      "median": 2.48198081236,
      "user": 1.4606890200000002,
      "system": 1.57059208,
      "min": 2.24859857936,
      "max": 2.63391405936
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.43256493816,
      "stddev": 0.11358390247836259,
      "median": 1.43666519336,
      "user": 1.3176594199999998,
      "system": 1.3332646799999999,
      "min": 1.29987534836,
      "max": 1.64765118036
    },
    {
      "command": "pnpr@main",
      "mean": 1.49055249846,
      "stddev": 0.11463780694707702,
      "median": 1.48692112636,
      "user": 1.3575499199999999,
      "system": 1.31200668,
      "min": 1.31649638036,
      "max": 1.64756112336
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 297.3 ± 49.9 240.3 388.1 1.09 ± 0.21
pacquet@main 272.4 ± 24.6 238.6 319.2 1.00
pnpr@HEAD 305.2 ± 60.2 259.2 463.8 1.12 ± 0.24
pnpr@main 284.3 ± 16.1 256.8 310.8 1.04 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.29728740574,
      "stddev": 0.04990419976071886,
      "median": 0.28213902724,
      "user": 0.33422308,
      "system": 0.684138,
      "min": 0.24029993274,
      "max": 0.38807730774000004
    },
    {
      "command": "pacquet@main",
      "mean": 0.27242116224,
      "stddev": 0.02457503829805232,
      "median": 0.27158716224,
      "user": 0.30515817999999995,
      "system": 0.6408716,
      "min": 0.23857226974,
      "max": 0.31922964274000004
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30519932003999994,
      "stddev": 0.06018796638487217,
      "median": 0.28763454124,
      "user": 0.32910308,
      "system": 0.6529119,
      "min": 0.25916574074000004,
      "max": 0.46380801174
    },
    {
      "command": "pnpr@main",
      "mean": 0.28428175634,
      "stddev": 0.016146643096280194,
      "median": 0.28490073874,
      "user": 0.30734147999999994,
      "system": 0.6301355000000001,
      "min": 0.25675348474000004,
      "max": 0.31080450374
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 9.0 ± 0.6 7.7 10.8 1.05 ± 0.10
pacquet@main 9.0 ± 0.7 7.6 12.7 1.05 ± 0.11
pnpr@HEAD 9.0 ± 0.6 7.7 11.4 1.05 ± 0.10
pnpr@main 8.6 ± 0.6 7.4 10.4 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.009045888753661966,
      "stddev": 0.0005605459123873725,
      "median": 0.00899025956,
      "user": 0.0053419819718309855,
      "system": 0.004568469718309857,
      "min": 0.00773707056,
      "max": 0.010823085560000001
    },
    {
      "command": "pacquet@main",
      "mean": 0.009006537624285715,
      "stddev": 0.0007359367361963793,
      "median": 0.00887324456,
      "user": 0.005221598571428571,
      "system": 0.0045591728571428595,
      "min": 0.007596838559999999,
      "max": 0.01269133356
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.009029027829938656,
      "stddev": 0.0006167672759933614,
      "median": 0.00899154206,
      "user": 0.005385307730061347,
      "system": 0.004489999386503068,
      "min": 0.00772597056,
      "max": 0.01144799856
    },
    {
      "command": "pnpr@main",
      "mean": 0.008592034361916932,
      "stddev": 0.00057779929449559,
      "median": 0.008519700560000001,
      "user": 0.005195888690095845,
      "system": 0.004144600000000001,
      "min": 0.00735614656,
      "max": 0.01041605056
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 10.3 ± 0.8 8.9 13.3 1.04 ± 0.11
pacquet@main 9.9 ± 0.7 8.6 12.3 1.00
pnpr@HEAD 10.4 ± 0.7 9.1 13.4 1.05 ± 0.10
pnpr@main 11.6 ± 2.5 8.7 22.5 1.17 ± 0.26
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.01028221041173913,
      "stddev": 0.0007994491366339495,
      "median": 0.010054145140000002,
      "user": 0.005804679565217391,
      "system": 0.0053516741304347835,
      "min": 0.008912105140000001,
      "max": 0.01332764514
    },
    {
      "command": "pacquet@main",
      "mean": 0.009920245184117648,
      "stddev": 0.0006557964624075512,
      "median": 0.00983010414,
      "user": 0.005905756078431373,
      "system": 0.004947550490196077,
      "min": 0.00857573514,
      "max": 0.01234101314
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.010375791463886641,
      "stddev": 0.0007177423810288875,
      "median": 0.01025922414,
      "user": 0.006259472955465585,
      "system": 0.005065017894736837,
      "min": 0.009062107140000001,
      "max": 0.01341152014
    },
    {
      "command": "pnpr@main",
      "mean": 0.011610679432237443,
      "stddev": 0.0024664933972077248,
      "median": 0.01078395214,
      "user": 0.0069243887671232894,
      "system": 0.005648835433789951,
      "min": 0.008721246140000001,
      "max": 0.02250920114
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.719 ± 0.121 2.529 2.923 1.83 ± 0.17
pacquet@main 2.513 ± 0.074 2.447 2.661 1.69 ± 0.14
pnpr@HEAD 1.504 ± 0.128 1.396 1.761 1.01 ± 0.12
pnpr@main 1.486 ± 0.118 1.396 1.786 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.7188243794800004,
      "stddev": 0.12088755692367277,
      "median": 2.70931625268,
      "user": 2.9391297,
      "system": 2.250645,
      "min": 2.52930578568,
      "max": 2.92341622468
    },
    {
      "command": "pacquet@main",
      "mean": 2.51252755758,
      "stddev": 0.07354916078575045,
      "median": 2.47294462368,
      "user": 2.0636964,
      "system": 1.5823036999999998,
      "min": 2.44735053768,
      "max": 2.66094086468
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5038996734799999,
      "stddev": 0.12815700138063058,
      "median": 1.43979388218,
      "user": 1.3259482999999999,
      "system": 1.3036343,
      "min": 1.39578778068,
      "max": 1.7610694636800002
    },
    {
      "command": "pnpr@main",
      "mean": 1.4858406058799998,
      "stddev": 0.1178195512904019,
      "median": 1.4441802471799998,
      "user": 1.4289001,
      "system": 1.4023862,
      "min": 1.39580376368,
      "max": 1.78612962868
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 436.3 ± 22.4 404.4 483.7 1.41 ± 0.13
pacquet@main 500.2 ± 117.0 419.3 721.4 1.62 ± 0.40
pnpr@HEAD 308.9 ± 22.4 281.1 359.7 1.00
pnpr@main 329.9 ± 14.5 310.6 354.5 1.07 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.43634199954,
      "stddev": 0.022372104803750393,
      "median": 0.43472508954,
      "user": 0.6008414999999999,
      "system": 0.69485948,
      "min": 0.40435877154,
      "max": 0.48373895454000004
    },
    {
      "command": "pacquet@main",
      "mean": 0.5002427513400001,
      "stddev": 0.11703070839974788,
      "median": 0.45080948704,
      "user": 0.7095840999999999,
      "system": 0.77296978,
      "min": 0.41925879054000004,
      "max": 0.72136212154
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30890283924,
      "stddev": 0.02243773098687181,
      "median": 0.30278226204,
      "user": 0.26771259999999997,
      "system": 0.59485658,
      "min": 0.28106800154,
      "max": 0.35965151254
    },
    {
      "command": "pnpr@main",
      "mean": 0.32986195613999997,
      "stddev": 0.014500927773432263,
      "median": 0.33258300054,
      "user": 0.3124722,
      "system": 0.61566128,
      "min": 0.31056581254000004,
      "max": 0.35451278454
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.857 ± 0.147 1.771 2.268 4.83 ± 0.47
pacquet@main 1.805 ± 0.080 1.739 2.006 4.70 ± 0.34
pnpr@HEAD 0.384 ± 0.022 0.356 0.420 1.00
pnpr@main 0.399 ± 0.016 0.373 0.429 1.04 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.8574475112600002,
      "stddev": 0.1474190903308338,
      "median": 1.81326729566,
      "user": 1.36357226,
      "system": 1.32089128,
      "min": 1.77094602316,
      "max": 2.26806198616
    },
    {
      "command": "pacquet@main",
      "mean": 1.8045868769599998,
      "stddev": 0.08043049631865001,
      "median": 1.77631478816,
      "user": 1.2129151599999999,
      "system": 1.25779458,
      "min": 1.7394438411600002,
      "max": 2.00574089316
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.38436245065999997,
      "stddev": 0.02198829577012499,
      "median": 0.37970098866,
      "user": 0.36837126,
      "system": 0.8169723799999999,
      "min": 0.35581507015999997,
      "max": 0.42030706216
    },
    {
      "command": "pnpr@main",
      "mean": 0.39882001706000003,
      "stddev": 0.01571294031897314,
      "median": 0.39824004316,
      "user": 0.37262925999999996,
      "system": 0.84642728,
      "min": 0.37256783316,
      "max": 0.42867891816
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 227.0 ± 7.9 217.7 243.1 1.92 ± 0.25
pacquet@main 226.2 ± 13.6 200.1 247.4 1.91 ± 0.27
pnpr@HEAD 118.4 ± 14.9 94.7 146.1 1.00
pnpr@main 124.8 ± 13.9 109.6 160.5 1.05 ± 0.18
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.22703197210333337,
      "stddev": 0.007873327512858793,
      "median": 0.22447428252,
      "user": 0.21069745000000004,
      "system": 0.08316149333333334,
      "min": 0.21769131152,
      "max": 0.24314327752
    },
    {
      "command": "pacquet@main",
      "mean": 0.2261938329366667,
      "stddev": 0.013606496170924272,
      "median": 0.22603186252000002,
      "user": 0.20692195000000002,
      "system": 0.09180199333333332,
      "min": 0.20006583752,
      "max": 0.24741585152
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.11844688252000003,
      "stddev": 0.014932701327354655,
      "median": 0.12224008152000002,
      "user": 0.05078945862068965,
      "system": 0.025173970344827587,
      "min": 0.09465121252000001,
      "max": 0.14612711252000002
    },
    {
      "command": "pnpr@main",
      "mean": 0.1247943873836364,
      "stddev": 0.013947155724937795,
      "median": 0.11787772502,
      "user": 0.05609206363636365,
      "system": 0.028248296363636363,
      "min": 0.10956063452,
      "max": 0.16052385052
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 222.1 ± 11.7 199.3 234.6 1.00
pacquet@main 261.7 ± 40.2 205.8 313.1 1.18 ± 0.19
pnpm@HEAD 3792.7 ± 489.8 3404.1 5029.6 17.08 ± 2.38
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.22210812675777783,
      "stddev": 0.011675514711656388,
      "median": 0.22558247998,
      "user": 0.21529066444444445,
      "system": 0.05521211111111111,
      "min": 0.19932281398,
      "max": 0.23461811898
    },
    {
      "command": "pacquet@main",
      "mean": 0.2617270694244444,
      "stddev": 0.04018592222349294,
      "median": 0.28569547398,
      "user": 0.2586219977777777,
      "system": 0.0688541111111111,
      "min": 0.20582311198,
      "max": 0.31309929598
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.792653504424445,
      "stddev": 0.4898218723039025,
      "median": 3.66698876298,
      "user": 5.36673433111111,
      "system": 0.47644522222222224,
      "min": 3.40414319998,
      "max": 5.02955867198
    }
  ]
}

Scenario: Isolated linker: linked-workspace resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 212.0 ± 9.1 202.6 237.0 1.00
pacquet@main 321.8 ± 46.2 209.3 369.3 1.52 ± 0.23
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.21200647330307693,
      "stddev": 0.009065034784356673,
      "median": 0.20889280138000002,
      "user": 0.17349861692307694,
      "system": 0.07769316923076922,
      "min": 0.20259715638,
      "max": 0.23698329438000001
    },
    {
      "command": "pacquet@main",
      "mean": 0.3218317215942857,
      "stddev": 0.04617854756152269,
      "median": 0.33523143488,
      "user": 0.24883811142857143,
      "system": 0.12713597142857141,
      "min": 0.20926901638,
      "max": 0.36929109138
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.611 ± 0.156 4.460 4.957 1.26 ± 0.05
pacquet@main 4.539 ± 0.088 4.414 4.658 1.24 ± 0.04
pnpr@HEAD 3.659 ± 0.100 3.505 3.821 1.00
pnpr@main 3.827 ± 0.086 3.665 3.956 1.05 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.6105046429000005,
      "stddev": 0.15614995731929898,
      "median": 4.5816377483,
      "user": 1.86321142,
      "system": 1.7154167999999999,
      "min": 4.4602763818,
      "max": 4.9572601578
    },
    {
      "command": "pacquet@main",
      "mean": 4.5390189819,
      "stddev": 0.088434226194994,
      "median": 4.5593053423,
      "user": 1.7537362199999997,
      "system": 1.7132376,
      "min": 4.414107441800001,
      "max": 4.6576954608
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.6593557444999996,
      "stddev": 0.10008616643996184,
      "median": 3.6501504533,
      "user": 1.8456686199999996,
      "system": 1.6549251999999999,
      "min": 3.5052375357999996,
      "max": 3.8214174208
    },
    {
      "command": "pnpr@main",
      "mean": 3.8272434970999996,
      "stddev": 0.08584996868798549,
      "median": 3.8261990098,
      "user": 2.2236219200000003,
      "system": 2.094607,
      "min": 3.6647918948,
      "max": 3.9555291978
    }
  ]
}

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

Same install as the isolated fresh-restore hot/hot scenario, into the shared virtual store, the layout pnpm 12 installs into by default. Scenarios run on separate machines, so compare main and branch within each table.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 170.7 ± 28.3 119.9 214.8 1.24 ± 0.23
pacquet@main 170.7 ± 41.8 108.3 244.9 1.24 ± 0.32
pnpr@HEAD 137.5 ± 12.3 121.9 159.0 1.00
pnpr@main 143.5 ± 5.9 135.0 161.0 1.04 ± 0.10
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.17069971483428573,
      "stddev": 0.02826647496164056,
      "median": 0.17913491812000001,
      "user": 0.21512298285714287,
      "system": 0.17331632000000002,
      "min": 0.11989094812000001,
      "max": 0.21476243312
    },
    {
      "command": "pacquet@main",
      "mean": 0.1706863926914286,
      "stddev": 0.041839120236965656,
      "median": 0.17365716462000003,
      "user": 0.2222755542857143,
      "system": 0.1508877485714286,
      "min": 0.10829215212,
      "max": 0.24492616612000004
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.13751735292000003,
      "stddev": 0.012270384478389197,
      "median": 0.13480307462000002,
      "user": 0.16337514,
      "system": 0.13224611999999997,
      "min": 0.12186297712000001,
      "max": 0.15903969912000002
    },
    {
      "command": "pnpr@main",
      "mean": 0.1435198174325,
      "stddev": 0.005872303814658953,
      "median": 0.14251896312,
      "user": 0.18281534000000002,
      "system": 0.12568732,
      "min": 0.13499930612000002,
      "max": 0.16095866012
    }
  ]
}

@zkochan
zkochan marked this pull request as ready for review October 1, 2026 12:47
Copilot AI balanced review requested due to automatic review settings October 1, 2026 12:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Extract deploy path comparison helpers from target.rs

✨ Enhancement 🕐 10-20 Minutes

Grey Divider

AI Description

• Move path comparison helpers into a dedicated module to restore Dylint compliance.
• Preserve deploy behavior while updating imports for target validation and workspace project
 lookup.
Diagram

graph TD
  D["Deploy module"] --> T["Target validation"] --> P["Path comparison"]
  D --> P
  R["Project resolution"] --> D
Loading
High-Level Assessment

Extracting the cohesive path comparison helpers is preferable to moving unrelated target logic solely to meet the line cap. It keeps target validation focused and preserves the existing helper behavior.

Files changed (3) +72 / -68

Refactor (3) +72 / -68
deploy.rsRegister and import the path comparison module +5/-3

Register and import the path comparison module

• Declares path_compare and imports its shared helpers and ProjectPathKey in place of imports from target. Existing deploy consumers continue to access them through the parent module.

pnpm/crates/cli/src/cli_args/deploy.rs

path_compare.rsHouse normalized path comparison helpers +65/-0

House normalized path comparison helpers

• Moves path equality, ancestor and child checks, prefix matching, and ProjectPathKey into one module. Retains the existing platform-specific component comparison.

pnpm/crates/cli/src/cli_args/deploy/path_compare.rs

target.rsRemove extracted helpers from target validation +2/-65

Remove extracted helpers from target validation

• Removes the path comparison implementations and imports them from the deploy module instead. This reduces the file below the Dylint line cap without changing target-validation logic.

pnpm/crates/cli/src/cli_args/deploy/target.rs

@zkochan
zkochan merged commit 2f41427 into main Oct 1, 2026
53 of 54 checks passed
@zkochan
zkochan deleted the fix/deploy-target-line-cap branch October 1, 2026 12:50
@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants