Skip to content

Commit 94ec902

Browse files
authored
build: use swiftshader on macOS CI (microsoft#162568)
1 parent f74e692 commit 94ec902

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/automation/src/electron.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ export async function resolveElectronConfiguration(options: LaunchOptions): Prom
4949
args.push('--disable-dev-shm-usage');
5050
}
5151

52+
if (process.platform === 'darwin') {
53+
// On macOS force software based rendering since we are seeing GPU process
54+
// hangs when initializing GL context. This is very likely possible
55+
// that there are new displays available in the CI hardware and
56+
// the relevant drivers couldn't be loaded via the GPU sandbox.
57+
// TODO(deepak1556): remove this switch with Electron update.
58+
args.push('--use-gl=swiftshader');
59+
}
60+
5261
if (remote) {
5362
// Replace workspace path with URI
5463
args[0] = `--${workspacePath.endsWith('.code-workspace') ? 'file' : 'folder'}-uri=vscode-remote://test+test/${URI.file(workspacePath).path}`;

0 commit comments

Comments
 (0)