Skip to content

fix(migrate): skip gitignored directories in the Vitest v5 preflight - #3586

Open
jong-kyung wants to merge 2 commits into
voidzero-dev:mainfrom
jong-kyung:fix/migrate-skip-gitignored-dirs
Open

jong-kyung wants to merge 2 commits into
voidzero-dev:mainfrom
jong-kyung:fix/migrate-skip-gitignored-dirs

Conversation

@jong-kyung

Copy link
Copy Markdown
Collaborator

The Vitest v5 preflight in vp migrate read every source-like file under each package, including directories excluded by .gitignore. Large ignored folders, such as synced assets or build output, made migrate slow and memory-heavy even though nothing in them is committed or rewritten.

filesInProject() now skips gitignored directories. Each folder's child directories are checked in one native call, so the inherited .gitignore files are parsed once per directory instead of once per child. Invalid .gitignore lines are skipped like Git does, so a bad pattern no longer stops vp migrate.

Closes #3585

The preflight read every source-like file under each package, including directories that .gitignore excludes, so large ignored folders made vp migrate slow and memory-heavy. Skip those directories, and check all child directories of a folder in one native call so the ignore files are parsed once per directory. Invalid .gitignore lines are skipped like Git does, so they no longer stop vp migrate.

Closes voidzero-dev#3585
@jong-kyung jong-kyung self-assigned this Nov 26, 2026
@jong-kyung jong-kyung added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests test: sfw labels Nov 26, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T04:23:57.642017Z 2a1ab53 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: f899f8af11

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jong-kyung
jong-kyung marked this pull request as ready for review November 26, 2026 04:21
@jong-kyung
jong-kyung requested a review from fengmk2 November 26, 2026 04:21

This branch has not been deployed

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

Labels

test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: sfw

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vp migrate reads and scans gitignored directories in the Vitest v5 preflight, making it 13× slower in repos with large ignored folders

1 participant