From cca22fb9cebb583251da910f6ca65f53f6911e06 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 28 Feb 2024 17:06:37 +0000 Subject: [PATCH 1/2] minio: 2024-02-24T17-11-14Z -> 2024-02-26T09-33-48Z --- pkgs/servers/minio/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/minio/default.nix b/pkgs/servers/minio/default.nix index 2936aa6a8736..3fb9ecc28f38 100644 --- a/pkgs/servers/minio/default.nix +++ b/pkgs/servers/minio/default.nix @@ -21,13 +21,13 @@ let in buildGoModule rec { pname = "minio"; - version = "2024-02-24T17-11-14Z"; + version = "2024-02-26T09-33-48Z"; src = fetchFromGitHub { owner = "minio"; repo = "minio"; rev = "RELEASE.${version}"; - hash = "sha256-LD32cNKvW0mfYeXHNOqgiWXAiHjWJrorRqbQkosjaNE="; + hash = "sha256-V5Pmp36YA0u1Z2SBNdJZAHQuA3PgVKHmIJlDElhS24s="; }; vendorHash = "sha256-0EymK7jQhr+NJDg1zgWpcniV5zZ33Av6zpq0IDuWw7M="; From 7305821c58b9d7dbd493e7fb847a0480ffa5cb08 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Wed, 31 Jan 2024 22:22:02 +0100 Subject: [PATCH 2/2] tests/minio: fix broken minio test Since last update minio pre allocates 2GiB of memory, so the test VM needs more than that to not run out of memory. We also remove the time based tests as it makes the test non deterministic --- nixos/tests/minio.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/tests/minio.nix b/nixos/tests/minio.nix index ece4864f771c..67eb0cd88440 100644 --- a/nixos/tests/minio.nix +++ b/nixos/tests/minio.nix @@ -43,17 +43,17 @@ import ./make-test-python.nix ({ pkgs, ... }: # Minio requires at least 1GiB of free disk space to run. virtualisation.diskSize = 4 * 1024; + + # Minio pre allocates 2GiB or memory, reserve some more + virtualisation.memorySize = 4096; }; }; testScript = '' - import time start_all() # simulate manually editing root credentials file machine.wait_for_unit("multi-user.target") - machine.copy_from_host("${credsPartial}", "${rootCredentialsFile}") - time.sleep(3) machine.copy_from_host("${credsFull}", "${rootCredentialsFile}") machine.wait_for_unit("minio.service")