diff options
author | talyz <kim.lindberger@gmail.com> | 2021-10-06 10:27:33 +0200 |
---|---|---|
committer | Yuka <yuka@yuka.dev> | 2021-10-28 12:55:01 +0200 |
commit | 2781f84bce11789a7d8127559a6de0d5cdf92e93 (patch) | |
tree | ae665f2daaafdbe1d27af99601937fa6d82d6a3d /nixos/tests/discourse.nix | |
parent | 329a4461a7a1898b3aad13968a232a054422c4fb (diff) |
discourse.tests: Improve test performance
Massively reduce the time it takes running the test by building a proper root disk image and increasing the virtualized core count to 4. This should make it much easier for the tests to pass even on weaker systems. With my laptop (AMD Ryzen 7 PRO 2700U, 32GB RAM) as the reference system, I see the following test run times: - No change: 25 mins, 49 secs - Building a root image: 4 mins, 44 secs - Building a root image and bumping the core count: 3 mins, 6 secs The times include the time it takes to build the image (~40 secs).
Diffstat (limited to 'nixos/tests/discourse.nix')
-rw-r--r-- | nixos/tests/discourse.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/tests/discourse.nix b/nixos/tests/discourse.nix index 7dd39085a007a..cfac5f84a62fa 100644 --- a/nixos/tests/discourse.nix +++ b/nixos/tests/discourse.nix @@ -28,6 +28,8 @@ import ./make-test-python.nix ( { nodes, ... }: { virtualisation.memorySize = 2048; + virtualisation.cores = 4; + virtualisation.useNixStoreImage = true; imports = [ common/user-account.nix ]; |