From b81ef19d94004db513bfb8b63d27c59f971c96f5 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Fri, 17 Sep 2021 16:20:28 -0700 Subject: [PATCH] home-assistant: inherit NIX_BUILD_CORES for test suite "auto" will impurely detect how many threads are available. Running the test suite with 128 threads will also consume about 40GB of ram. --- pkgs/servers/home-assistant/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 9cd83d69eec3..866bbe25a866 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -743,7 +743,7 @@ in with py.pkgs; buildPythonApplication rec { pytestFlagsArray = [ # parallelize test run - "--numprocesses auto" + "--numprocesses $NIX_BUILD_CORES" # assign tests grouped by file to workers "--dist loadfile" # retry racy tests that end in "RuntimeError: Event loop is closed"