about summary refs log tree commit diff
path: root/pkgs/servers/matrix-synapse
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2023-06-12 17:49:09 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2023-06-12 17:50:33 +0200
commita88de40ede4b945ccf646777f9ea7054a504b9fd (patch)
treec76a9215b165e30ba4cd940830c1b10172191fff /pkgs/servers/matrix-synapse
parentbd77d4ae46a32fda5d28c02b0f2cb33c7f722c8e (diff)
matrix-synapse: disable test parallelism on aarch64-linux
No idea why, but the tests - a random amount of tests to be precise -
fail on aarch64 on each attempt I made. Not reproducible on
x86_64-linux. Disabling parallelism appears to solve the issue.
Diffstat (limited to 'pkgs/servers/matrix-synapse')
-rw-r--r--pkgs/servers/matrix-synapse/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/servers/matrix-synapse/default.nix b/pkgs/servers/matrix-synapse/default.nix
index 74d27cb29521b..5f48ee51e79c7 100644
--- a/pkgs/servers/matrix-synapse/default.nix
+++ b/pkgs/servers/matrix-synapse/default.nix
@@ -86,13 +86,13 @@ buildPythonApplication rec {
 
   doCheck = !stdenv.isDarwin;
 
-  checkPhase = ''
+  checkPhase = let testFlags = lib.optionalString (!stdenv.isAarch64) "-j $NIX_BUILD_CORES"; in ''
     runHook preCheck
 
     # remove src module, so tests use the installed module instead
     rm -rf ./synapse
 
-    PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial -j $NIX_BUILD_CORES tests
+    PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial ${testFlags} tests
 
     runHook postCheck
   '';