GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: remove auto-install feature from local CLI for better performance by fengmk2 · Pull Request #631 · voidzero-dev/vite-plus

Conversation

@fengmk2

@fengmk2 fengmk2 commented Feb 25, 2026

Copy link
Copy Markdown
Member

The vp run command was automatically running pnpm install before
executing tasks, causing serious performance degradation. Remove the
entire auto-install feature:

  • Delete create_install_synthetic_request() and auto-install block
    from execute_vite_task_command() in the NAPI binding
  • Remove VITE_DISABLE_AUTO_INSTALL env var from 147 snap test files
  • Delete auto-install-before-task snap test and benchmark script
  • Update docs and RFCs to remove auto-install references

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@fengmk2 fengmk2 self-assigned this Feb 25, 2026
@fengmk2 Graphite App

fengmk2 commented Feb 25, 2026

Copy link
Copy Markdown
Member Author
  • fix: remove auto-install feature from local CLI for better performance #631 Graphite 👈 (View in Graphite)
  • main

This stack of pull requests is managed by Graphite. Learn more about stacking.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2 Graphite App

fengmk2 commented Feb 25, 2026

Copy link
Copy Markdown
Member Author
Here are the benchmark results using vp run lint on main (hyperfine, 20 runs):                       
                                                                                                       
  Cold cache (after vp cache clean)                                                                    
                                               
  ┌─────────────────────────────────────────────────────┬─────────┬─────────┬─────────┐                
  │                      Scenario                       │  Mean   │   Min   │   Max   │
  ├─────────────────────────────────────────────────────┼─────────┼─────────┼─────────┤
  │ Auto-install enabled (main default)                 │ 2,168ms │ 1,817ms │ 2,633ms │
  ├─────────────────────────────────────────────────────┼─────────┼─────────┼─────────┤
  │ Auto-install disabled (VITE_DISABLE_AUTO_INSTALL=1) │ 610ms   │ 462ms   │ 1,241ms │
  └─────────────────────────────────────────────────────┴─────────┴─────────┴─────────┘

  Auto-install overhead: ~1.56s per invocation (3.6x slower)

  Warm cache (task cache hot)

  ┌───────────────────────┬───────┬───────┬─────────┐
  │       Scenario        │ Mean  │  Min  │   Max   │
  ├───────────────────────┼───────┼───────┼─────────┤
  │ Auto-install enabled  │ 524ms │ 414ms │ 1,201ms │
  ├───────────────────────┼───────┼───────┼─────────┤
  │ Auto-install disabled │ 448ms │ 383ms │ 1,029ms │
  └───────────────────────┴───────┴───────┴─────────┘

  Auto-install overhead: ~77ms per invocation (1.17x slower) — the install result itself gets cached by
   the task runner, so warm overhead is lower.

  Raw baseline

  ┌───────────────────────────────────┬──────────────┐
  │            Measurement            │     Time     │
  ├───────────────────────────────────┼──────────────┤
  │ pnpm install (already up to date) │ 1,650ms mean │
  └───────────────────────────────────┴──────────────┘

  The cold cache overhead matches the raw pnpm install cost almost exactly. On warm cache, the task
  runner caches the install result, but there's still ~77ms overhead for cache lookup + package manager
   resolution. Note: the original benchmark script (bench/benches/auto_install.sh) was testing vp lint
  which goes through execute_direct_subcommand and was never affected by auto-install — so it would
  have shown no difference.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2 fengmk2 added the test: e2e Auto run e2e tests label Feb 25, 2026
@fengmk2
fengmk2 force-pushed the remove-auto-install branch 2 times, most recently from 9161b6c to e17de28 Compare February 26, 2026 11:35
fengmk2 added 2 commits February 26, 2026 22:09
@fengmk2
fix: remove auto-install feature from local CLI for better performance
1c19509
The `vp run` command was automatically running `pnpm install` before
executing tasks, causing serious performance degradation. Remove the
entire auto-install feature:

- Delete `create_install_synthetic_request()` and auto-install block
  from `execute_vite_task_command()` in the NAPI binding
- Remove `VITE_DISABLE_AUTO_INSTALL` env var from 147 snap test files
- Delete `auto-install-before-task` snap test and benchmark script
- Update docs and RFCs to remove auto-install references
@fengmk2
fix: skip snap test directories without steps.json
5490e09
Print a warning and skip test case directories that are missing
steps.json instead of crashing with ENOENT.
@fengmk2
fengmk2 force-pushed the remove-auto-install branch from e17de28 to 5490e09 Compare February 26, 2026 14:21
@fengmk2
fengmk2 marked this pull request as ready for review February 26, 2026 14:32
@fengmk2
fengmk2 requested review from Brooooooklyn, cpojer and wan9chi February 26, 2026 14:32
@fengmk2
fix: fail snap tests when a case directory is missing steps.json
999c504
Instead of warning and skipping, directories without steps.json now
cause a hard error so CI won't silently drop test cases.
cpojer
cpojer approved these changes Feb 27, 2026
View reviewed changes
@fengmk2 Graphite App

fengmk2 commented Feb 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Merge activity

  • Feb 27, 2:32 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 27, 2:33 AM UTC: @fengmk2 merged this pull request with Graphite.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2
fengmk2 merged commit 08a5993 into main Feb 27, 2026
39 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@fengmk2
fengmk2 deleted the remove-auto-install branch February 27, 2026 02:33
@liangmiQwQ liangmiQwQ mentioned this pull request Jul 13, 2026
test(snapshots): remove obsolete auto-install env #2163
Merged
fengmk2 added a commit that referenced this pull request Aug 3, 2026
@liangmiQwQ @fengmk2
test(snapshots): remove obsolete auto-install env (#2163)
f8e17cc
The local CLI auto-install feature and the only consumer of
`VITE_DISABLE_AUTO_INSTALL` were removed in #631, but snapshot fixtures
and RFC examples still set the environment variable.

This PR removes those obsolete settings while preserving the unrelated
`GITHUB_ACTIONS` fixture environment and the generic snapshot schema
example.

No behavior changes.

🤖 Generated with Codex

Co-authored-by: MK (fengmk2) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cpojer cpojer cpojer approved these changes
@wan9chi wan9chi Awaiting requested review from wan9chi
@Brooooooklyn Brooooooklyn Awaiting requested review from Brooooooklyn

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@fengmk2 fengmk2

Labels

test: e2e Auto run e2e tests

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@fengmk2 @cpojer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.