From 52ae7e314dc2bf704449a3526abb4e3423649376 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 28 Sep 2026 03:19:12 -0700 Subject: [PATCH] ci: split UI component tests into their own core type shard --- scripts/lib/tsgo-core-test-shards.mts | 5 +++++ test/scripts/tsgo-core-test-shards.test.ts | 1 + test/tsconfig/tsconfig.core.test.ui-components.json | 11 +++++++++++ test/tsconfig/tsconfig.core.test.ui-other.json | 1 + 4 files changed, 18 insertions(+) create mode 100644 test/tsconfig/tsconfig.core.test.ui-components.json diff --git a/scripts/lib/tsgo-core-test-shards.mts b/scripts/lib/tsgo-core-test-shards.mts index 78e2ae134669..50a519bc6820 100644 --- a/scripts/lib/tsgo-core-test-shards.mts +++ b/scripts/lib/tsgo-core-test-shards.mts @@ -109,6 +109,11 @@ export const TSGO_CORE_TEST_SHARDS = [ group: "src", config: "test/tsconfig/tsconfig.core.test.services-cron.json", }, + { + name: "ui-components", + group: "ui", + config: "test/tsconfig/tsconfig.core.test.ui-components.json", + }, ] as const; // Root tests remain one CI inventory graph; execution partitions its checker heap. diff --git a/test/scripts/tsgo-core-test-shards.test.ts b/test/scripts/tsgo-core-test-shards.test.ts index 9c6075939655..1a4aaca76a52 100644 --- a/test/scripts/tsgo-core-test-shards.test.ts +++ b/test/scripts/tsgo-core-test-shards.test.ts @@ -60,6 +60,7 @@ describe("tsgo core test shards", () => { ["src/agents/sessions/settings-storage.test.ts", "agents-sessions"], ["ui/src/pages/chat/chat-send-submit.test.ts", "ui-chat"], ["ui/src/pages/config/config-page.test.ts", "ui-pages"], + ["ui/src/components/agent-avatar-face.test.ts", "ui-components"], ["src/gateway/server-methods/update-owner.test.ts", "gateway-methods"], ["src/gateway/talk/client-authority.test.ts", "gateway-other"], ["src/gateway/worker-environments/service.plugin-create.test.ts", "gateway-other"], diff --git a/test/tsconfig/tsconfig.core.test.ui-components.json b/test/tsconfig/tsconfig.core.test.ui-components.json new file mode 100644 index 000000000000..98b00bd3168b --- /dev/null +++ b/test/tsconfig/tsconfig.core.test.ui-components.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.core.test.shard.json", + "compilerOptions": { + "tsBuildInfoFile": "../../.artifacts/tsgo-cache/core-test-ui-components.tsbuildinfo" + }, + "include": [ + "../../ui/src/main.ts", + "../../ui/src/components/**/*.test.ts", + "../../ui/src/components/**/*.test.tsx" + ] +} diff --git a/test/tsconfig/tsconfig.core.test.ui-other.json b/test/tsconfig/tsconfig.core.test.ui-other.json index 3c3c3c0bd678..aece2694575d 100644 --- a/test/tsconfig/tsconfig.core.test.ui-other.json +++ b/test/tsconfig/tsconfig.core.test.ui-other.json @@ -12,6 +12,7 @@ "../../node_modules", "../../dist", "../../**/dist/**", + "../../ui/src/components/**", "../../ui/src/pages/**", "../../ui/src/e2e/**", "../../ui/src/app/shell-layout-traits.test.ts"