Skip to content

Commit f81b141

Browse files
committed
perf(ci): pack ten Telegram test files per CI job
Five files per job was sized around Telegram test files that paid a multi-minute silent import (fixed in #123607). With per-file cost back to seconds, a Telegram-touching diff fanned out ~42 jobs at ~45s runner setup each. Ten files per job halves the fanout while keeping the worst job near three minutes, off the PR critical path.
1 parent 2bbe767 commit f81b141

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎scripts/lib/extension-test-plan.mts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const EXTENSION_TEST_COST_MULTIPLIERS: Record<string, number> = {
9191
};
9292
export const MATRIX_EXTENSION_TEST_PROCESS_FILE_LIMIT = 40;
9393
export const TELEGRAM_EXTENSION_TEST_PROCESS_FILE_LIMIT = 1;
94-
export const TELEGRAM_EXTENSION_TEST_JOB_FILE_LIMIT = 5;
94+
export const TELEGRAM_EXTENSION_TEST_JOB_FILE_LIMIT = 10;
9595
const EXTENSION_TEST_PROCESS_FILE_LIMITS = new Map<string, number>([
9696
// The non-isolated Matrix suite intentionally shares module state within a process.
9797
// Bound its lifetime so Vite's transformed module graph cannot grow across the whole suite.
@@ -105,8 +105,10 @@ const EXTENSION_TEST_PROCESS_FILE_LIMITS = new Map<string, number>([
105105
],
106106
]);
107107
const EXTENSION_TEST_JOB_FILE_LIMITS = new Map<string, number>([
108-
// Keep Telegram CI jobs at five files so isolate recycling stays inside one
109-
// job instead of minting one runner per test file.
108+
// Bound Telegram CI jobs so isolate recycling stays inside one job instead
109+
// of minting one runner per test file. Ten files keeps the worst job near
110+
// 3 minutes (observed 2026-08: ~45s runner setup + ~7-24s per file) while
111+
// halving the ~42-job fanout a Telegram-touching diff produced at five.
110112
["test/vitest/vitest.extension-telegram.config.ts", TELEGRAM_EXTENSION_TEST_JOB_FILE_LIMIT],
111113
]);
112114
const EXTENSION_TEST_CONFIG_ROUTES: Array<[(root: string) => boolean, string]> = [

0 commit comments

Comments
 (0)