From 0cbeb283cff63669b9f19bdec6267cd6f34cca0b Mon Sep 17 00:00:00 2001 From: IndeedNotJames Date: Tue, 9 May 2023 15:21:53 +0200 Subject: [PATCH 1/2] nixosTests.gitea,nixosTests.forgejo: fix test on `i686-linux` Fail pattern: 1. Unsuspecting `qemu-kvm` notice: ``` server # qemu-kvm: at most 2047 MB RAM can be simulated ``` 2. Hard fail ``` self.shell.send(out_command.encode()) BrokenPipeError: [Errno 32] Broken pipe ``` (Took me a while to consider those lines are related) --- nixos/tests/gitea.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/gitea.nix b/nixos/tests/gitea.nix index c38aad1f44ec..4e6f9c79a6f9 100644 --- a/nixos/tests/gitea.nix +++ b/nixos/tests/gitea.nix @@ -30,7 +30,7 @@ let nodes = { server = { config, pkgs, ... }: { - virtualisation.memorySize = 2048; + virtualisation.memorySize = 2047; services.gitea = { enable = true; database = { inherit type; }; From 260ddac1464432abac6f6784d299012d6f9c046b Mon Sep 17 00:00:00 2001 From: IndeedNotJames Date: Tue, 9 May 2023 15:22:35 +0200 Subject: [PATCH 2/2] nixosTests.wiki-js: fix test on `i686-linux` Fail pattern: 1. Unsuspecting `qemu-kvm` notice: ``` server # qemu-kvm: at most 2047 MB RAM can be simulated ``` 2. Hard fail ``` self.shell.send(out_command.encode()) BrokenPipeError: [Errno 32] Broken pipe ``` (Took me a while to consider those lines are related) --- nixos/tests/wiki-js.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/wiki-js.nix b/nixos/tests/wiki-js.nix index c3541be5d8b5..fd054a9c5909 100644 --- a/nixos/tests/wiki-js.nix +++ b/nixos/tests/wiki-js.nix @@ -5,7 +5,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : { }; nodes.machine = { pkgs, ... }: { - virtualisation.memorySize = 2048; + virtualisation.memorySize = 2047; services.wiki-js = { enable = true; settings.db.host = "/run/postgresql";