Disable terminal perf scripting in CI and restore strict dispatch ceiling
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
cdf7b01f01
commit
eb20d1f5fe
2 files changed
+17
-9
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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<void> {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
@@ -1072,7 +1073,6 @@ export async function runDesktopPerfAutomation(window: BrowserWindow): Promise<v
|
||||
const message = rendererError instanceof Error ? rendererError.message : String(rendererError);
|
||||
console.warn("[desktop-perf] renderer scripted interactions failed; continuing:", message);
|
||||
}
|
||||
console.log("[desktop-perf] running terminal shortcut interactions");
|
||||
let terminalInteractions: TerminalPerfInteractions = {
|
||||
openedByShortcut: false,
|
||||
splitCount: 0,
|
||||
@@ -1081,11 +1081,16 @@ export async function runDesktopPerfAutomation(window: BrowserWindow): Promise<v
|
||||
commandFileTouched: false,
|
||||
modifierUsed: process.platform === "darwin" ? "meta" : "control",
|
||||
};
|
||||
try {
|
||||
terminalInteractions = await runTerminalPerfInteractions(window);
|
||||
} catch (terminalError) {
|
||||
const message = terminalError instanceof Error ? terminalError.message : String(terminalError);
|
||||
console.warn("[desktop-perf] terminal scripted interactions failed; continuing:", message);
|
||||
if (RUN_TERMINAL_INTERACTIONS) {
|
||||
console.log("[desktop-perf] running terminal shortcut interactions");
|
||||
try {
|
||||
terminalInteractions = await runTerminalPerfInteractions(window);
|
||||
} catch (terminalError) {
|
||||
const message = terminalError instanceof Error ? terminalError.message : String(terminalError);
|
||||
console.warn("[desktop-perf] terminal scripted interactions failed; continuing:", message);
|
||||
}
|
||||
} else {
|
||||
console.log("[desktop-perf] terminal shortcut interactions disabled for this run");
|
||||
}
|
||||
const interactions = {
|
||||
...rendererInteractions,
|
||||
|
||||
Reference in new issue
Block a user