From 47f6fa0939b95dcced841ec522bb7e4f95c68073 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Fri, 20 Sep 2024 07:33:10 +0000 Subject: [PATCH 1/2] hydra: 0-unstable-2024-09-15 -> 0-unstable-2024-09-20 --- pkgs/by-name/hy/hydra/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/hy/hydra/package.nix b/pkgs/by-name/hy/hydra/package.nix index ca09fcee4868e..661eb4d0231cd 100644 --- a/pkgs/by-name/hy/hydra/package.nix +++ b/pkgs/by-name/hy/hydra/package.nix @@ -124,13 +124,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "hydra"; - version = "0-unstable-2024-09-15"; + version = "0-unstable-2024-09-20"; src = fetchFromGitHub { owner = "NixOS"; repo = "hydra"; - rev = "b6f44b5cd020d95c405e149e4c3a0e9dc785e31a"; - hash = "sha256-dXDOX6IvAeznNoh73P2QWstBJ/jqfzEKjgNvdfsGTuY="; + rev = "44248d3cf4162944ec2e6a45f8cc058758bf5a86"; + hash = "sha256-WJ7M/1a8j5gRJJVzCJL6JrkGPckD5ZhKzTlmiKNdtm0="; }; buildInputs = [ From 2ff3fa0e8704358832a6df0e42fb78217b5d8c1b Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Mon, 2 Sep 2024 09:21:01 +1000 Subject: [PATCH 2/2] nixos/hydra: set a default for hydra-compress-logs service follow up from 0c454e93171f0fcb4d0edf4a7c7c0ab34ad5ae31 --- .../services/continuous-integration/hydra/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/continuous-integration/hydra/default.nix b/nixos/modules/services/continuous-integration/hydra/default.nix index c4bad59a6fb6b..a8a8973f25bac 100644 --- a/nixos/modules/services/continuous-integration/hydra/default.nix +++ b/nixos/modules/services/continuous-integration/hydra/default.nix @@ -515,10 +515,12 @@ in '' set -eou pipefail compression=$(sed -nr 's/compress_build_logs_compression = ()/\1/p' ${baseDir}/hydra.conf) - if [[ $compression == zstd ]]; then + if [[ $compression == "" ]]; then + compression="bzip2" + elif [[ $compression == zstd ]]; then compression="zstd --rm" fi - find ${baseDir}/build-logs -type f -name "*.drv" -mtime +3 -size +0c | xargs -r $compression --force --quiet + find ${baseDir}/build-logs -type f -name "*.drv" -mtime +3 -size +0c | xargs -r "$compression" --force --quiet ''; startAt = "Sun 01:45"; serviceConfig.Slice = "system-hydra.slice";