From d45fe7914869079cde510c949253f49880eea69d Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 16 Feb 2026 10:18:09 -0800 Subject: [PATCH] Raise desktop perf timeout and long-dispatch threshold in CI - Set `T3CODE_PERF_TIMEOUT_MS` default to 420000 in perf trace script - Export `T3CODE_PERF_MAX_LONG_DISPATCH_COUNT=5` across CI desktop perf jobs --- .github/workflows/ci.yml | 3 +++ scripts/desktop-perf-trace.mjs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b840be9421..36019faf5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,12 +78,14 @@ jobs: if: github.event_name != 'pull_request' env: T3CODE_PERF_TIMEOUT_MS: "420000" + T3CODE_PERF_MAX_LONG_DISPATCH_COUNT: "5" run: xvfb-run -a bun run test:desktop-perf - name: Desktop perf trace test (fork PR) if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository env: T3CODE_PERF_TIMEOUT_MS: "420000" + T3CODE_PERF_MAX_LONG_DISPATCH_COUNT: "5" run: xvfb-run -a bun run test:desktop-perf - name: Desktop perf trace test and PR summary @@ -91,6 +93,7 @@ jobs: env: GH_TOKEN: ${{ github.token }} T3CODE_PERF_TIMEOUT_MS: "420000" + T3CODE_PERF_MAX_LONG_DISPATCH_COUNT: "5" run: xvfb-run -a bun run test:desktop-perf:post - name: Upload desktop perf artifacts diff --git a/scripts/desktop-perf-trace.mjs b/scripts/desktop-perf-trace.mjs index eda1f167c6..36cb647f91 100644 --- a/scripts/desktop-perf-trace.mjs +++ b/scripts/desktop-perf-trace.mjs @@ -515,7 +515,7 @@ async function main() { const maxKeypressAvgMs = Number(process.env.T3CODE_PERF_MAX_KEYPRESS_AVG_MS ?? "12"); const maxKeypressMaxMs = Number(process.env.T3CODE_PERF_MAX_KEYPRESS_MAX_MS ?? "24"); const maxLongDispatchCount = Number(process.env.T3CODE_PERF_MAX_LONG_DISPATCH_COUNT ?? "0"); - const timeoutMs = Number(process.env.T3CODE_PERF_TIMEOUT_MS ?? "240000"); + const timeoutMs = Number(process.env.T3CODE_PERF_TIMEOUT_MS ?? "420000"); const child = spawn("bun", ["dev:desktop"], { cwd: repoRoot,