Uh oh!
There was an error while loading. Please reload this page.
test(snap): add pnpm v11 snap tests for command adaptation coverage - #1289
Conversation
✅ Deploy Preview for viteplus-preview canceled.
|
fengmk2
commented
Apr 3, 2026
How to use the Graphite Merge QueueAdd the label auto-merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
155a35d to
733d977Comparefengmk2
commented
Apr 23, 2026
fengmk2
commented
Apr 23, 2026
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c4e9579. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Merge activity
|
…1289) Add 26 snap test cases for `pnpm@11.0.6` (latest stable v11), mirroring the existing pnpm10 test suite, to validate `vp`'s command-adaptation layer against pnpm v11. ## Coverage New `snap-tests-global/*-pnpm11` fixtures for: add, cache, config, dedupe, dlx, link, list, outdated, owner, pack, prune, publish, remove, unlink, update, view, vpx, why, dev-engines-runtime — plus workspace variants for add/list/outdated/pack/remove/update/why. ## pnpm v11 compatibility findings - **`cache`,** **`dlx`,** **`owner`,** **`view`,** **`vpx`** — output identical to pnpm v10. - **`add`,** **`install`,** **`link`** — now report `packageManagerDependencies` (`@pnpm/exe`, `pnpm`) as part of install output; captured in snapshots. - **`why`** — output format restructured from tree-based to flat; captured in snapshots. - **`publish --dry-run`** — pnpm v11 no longer delegates to npm; minor output diff captured. - **`unlink`** **(workaround applied)** — pnpm v11 now runs a reconciling install after removing the override from `pnpm-workspace.yaml`. Under `CI=true` this defaults to `--frozen-lockfile` and fails with `ERR_PNPM_LOCKFILE_CONFIG_MISMATCH`. Fix: snap tests pass `-- --no-frozen-lockfile` to `vp unlink`. - **`config`** **at project scope (workaround applied)** — pnpm v11 moved project config from `.npmrc` into `pnpm-workspace.yaml`, which only accepts camelCase keys. Test key renamed to `vitePlusPmConfigTestKey`. - **`dev-engines-runtime`** — bumped pinned Node.js to `22.22.2` to satisfy vp's current minimum (`^20.19.0 || >=22.12.0`). - **`prune`** — skipped on `win32` (platform-specific output instability, matches other tests). Global install is not affected — `vp install -g` already forces npm. ## RFC updates pnpm v11 is now stable, so the support matrix in 7 RFCs (`add-remove`, `dedupe`, `install`, `link-unlink`, `outdated`, `update`, `why`) lists `pnpm@11.x` as supported (no WIP marker). The `link-unlink` entry retains the `-- --no-frozen-lockfile` note for CI usage. ## Test plan - [x] `pnpm -F vite-plus snap-test-global pnpm11` — all 26 cases pass with clean exit codes - [x] `cargo test -p vite_install --lib commands::unlink` — unit tests still pass - [x] CI green on all platforms
d4c90b7 to
899bf25CompareUh oh!
There was an error while loading. Please reload this page.
… Node version (#2390) Since 2026-08-08 the Windows PTY snapshot leg fails intermittently on `dev_engines_runtime_pnpm11`: the `vp dlx -s print-current-version` step times out after 60s with empty output (13+ runs across branches, main included, e.g. [run 31302523708](https://github.com/voidzero-dev/vite-plus/actions/runs/31302523708)). The fixture pinned devEngines node `22.22.2`, the only pin in the suite that the CI runtime seed does not carry, so the step had to download Node.js from nodejs.org inside its 60s budget. Connections from the Windows runner to nodejs.org stall intermittently, and the shared HTTP client's 2-minute request timeout (see #2386) outlives the step budget, so a stalled attempt can neither fail nor retry in time. The sibling `dev_engines_runtime_pnpm10` pins the seeded default `22.18.0` and passed in ~2s in the same failed runs, which clears the npm registry path and isolates the stall to nodejs.org. Pin the pnpm11 fixture to `22.18.0` as well. The `22.22.2` pin carried no assertion value: #1289 picked it as the then-latest 22.x above vp's minimum, and the snapshot redacts the printed version to `<version>`. The case still verifies that vp honors `devEngines.runtime` under pnpm 11. Verified with `cargo test -p vp_cli_snapshots --test cli_snapshots -- dev_engines_runtime_pnpm11` (passes in 6s, no snapshot drift).


Add 26 snap test cases for
pnpm@11.0.6(latest stable v11), mirroring the existing pnpm10 test suite, to validatevp's command-adaptation layer against pnpm v11.Coverage
New
snap-tests-global/*-pnpm11fixtures for: add, cache, config, dedupe, dlx, link, list, outdated, owner, pack, prune, publish, remove, unlink, update, view, vpx, why, dev-engines-runtime — plus workspace variants for add/list/outdated/pack/remove/update/why.pnpm v11 compatibility findings
cache,dlx,owner,view,vpx— output identical to pnpm v10.add,install,link— now reportpackageManagerDependencies(@pnpm/exe,pnpm) as part of install output; captured in snapshots.why— output format restructured from tree-based to flat; captured in snapshots.publish --dry-run— pnpm v11 no longer delegates to npm; minor output diff captured.unlink(workaround applied) — pnpm v11 now runs a reconciling install after removing the override frompnpm-workspace.yaml. UnderCI=truethis defaults to--frozen-lockfileand fails withERR_PNPM_LOCKFILE_CONFIG_MISMATCH. Fix: snap tests pass-- --no-frozen-lockfiletovp unlink.configat project scope (workaround applied) — pnpm v11 moved project config from.npmrcintopnpm-workspace.yaml, which only accepts camelCase keys. Test key renamed tovitePlusPmConfigTestKey.dev-engines-runtime— bumped pinned Node.js to22.22.2to satisfy vp's current minimum (^20.19.0 || >=22.12.0).prune— skipped onwin32(platform-specific output instability, matches other tests).Global install is not affected —
vp install -galready forces npm.RFC updates
pnpm v11 is now stable, so the support matrix in 7 RFCs (
add-remove,dedupe,install,link-unlink,outdated,update,why) listspnpm@11.xas supported (no WIP marker). Thelink-unlinkentry retains the-- --no-frozen-lockfilenote for CI usage.Test plan
pnpm -F vite-plus snap-test-global pnpm11— all 26 cases pass with clean exit codescargo test -p vite_install --lib commands::unlink— unit tests still pass