3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
Vladimír Čunát 2019-03-01 13:59:30 +01:00
parent 36aa5b691d
commit a593f64cd7
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -52,11 +52,12 @@ runCommand "nixpkgs-metrics"
run nix-env.qa nix-env -f ${nixpkgs} -qa
run nix-env.qaDrv nix-env -f ${nixpkgs} -qa --drv-path --meta --xml
# It's slightly unclear which of the set to track: qaCount, qaCountDrv, qaCountBroken.
num=$(nix-env -f ${nixpkgs} -qa | wc -l)
echo "nix-env.qaCount $num" >> $out/nix-support/hydra-metrics
num=$(nix-env -f ${nixpkgs} -qa --drv-path | wc -l)
echo "nix-env.qaCountDrv $num" >> $out/nix-support/hydra-metrics
qaCountDrv=$(nix-env -f ${nixpkgs} -qa --drv-path | wc -l)
num=$((num - $qaCountDrv))
echo "nix-env.qaCountBroken $num" >> $out/nix-support/hydra-metrics
# TODO: this has been ignored for some time
# GC Warning: Bad initial heap size 128k - ignoring it.