mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 06:10:03 +00:00
repath-studio: fix flaky tests in sandbox
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
(cherry picked from commit afeb7f7963)
This commit is contained in:
committed by
github-actions[bot]
parent
2303480da9
commit
2798a785a6
23
pkgs/by-name/re/repath-studio/fix-karma-sandbox.patch
Normal file
23
pkgs/by-name/re/repath-studio/fix-karma-sandbox.patch
Normal 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
|
||||
})
|
||||
}
|
||||
@@ -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
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user