From 9e45444038483a8ef185dee8cc4c7e5cd7d782a0 Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Wed, 2 Sep 2026 22:45:16 +0800 Subject: [PATCH 1/2] fix(windows): keep run test within tauri boundary --- windows/tauri/src/features/run/api/run-host-api.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/windows/tauri/src/features/run/api/run-host-api.test.ts b/windows/tauri/src/features/run/api/run-host-api.test.ts index 4782e52dc..8d3aa0197 100644 --- a/windows/tauri/src/features/run/api/run-host-api.test.ts +++ b/windows/tauri/src/features/run/api/run-host-api.test.ts @@ -1,11 +1,10 @@ -import { Channel } from "@tauri-apps/api/core"; import { beforeEach, describe, expect, mock, test } from "bun:test"; const invoke = mock(async () => undefined); mock.module("@/platform/tauri-core", () => ({ invoke, - Channel, + Channel: class {}, convertFileSrc: (path: string) => path, })); mock.module("../utils/run-window-context", () => ({ From b011f46bd141068926f8956d8fbc30f0ba534081 Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Wed, 2 Sep 2026 23:32:40 +0800 Subject: [PATCH 2/2] fix(ci): skip empty Windows test report generation --- .github/workflows/ci-windows.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index b21c52d96..c350fd6e4 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -252,7 +252,10 @@ jobs: run: ./.agents/skills/write-stable-tests/scripts/test-stability-windows.ps1 -Scope WindowsRust -SuiteTimeoutSeconds 1080 - name: Generate combined Windows test report - if: always() + if: >- + always() && + (needs.changes.outputs.rust_core == 'true' || + needs.changes.outputs.windows_rust == 'true') shell: pwsh run: node .agents/skills/write-stable-tests/scripts/generate-test-report.mjs