From 542a704785390e8239b1eb872c276a56473a6f58 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 2 Mar 2023 13:39:51 +0100 Subject: [PATCH] home-assistant-component-tests: Reduce to two parallel test runners MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkgs/servers/home-assistant/tests.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/tests.nix b/pkgs/servers/home-assistant/tests.nix index 39e6ab7478d3..182034818e34 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}" ];