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
This commit is contained in:
Matthew Bauer 2019-06-07 15:30:54 -04:00
parent fef728b6ea
commit 8bb03d3891

View file

@ -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