From f08ee8da38f6a475e05b71da44dde8f3a0d22de9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 17 Jun 2025 21:58:10 +0200 Subject: [PATCH] tests: provide a second cpu core MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provides a small (~7.5%) reduction in the test runtime measured for the external test: Before: ``` Benchmark 1: nix build .#hydraJobs.x86_64-linux.external-unstable --rebuild Time (mean ± σ): 151.737 s ± 1.074 s [User: 0.310 s, System: 0.289 s] Range (min … max): 150.321 s … 153.512 s 10 runs ``` After: ``` Benchmark 1: nix build .#hydraJobs.x86_64-linux.external-unstable --rebuild Time (mean ± σ): 140.647 s ± 1.092 s [User: 0.331 s, System: 0.296 s] Range (min … max): 138.536 s … 142.298 s 10 runs ``` --- tests/lib/config.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/lib/config.nix b/tests/lib/config.nix index fe66875..6708f50 100644 --- a/tests/lib/config.nix +++ b/tests/lib/config.nix @@ -1,4 +1,12 @@ +{ + lib, + ... +}: + { # Testing eval failures that result from stateVersion assertion is out of scope mailserver.stateVersion = 999; + + # Enable second CPU core + virtualisation.cores = lib.mkDefault 2; }