repath-studio: fix flaky tests in sandbox

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
(cherry picked from commit afeb7f7963)
This commit is contained in:
phanirithvij
2026-08-31 18:20:44 +05:30
committed by github-actions[bot]
parent 2303480da9
commit 2798a785a6
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -7,7 +7,7 @@
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
- flags: ['--no-sandbox']
+ flags: ['--no-sandbox', '--disable-dev-shm-usage']
},
CustomElectron: {
base: 'Electron',
@@ -42,6 +42,10 @@
outputDir: junitOutputDir + '/karma', // results will be saved as outputDir/browserName.xml
outputFile: undefined, // if included, results will be saved as outputDir/browserName/outputFile
suite: '' // suite will become the package name attribute in xml testsuite element
- }
+ },
+
+ browserDisconnectTimeout: 300000,
+ browserNoActivityTimeout: 300000,
+ pingTimeout: 300000
})
}

View File

@@ -36,6 +36,8 @@ buildNpmPackage (finalAttrs: {
# outputHash of clojureHome changes each time `clojure` is updated
# https://github.com/ngi-nix/ngipkgs/pull/1727#discussion_r2470180998
./pin-clojure.patch
# checks have become flaky in nix build sandbox, increase timeout and disable dev/shm for chrome
./fix-karma-sandbox.patch
./0001-disable-auto-update-check.patch
];