Skip to content

metrics.nix: add a metrick for the current number of packages as seen by nix-env#49863

Merged
7c6f434c merged 1 commit intoNixOS:masterfrom
oxij:tree/packages-metric
Nov 22, 2018
Merged

metrics.nix: add a metrick for the current number of packages as seen by nix-env#49863
7c6f434c merged 1 commit intoNixOS:masterfrom
oxij:tree/packages-metric

Conversation

@oxij
Copy link
Member

@oxij oxij commented Nov 7, 2018

Motivation for this change

A tiny piece of #45841 I would like to be applied anyway.

Things done

It is a bit hacky, but

  • I using this for quite a while and I'm very happy about it.

@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Nov 7, 2018
@oxij
Copy link
Member Author

oxij commented Nov 8, 2018

@edolstra, @vcunat, can we have this one, please? As I noted in #38635 (comment) without this current hydra's metrics don't make that much sense.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about just nix-env -f ${nixpkgs} -qa | wc -l

Also, I'd prefer the name "count" instead of "number"

@oxij oxij force-pushed the tree/packages-metric branch from 761b248 to 9d35a02 Compare November 17, 2018 10:37
@oxij
Copy link
Member Author

oxij commented Nov 17, 2018

How about just nix-env -f ${nixpkgs} -qa | wc -l

The results differ slightly, but that is not particularly important. Changed.

Also, I'd prefer the name "count" instead of "number"

Done.

@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. and removed 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Nov 17, 2018
@7c6f434c 7c6f434c merged commit c5ab75a into NixOS:master Nov 22, 2018
@oxij
Copy link
Member Author

oxij commented Nov 22, 2018 via email

@oxij oxij mentioned this pull request Jan 18, 2019
1 task
@oxij oxij deleted the tree/packages-metric branch August 12, 2023 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants