git.iko.soy/typeable/nixpkgs
on master help sign in
Merge #56201: add nix-env.qaCountBroken metric
commit35cf2c82c1bcd2b4dfff66b93f631abf32625d72 authorVladimír Čunát <vcunat@gmail.com> dateFri 1 Mar 2019, 14:01 (8 years ago) parent9f08796a593f64
1 file changed+4
pkgs/top-level/metrics.nix+4
pkgs/top-level/metrics.nix+4
@@ -52,8 +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
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
5761
5862 # TODO: this has been ignored for some time
5963 # GC Warning: Bad initial heap size 128k - ignoring it.