Skip to content

Commit 65f0002

Browse files
Ignore Time Machine XPC errors in desktop tests
Desktop tests on macOS failed due to XPC connection errors from Time Machine backup services. These errors occur because Electron apps on macOS automatically attempt to connect to system services in the sandbox environment, even when they're not available in CI. Added a regex pattern to STDERR_IGNORE_PATTERNS to prevent these benign system messages from failing the tests. Also fixed a grammar issue in an existing comment for Linux errors.
1 parent e80c340 commit 65f0002

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/checks/desktop-runtime-errors/check-desktop-runtime-errors/app/error-ignore-patterns.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const STDERR_IGNORE_PATTERNS: readonly RegExp[] = [
2929
/*
3030
OS: Linux (GitHub Actions)
3131
Background:
32-
Occur during Electron's GPU process initialization. Common in headless CI/CD environments.
32+
These errors occur during during Electron's GPU process initialization. Common in headless CI/CD environments.
3333
Not indicative of a problem in typical desktop environments.
3434
Original logs:
3535
[3548:0828/162502.835833:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
@@ -38,4 +38,16 @@ export const STDERR_IGNORE_PATTERNS: readonly RegExp[] = [
3838
*/
3939
/ERROR:viz_main_impl\.cc.*?Exiting GPU process due to errors during initialization/,
4040
/ERROR:command_buffer_proxy_impl\.cc.*?ContextResult::kTransientFailure: Failed to send GpuControl\.CreateCommandBuffer\./,
41+
42+
/*
43+
OS: macOS (GitHub Actions)
44+
Background:
45+
Time Machine backup service XPC connection errors occur in CI environments.
46+
These errors happen because Electron apps on macOS automatically attempt to
47+
connect to system services even when they're not available in CI.
48+
Original logs:
49+
2025-04-07 09:31:01.530 privacy.sexy Helper[15420:39156] XPC error for connection com.apple.backupd.sandbox.xpc: Connection invalid
50+
2025-04-07 09:31:01.530 privacy.sexy Helper[15420:39151] XPC error for connection com.apple.backupd.sandbox.xpc: Connection invalid
51+
*/
52+
/privacy\.sexy Helper\[\d+:\d+\] XPC error for connection com\.apple\.backupd\.sandbox\.xpc: Connection invalid/,
4153
];

0 commit comments

Comments
 (0)