about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-03-02 13:39:51 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-03-02 22:12:01 +0000
commit542a704785390e8239b1eb872c276a56473a6f58 (patch)
treebbc83ab51cb0db7de9ea87f2ca51c51099e0dd02 /pkgs/servers
parentb9d670efc30385acfdda8d739058b7bf263b38b7 (diff)
home-assistant-component-tests: Reduce to two parallel test runners
The component tests are rather short, and each runner has a certain
setup cost. So we're better off, just starting fewer of them and have
them do more work.

It also works around a race condition, that upstream likely isn't
running into, because of the hardware specsĀ¹ for the runners.

[1] https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/home-assistant/tests.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/home-assistant/tests.nix b/pkgs/servers/home-assistant/tests.nix
index 39e6ab7478d30..182034818e348 100644
--- a/pkgs/servers/home-assistant/tests.nix
+++ b/pkgs/servers/home-assistant/tests.nix
@@ -88,7 +88,7 @@ in lib.listToAttrs (map (component: lib.nameValuePair component (
     dontUsePytestXdist = true;
 
     pytestFlagsArray = lib.remove "tests" old.pytestFlagsArray
-      ++ [ "--numprocesses=4" ]
+      ++ [ "--numprocesses=2" ]
       ++ extraPytestFlagsArray.${component} or [ ]
       ++ [ "tests/components/${component}" ];