Skip to content

perf(migrate): avoid repeated lockfile parsing during preflight - #3212

Merged
fengmk2 merged 1 commit into
voidzero-dev:mainfrom
jong-kyung:perf/migration-lockfile-cache
Oct 23, 2026
Merged

fengmk2 merged 1 commit into
voidzero-dev:mainfrom
jong-kyung:perf/migration-lockfile-cache

Conversation

@jong-kyung

Copy link
Copy Markdown
Collaborator

Summary

Speed up Vitest migration preflight in workspaces by reusing parsed lockfiles instead of reparsing them for every package.

This covers pnpm, npm, npm shrinkwrap, Yarn Modern, Yarn Classic, and Bun. Each migration plan gets a fresh cache, while package-specific version resolution and apply-time input validation remain unchanged.

Reuse parsed lockfiles within each Vitest migration plan across pnpm,
npm, Yarn and Bun. Keep version resolution package-specific and create
fresh readers for subsequent plans.

Cover parsing reuse, mixed runner versions, changed inputs, malformed
lockfiles and npm shrinkwrap precedence.
@jong-kyung jong-kyung self-assigned this Oct 23, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-23T08:51:39.228684Z f812967 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. You're on a roll.

Reviewed commit: f812967cb2

ℹ️ 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 October 23, 2026 08:51
@jong-kyung jong-kyung added test: e2e Auto run e2e tests test: create-e2e Run `vp create` e2e tests labels Oct 23, 2026
@jong-kyung
jong-kyung requested a review from fengmk2 October 23, 2026 09:10
@fengmk2
fengmk2 merged commit f373469 into voidzero-dev:main Oct 23, 2026
164 of 184 checks passed
@jong-kyung
jong-kyung deleted the perf/migration-lockfile-cache branch October 23, 2026 12:41
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants