Skip to content

test(e2e): add varlet ecosystem-ci test case#1428

Open
fengmk2 wants to merge 5 commits intomainfrom
test/e2e-varlet
Open

test(e2e): add varlet ecosystem-ci test case#1428
fengmk2 wants to merge 5 commits intomainfrom
test/e2e-varlet

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Apr 21, 2026

Summary

  • Adds varletjs/varlet (Vue 3 component library) to the ecosystem-ci matrix
  • Runs upstream's ci.yaml workflow: node scripts/bootstrap.mjs, vp run lint, vp run test:coverage
  • Ubuntu-only, Node 22, pinned to commit 83f6c6a of the dev branch
  • forceFreshMigration: true because the project already lists vite-plus: catalog: in devDependencies

Test plan

  • Local verification: node ecosystem-ci/clone.ts varlet + patch-project.ts varlet
    • migrate + vp install: 16s
    • node scripts/bootstrap.mjs: 12.9s (builds all internal packages via varlet-cli)
    • vp run lint: 0 warnings / 0 errors on 1128 files
    • vp run test:coverage: 81 test files, 921 tests passed (10.5s) using vitest@0.0.0 (vite-plus-test)
  • Verify e2e-test workflow passes in CI

Adds varletjs/varlet (Vue 3 component library) to the ecosystem-ci
matrix. Runs upstream's ci.yaml workflow (bootstrap + lint +
test:coverage) on ubuntu-only at commit 83f6c6a of the dev branch.

Uses forceFreshMigration because the project already lists
vite-plus in devDependencies.
@fengmk2 fengmk2 self-assigned this Apr 21, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 21, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 9fd4e63
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69e785e741a68d00084ab90d

fengmk2 added 3 commits April 21, 2026 14:35
The varlet ecosystem-ci job failed on CI because
`node scripts/bootstrap.mjs` spawns `pnpm build` via tinyexec, and
`pnpm` is not discoverable by Node's spawn on the runner. Bootstrap
silently swallows errors, so internal packages (notably varlet-cli)
were never compiled, leading to ERR_MODULE_NOT_FOUND when the
test:coverage step later invoked varlet-cli.

Replace the bootstrap call with explicit vp run commands that use
vp's bundled runtime. Build phase 1/2 packages via -F filters (-r
would hit the @varlet/cli <-> @varlet/ui devDependency cycle), then
cli/icons/ui-compile sequentially. The cli tsc step reports type
errors against @varlet/ui (still unbuilt) but emits JS output, which
matches upstream bootstrap behavior.
Previous fix replaced bootstrap.mjs with explicit vp run commands,
but that was unnecessarily complex. Simpler: let `vp i -g pnpm`
install pnpm into ~/.vite-plus/bin so scripts/bootstrap.mjs (which
spawns `pnpm build` via tinyexec) can resolve it.
@fengmk2 fengmk2 marked this pull request as ready for review April 21, 2026 13:46
@fengmk2 fengmk2 requested review from branchseer and cpojer April 21, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant