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.
This commit is contained in:
Maximilian Bosch 2023-06-12 17:49:09 +02:00
parent bd77d4ae46
commit a88de40ede
No known key found for this signature in database
GPG Key ID: 9A6EEA275CA5BE0A

View File

@ -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
'';