mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 14:41:27 +00:00
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:
parent
fef728b6ea
commit
8bb03d3891
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user