From 4606c4ac0735eb414afaa1e9077a74796ab1a5bb Mon Sep 17 00:00:00 2001 From: branchseer Date: Wed, 5 Nov 2025 22:02:56 +0800 Subject: [PATCH 01/21] Disable builtin vite command tests on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add "ignoredPlatforms": ["win32"] to snap tests that use builtin vite commands (not `vite run`). These tests use commands like `vite install`, `vite lint`, `vite build`, `vite test`, `vite lib`, `vite fmt`, `vite dev`, `vite cache clean`, and `vite doc` which need to be skipped on Windows CI. Modified 18 test cases to exclude Windows platform. ๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../cli/snap-tests-todo/pnpm-install-with-options/steps.json | 1 + packages/cli/snap-tests-todo/test-panicked-fix/steps.json | 1 + packages/cli/snap-tests/builtin-different-cwd/steps.json | 1 + packages/cli/snap-tests/cache-clean/steps.json | 1 + packages/cli/snap-tests/command-dev-with-port/steps.json | 1 + packages/cli/snap-tests/command-doc/steps.json | 1 + packages/cli/snap-tests/command-helper/steps.json | 1 + packages/cli/snap-tests/command-install-shortcut/steps.json | 1 + packages/cli/snap-tests/command-lib/steps.json | 1 + .../cli/snap-tests/exit-non-zero-on-cmd-not-exists/steps.json | 1 + packages/cli/snap-tests/ignore_dist/steps.json | 1 + packages/cli/snap-tests/lint-dot-git/steps.json | 1 + packages/cli/snap-tests/npm-install-with-options/steps.json | 1 + packages/cli/snap-tests/oxlint-typeaware/steps.json | 1 + packages/cli/snap-tests/same-name-as-builtin/steps.json | 1 + packages/cli/snap-tests/vitest-browser-mode/steps.json | 1 + packages/cli/snap-tests/workspace-root-vite-config/steps.json | 1 + packages/cli/snap-tests/yarn-install-with-options/steps.json | 2 +- 18 files changed, 18 insertions(+), 1 deletion(-) diff --git a/packages/cli/snap-tests-todo/pnpm-install-with-options/steps.json b/packages/cli/snap-tests-todo/pnpm-install-with-options/steps.json index 0e99f3f8a2..f3b5bd7ce9 100644 --- a/packages/cli/snap-tests-todo/pnpm-install-with-options/steps.json +++ b/packages/cli/snap-tests-todo/pnpm-install-with-options/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests-todo/test-panicked-fix/steps.json b/packages/cli/snap-tests-todo/test-panicked-fix/steps.json index 81d84505c6..1d04317a67 100644 --- a/packages/cli/snap-tests-todo/test-panicked-fix/steps.json +++ b/packages/cli/snap-tests-todo/test-panicked-fix/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/builtin-different-cwd/steps.json b/packages/cli/snap-tests/builtin-different-cwd/steps.json index d12915b10d..d4552350bf 100644 --- a/packages/cli/snap-tests/builtin-different-cwd/steps.json +++ b/packages/cli/snap-tests/builtin-different-cwd/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/cache-clean/steps.json b/packages/cli/snap-tests/cache-clean/steps.json index fb7f548ca9..b2c2d226e5 100644 --- a/packages/cli/snap-tests/cache-clean/steps.json +++ b/packages/cli/snap-tests/cache-clean/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/command-dev-with-port/steps.json b/packages/cli/snap-tests/command-dev-with-port/steps.json index 586d530540..37c6780a68 100644 --- a/packages/cli/snap-tests/command-dev-with-port/steps.json +++ b/packages/cli/snap-tests/command-dev-with-port/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/command-doc/steps.json b/packages/cli/snap-tests/command-doc/steps.json index b3788bbbca..008061d414 100644 --- a/packages/cli/snap-tests/command-doc/steps.json +++ b/packages/cli/snap-tests/command-doc/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/command-helper/steps.json b/packages/cli/snap-tests/command-helper/steps.json index e632de7184..35372922f9 100644 --- a/packages/cli/snap-tests/command-helper/steps.json +++ b/packages/cli/snap-tests/command-helper/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/command-install-shortcut/steps.json b/packages/cli/snap-tests/command-install-shortcut/steps.json index 14fb3ae423..188d4b5997 100644 --- a/packages/cli/snap-tests/command-install-shortcut/steps.json +++ b/packages/cli/snap-tests/command-install-shortcut/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/command-lib/steps.json b/packages/cli/snap-tests/command-lib/steps.json index 5cd16bee9b..2f6f64e339 100644 --- a/packages/cli/snap-tests/command-lib/steps.json +++ b/packages/cli/snap-tests/command-lib/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/exit-non-zero-on-cmd-not-exists/steps.json b/packages/cli/snap-tests/exit-non-zero-on-cmd-not-exists/steps.json index 29eead4bd5..0980a07012 100644 --- a/packages/cli/snap-tests/exit-non-zero-on-cmd-not-exists/steps.json +++ b/packages/cli/snap-tests/exit-non-zero-on-cmd-not-exists/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/ignore_dist/steps.json b/packages/cli/snap-tests/ignore_dist/steps.json index 8df00cba2e..cea4995451 100644 --- a/packages/cli/snap-tests/ignore_dist/steps.json +++ b/packages/cli/snap-tests/ignore_dist/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/lint-dot-git/steps.json b/packages/cli/snap-tests/lint-dot-git/steps.json index addec16982..d131f3fbb3 100644 --- a/packages/cli/snap-tests/lint-dot-git/steps.json +++ b/packages/cli/snap-tests/lint-dot-git/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/npm-install-with-options/steps.json b/packages/cli/snap-tests/npm-install-with-options/steps.json index bc11984456..79b9154cc0 100644 --- a/packages/cli/snap-tests/npm-install-with-options/steps.json +++ b/packages/cli/snap-tests/npm-install-with-options/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/oxlint-typeaware/steps.json b/packages/cli/snap-tests/oxlint-typeaware/steps.json index 916bff384d..020e554b21 100644 --- a/packages/cli/snap-tests/oxlint-typeaware/steps.json +++ b/packages/cli/snap-tests/oxlint-typeaware/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/same-name-as-builtin/steps.json b/packages/cli/snap-tests/same-name-as-builtin/steps.json index cfab37eac6..086543a686 100644 --- a/packages/cli/snap-tests/same-name-as-builtin/steps.json +++ b/packages/cli/snap-tests/same-name-as-builtin/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/vitest-browser-mode/steps.json b/packages/cli/snap-tests/vitest-browser-mode/steps.json index 559014f882..0a6eb8fc97 100644 --- a/packages/cli/snap-tests/vitest-browser-mode/steps.json +++ b/packages/cli/snap-tests/vitest-browser-mode/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/workspace-root-vite-config/steps.json b/packages/cli/snap-tests/workspace-root-vite-config/steps.json index 1e7caea484..c0d418c80c 100644 --- a/packages/cli/snap-tests/workspace-root-vite-config/steps.json +++ b/packages/cli/snap-tests/workspace-root-vite-config/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/yarn-install-with-options/steps.json b/packages/cli/snap-tests/yarn-install-with-options/steps.json index 03826bc675..f187ce249c 100644 --- a/packages/cli/snap-tests/yarn-install-with-options/steps.json +++ b/packages/cli/snap-tests/yarn-install-with-options/steps.json @@ -1,5 +1,5 @@ { - "ignoredPlatforms": ["linux"], + "ignoredPlatforms": ["linux", "win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, From e7fec3a9a1251a11626954ee04b4aa549440d1d2 Mon Sep 17 00:00:00 2001 From: branchseer Date: Wed, 5 Nov 2025 22:08:04 +0800 Subject: [PATCH 02/21] Disable tests with echo scripts on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add "ignoredPlatforms": ["win32"] to snap tests that have echo scripts in their package.json. The echo command behaves differently on Windows (different syntax and behavior), causing these tests to fail or produce incorrect results. Modified 7 test cases: - associate-existing-cache - cache-miss-command-change - exit-code - individual-cache-for-adt-args - plain-terminal-ui - task-no-trailing-newline - test-nested-tasks ๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- packages/cli/snap-tests/associate-existing-cache/steps.json | 1 + packages/cli/snap-tests/cache-miss-command-change/steps.json | 1 + packages/cli/snap-tests/exit-code/steps.json | 1 + packages/cli/snap-tests/individual-cache-for-adt-args/steps.json | 1 + packages/cli/snap-tests/plain-terminal-ui/steps.json | 1 + packages/cli/snap-tests/task-no-trailing-newline/steps.json | 1 + packages/cli/snap-tests/test-nested-tasks/steps.json | 1 + 7 files changed, 7 insertions(+) diff --git a/packages/cli/snap-tests/associate-existing-cache/steps.json b/packages/cli/snap-tests/associate-existing-cache/steps.json index 0e960d329d..a184bddc4d 100644 --- a/packages/cli/snap-tests/associate-existing-cache/steps.json +++ b/packages/cli/snap-tests/associate-existing-cache/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/cache-miss-command-change/steps.json b/packages/cli/snap-tests/cache-miss-command-change/steps.json index 854781ee5b..2ea43f0eec 100644 --- a/packages/cli/snap-tests/cache-miss-command-change/steps.json +++ b/packages/cli/snap-tests/cache-miss-command-change/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/exit-code/steps.json b/packages/cli/snap-tests/exit-code/steps.json index c89ab730d1..d3223bd4f8 100644 --- a/packages/cli/snap-tests/exit-code/steps.json +++ b/packages/cli/snap-tests/exit-code/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/individual-cache-for-adt-args/steps.json b/packages/cli/snap-tests/individual-cache-for-adt-args/steps.json index b9f110f696..2d5fbdf585 100644 --- a/packages/cli/snap-tests/individual-cache-for-adt-args/steps.json +++ b/packages/cli/snap-tests/individual-cache-for-adt-args/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/plain-terminal-ui/steps.json b/packages/cli/snap-tests/plain-terminal-ui/steps.json index 9d384d28a0..45469995a0 100644 --- a/packages/cli/snap-tests/plain-terminal-ui/steps.json +++ b/packages/cli/snap-tests/plain-terminal-ui/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_PLUS_CLI_TEST": "0", "VITE_DISABLE_AUTO_INSTALL": "1" diff --git a/packages/cli/snap-tests/task-no-trailing-newline/steps.json b/packages/cli/snap-tests/task-no-trailing-newline/steps.json index e1a52543b0..eb774cbcf0 100644 --- a/packages/cli/snap-tests/task-no-trailing-newline/steps.json +++ b/packages/cli/snap-tests/task-no-trailing-newline/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/test-nested-tasks/steps.json b/packages/cli/snap-tests/test-nested-tasks/steps.json index 0101e71448..7e448d197f 100644 --- a/packages/cli/snap-tests/test-nested-tasks/steps.json +++ b/packages/cli/snap-tests/test-nested-tasks/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, From 9ed58c0e36e0693560674c806be48b9d9d50f47f Mon Sep 17 00:00:00 2001 From: branchseer Date: Wed, 5 Nov 2025 22:09:27 +0800 Subject: [PATCH 03/21] disable fingerprint-ignore-test on Windows --- packages/cli/snap-tests/fingerprint-ignore-test/steps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/snap-tests/fingerprint-ignore-test/steps.json b/packages/cli/snap-tests/fingerprint-ignore-test/steps.json index b1847f1915..ae4b431008 100644 --- a/packages/cli/snap-tests/fingerprint-ignore-test/steps.json +++ b/packages/cli/snap-tests/fingerprint-ignore-test/steps.json @@ -1,5 +1,5 @@ { - "ignoredPlatforms": ["linux"], + "ignoredPlatforms": ["linux", "win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, From 5edc890565332ea9b07aff5bf0e3cd96a5362c98 Mon Sep 17 00:00:00 2001 From: branchseer Date: Wed, 5 Nov 2025 22:09:42 +0800 Subject: [PATCH 04/21] enable e2e test CI on Windows --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f8658b810..d76ceb3b29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,6 +138,7 @@ jobs: include: - os: ubuntu-latest - os: namespace-profile-mac-default + - os: windows-latest runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -166,6 +167,7 @@ jobs: - name: Run CLI lint run: pnpm lint + if: ${{ matrix.os != 'windows-latest' }} - name: Install Playwright browsers run: pnpx playwright install chromium From 1e6d65211fc65ade728be7e5d49383bbcedc2050 Mon Sep 17 00:00:00 2001 From: branchseer Date: Wed, 5 Nov 2025 22:45:19 +0800 Subject: [PATCH 05/21] pin napi to 3.2.0 --- Cargo.lock | 43 +++++++++++++++++++++++++++++-------------- Cargo.toml | 4 ++-- 2 files changed, 31 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cc2df67e71..653b8b624c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -832,12 +832,12 @@ dependencies = [ [[package]] name = "ctor" -version = "0.5.0" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67773048316103656a637612c4a62477603b777d91d9c62ff2290f9cde178fdb" +checksum = "ec09e802f5081de6157da9a75701d6c713d8dc3ba52571fd4bd25f412644e8a6" dependencies = [ "ctor-proc-macro 0.0.6", - "dtor", + "dtor 0.0.6", ] [[package]] @@ -847,7 +847,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59c9b8bdf64ee849747c1b12eb861d21aa47fa161564f48332f1afe2373bf899" dependencies = [ "ctor-proc-macro 0.0.7", - "dtor", + "dtor 0.1.0", ] [[package]] @@ -1026,15 +1026,30 @@ dependencies = [ "litrs", ] +[[package]] +name = "dtor" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97cbdf2ad6846025e8e25df05171abfb30e3ababa12ee0a0e44b9bbe570633a8" +dependencies = [ + "dtor-proc-macro 0.0.5", +] + [[package]] name = "dtor" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e58a0764cddb55ab28955347b45be00ade43d4d6f3ba4bf3dc354e4ec9432934" dependencies = [ - "dtor-proc-macro", + "dtor-proc-macro 0.0.6", ] +[[package]] +name = "dtor-proc-macro" +version = "0.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7454e41ff9012c00d53cf7f475c5e3afa3b91b7c90568495495e8d9bf47a1055" + [[package]] name = "dtor-proc-macro" version = "0.0.6" @@ -2202,13 +2217,13 @@ dependencies = [ [[package]] name = "napi" -version = "3.3.0" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1b74e3dce5230795bb4d2821b941706dee733c7308752507254b0497f39cad7" +checksum = "96671d5c84cee3ae4cab96386b9f953b22569ece9677b9fdd1492550a165eca5" dependencies = [ "anyhow", "bitflags 2.9.4", - "ctor 0.5.0", + "ctor 0.4.3", "napi-build", "napi-sys", "nohash-hasher", @@ -2224,12 +2239,12 @@ checksum = "dcae8ad5609d14afb3a3b91dee88c757016261b151e9dcecabf1b2a31a6cab14" [[package]] name = "napi-derive" -version = "3.2.5" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7552d5a579b834614bbd496db5109f1b9f1c758f08224b0dee1e408333adf0d0" +checksum = "b0fb461a375ab7e557a0f69a962affe8f14902bb35cbfe1b9292f011207fcace" dependencies = [ "convert_case 0.8.0", - "ctor 0.5.0", + "ctor 0.4.3", "napi-derive-backend", "proc-macro2", "quote", @@ -2819,7 +2834,7 @@ dependencies = [ "quinn-udp", "rustc-hash", "rustls", - "socket2 0.5.10", + "socket2 0.6.0", "thiserror 2.0.17", "tokio", "tracing", @@ -2856,9 +2871,9 @@ dependencies = [ "cfg_aliases", "libc", "once_cell", - "socket2 0.5.10", + "socket2 0.6.0", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.60.2", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index f80a41e1d3..c04a9ad98e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,9 +73,9 @@ vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0ed vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } wax = "0.6.0" -napi = { version = "3.0.0", default-features = false, features = ["async", "error_anyhow"] } +napi = { version = "=3.2.0", default-features = false, features = ["async", "error_anyhow"] } napi-build = "2" -napi-derive = { version = "3.0.0", default-features = false, features = ["type-def", "strict"] } +napi-derive = { version = "=3.2.0", default-features = false, features = ["type-def", "strict"] } [profile.dev] # Disabling debug info speeds up local and CI builds, From c1faf852d81bf1615f963d862c83dc66a2827385 Mon Sep 17 00:00:00 2001 From: branchseer Date: Wed, 5 Nov 2025 22:48:42 +0800 Subject: [PATCH 06/21] skip vite test on windows ci --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d76ceb3b29..c366d4da48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -176,6 +176,13 @@ jobs: run: | RUST_BACKTRACE=1 pnpm test git diff --exit-code + if: ${{ matrix.os != 'windows-latest' }} + + - name: Run CLI E2E tests + run: | + RUST_BACKTRACE=1 pnpm -r snap-test + git diff --exit-code + if: ${{ matrix.os != 'windows-latest' }} install-e2e-test: name: vite install E2E test From f98f9b6127185f017b1f464c44a4f72cf08735eb Mon Sep 17 00:00:00 2001 From: branchseer Date: Wed, 5 Nov 2025 23:14:29 +0800 Subject: [PATCH 07/21] handle step timeout # Conflicts: # packages/tools/src/snap-test.ts --- .github/workflows/ci.yml | 4 ++-- packages/tools/src/snap-test.ts | 39 +++++++++++++++++++-------------- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c366d4da48..592e6867a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -173,16 +173,16 @@ jobs: run: pnpx playwright install chromium - name: Run CLI E2E tests + if: ${{ matrix.os != 'windows-latest' }} run: | RUST_BACKTRACE=1 pnpm test git diff --exit-code - if: ${{ matrix.os != 'windows-latest' }} - name: Run CLI E2E tests + if: ${{ matrix.os == 'windows-latest' }} run: | RUST_BACKTRACE=1 pnpm -r snap-test git diff --exit-code - if: ${{ matrix.os != 'windows-latest' }} install-e2e-test: name: vite install E2E test diff --git a/packages/tools/src/snap-test.ts b/packages/tools/src/snap-test.ts index d9c85c0a8b..9f692c5c66 100755 --- a/packages/tools/src/snap-test.ts +++ b/packages/tools/src/snap-test.ts @@ -8,6 +8,7 @@ import { cpus, tmpdir } from 'node:os'; import path from 'node:path'; import { debuglog, parseArgs } from 'node:util'; +import { setTimeout } from 'node:timers/promises'; import { isPassThroughEnv, replaceUnstableOutput } from './utils'; const debug = debuglog('vite-plus/snap-test'); @@ -159,21 +160,24 @@ async function runTestCase(name: string, tempTmpDir: string, casesDir: string) { const outputStreamPath = path.join(caseTmpDir, 'output.log'); const outputStream = await open(outputStreamPath, 'w'); - const exitCode = await execute(stripComments(command), [], { - env, - cwd, - stdin: null, - // Declared to be `Writable` but `FileHandle` works too. - // @ts-expect-error - stderr: outputStream, - // @ts-expect-error - stdout: outputStream, - glob: { - // Disable glob expansion. Pass args like '--filter=*' as-is. - isGlobPattern: () => false, - match: async () => [], - }, - }); + const exitCode = await Promise.race([ + execute(stripComments(command), [], { + env, + cwd, + stdin: null, + // Declared to be `Writable` but `FileHandle` works too. + // @ts-expect-error + stderr: outputStream, + // @ts-expect-error + stdout: outputStream, + glob: { + // Disable glob expansion. Pass args like '--filter=*' as-is. + isGlobPattern: () => false, + match: async () => [], + }, + }), + setTimeout(30 * 1000), + ]); await outputStream.close(); @@ -181,12 +185,15 @@ async function runTestCase(name: string, tempTmpDir: string, casesDir: string) { let commandLine = `> ${command}`; if (exitCode !== 0) { - commandLine = `[${exitCode}]` + commandLine; + commandLine = (exitCode === undefined ? '[timeout]' : `[${exitCode}]`) + commandLine; } newSnap.push(commandLine); if (output.length > 0) { newSnap.push(replaceUnstableOutput(output, caseTmpDir)); } + if (exitCode === undefined) { + break; // Stop executing further commands on timeout + } } const newSnapContent = newSnap.join('\n'); From 68b1c33f09024c24eb08a69087b2b5595992aa81 Mon Sep 17 00:00:00 2001 From: branchseer Date: Thu, 6 Nov 2025 00:02:30 +0800 Subject: [PATCH 08/21] exit after all snap tests are done --- packages/tools/src/snap-test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/tools/src/snap-test.ts b/packages/tools/src/snap-test.ts index 9f692c5c66..236cdb7b97 100755 --- a/packages/tools/src/snap-test.ts +++ b/packages/tools/src/snap-test.ts @@ -104,6 +104,7 @@ export async function snapTest() { ); await runWithConcurrencyLimit(taskFunctions, cpuCount); } + process.exit(0); // Ensure exit even if there are pending timed-out steps } interface Steps { From 2d4844cf053b0ad30f6b5a9780fe2b5ce5e9f230 Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 16:54:06 +0800 Subject: [PATCH 09/21] disable all existing tests on Windows --- packages/cli/snap-tests/change-passthrough-env-config/steps.json | 1 + packages/cli/snap-tests/check-oxlint-env/steps.json | 1 + packages/cli/snap-tests/individual-cache-for-envs/steps.json | 1 + packages/cli/snap-tests/pass-no-color-env/steps.json | 1 + packages/cli/snap-tests/plain-terminal-ui-nested/steps.json | 1 + .../cli/snap-tests/replay-logs-chronological-order/steps.json | 1 + packages/cli/snap-tests/shared-caching-inputs/steps.json | 1 + packages/cli/snap-tests/task-config-cwd/steps.json | 1 + packages/global/snap-tests/cli-helper-message/steps.json | 1 + .../snap-tests/command-add-npm10-with-workspace/steps.json | 1 + packages/global/snap-tests/command-add-npm10/steps.json | 1 + .../snap-tests/command-add-npm11-with-workspace/steps.json | 1 + packages/global/snap-tests/command-add-npm11/steps.json | 1 + .../snap-tests/command-add-pnpm10-with-workspace/steps.json | 1 + packages/global/snap-tests/command-add-pnpm10/steps.json | 1 + .../snap-tests/command-add-pnpm9-with-workspace/steps.json | 1 + packages/global/snap-tests/command-add-pnpm9/steps.json | 1 + .../snap-tests/command-add-yarn4-with-workspace/steps.json | 1 + packages/global/snap-tests/command-add-yarn4/steps.json | 1 + packages/global/snap-tests/command-dedupe-npm10/steps.json | 1 + packages/global/snap-tests/command-dedupe-pnpm10/steps.json | 1 + packages/global/snap-tests/command-dedupe-yarn4/steps.json | 1 + packages/global/snap-tests/command-link-npm10/steps.json | 1 + packages/global/snap-tests/command-link-pnpm10/steps.json | 1 + packages/global/snap-tests/command-link-yarn4/steps.json | 1 + .../snap-tests/command-outdated-npm10-with-workspace/steps.json | 1 + packages/global/snap-tests/command-outdated-npm10/steps.json | 1 + .../snap-tests/command-outdated-pnpm10-with-workspace/steps.json | 1 + packages/global/snap-tests/command-outdated-pnpm10/steps.json | 1 + packages/global/snap-tests/command-outdated-yarn4/steps.json | 1 + .../snap-tests/command-remove-npm10-with-workspace/steps.json | 1 + packages/global/snap-tests/command-remove-npm10/steps.json | 1 + .../snap-tests/command-remove-pnpm10-with-workspace/steps.json | 1 + packages/global/snap-tests/command-remove-pnpm10/steps.json | 1 + .../snap-tests/command-remove-yarn4-with-workspace/steps.json | 1 + packages/global/snap-tests/command-remove-yarn4/steps.json | 1 + packages/global/snap-tests/command-unlink-npm10/steps.json | 1 + packages/global/snap-tests/command-unlink-pnpm10/steps.json | 1 + packages/global/snap-tests/command-unlink-yarn4/steps.json | 1 + .../snap-tests/command-update-npm10-with-workspace/steps.json | 1 + packages/global/snap-tests/command-update-npm10/steps.json | 1 + .../snap-tests/command-update-pnpm10-with-workspace/steps.json | 1 + packages/global/snap-tests/command-update-pnpm10/steps.json | 1 + .../snap-tests/command-update-yarn4-with-workspace/steps.json | 1 + packages/global/snap-tests/command-update-yarn4/steps.json | 1 + .../snap-tests/command-why-npm10-with-workspace/steps.json | 1 + packages/global/snap-tests/command-why-npm10/steps.json | 1 + .../snap-tests/command-why-pnpm10-with-workspace/steps.json | 1 + packages/global/snap-tests/command-why-pnpm10/steps.json | 1 + packages/global/snap-tests/command-why-yarn4/steps.json | 1 + packages/global/snap-tests/new-monorepo/steps.json | 1 + packages/global/snap-tests/new-singlerepo/steps.json | 1 + packages/tools/snap-tests/json-sort/steps.json | 1 + packages/tools/snap-tests/replace-file-content/steps.json | 1 + 54 files changed, 54 insertions(+) diff --git a/packages/cli/snap-tests/change-passthrough-env-config/steps.json b/packages/cli/snap-tests/change-passthrough-env-config/steps.json index 8b0630859a..55badc108e 100644 --- a/packages/cli/snap-tests/change-passthrough-env-config/steps.json +++ b/packages/cli/snap-tests/change-passthrough-env-config/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/check-oxlint-env/steps.json b/packages/cli/snap-tests/check-oxlint-env/steps.json index 1bd73ca349..988a2e0734 100644 --- a/packages/cli/snap-tests/check-oxlint-env/steps.json +++ b/packages/cli/snap-tests/check-oxlint-env/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/individual-cache-for-envs/steps.json b/packages/cli/snap-tests/individual-cache-for-envs/steps.json index 9cc38da572..45f0946354 100644 --- a/packages/cli/snap-tests/individual-cache-for-envs/steps.json +++ b/packages/cli/snap-tests/individual-cache-for-envs/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/pass-no-color-env/steps.json b/packages/cli/snap-tests/pass-no-color-env/steps.json index fa1940a5de..81de787aff 100644 --- a/packages/cli/snap-tests/pass-no-color-env/steps.json +++ b/packages/cli/snap-tests/pass-no-color-env/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/plain-terminal-ui-nested/steps.json b/packages/cli/snap-tests/plain-terminal-ui-nested/steps.json index b1e14807d0..e7f6406113 100644 --- a/packages/cli/snap-tests/plain-terminal-ui-nested/steps.json +++ b/packages/cli/snap-tests/plain-terminal-ui-nested/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_PLUS_CLI_TEST": "0", "VITE_DISABLE_AUTO_INSTALL": "1" diff --git a/packages/cli/snap-tests/replay-logs-chronological-order/steps.json b/packages/cli/snap-tests/replay-logs-chronological-order/steps.json index ce9422f8ba..8c0fc19de6 100644 --- a/packages/cli/snap-tests/replay-logs-chronological-order/steps.json +++ b/packages/cli/snap-tests/replay-logs-chronological-order/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/shared-caching-inputs/steps.json b/packages/cli/snap-tests/shared-caching-inputs/steps.json index 21e3b81022..bf1e56efe1 100644 --- a/packages/cli/snap-tests/shared-caching-inputs/steps.json +++ b/packages/cli/snap-tests/shared-caching-inputs/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/cli/snap-tests/task-config-cwd/steps.json b/packages/cli/snap-tests/task-config-cwd/steps.json index e1a52543b0..eb774cbcf0 100644 --- a/packages/cli/snap-tests/task-config-cwd/steps.json +++ b/packages/cli/snap-tests/task-config-cwd/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/cli-helper-message/steps.json b/packages/global/snap-tests/cli-helper-message/steps.json index 850556bb04..c68d6aa874 100644 --- a/packages/global/snap-tests/cli-helper-message/steps.json +++ b/packages/global/snap-tests/cli-helper-message/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "commands": [ "vp -h # show help message" ] diff --git a/packages/global/snap-tests/command-add-npm10-with-workspace/steps.json b/packages/global/snap-tests/command-add-npm10-with-workspace/steps.json index 66416c00f3..f32dcbb18f 100644 --- a/packages/global/snap-tests/command-add-npm10-with-workspace/steps.json +++ b/packages/global/snap-tests/command-add-npm10-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-add-npm10/steps.json b/packages/global/snap-tests/command-add-npm10/steps.json index 4e1d073fd6..c3fe3a15fb 100644 --- a/packages/global/snap-tests/command-add-npm10/steps.json +++ b/packages/global/snap-tests/command-add-npm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-add-npm11-with-workspace/steps.json b/packages/global/snap-tests/command-add-npm11-with-workspace/steps.json index 66416c00f3..f32dcbb18f 100644 --- a/packages/global/snap-tests/command-add-npm11-with-workspace/steps.json +++ b/packages/global/snap-tests/command-add-npm11-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-add-npm11/steps.json b/packages/global/snap-tests/command-add-npm11/steps.json index 4e1d073fd6..c3fe3a15fb 100644 --- a/packages/global/snap-tests/command-add-npm11/steps.json +++ b/packages/global/snap-tests/command-add-npm11/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-add-pnpm10-with-workspace/steps.json b/packages/global/snap-tests/command-add-pnpm10-with-workspace/steps.json index 55b864d55d..c5a43049e9 100644 --- a/packages/global/snap-tests/command-add-pnpm10-with-workspace/steps.json +++ b/packages/global/snap-tests/command-add-pnpm10-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-add-pnpm10/steps.json b/packages/global/snap-tests/command-add-pnpm10/steps.json index 7e2a6308c9..fb75a2d990 100644 --- a/packages/global/snap-tests/command-add-pnpm10/steps.json +++ b/packages/global/snap-tests/command-add-pnpm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-add-pnpm9-with-workspace/steps.json b/packages/global/snap-tests/command-add-pnpm9-with-workspace/steps.json index 6214ba74b3..946b29d5be 100644 --- a/packages/global/snap-tests/command-add-pnpm9-with-workspace/steps.json +++ b/packages/global/snap-tests/command-add-pnpm9-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-add-pnpm9/steps.json b/packages/global/snap-tests/command-add-pnpm9/steps.json index 5fc6cb54a4..07d83b2fb7 100644 --- a/packages/global/snap-tests/command-add-pnpm9/steps.json +++ b/packages/global/snap-tests/command-add-pnpm9/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-add-yarn4-with-workspace/steps.json b/packages/global/snap-tests/command-add-yarn4-with-workspace/steps.json index 2251e6009b..33b3e3295b 100644 --- a/packages/global/snap-tests/command-add-yarn4-with-workspace/steps.json +++ b/packages/global/snap-tests/command-add-yarn4-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-add-yarn4/steps.json b/packages/global/snap-tests/command-add-yarn4/steps.json index 76a61e22ed..4a7b03f71f 100644 --- a/packages/global/snap-tests/command-add-yarn4/steps.json +++ b/packages/global/snap-tests/command-add-yarn4/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-dedupe-npm10/steps.json b/packages/global/snap-tests/command-dedupe-npm10/steps.json index 2c7915485a..24e3b65662 100644 --- a/packages/global/snap-tests/command-dedupe-npm10/steps.json +++ b/packages/global/snap-tests/command-dedupe-npm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-dedupe-pnpm10/steps.json b/packages/global/snap-tests/command-dedupe-pnpm10/steps.json index 50ba3da36b..b67d47155a 100644 --- a/packages/global/snap-tests/command-dedupe-pnpm10/steps.json +++ b/packages/global/snap-tests/command-dedupe-pnpm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-dedupe-yarn4/steps.json b/packages/global/snap-tests/command-dedupe-yarn4/steps.json index 9a9232745b..61b64c03e8 100644 --- a/packages/global/snap-tests/command-dedupe-yarn4/steps.json +++ b/packages/global/snap-tests/command-dedupe-yarn4/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-link-npm10/steps.json b/packages/global/snap-tests/command-link-npm10/steps.json index db02793c87..140a720583 100644 --- a/packages/global/snap-tests/command-link-npm10/steps.json +++ b/packages/global/snap-tests/command-link-npm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-link-pnpm10/steps.json b/packages/global/snap-tests/command-link-pnpm10/steps.json index 7cc82ab727..b71f1e8049 100644 --- a/packages/global/snap-tests/command-link-pnpm10/steps.json +++ b/packages/global/snap-tests/command-link-pnpm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-link-yarn4/steps.json b/packages/global/snap-tests/command-link-yarn4/steps.json index 05e75fac1a..a50277d390 100644 --- a/packages/global/snap-tests/command-link-yarn4/steps.json +++ b/packages/global/snap-tests/command-link-yarn4/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-outdated-npm10-with-workspace/steps.json b/packages/global/snap-tests/command-outdated-npm10-with-workspace/steps.json index 53cd1ba26c..e5c775ed0e 100644 --- a/packages/global/snap-tests/command-outdated-npm10-with-workspace/steps.json +++ b/packages/global/snap-tests/command-outdated-npm10-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-outdated-npm10/steps.json b/packages/global/snap-tests/command-outdated-npm10/steps.json index ae8ad83d57..fa88b61923 100644 --- a/packages/global/snap-tests/command-outdated-npm10/steps.json +++ b/packages/global/snap-tests/command-outdated-npm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-outdated-pnpm10-with-workspace/steps.json b/packages/global/snap-tests/command-outdated-pnpm10-with-workspace/steps.json index 82a5479185..7527c4280e 100644 --- a/packages/global/snap-tests/command-outdated-pnpm10-with-workspace/steps.json +++ b/packages/global/snap-tests/command-outdated-pnpm10-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-outdated-pnpm10/steps.json b/packages/global/snap-tests/command-outdated-pnpm10/steps.json index 7483f79656..ccab803397 100644 --- a/packages/global/snap-tests/command-outdated-pnpm10/steps.json +++ b/packages/global/snap-tests/command-outdated-pnpm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-outdated-yarn4/steps.json b/packages/global/snap-tests/command-outdated-yarn4/steps.json index 2dc639fa41..7c9309a65c 100644 --- a/packages/global/snap-tests/command-outdated-yarn4/steps.json +++ b/packages/global/snap-tests/command-outdated-yarn4/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-remove-npm10-with-workspace/steps.json b/packages/global/snap-tests/command-remove-npm10-with-workspace/steps.json index e43d0af0f3..a0b369385e 100644 --- a/packages/global/snap-tests/command-remove-npm10-with-workspace/steps.json +++ b/packages/global/snap-tests/command-remove-npm10-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-remove-npm10/steps.json b/packages/global/snap-tests/command-remove-npm10/steps.json index e9906be1b2..dd708e924d 100644 --- a/packages/global/snap-tests/command-remove-npm10/steps.json +++ b/packages/global/snap-tests/command-remove-npm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-remove-pnpm10-with-workspace/steps.json b/packages/global/snap-tests/command-remove-pnpm10-with-workspace/steps.json index 6843d8c3ad..0175729633 100644 --- a/packages/global/snap-tests/command-remove-pnpm10-with-workspace/steps.json +++ b/packages/global/snap-tests/command-remove-pnpm10-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-remove-pnpm10/steps.json b/packages/global/snap-tests/command-remove-pnpm10/steps.json index fbc11b3489..797fdc0b73 100644 --- a/packages/global/snap-tests/command-remove-pnpm10/steps.json +++ b/packages/global/snap-tests/command-remove-pnpm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-remove-yarn4-with-workspace/steps.json b/packages/global/snap-tests/command-remove-yarn4-with-workspace/steps.json index 56d12de8b8..d16264681d 100644 --- a/packages/global/snap-tests/command-remove-yarn4-with-workspace/steps.json +++ b/packages/global/snap-tests/command-remove-yarn4-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-remove-yarn4/steps.json b/packages/global/snap-tests/command-remove-yarn4/steps.json index 306a2e0955..4393e176f6 100644 --- a/packages/global/snap-tests/command-remove-yarn4/steps.json +++ b/packages/global/snap-tests/command-remove-yarn4/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-unlink-npm10/steps.json b/packages/global/snap-tests/command-unlink-npm10/steps.json index a7c9b8cbd1..c6c69c701f 100644 --- a/packages/global/snap-tests/command-unlink-npm10/steps.json +++ b/packages/global/snap-tests/command-unlink-npm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-unlink-pnpm10/steps.json b/packages/global/snap-tests/command-unlink-pnpm10/steps.json index 4aad61c794..a775f3ea87 100644 --- a/packages/global/snap-tests/command-unlink-pnpm10/steps.json +++ b/packages/global/snap-tests/command-unlink-pnpm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-unlink-yarn4/steps.json b/packages/global/snap-tests/command-unlink-yarn4/steps.json index 7967a7a936..a0ca20c08b 100644 --- a/packages/global/snap-tests/command-unlink-yarn4/steps.json +++ b/packages/global/snap-tests/command-unlink-yarn4/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-update-npm10-with-workspace/steps.json b/packages/global/snap-tests/command-update-npm10-with-workspace/steps.json index 9e028c5a64..1d072e8b93 100644 --- a/packages/global/snap-tests/command-update-npm10-with-workspace/steps.json +++ b/packages/global/snap-tests/command-update-npm10-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-update-npm10/steps.json b/packages/global/snap-tests/command-update-npm10/steps.json index 9577f41270..1c2bfaf198 100644 --- a/packages/global/snap-tests/command-update-npm10/steps.json +++ b/packages/global/snap-tests/command-update-npm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-update-pnpm10-with-workspace/steps.json b/packages/global/snap-tests/command-update-pnpm10-with-workspace/steps.json index c954231124..275504b5df 100644 --- a/packages/global/snap-tests/command-update-pnpm10-with-workspace/steps.json +++ b/packages/global/snap-tests/command-update-pnpm10-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-update-pnpm10/steps.json b/packages/global/snap-tests/command-update-pnpm10/steps.json index f888402da1..cc2cdbf524 100644 --- a/packages/global/snap-tests/command-update-pnpm10/steps.json +++ b/packages/global/snap-tests/command-update-pnpm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-update-yarn4-with-workspace/steps.json b/packages/global/snap-tests/command-update-yarn4-with-workspace/steps.json index bd43ed9e14..01132b55dc 100644 --- a/packages/global/snap-tests/command-update-yarn4-with-workspace/steps.json +++ b/packages/global/snap-tests/command-update-yarn4-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-update-yarn4/steps.json b/packages/global/snap-tests/command-update-yarn4/steps.json index 0ba9b27e17..5451801393 100644 --- a/packages/global/snap-tests/command-update-yarn4/steps.json +++ b/packages/global/snap-tests/command-update-yarn4/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-why-npm10-with-workspace/steps.json b/packages/global/snap-tests/command-why-npm10-with-workspace/steps.json index 548bc5676b..5f96d774f3 100644 --- a/packages/global/snap-tests/command-why-npm10-with-workspace/steps.json +++ b/packages/global/snap-tests/command-why-npm10-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-why-npm10/steps.json b/packages/global/snap-tests/command-why-npm10/steps.json index 28066762a4..9f1724771b 100644 --- a/packages/global/snap-tests/command-why-npm10/steps.json +++ b/packages/global/snap-tests/command-why-npm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-why-pnpm10-with-workspace/steps.json b/packages/global/snap-tests/command-why-pnpm10-with-workspace/steps.json index ed96cfd10d..1b88cb08c4 100644 --- a/packages/global/snap-tests/command-why-pnpm10-with-workspace/steps.json +++ b/packages/global/snap-tests/command-why-pnpm10-with-workspace/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-why-pnpm10/steps.json b/packages/global/snap-tests/command-why-pnpm10/steps.json index f9cbbefe36..3c495a3760 100644 --- a/packages/global/snap-tests/command-why-pnpm10/steps.json +++ b/packages/global/snap-tests/command-why-pnpm10/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/command-why-yarn4/steps.json b/packages/global/snap-tests/command-why-yarn4/steps.json index 8f828a5e15..414eb8f7df 100644 --- a/packages/global/snap-tests/command-why-yarn4/steps.json +++ b/packages/global/snap-tests/command-why-yarn4/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, diff --git a/packages/global/snap-tests/new-monorepo/steps.json b/packages/global/snap-tests/new-monorepo/steps.json index 529b4262ac..6762910485 100644 --- a/packages/global/snap-tests/new-monorepo/steps.json +++ b/packages/global/snap-tests/new-monorepo/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "commands": [ "vp new -h # show help", "vp new --template vanilla-ts --monorepo --pm pnpm --git false --overwrite hello-vite-plus # create monorepo", diff --git a/packages/global/snap-tests/new-singlerepo/steps.json b/packages/global/snap-tests/new-singlerepo/steps.json index c4232b1785..6eced55474 100644 --- a/packages/global/snap-tests/new-singlerepo/steps.json +++ b/packages/global/snap-tests/new-singlerepo/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "commands": [ "vp new --template vanilla-ts --monorepo false --pm pnpm --git false --overwrite hello-vite-plus # create singlerepo", "cd hello-vite-plus && ls -a . # check files", diff --git a/packages/tools/snap-tests/json-sort/steps.json b/packages/tools/snap-tests/json-sort/steps.json index 2995823891..c05727a9fb 100644 --- a/packages/tools/snap-tests/json-sort/steps.json +++ b/packages/tools/snap-tests/json-sort/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { }, "commands": [ diff --git a/packages/tools/snap-tests/replace-file-content/steps.json b/packages/tools/snap-tests/replace-file-content/steps.json index 86118b01b7..d6cebdae8e 100644 --- a/packages/tools/snap-tests/replace-file-content/steps.json +++ b/packages/tools/snap-tests/replace-file-content/steps.json @@ -1,4 +1,5 @@ { + "ignoredPlatforms": ["win32"], "env": { }, "commands": [ From 6f5ec8b3b149695a48e01454ece7767cfec2bd31 Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 17:10:24 +0800 Subject: [PATCH 10/21] add vite-task-smoke test --- .../cli/snap-tests/vite-task-smoke/main.js | 1 + .../snap-tests/vite-task-smoke/package.json | 5 ++ .../cli/snap-tests/vite-task-smoke/snap.txt | 48 +++++++++++++++++++ .../cli/snap-tests/vite-task-smoke/steps.json | 11 +++++ 4 files changed, 65 insertions(+) create mode 100644 packages/cli/snap-tests/vite-task-smoke/main.js create mode 100644 packages/cli/snap-tests/vite-task-smoke/package.json create mode 100644 packages/cli/snap-tests/vite-task-smoke/snap.txt create mode 100644 packages/cli/snap-tests/vite-task-smoke/steps.json diff --git a/packages/cli/snap-tests/vite-task-smoke/main.js b/packages/cli/snap-tests/vite-task-smoke/main.js new file mode 100644 index 0000000000..81afa3157c --- /dev/null +++ b/packages/cli/snap-tests/vite-task-smoke/main.js @@ -0,0 +1 @@ +console.log('foo'); diff --git a/packages/cli/snap-tests/vite-task-smoke/package.json b/packages/cli/snap-tests/vite-task-smoke/package.json new file mode 100644 index 0000000000..413b53d730 --- /dev/null +++ b/packages/cli/snap-tests/vite-task-smoke/package.json @@ -0,0 +1,5 @@ +{ + "scripts": { + "test-task": "echo hello && node main.js" + } +} diff --git a/packages/cli/snap-tests/vite-task-smoke/snap.txt b/packages/cli/snap-tests/vite-task-smoke/snap.txt new file mode 100644 index 0000000000..ebf8f4f58a --- /dev/null +++ b/packages/cli/snap-tests/vite-task-smoke/snap.txt @@ -0,0 +1,48 @@ +> vp run test-task +$ echo hello +hello + +$ node main.js +foo + + +โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” + Vite+ Task Runner โ€ข Execution Summary +โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” + +Statistics: 2 tasks โ€ข 0 cache hits โ€ข 2 cache misses +Performance: 0% cache hit rate + +Task Details: +โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + [1] test-task(subcommand 0): $ echo hello โœ“ + โ†’ Cache miss: no previous cache entry found + ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท + [2] test-task: $ node main.js โœ“ + โ†’ Cache miss: no previous cache entry found +โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” + +> tool replace-file-content main.js foo bar +> vp run test-task +$ echo hello (โœ“ cache hit, replaying) +hello + +$ node main.js (โœ— cache miss: content of input 'main.js' changed, executing) +bar + + +โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” + Vite+ Task Runner โ€ข Execution Summary +โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” + +Statistics: 2 tasks โ€ข 1 cache hits โ€ข 1 cache misses +Performance: 50% cache hit rate, ms saved in total + +Task Details: +โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ + [1] test-task(subcommand 0): $ echo hello โœ“ + โ†’ Cache hit - output replayed - ms saved + ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท + [2] test-task: $ node main.js โœ“ + โ†’ Cache miss: content of input 'main.js' changed +โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” diff --git a/packages/cli/snap-tests/vite-task-smoke/steps.json b/packages/cli/snap-tests/vite-task-smoke/steps.json new file mode 100644 index 0000000000..6d4e16fbf8 --- /dev/null +++ b/packages/cli/snap-tests/vite-task-smoke/steps.json @@ -0,0 +1,11 @@ +{ + "ignoredPlatforms": ["win32"], + "env": { + "VITE_DISABLE_AUTO_INSTALL": "1" + }, + "commands": [ + "vp run test-task", + "tool replace-file-content main.js foo bar", + "vp run test-task" + ] +} From a9ce16d5c107cbe610ccaf88c6e195fa3d59ab40 Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 17:55:02 +0800 Subject: [PATCH 11/21] bump vite-task --- Cargo.lock | 277 ++++++++++++++++++++++------------------------------- Cargo.toml | 10 +- 2 files changed, 117 insertions(+), 170 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 653b8b624c..37e7b8d58f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8,18 +8,6 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" -[[package]] -name = "ahash" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" -dependencies = [ - "cfg-if", - "once_cell", - "version_check", - "zerocopy", -] - [[package]] name = "aho-corasick" version = "1.1.3" @@ -103,12 +91,6 @@ version = "1.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" -[[package]] -name = "arrayvec" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" - [[package]] name = "ascii-canvas" version = "3.0.0" @@ -128,6 +110,18 @@ dependencies = [ "serde_json", ] +[[package]] +name = "ast-grep-core" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d203a50bd471340befbf7d0dee18d66699cc11513aafa1fea06b926e74130818" +dependencies = [ + "bit-set 0.8.0", + "regex", + "thiserror 2.0.17", + "tree-sitter-facade-sg", +] + [[package]] name = "async-attributes" version = "1.1.2" @@ -394,7 +388,16 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" dependencies = [ - "bit-vec", + "bit-vec 0.6.3", +] + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec 0.8.0", ] [[package]] @@ -403,6 +406,12 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + [[package]] name = "bitflags" version = "1.3.2" @@ -437,20 +446,6 @@ dependencies = [ "piper", ] -[[package]] -name = "brush-parser" -version = "0.2.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6924d0efd702b4fe3d65f3a63c03520edfe53b67d0955b9d3f8e66b192a410ff" -dependencies = [ - "cached", - "indenter", - "peg", - "thiserror 2.0.17", - "tracing", - "utf8-chars", -] - [[package]] name = "bstr" version = "1.12.0" @@ -482,39 +477,6 @@ version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" -[[package]] -name = "cached" -version = "0.56.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "801927ee168e17809ab8901d9f01f700cd7d8d6a6527997fee44e4b0327a253c" -dependencies = [ - "ahash", - "cached_proc_macro", - "cached_proc_macro_types", - "hashbrown 0.15.5", - "once_cell", - "thiserror 2.0.17", - "web-time", -] - -[[package]] -name = "cached_proc_macro" -version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9225bdcf4e4a9a4c08bf16607908eb2fbf746828d5e0b5e019726dbf6571f201" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn 2.0.106", -] - -[[package]] -name = "cached_proc_macro_types" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ade8366b8bd5ba243f0a58f036cc0ca8a2f069cff1a2351ef1cac6b083e16fc0" - [[package]] name = "cast" version = "0.3.0" @@ -862,41 +824,6 @@ version = "0.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1" -[[package]] -name = "darling" -version = "0.20.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee" -dependencies = [ - "darling_core", - "darling_macro", -] - -[[package]] -name = "darling_core" -version = "0.20.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e" -dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim", - "syn 2.0.106", -] - -[[package]] -name = "darling_macro" -version = "0.20.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" -dependencies = [ - "darling_core", - "quote", - "syn 2.0.106", -] - [[package]] name = "dashmap" version = "6.1.0" @@ -1244,7 +1171,7 @@ dependencies = [ [[package]] name = "fspy" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "allocator-api2", "anyhow", @@ -1278,7 +1205,7 @@ dependencies = [ [[package]] name = "fspy_detours_sys" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "cc", "winapi", @@ -1287,7 +1214,7 @@ dependencies = [ [[package]] name = "fspy_preload_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "anyhow", "bincode", @@ -1302,7 +1229,7 @@ dependencies = [ [[package]] name = "fspy_preload_windows" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "bincode", "constcat", @@ -1318,7 +1245,7 @@ dependencies = [ [[package]] name = "fspy_seccomp_unotify" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "bincode", "futures-util", @@ -1335,7 +1262,7 @@ dependencies = [ [[package]] name = "fspy_shared" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "allocator-api2", "bincode", @@ -1353,7 +1280,7 @@ dependencies = [ [[package]] name = "fspy_shared_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "anyhow", "base64 0.22.1", @@ -1541,8 +1468,6 @@ version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" dependencies = [ - "allocator-api2", - "equivalent", "foldhash", ] @@ -1868,12 +1793,6 @@ dependencies = [ "zerovec", ] -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - [[package]] name = "idna" version = "1.1.0" @@ -1895,12 +1814,6 @@ dependencies = [ "icu_properties", ] -[[package]] -name = "indenter" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "964de6e86d545b246d84badc0fef527924ace5134f30641c203ef52ba83f58d5" - [[package]] name = "indexmap" version = "2.11.4" @@ -2019,7 +1932,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55cb077ad656299f160924eb2912aa147d7339ea7d69e1b5517326fdcec3c1ca" dependencies = [ "ascii-canvas", - "bit-set", + "bit-set 0.5.3", "ena", "itertools 0.11.0", "lalrpop-util", @@ -2591,33 +2504,6 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" -[[package]] -name = "peg" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9928cfca101b36ec5163e70049ee5368a8a1c3c6efc9ca9c5f9cc2f816152477" -dependencies = [ - "peg-macros", - "peg-runtime", -] - -[[package]] -name = "peg-macros" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6298ab04c202fa5b5d52ba03269fb7b74550b150323038878fe6c372d8280f71" -dependencies = [ - "peg-runtime", - "proc-macro2", - "quote", -] - -[[package]] -name = "peg-runtime" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "132dca9b868d927b35b5dd728167b2dee150eb1ad686008fc71ccb298b776fca" - [[package]] name = "percent-encoding" version = "2.3.2" @@ -3552,6 +3438,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" +[[package]] +name = "streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520" + [[package]] name = "string_cache" version = "0.8.9" @@ -3951,6 +3843,49 @@ dependencies = [ "tracing-log", ] +[[package]] +name = "tree-sitter" +version = "0.24.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5387dffa7ffc7d2dae12b50c6f7aab8ff79d6210147c6613561fc3d474c6f75" +dependencies = [ + "cc", + "regex", + "regex-syntax", + "streaming-iterator", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-bash" +version = "0.23.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "329a4d48623ac337d42b1df84e81a1c9dbb2946907c102ca72db158c1964a52e" +dependencies = [ + "cc", + "tree-sitter-language", +] + +[[package]] +name = "tree-sitter-facade-sg" +version = "0.24.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9195ab85ddd7df7ddac5b2e397ec6264816ae640346013002ceccf0f9b3578f1" +dependencies = [ + "js-sys", + "tree-sitter", + "tree-sitter-language", + "wasm-bindgen", + "web-sys", + "web-tree-sitter-sg", +] + +[[package]] +name = "tree-sitter-language" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4013970217383f67b18aef68f6fb2e8d409bc5755227092d32efb0422ba24b8" + [[package]] name = "try-lock" version = "0.2.5" @@ -4014,15 +3949,6 @@ dependencies = [ "serde", ] -[[package]] -name = "utf8-chars" -version = "3.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f598f797138b219a4560b4e9c53c255e872e267c9e3fdcc75aa59a2a90953bcd" -dependencies = [ - "arrayvec", -] - [[package]] name = "utf8_iter" version = "1.0.4" @@ -4134,7 +4060,7 @@ dependencies = [ [[package]] name = "vite_glob" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "thiserror 2.0.17", "wax", @@ -4174,7 +4100,7 @@ dependencies = [ [[package]] name = "vite_path" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "bincode", "diff-struct", @@ -4184,10 +4110,20 @@ dependencies = [ "vite_str", ] +[[package]] +name = "vite_shell" +version = "0.0.0" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +dependencies = [ + "ast-grep-core", + "thiserror 2.0.17", + "tree-sitter-bash", +] + [[package]] name = "vite_str" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "bincode", "compact_str", @@ -4198,11 +4134,10 @@ dependencies = [ [[package]] name = "vite_task" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "anyhow", "bincode", - "brush-parser", "bstr", "compact_str", "dashmap", @@ -4229,6 +4164,7 @@ dependencies = [ "uuid", "vite_glob", "vite_path", + "vite_shell", "vite_str", "vite_workspace", "wax", @@ -4237,7 +4173,7 @@ dependencies = [ [[package]] name = "vite_workspace" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" dependencies = [ "petgraph 0.8.3", "rustc-hash", @@ -4414,6 +4350,17 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "web-tree-sitter-sg" +version = "0.24.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cf7d34b16550f076d75b4a5d4673f1a9692f79787d040e3ac7ddb04e5c48a0" +dependencies = [ + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", +] + [[package]] name = "webpki-roots" version = "1.0.3" diff --git a/Cargo.toml b/Cargo.toml index c04a9ad98e..d8658a6187 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,12 +65,12 @@ tokio = "1.48.0" tracing = "0.1.41" tracing-subscriber = { version = "0.3.19", features = ["env-filter", "serde"] } vite_error = { path = "crates/vite_error" } -vite_glob = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } +vite_glob = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-always_use_shell" } vite_install = { path = "crates/vite_install" } -vite_path = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } -vite_str = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } -vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } -vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } +vite_path = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-always_use_shell" } +vite_str = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-always_use_shell" } +vite_task = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-always_use_shell" } +vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-always_use_shell" } wax = "0.6.0" napi = { version = "=3.2.0", default-features = false, features = ["async", "error_anyhow"] } From edcb099791b217cd6e7537192fc5b9d0c933d85d Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 18:12:07 +0800 Subject: [PATCH 12/21] enable vite task smoke test on Windows --- packages/cli/snap-tests/vite-task-smoke/steps.json | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/cli/snap-tests/vite-task-smoke/steps.json b/packages/cli/snap-tests/vite-task-smoke/steps.json index 6d4e16fbf8..49dc25a50d 100644 --- a/packages/cli/snap-tests/vite-task-smoke/steps.json +++ b/packages/cli/snap-tests/vite-task-smoke/steps.json @@ -1,5 +1,4 @@ { - "ignoredPlatforms": ["win32"], "env": { "VITE_DISABLE_AUTO_INSTALL": "1" }, From c2ab3ba45626739f79a7675ecb71a524fc455e80 Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 18:13:02 +0800 Subject: [PATCH 13/21] bump vite task --- Cargo.lock | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 37e7b8d58f..9102e0fec3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1044,7 +1044,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.61.1", + "windows-sys 0.52.0", ] [[package]] @@ -1171,7 +1171,7 @@ dependencies = [ [[package]] name = "fspy" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "allocator-api2", "anyhow", @@ -1205,7 +1205,7 @@ dependencies = [ [[package]] name = "fspy_detours_sys" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "cc", "winapi", @@ -1214,7 +1214,7 @@ dependencies = [ [[package]] name = "fspy_preload_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "anyhow", "bincode", @@ -1229,7 +1229,7 @@ dependencies = [ [[package]] name = "fspy_preload_windows" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "bincode", "constcat", @@ -1245,7 +1245,7 @@ dependencies = [ [[package]] name = "fspy_seccomp_unotify" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "bincode", "futures-util", @@ -1262,7 +1262,7 @@ dependencies = [ [[package]] name = "fspy_shared" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "allocator-api2", "bincode", @@ -1280,7 +1280,7 @@ dependencies = [ [[package]] name = "fspy_shared_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "anyhow", "base64 0.22.1", @@ -1701,7 +1701,7 @@ dependencies = [ "libc", "percent-encoding", "pin-project-lite", - "socket2 0.6.0", + "socket2 0.5.10", "tokio", "tower-service", "tracing", @@ -2720,7 +2720,7 @@ dependencies = [ "quinn-udp", "rustc-hash", "rustls", - "socket2 0.6.0", + "socket2 0.5.10", "thiserror 2.0.17", "tokio", "tracing", @@ -2757,9 +2757,9 @@ dependencies = [ "cfg_aliases", "libc", "once_cell", - "socket2 0.6.0", + "socket2 0.5.10", "tracing", - "windows-sys 0.60.2", + "windows-sys 0.52.0", ] [[package]] @@ -3033,7 +3033,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.61.1", + "windows-sys 0.52.0", ] [[package]] @@ -3546,7 +3546,7 @@ dependencies = [ "getrandom 0.3.3", "once_cell", "rustix", - "windows-sys 0.61.1", + "windows-sys 0.52.0", ] [[package]] @@ -4060,7 +4060,7 @@ dependencies = [ [[package]] name = "vite_glob" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "thiserror 2.0.17", "wax", @@ -4100,7 +4100,7 @@ dependencies = [ [[package]] name = "vite_path" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "bincode", "diff-struct", @@ -4113,7 +4113,7 @@ dependencies = [ [[package]] name = "vite_shell" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "ast-grep-core", "thiserror 2.0.17", @@ -4123,7 +4123,7 @@ dependencies = [ [[package]] name = "vite_str" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "bincode", "compact_str", @@ -4134,7 +4134,7 @@ dependencies = [ [[package]] name = "vite_task" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "anyhow", "bincode", @@ -4173,7 +4173,7 @@ dependencies = [ [[package]] name = "vite_workspace" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#b0afe0a3b2119b989b8cc6085ee1cebbfc9eaeb6" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" dependencies = [ "petgraph 0.8.3", "rustc-hash", @@ -4419,7 +4419,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.1", + "windows-sys 0.52.0", ] [[package]] From 338d61a8c4742313e7a23ae47ce3d191d8147e43 Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 18:48:10 +0800 Subject: [PATCH 14/21] revert vite-task --- Cargo.lock | 277 +++++++++++++++++++++++++++++++---------------------- Cargo.toml | 14 +-- 2 files changed, 172 insertions(+), 119 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9102e0fec3..9baf9c6631 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8,6 +8,18 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "once_cell", + "version_check", + "zerocopy", +] + [[package]] name = "aho-corasick" version = "1.1.3" @@ -91,6 +103,12 @@ version = "1.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + [[package]] name = "ascii-canvas" version = "3.0.0" @@ -110,18 +128,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "ast-grep-core" -version = "0.32.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d203a50bd471340befbf7d0dee18d66699cc11513aafa1fea06b926e74130818" -dependencies = [ - "bit-set 0.8.0", - "regex", - "thiserror 2.0.17", - "tree-sitter-facade-sg", -] - [[package]] name = "async-attributes" version = "1.1.2" @@ -388,16 +394,7 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" dependencies = [ - "bit-vec 0.6.3", -] - -[[package]] -name = "bit-set" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" -dependencies = [ - "bit-vec 0.8.0", + "bit-vec", ] [[package]] @@ -406,12 +403,6 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" -[[package]] -name = "bit-vec" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" - [[package]] name = "bitflags" version = "1.3.2" @@ -446,6 +437,20 @@ dependencies = [ "piper", ] +[[package]] +name = "brush-parser" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6924d0efd702b4fe3d65f3a63c03520edfe53b67d0955b9d3f8e66b192a410ff" +dependencies = [ + "cached", + "indenter", + "peg", + "thiserror 2.0.17", + "tracing", + "utf8-chars", +] + [[package]] name = "bstr" version = "1.12.0" @@ -477,6 +482,39 @@ version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" +[[package]] +name = "cached" +version = "0.56.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "801927ee168e17809ab8901d9f01f700cd7d8d6a6527997fee44e4b0327a253c" +dependencies = [ + "ahash", + "cached_proc_macro", + "cached_proc_macro_types", + "hashbrown 0.15.5", + "once_cell", + "thiserror 2.0.17", + "web-time", +] + +[[package]] +name = "cached_proc_macro" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9225bdcf4e4a9a4c08bf16607908eb2fbf746828d5e0b5e019726dbf6571f201" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.106", +] + +[[package]] +name = "cached_proc_macro_types" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ade8366b8bd5ba243f0a58f036cc0ca8a2f069cff1a2351ef1cac6b083e16fc0" + [[package]] name = "cast" version = "0.3.0" @@ -824,6 +862,41 @@ version = "0.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1" +[[package]] +name = "darling" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.106", +] + +[[package]] +name = "darling_macro" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.106", +] + [[package]] name = "dashmap" version = "6.1.0" @@ -1171,7 +1244,7 @@ dependencies = [ [[package]] name = "fspy" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "allocator-api2", "anyhow", @@ -1205,7 +1278,7 @@ dependencies = [ [[package]] name = "fspy_detours_sys" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "cc", "winapi", @@ -1214,7 +1287,7 @@ dependencies = [ [[package]] name = "fspy_preload_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "anyhow", "bincode", @@ -1229,7 +1302,7 @@ dependencies = [ [[package]] name = "fspy_preload_windows" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "bincode", "constcat", @@ -1245,7 +1318,7 @@ dependencies = [ [[package]] name = "fspy_seccomp_unotify" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "bincode", "futures-util", @@ -1262,7 +1335,7 @@ dependencies = [ [[package]] name = "fspy_shared" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "allocator-api2", "bincode", @@ -1280,7 +1353,7 @@ dependencies = [ [[package]] name = "fspy_shared_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "anyhow", "base64 0.22.1", @@ -1468,6 +1541,8 @@ version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" dependencies = [ + "allocator-api2", + "equivalent", "foldhash", ] @@ -1793,6 +1868,12 @@ dependencies = [ "zerovec", ] +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + [[package]] name = "idna" version = "1.1.0" @@ -1814,6 +1895,12 @@ dependencies = [ "icu_properties", ] +[[package]] +name = "indenter" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "964de6e86d545b246d84badc0fef527924ace5134f30641c203ef52ba83f58d5" + [[package]] name = "indexmap" version = "2.11.4" @@ -1932,7 +2019,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55cb077ad656299f160924eb2912aa147d7339ea7d69e1b5517326fdcec3c1ca" dependencies = [ "ascii-canvas", - "bit-set 0.5.3", + "bit-set", "ena", "itertools 0.11.0", "lalrpop-util", @@ -2504,6 +2591,33 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" +[[package]] +name = "peg" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9928cfca101b36ec5163e70049ee5368a8a1c3c6efc9ca9c5f9cc2f816152477" +dependencies = [ + "peg-macros", + "peg-runtime", +] + +[[package]] +name = "peg-macros" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6298ab04c202fa5b5d52ba03269fb7b74550b150323038878fe6c372d8280f71" +dependencies = [ + "peg-runtime", + "proc-macro2", + "quote", +] + +[[package]] +name = "peg-runtime" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "132dca9b868d927b35b5dd728167b2dee150eb1ad686008fc71ccb298b776fca" + [[package]] name = "percent-encoding" version = "2.3.2" @@ -3438,12 +3552,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" -[[package]] -name = "streaming-iterator" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520" - [[package]] name = "string_cache" version = "0.8.9" @@ -3843,49 +3951,6 @@ dependencies = [ "tracing-log", ] -[[package]] -name = "tree-sitter" -version = "0.24.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5387dffa7ffc7d2dae12b50c6f7aab8ff79d6210147c6613561fc3d474c6f75" -dependencies = [ - "cc", - "regex", - "regex-syntax", - "streaming-iterator", - "tree-sitter-language", -] - -[[package]] -name = "tree-sitter-bash" -version = "0.23.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "329a4d48623ac337d42b1df84e81a1c9dbb2946907c102ca72db158c1964a52e" -dependencies = [ - "cc", - "tree-sitter-language", -] - -[[package]] -name = "tree-sitter-facade-sg" -version = "0.24.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9195ab85ddd7df7ddac5b2e397ec6264816ae640346013002ceccf0f9b3578f1" -dependencies = [ - "js-sys", - "tree-sitter", - "tree-sitter-language", - "wasm-bindgen", - "web-sys", - "web-tree-sitter-sg", -] - -[[package]] -name = "tree-sitter-language" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4013970217383f67b18aef68f6fb2e8d409bc5755227092d32efb0422ba24b8" - [[package]] name = "try-lock" version = "0.2.5" @@ -3949,6 +4014,15 @@ dependencies = [ "serde", ] +[[package]] +name = "utf8-chars" +version = "3.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f598f797138b219a4560b4e9c53c255e872e267c9e3fdcc75aa59a2a90953bcd" +dependencies = [ + "arrayvec", +] + [[package]] name = "utf8_iter" version = "1.0.4" @@ -4060,7 +4134,7 @@ dependencies = [ [[package]] name = "vite_glob" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "thiserror 2.0.17", "wax", @@ -4100,7 +4174,7 @@ dependencies = [ [[package]] name = "vite_path" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "bincode", "diff-struct", @@ -4110,20 +4184,10 @@ dependencies = [ "vite_str", ] -[[package]] -name = "vite_shell" -version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" -dependencies = [ - "ast-grep-core", - "thiserror 2.0.17", - "tree-sitter-bash", -] - [[package]] name = "vite_str" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "bincode", "compact_str", @@ -4134,10 +4198,11 @@ dependencies = [ [[package]] name = "vite_task" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "anyhow", "bincode", + "brush-parser", "bstr", "compact_str", "dashmap", @@ -4164,7 +4229,6 @@ dependencies = [ "uuid", "vite_glob", "vite_path", - "vite_shell", "vite_str", "vite_workspace", "wax", @@ -4173,7 +4237,7 @@ dependencies = [ [[package]] name = "vite_workspace" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-always_use_shell#42822d69de952bf8d4e3761840318575f0a5f137" +source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" dependencies = [ "petgraph 0.8.3", "rustc-hash", @@ -4350,17 +4414,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "web-tree-sitter-sg" -version = "0.24.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cf7d34b16550f076d75b4a5d4673f1a9692f79787d040e3ac7ddb04e5c48a0" -dependencies = [ - "js-sys", - "wasm-bindgen", - "wasm-bindgen-futures", -] - [[package]] name = "webpki-roots" version = "1.0.3" diff --git a/Cargo.toml b/Cargo.toml index d8658a6187..f80a41e1d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,17 +65,17 @@ tokio = "1.48.0" tracing = "0.1.41" tracing-subscriber = { version = "0.3.19", features = ["env-filter", "serde"] } vite_error = { path = "crates/vite_error" } -vite_glob = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-always_use_shell" } +vite_glob = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } vite_install = { path = "crates/vite_install" } -vite_path = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-always_use_shell" } -vite_str = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-always_use_shell" } -vite_task = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-always_use_shell" } -vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-always_use_shell" } +vite_path = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } +vite_str = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } +vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } +vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } wax = "0.6.0" -napi = { version = "=3.2.0", default-features = false, features = ["async", "error_anyhow"] } +napi = { version = "3.0.0", default-features = false, features = ["async", "error_anyhow"] } napi-build = "2" -napi-derive = { version = "=3.2.0", default-features = false, features = ["type-def", "strict"] } +napi-derive = { version = "3.0.0", default-features = false, features = ["type-def", "strict"] } [profile.dev] # Disabling debug info speeds up local and CI builds, From 345d2ee1188be68f3b187acdae720f81bce11e9c Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 18:50:57 +0800 Subject: [PATCH 15/21] updae test --- packages/cli/snap-tests/vite-task-smoke/package.json | 2 +- packages/cli/snap-tests/vite-task-smoke/snap.txt | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/cli/snap-tests/vite-task-smoke/package.json b/packages/cli/snap-tests/vite-task-smoke/package.json index 413b53d730..7c485538e5 100644 --- a/packages/cli/snap-tests/vite-task-smoke/package.json +++ b/packages/cli/snap-tests/vite-task-smoke/package.json @@ -1,5 +1,5 @@ { "scripts": { - "test-task": "echo hello && node main.js" + "test-task": "node -p 40+2 && node main.js" } } diff --git a/packages/cli/snap-tests/vite-task-smoke/snap.txt b/packages/cli/snap-tests/vite-task-smoke/snap.txt index ebf8f4f58a..c27d763072 100644 --- a/packages/cli/snap-tests/vite-task-smoke/snap.txt +++ b/packages/cli/snap-tests/vite-task-smoke/snap.txt @@ -1,6 +1,6 @@ > vp run test-task -$ echo hello -hello +$ node -p 40+2 +42 $ node main.js foo @@ -15,7 +15,7 @@ Performance: 0% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ - [1] test-task(subcommand 0): $ echo hello โœ“ + [1] test-task(subcommand 0): $ node -p 40+2 โœ“ โ†’ Cache miss: no previous cache entry found ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท [2] test-task: $ node main.js โœ“ @@ -24,8 +24,8 @@ Task Details: > tool replace-file-content main.js foo bar > vp run test-task -$ echo hello (โœ“ cache hit, replaying) -hello +$ node -p 40+2 (โœ“ cache hit, replaying) +42 $ node main.js (โœ— cache miss: content of input 'main.js' changed, executing) bar @@ -40,7 +40,7 @@ Performance: 50% cache hit rate, ms saved in total Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ - [1] test-task(subcommand 0): $ echo hello โœ“ + [1] test-task(subcommand 0): $ node -p 40+2 โœ“ โ†’ Cache hit - output replayed - ms saved ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท [2] test-task: $ node main.js โœ“ From 19ce86db1427e76c9a82e91bdce162be362b7ee2 Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 19:05:29 +0800 Subject: [PATCH 16/21] update test --- packages/cli/snap-tests/vite-task-smoke/package.json | 2 +- packages/cli/snap-tests/vite-task-smoke/snap.txt | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/cli/snap-tests/vite-task-smoke/package.json b/packages/cli/snap-tests/vite-task-smoke/package.json index 7c485538e5..413b53d730 100644 --- a/packages/cli/snap-tests/vite-task-smoke/package.json +++ b/packages/cli/snap-tests/vite-task-smoke/package.json @@ -1,5 +1,5 @@ { "scripts": { - "test-task": "node -p 40+2 && node main.js" + "test-task": "echo hello && node main.js" } } diff --git a/packages/cli/snap-tests/vite-task-smoke/snap.txt b/packages/cli/snap-tests/vite-task-smoke/snap.txt index c27d763072..ebf8f4f58a 100644 --- a/packages/cli/snap-tests/vite-task-smoke/snap.txt +++ b/packages/cli/snap-tests/vite-task-smoke/snap.txt @@ -1,6 +1,6 @@ > vp run test-task -$ node -p 40+2 -42 +$ echo hello +hello $ node main.js foo @@ -15,7 +15,7 @@ Performance: 0% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ - [1] test-task(subcommand 0): $ node -p 40+2 โœ“ + [1] test-task(subcommand 0): $ echo hello โœ“ โ†’ Cache miss: no previous cache entry found ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท [2] test-task: $ node main.js โœ“ @@ -24,8 +24,8 @@ Task Details: > tool replace-file-content main.js foo bar > vp run test-task -$ node -p 40+2 (โœ“ cache hit, replaying) -42 +$ echo hello (โœ“ cache hit, replaying) +hello $ node main.js (โœ— cache miss: content of input 'main.js' changed, executing) bar @@ -40,7 +40,7 @@ Performance: 50% cache hit rate, ms saved in total Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ - [1] test-task(subcommand 0): $ node -p 40+2 โœ“ + [1] test-task(subcommand 0): $ echo hello โœ“ โ†’ Cache hit - output replayed - ms saved ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท [2] test-task: $ node main.js โœ“ From cdc79104068713045bbef734ffb18ae1d54c980c Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 19:07:24 +0800 Subject: [PATCH 17/21] bump vite-task --- Cargo.lock | 24 +++++++++---------- Cargo.toml | 10 ++++---- .../cli/snap-tests/vite-task-smoke/snap.txt | 4 ++-- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9baf9c6631..77a87ff400 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1244,7 +1244,7 @@ dependencies = [ [[package]] name = "fspy" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "allocator-api2", "anyhow", @@ -1278,7 +1278,7 @@ dependencies = [ [[package]] name = "fspy_detours_sys" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "cc", "winapi", @@ -1287,7 +1287,7 @@ dependencies = [ [[package]] name = "fspy_preload_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "anyhow", "bincode", @@ -1302,7 +1302,7 @@ dependencies = [ [[package]] name = "fspy_preload_windows" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "bincode", "constcat", @@ -1318,7 +1318,7 @@ dependencies = [ [[package]] name = "fspy_seccomp_unotify" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "bincode", "futures-util", @@ -1335,7 +1335,7 @@ dependencies = [ [[package]] name = "fspy_shared" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "allocator-api2", "bincode", @@ -1353,7 +1353,7 @@ dependencies = [ [[package]] name = "fspy_shared_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "anyhow", "base64 0.22.1", @@ -4134,7 +4134,7 @@ dependencies = [ [[package]] name = "vite_glob" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "thiserror 2.0.17", "wax", @@ -4174,7 +4174,7 @@ dependencies = [ [[package]] name = "vite_path" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "bincode", "diff-struct", @@ -4187,7 +4187,7 @@ dependencies = [ [[package]] name = "vite_str" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "bincode", "compact_str", @@ -4198,7 +4198,7 @@ dependencies = [ [[package]] name = "vite_task" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "anyhow", "bincode", @@ -4237,7 +4237,7 @@ dependencies = [ [[package]] name = "vite_workspace" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?rev=ba48c0edb8700c26363b89812be1f93940947efc#ba48c0edb8700c26363b89812be1f93940947efc" +source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" dependencies = [ "petgraph 0.8.3", "rustc-hash", diff --git a/Cargo.toml b/Cargo.toml index f80a41e1d3..7aee608c7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,12 +65,12 @@ tokio = "1.48.0" tracing = "0.1.41" tracing-subscriber = { version = "0.3.19", features = ["env-filter", "serde"] } vite_error = { path = "crates/vite_error" } -vite_glob = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } +vite_glob = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-feat_handle_echo_as_shell_built-in" } vite_install = { path = "crates/vite_install" } -vite_path = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } -vite_str = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } -vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } -vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" } +vite_path = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-feat_handle_echo_as_shell_built-in" } +vite_str = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-feat_handle_echo_as_shell_built-in" } +vite_task = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-feat_handle_echo_as_shell_built-in" } +vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-feat_handle_echo_as_shell_built-in" } wax = "0.6.0" napi = { version = "3.0.0", default-features = false, features = ["async", "error_anyhow"] } diff --git a/packages/cli/snap-tests/vite-task-smoke/snap.txt b/packages/cli/snap-tests/vite-task-smoke/snap.txt index ebf8f4f58a..ae329eda17 100644 --- a/packages/cli/snap-tests/vite-task-smoke/snap.txt +++ b/packages/cli/snap-tests/vite-task-smoke/snap.txt @@ -36,12 +36,12 @@ bar โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Statistics: 2 tasks โ€ข 1 cache hits โ€ข 1 cache misses -Performance: 50% cache hit rate, ms saved in total +Performance: 50% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ [1] test-task(subcommand 0): $ echo hello โœ“ - โ†’ Cache hit - output replayed - ms saved + โ†’ Cache hit - output replayed - 0.00ns saved ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท [2] test-task: $ node main.js โœ“ โ†’ Cache miss: content of input 'main.js' changed From a1ecc622b8cd1f8289a831da048b1f6056c234ff Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 19:11:55 +0800 Subject: [PATCH 18/21] replace ns --- packages/cli/snap-tests/vite-task-smoke/snap.txt | 2 +- packages/tools/src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/snap-tests/vite-task-smoke/snap.txt b/packages/cli/snap-tests/vite-task-smoke/snap.txt index ae329eda17..bdfc4b52d2 100644 --- a/packages/cli/snap-tests/vite-task-smoke/snap.txt +++ b/packages/cli/snap-tests/vite-task-smoke/snap.txt @@ -41,7 +41,7 @@ Performance: 50% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ [1] test-task(subcommand 0): $ echo hello โœ“ - โ†’ Cache hit - output replayed - 0.00ns saved + โ†’ Cache hit - output replayed - ms saved ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท [2] test-task: $ node main.js โœ“ โ†’ Cache miss: content of input 'main.js' changed diff --git a/packages/tools/src/utils.ts b/packages/tools/src/utils.ts index ba2595c4ed..04b69cd1a1 100644 --- a/packages/tools/src/utils.ts +++ b/packages/tools/src/utils.ts @@ -17,7 +17,7 @@ export function replaceUnstableOutput(output: string, cwd?: string) { // date .replaceAll(/\d{2}:\d{2}:\d{2}/g, '') // duration - .replaceAll(/\d+(?:\.\d+)?(?:s|ms|ยตs)/g, 'ms') + .replaceAll(/\d+(?:\.\d+)?(?:s|ms|ยตs|ns)/g, 'ms') // oxlint .replaceAll(/with \d+ rules/g, 'with rules') .replaceAll(/using \d+ threads/g, 'using threads') From cfdaad76d9a4da0f56b0246077700349dc4a287c Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 19:19:34 +0800 Subject: [PATCH 19/21] update snaptest --- packages/cli/snap-tests/associate-existing-cache/snap.txt | 2 +- packages/cli/snap-tests/cache-clean/snap.txt | 2 +- packages/cli/snap-tests/cache-miss-command-change/snap.txt | 4 ++-- packages/cli/snap-tests/exit-code/snap.txt | 2 +- .../cli/snap-tests/individual-cache-for-adt-args/snap.txt | 4 ++-- packages/cli/snap-tests/same-name-as-builtin/snap.txt | 2 +- packages/cli/snap-tests/test-nested-tasks/snap.txt | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/cli/snap-tests/associate-existing-cache/snap.txt b/packages/cli/snap-tests/associate-existing-cache/snap.txt index 052b6566ed..30810781c8 100644 --- a/packages/cli/snap-tests/associate-existing-cache/snap.txt +++ b/packages/cli/snap-tests/associate-existing-cache/snap.txt @@ -26,7 +26,7 @@ hello โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Statistics: 1 tasks โ€ข 1 cache hits โ€ข 0 cache misses -Performance: 100% cache hit rate, ms saved in total +Performance: 100% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ diff --git a/packages/cli/snap-tests/cache-clean/snap.txt b/packages/cli/snap-tests/cache-clean/snap.txt index 6a1332c0fd..ec6470d979 100644 --- a/packages/cli/snap-tests/cache-clean/snap.txt +++ b/packages/cli/snap-tests/cache-clean/snap.txt @@ -26,7 +26,7 @@ hello โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Statistics: 1 tasks โ€ข 1 cache hits โ€ข 0 cache misses -Performance: 100% cache hit rate, ms saved in total +Performance: 100% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ diff --git a/packages/cli/snap-tests/cache-miss-command-change/snap.txt b/packages/cli/snap-tests/cache-miss-command-change/snap.txt index cefa9ddccb..e73f9bd530 100644 --- a/packages/cli/snap-tests/cache-miss-command-change/snap.txt +++ b/packages/cli/snap-tests/cache-miss-command-change/snap.txt @@ -36,7 +36,7 @@ bar โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Statistics: 2 tasks โ€ข 1 cache hits โ€ข 1 cache misses -Performance: 50% cache hit rate, ms saved in total +Performance: 50% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ @@ -58,7 +58,7 @@ bar โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Statistics: 1 tasks โ€ข 1 cache hits โ€ข 0 cache misses -Performance: 100% cache hit rate, ms saved in total +Performance: 100% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ diff --git a/packages/cli/snap-tests/exit-code/snap.txt b/packages/cli/snap-tests/exit-code/snap.txt index d9531e4a4e..3f7fb33fae 100644 --- a/packages/cli/snap-tests/exit-code/snap.txt +++ b/packages/cli/snap-tests/exit-code/snap.txt @@ -26,7 +26,7 @@ success โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Statistics: 1 tasks โ€ข 1 cache hits โ€ข 0 cache misses -Performance: 100% cache hit rate, ms saved in total +Performance: 100% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ diff --git a/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt b/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt index 11abb67238..8f1ef28e81 100644 --- a/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt +++ b/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt @@ -44,7 +44,7 @@ a โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Statistics: 1 tasks โ€ข 1 cache hits โ€ข 0 cache misses -Performance: 100% cache hit rate, ms saved in total +Performance: 100% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ @@ -62,7 +62,7 @@ b โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Statistics: 1 tasks โ€ข 1 cache hits โ€ข 0 cache misses -Performance: 100% cache hit rate, ms saved in total +Performance: 100% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ diff --git a/packages/cli/snap-tests/same-name-as-builtin/snap.txt b/packages/cli/snap-tests/same-name-as-builtin/snap.txt index 893041b409..6c7ecd9082 100644 --- a/packages/cli/snap-tests/same-name-as-builtin/snap.txt +++ b/packages/cli/snap-tests/same-name-as-builtin/snap.txt @@ -38,7 +38,7 @@ lint script โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Statistics: 1 tasks โ€ข 1 cache hits โ€ข 0 cache misses -Performance: 100% cache hit rate, ms saved in total +Performance: 100% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ diff --git a/packages/cli/snap-tests/test-nested-tasks/snap.txt b/packages/cli/snap-tests/test-nested-tasks/snap.txt index 77646d7252..7448b30e04 100644 --- a/packages/cli/snap-tests/test-nested-tasks/snap.txt +++ b/packages/cli/snap-tests/test-nested-tasks/snap.txt @@ -27,7 +27,7 @@ hello vite โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” Statistics: 1 tasks โ€ข 1 cache hits โ€ข 0 cache misses -Performance: 100% cache hit rate, ms saved in total +Performance: 100% cache hit rate Task Details: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ From be2f97f9f89010bf7c705035389903f9a71fd357 Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 19:22:17 +0800 Subject: [PATCH 20/21] bump vite-task --- Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7aee608c7d..ba277739e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,12 +65,12 @@ tokio = "1.48.0" tracing = "0.1.41" tracing-subscriber = { version = "0.3.19", features = ["env-filter", "serde"] } vite_error = { path = "crates/vite_error" } -vite_glob = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-feat_handle_echo_as_shell_built-in" } +vite_glob = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" } vite_install = { path = "crates/vite_install" } -vite_path = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-feat_handle_echo_as_shell_built-in" } -vite_str = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-feat_handle_echo_as_shell_built-in" } -vite_task = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-feat_handle_echo_as_shell_built-in" } -vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", branch = "11-08-feat_handle_echo_as_shell_built-in" } +vite_path = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" } +vite_str = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" } +vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" } +vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" } wax = "0.6.0" napi = { version = "3.0.0", default-features = false, features = ["async", "error_anyhow"] } From d97ce0de1a7f824eb0cee411bdfd97a74834b20f Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 8 Nov 2025 19:25:42 +0800 Subject: [PATCH 21/21] update lock file --- Cargo.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 77a87ff400..384693cb7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1244,7 +1244,7 @@ dependencies = [ [[package]] name = "fspy" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "allocator-api2", "anyhow", @@ -1278,7 +1278,7 @@ dependencies = [ [[package]] name = "fspy_detours_sys" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "cc", "winapi", @@ -1287,7 +1287,7 @@ dependencies = [ [[package]] name = "fspy_preload_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "anyhow", "bincode", @@ -1302,7 +1302,7 @@ dependencies = [ [[package]] name = "fspy_preload_windows" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "bincode", "constcat", @@ -1318,7 +1318,7 @@ dependencies = [ [[package]] name = "fspy_seccomp_unotify" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "bincode", "futures-util", @@ -1335,7 +1335,7 @@ dependencies = [ [[package]] name = "fspy_shared" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "allocator-api2", "bincode", @@ -1353,7 +1353,7 @@ dependencies = [ [[package]] name = "fspy_shared_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "anyhow", "base64 0.22.1", @@ -4134,7 +4134,7 @@ dependencies = [ [[package]] name = "vite_glob" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "thiserror 2.0.17", "wax", @@ -4174,7 +4174,7 @@ dependencies = [ [[package]] name = "vite_path" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "bincode", "diff-struct", @@ -4187,7 +4187,7 @@ dependencies = [ [[package]] name = "vite_str" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "bincode", "compact_str", @@ -4198,7 +4198,7 @@ dependencies = [ [[package]] name = "vite_task" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "anyhow", "bincode", @@ -4237,7 +4237,7 @@ dependencies = [ [[package]] name = "vite_workspace" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task?branch=11-08-feat_handle_echo_as_shell_built-in#4c39c467eb5e48ab02ba7591665c3e5a92d271ea" +source = "git+https://github.com/voidzero-dev/vite-task?rev=d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da#d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" dependencies = [ "petgraph 0.8.3", "rustc-hash",