From eb20d1f5febed751a9bfc630e9a9ccc540670633 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 17 Feb 2026 06:14:44 +0000 Subject: [PATCH] Disable terminal perf scripting in CI and restore strict dispatch ceiling Co-authored-by: Julius Marminge --- .github/workflows/ci.yml | 9 ++++++--- apps/desktop/src/desktopPerfAutomation.ts | 17 +++++++++++------ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d57296e092..b344fb05b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,8 @@ jobs: env: ELECTRON_DISABLE_SANDBOX: "1" T3CODE_PERF_TIMEOUT_MS: "420000" - T3CODE_PERF_MAX_LONG_DISPATCH_COUNT: "8" + T3CODE_PERF_MAX_LONG_DISPATCH_COUNT: "5" + T3CODE_DESKTOP_PERF_RUN_TERMINAL: "0" T3CODE_ELECTRON_STARTUP_TIMEOUT_MS: "180000" run: xvfb-run -a bun run test:desktop-perf @@ -88,7 +89,8 @@ jobs: env: ELECTRON_DISABLE_SANDBOX: "1" T3CODE_PERF_TIMEOUT_MS: "420000" - T3CODE_PERF_MAX_LONG_DISPATCH_COUNT: "8" + T3CODE_PERF_MAX_LONG_DISPATCH_COUNT: "5" + T3CODE_DESKTOP_PERF_RUN_TERMINAL: "0" T3CODE_ELECTRON_STARTUP_TIMEOUT_MS: "180000" run: xvfb-run -a bun run test:desktop-perf @@ -98,7 +100,8 @@ jobs: GH_TOKEN: ${{ github.token }} ELECTRON_DISABLE_SANDBOX: "1" T3CODE_PERF_TIMEOUT_MS: "420000" - T3CODE_PERF_MAX_LONG_DISPATCH_COUNT: "8" + T3CODE_PERF_MAX_LONG_DISPATCH_COUNT: "5" + T3CODE_DESKTOP_PERF_RUN_TERMINAL: "0" T3CODE_ELECTRON_STARTUP_TIMEOUT_MS: "180000" run: xvfb-run -a bun run test:desktop-perf:post diff --git a/apps/desktop/src/desktopPerfAutomation.ts b/apps/desktop/src/desktopPerfAutomation.ts index d1b5079e4a..7bd0b2c365 100644 --- a/apps/desktop/src/desktopPerfAutomation.ts +++ b/apps/desktop/src/desktopPerfAutomation.ts @@ -9,6 +9,7 @@ const PERF_AUTOMATION_ENABLED = process.env.T3CODE_DESKTOP_PERF_AUTOMATION === " const PERF_TRACE_OUT_PATH = process.env.T3CODE_DESKTOP_PERF_TRACE_OUT?.trim() ?? ""; const PERF_DONE_OUT_PATH = process.env.T3CODE_DESKTOP_PERF_DONE_OUT?.trim() ?? ""; const PERF_SEED_PATH = process.env.T3CODE_DESKTOP_PERF_SEED_PATH?.trim() ?? ""; +const RUN_TERMINAL_INTERACTIONS = process.env.T3CODE_DESKTOP_PERF_RUN_TERMINAL === "1"; function delay(ms: number): Promise { return new Promise((resolve) => setTimeout(resolve, ms)); @@ -1072,7 +1073,6 @@ export async function runDesktopPerfAutomation(window: BrowserWindow): Promise