git.iko.soy/typeable/nixpkgs
on master help sign in
metrics: don’t output nix output for qaDrv*

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

commit8bb03d38917964002af4dafd0f9c61f057349c4c authorMatthew Bauer <mjbauer95@gmail.com> dateFri 7 Jun 2019, 15:30 (7 years ago) parentfef728b
1 file changed+10−1
pkgs/top-level/metrics.nix+10−1
pkgs/top-level/metrics.nix+10−1
@@ -19,7 +19,16 @@ runCommand "nixpkgs-metrics"
1919 shift
2020
2121 echo "running $@"
22− NIX_SHOW_STATS=1 time -o stats-time "$@" 2>stats-nix
22+
23+ case "$name" in
24+ # Redirect stdout to /dev/null to avoid hitting "Output Limit
25+ # Exceeded" on Hydra.
26+ nix-env.qaDrv|nix-env.qaDrvAggressive)
27+ NIX_SHOW_STATS=1 time -o stats-time "$@" 2>stats-nix >/dev/null ;;
28+ *)
29+ NIX_SHOW_STATS=1 time -o stats-time "$@" 2>stats-nix ;;
30+ esac
31+
2332 sed '/^warning:/d' -i stats-nix
2433
2534 cat stats-nix; echo; cat stats-time; echo