git.iko.soy/typeable/nixpkgs
on master help sign in
metrics.nix: track qaCountBroken instead of qaCountDrv

From these three values, I believe it's most meaningful to track one of the higher ones and their difference (qaCountBroken). It's a bit unclear which of the higher ones - I have no data on that, so I kept the one used before the parent commit.

commita593f64cd7404666ac8364486773452cefa9baa9 authorVladimír Čunát <vcunat@gmail.com> dateFri 1 Mar 2019, 13:59 (8 years ago) parent36aa5b6
1 file changed+4−3
pkgs/top-level/metrics.nix+4−3
pkgs/top-level/metrics.nix+4−3
@@ -52,11 +52,12 @@ runCommand "nixpkgs-metrics"
5252 run nix-env.qa nix-env -f ${nixpkgs} -qa
5353 run nix-env.qaDrv nix-env -f ${nixpkgs} -qa --drv-path --meta --xml
5454
55+ # It's slightly unclear which of the set to track: qaCount, qaCountDrv, qaCountBroken.
5556 num=$(nix-env -f ${nixpkgs} -qa | wc -l)
5657 echo "nix-env.qaCount $num" >> $out/nix-support/hydra-metrics
57−
58− num=$(nix-env -f ${nixpkgs} -qa --drv-path | wc -l)
59− echo "nix-env.qaCountDrv $num" >> $out/nix-support/hydra-metrics
58+ qaCountDrv=$(nix-env -f ${nixpkgs} -qa --drv-path | wc -l)
59+ num=$((num - $qaCountDrv))
60+ echo "nix-env.qaCountBroken $num" >> $out/nix-support/hydra-metrics
6061
6162 # TODO: this has been ignored for some time
6263 # GC Warning: Bad initial heap size 128k - ignoring it.