From 14171be48c2a93c1a628a531134d5d4915927981 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 7 Aug 2025 19:12:32 +0200 Subject: [PATCH 1/3] chore: try disabling GPU for Chrome to fix Windows tests Not sure why these started to fail in CI recently, but it's not like our test cases would require GPU acceleration. --- test/oidc-test-provider.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/oidc-test-provider.ts b/test/oidc-test-provider.ts index a9b1eef..d14252e 100644 --- a/test/oidc-test-provider.ts +++ b/test/oidc-test-provider.ts @@ -184,7 +184,12 @@ async function spawnBrowser( hideLogs?: boolean // For when real credentials are used in a flow ): Promise { const options = { - capabilities: { browserName: 'chrome' }, + capabilities: { + browserName: 'chrome', + 'goog:chromeOptions': { + args: ['--disable-gpu-sandbox', '--disable-gpu'], + }, + }, waitforTimeout: 10_000, waitforInterval: 100, logLevel: hideLogs ? 'error' : 'info', @@ -240,6 +245,8 @@ async function spawnBrowser( `--app=${url}`, '--disable-save-password-bubble', '--no-sandbox', + '--disable-gpu-sandbox', + '--disable-gpu', ], }, 'wdio:enforceWebDriverClassic': true, From 84943334bc056c073413471d5d3cc71475bfa2f5 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 7 Aug 2025 19:26:22 +0200 Subject: [PATCH 2/3] fixup: ... --- test/oidc-test-provider.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/test/oidc-test-provider.ts b/test/oidc-test-provider.ts index d14252e..4f1679e 100644 --- a/test/oidc-test-provider.ts +++ b/test/oidc-test-provider.ts @@ -183,17 +183,24 @@ async function spawnBrowser( url: string, hideLogs?: boolean // For when real credentials are used in a flow ): Promise { + const chromeNoGpu = [ + '--disable-gpu-sandbox', + '--disable-gpu', + '--disable-software-rasterizer', + '--disable-gpu-compositing', + '--disable-gpu-rasterization', + ]; const options = { capabilities: { browserName: 'chrome', 'goog:chromeOptions': { - args: ['--disable-gpu-sandbox', '--disable-gpu'], + args: chromeNoGpu, }, }, waitforTimeout: 10_000, waitforInterval: 100, - logLevel: hideLogs ? 'error' : 'info', - } as const; + logLevel: hideLogs ? ('error' as const) : ('info' as const), + }; // We set ELECTRON_RUN_AS_NODE=1 for tests so that we can use // process.execPath to run scripts. Here, we want the actual, regular @@ -245,8 +252,7 @@ async function spawnBrowser( `--app=${url}`, '--disable-save-password-bubble', '--no-sandbox', - '--disable-gpu-sandbox', - '--disable-gpu', + ...chromeNoGpu, ], }, 'wdio:enforceWebDriverClassic': true, From 30e7f733cadd7de58878ca86f2930af3beeea393 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 7 Aug 2025 19:46:30 +0200 Subject: [PATCH 3/3] fixup: ... --- test/oidc-test-provider.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/oidc-test-provider.ts b/test/oidc-test-provider.ts index 4f1679e..402c9ab 100644 --- a/test/oidc-test-provider.ts +++ b/test/oidc-test-provider.ts @@ -189,6 +189,8 @@ async function spawnBrowser( '--disable-software-rasterizer', '--disable-gpu-compositing', '--disable-gpu-rasterization', + '--disable-accelerated-video-decode', + '--no-sandbox', ]; const options = { capabilities: { @@ -251,7 +253,6 @@ async function spawnBrowser( args: [ `--app=${url}`, '--disable-save-password-bubble', - '--no-sandbox', ...chromeNoGpu, ], },