From 8bb03d38917964002af4dafd0f9c61f057349c4c Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Fri, 7 Jun 2019 15:30:54 -0400 Subject: [PATCH] =?UTF-8?q?metrics:=20don=E2=80=99t=20output=20nix=20outpu?= =?UTF-8?q?t=20for=20qaDrv*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These have a hug log that will hit “log limit exceeded” on Hydra. This commit skips the biggest offenders - qaDrv and qaDrvAggresive, giving smaller logs. https://hydra.nixos.org/build/94487387 --- pkgs/top-level/metrics.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/metrics.nix b/pkgs/top-level/metrics.nix index e60f42e14e2..244b0ce7a66 100644 --- a/pkgs/top-level/metrics.nix +++ b/pkgs/top-level/metrics.nix @@ -19,7 +19,16 @@ runCommand "nixpkgs-metrics" shift echo "running $@" - NIX_SHOW_STATS=1 time -o stats-time "$@" 2>stats-nix + + case "$name" in + # Redirect stdout to /dev/null to avoid hitting "Output Limit + # Exceeded" on Hydra. + nix-env.qaDrv|nix-env.qaDrvAggressive) + NIX_SHOW_STATS=1 time -o stats-time "$@" 2>stats-nix >/dev/null ;; + *) + NIX_SHOW_STATS=1 time -o stats-time "$@" 2>stats-nix ;; + esac + sed '/^warning:/d' -i stats-nix cat stats-nix; echo; cat stats-time; echo