This is an automated email from the ASF dual-hosted git repository.

ccondit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-web.git


The following commit(s) were added to refs/heads/master by this push:
     new 84755a2  [YUNIKORN-3028] Update karma config to fix ChromeHeadless 
issues during CI tests (#228)
84755a2 is described below

commit 84755a240b35b779c427e44b8773d2cd7fda3f17
Author: Craig Condit <[email protected]>
AuthorDate: Thu Feb 20 12:43:44 2025 -0600

    [YUNIKORN-3028] Update karma config to fix ChromeHeadless issues during CI 
tests (#228)
    
    Closes: #228
---
 karma.conf.ci.js | 8 +++++++-
 karma.conf.js    | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/karma.conf.ci.js b/karma.conf.ci.js
index 1e0455c..afb64cf 100644
--- a/karma.conf.ci.js
+++ b/karma.conf.ci.js
@@ -50,7 +50,13 @@ module.exports = function (config) {
     colors: true,
     logLevel: config.LOG_INFO,
     autoWatch: false,
-    browsers: ['ChromeHeadless'],
+    browsers: ['ChromeHeadlessNoSandbox'],
+    customLaunchers: {
+      ChromeHeadlessNoSandbox: {
+        base: 'ChromeHeadless',
+        flags: ['--no-sandbox'],
+      },
+    },
     captureTimeout: 180000,
     browserDisconnectTolerance: 3,
     browserDisconnectTimeout: 180000,
diff --git a/karma.conf.js b/karma.conf.js
index 75e175b..3f88e42 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -64,7 +64,13 @@ module.exports = function (config) {
     colors: true,
     logLevel: config.LOG_INFO,
     autoWatch: true,
-    browsers: ['ChromeHeadless'],
+    browsers: ['ChromeHeadlessNoSandbox'],
+    customLaunchers: {
+      ChromeHeadlessNoSandbox: {
+        base: 'ChromeHeadless',
+        flags: ['--no-sandbox'],
+      },
+    },
     captureTimeout: 180000,
     browserDisconnectTolerance: 3,
     browserDisconnectTimeout: 180000,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to