Document perf toggle aliases and unknown CI fallback
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
5f7e22a1ed
commit
e0e3e3aeeb
2 files changed
+10
No files matched your search
@@ -122,5 +122,11 @@ describe("shouldRunTerminalPerfInteractions", () => {
|
||||
CI: "false",
|
||||
}),
|
||||
).toBe(true);
|
||||
expect(
|
||||
shouldRunTerminalPerfInteractions({
|
||||
T3CODE_DESKTOP_PERF_RUN_TERMINAL: "unknown",
|
||||
CI: "maybe",
|
||||
}),
|
||||
).toBe(true);
|
||||
});
|
||||
});
|
||||
@@ -21,6 +21,10 @@ function isCiEnvironment(value: string | undefined): boolean {
|
||||
/**
|
||||
* Controls whether desktop perf automation should include terminal shortcuts.
|
||||
*
|
||||
* Accepted explicit env values:
|
||||
* - truthy: "1", "true", "yes", "on"
|
||||
* - falsy: "0", "false", "no", "off"
|
||||
*
|
||||
* Defaults to "on" for local/dev runs, but "off" in CI unless explicitly enabled.
|
||||
* This keeps CI perf checks focused on renderer responsiveness while avoiding
|
||||
* flaky PTY-dependent interactions in ephemeral Linux runners.
|
||||
|
||||
Reference in new issue
Block a user