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
This commit is contained in:
Julius Marminge committed 2026-02-16 10:18:09 -08:00
1 parent 23a6e29933
commit d45fe79148
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -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
+1 -1
View File
@@ -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,