Merge pull request #139633 from edolstra/fix-metrics

Fix the metrics job
main
Eelco Dolstra 3 years ago committed by GitHub
commit 8b725cf898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      pkgs/top-level/metrics.nix
  2. 1
      pkgs/top-level/release.nix

@ -9,6 +9,7 @@ runCommand "nixpkgs-metrics"
}
''
export NIX_STATE_DIR=$TMPDIR
export NIX_PAGER=
nix-store --init
mkdir -p $out/nix-support
@ -24,13 +25,11 @@ runCommand "nixpkgs-metrics"
# 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 NIX_SHOW_STATS_PATH=stats-nix time -o stats-time "$@" >/dev/null ;;
*)
NIX_SHOW_STATS=1 time -o stats-time "$@" 2>stats-nix ;;
NIX_SHOW_STATS=1 NIX_SHOW_STATS_PATH=stats-nix time -o stats-time "$@" ;;
esac
sed '/^warning:/d' -i stats-nix
cat stats-nix; echo; cat stats-time; echo
x=$(jq '.cpuTime' < stats-nix)

@ -90,6 +90,7 @@ let
meta.description = "Release-critical builds for the Nixpkgs unstable channel";
constituents =
[ jobs.tarball
jobs.metrics
jobs.manual
jobs.lib-tests
jobs.pkgs-lib-tests

Loading…
Cancel
Save