summaryrefslogtreecommitdiff
path: root/pkgs/top-level/metrics.nix (follow)
Commit message (Expand)AuthorAgeFilesLines
* pkgs/top-level/metrics.nix: fix the jq to count derivations•••As can be seen on https://hydra.nixos.org/job/nixpkgs/trunk/metrics/metric/nix-env.qaCountBroken the logic is counting `null` entries today. I introduced this regression in dfd90bf4c07b6eb3d101190c2ad2369c92ea52d5 Philip Taron2025-09-181-1/+1
* pkgs/top-level/metrics.nix: use -print0 to insulate us from spaces in findPhilip Taron2025-09-161-1/+1
* pkgs/top-level/metrics.nix: use the configure, build, and install phases•••Per CR feedback, this is better than unpack and install with build jammed into install. Philip Taron2025-09-161-22/+33
* pkgs/top-level/metrics.nix: pass --no-gc-warning so that no spew about --add-...Philip Taron2025-09-161-3/+3
* pkgs/top-level/metrics.nix: turn off aliases in the evaluation•••This mirrors `ci/eval` and also prevents many warnings from being logged. Philip Taron2025-09-161-0/+7
* pkgs/top-level/metrics.nix: use the latest Nix version, just like CIPhilip Taron2025-09-161-1/+1
* pkgs/top-level/metrics.nix: save the raw files, compressing the outputPhilip Taron2025-09-161-6/+16
* pkgs/top-level/metrics.nix: just run nix-env -qa once•••If we save the output, we can use it later with a little `jq`. Philip Taron2025-09-161-11/+6
* pkgs/top-level/metrics.nix: use json, not XML•••It's testing the same thing, and it's useful to have the JSON output. Philip Taron2025-09-161-2/+2
* pkgs/top-level/metrics.nix: use the eval-system parameter to target a specifi...Philip Taron2025-09-161-8/+9
* pkgs/top-level/metrics.nix: log out the statistics using jq with a headerPhilip Taron2025-09-161-2/+4
* pkgs/top-level/metrics.nix: convince the time command to output JSON•••Also, name the JSON files with the .json extension and the name of the run being produced. Philip Taron2025-09-161-8/+35
* pkgs/top-level/metrics.nix: remove the aggressive variants•••They've been the same as the non-aggressive variants since Jan 13, 2019 (61b8c03a78caa) Philip Taron2025-09-161-17/+1
* pkgs/top-level/metrics.nix: use __structuredAttrsPhilip Taron2025-09-161-10/+16
* pkgs/top-level/metrics.nix: tidy up variables and quoting•••We also allow the lines to be unbroken. Philip Taron2025-09-161-27/+26
* pkgs/top-level/metrics.nix: add meta explaining this filePhilip Taron2025-09-161-0/+81
* pkgs/top-level/metrics.nix: use stdenvNoCC.mkDerivation instead of runCommandPhilip Taron2025-09-161-15/+28
* treewide: format all inactive Nix files•••After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \ --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7 result/bin/apply-formatting $NIXPKGS_PATH Silvan Mosberger2024-12-101-1/+8
* metrics job: schedule on any machine, for now•••For non-time metrics it doesn't matter, and those seem more important anyway. So better this than nothing, for now. Vladimír Čunát2024-07-181-1/+2
* Revert "metrics job: schedule on any machine, for now"Vladimír Čunát2022-06-121-2/+1
* metrics job: schedule on any machine, for now•••For non-time metrics it doesn't matter, and those seem more important anyway. So better this than nothing, for now. Vladimír Čunát2022-05-131-1/+2
* Revert "metrics: drop requiredSystemFeatures; /cc #76776"•••This reverts commit c7aef6dedb29392ef2aad8fe70fa9745597c84ea. I believe it should work again since today, though I'm being a bit conservative, pushing to `staging-next` instead of `master`. Vladimír Čunát2021-11-141-2/+1
* metrics: set NIX_STORE_DIR•••Mirror ca5ecbed4b5775f873fa15d7bf064b00d9e2862a to workaround NIX_STATE_DIR errors. As with the other workaround, see: https://github.com/NixOS/nix/issues/5495#issuecomment-963949707 Matthew Mazzanti2021-11-111-1/+2
* Fix metrics job•••It was failing because the pager wasn't set, causing the message error: executing '': No such file or directory to pollute the JSON output. https://hydra.nixos.org/build/154768851 Issue #76776. Eelco Dolstra2021-09-271-4/+3
* metrics: drop requiredSystemFeatures; /cc #76776•••The build hasn't worked for months (even on 20.09). Now also my dedicated machine broke, and I don't feel like maintaining it until the job has any chance of succeeding. (I don't know why exactly it's failing.) Vladimír Čunát2021-03-281-1/+2
* Don't set $NIX_DB_DIR•••This variable was removed in 2016. Eelco Dolstra2020-08-241-1/+0
* metrics: don’t output nix output for qaDrv*•••These have a hug log that will hit “log limit exceeded” on Hydra. This commit skips the biggest offenders - qaDrv and qaDrvAggresive, giving smaller logs. https://hydra.nixos.org/build/94487387 Matthew Bauer2019-06-071-1/+10
* 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. Vladimír Čunát2019-03-011-3/+4
* metrics.nix: add nix-env.qaCountDrv metric•••Before ae16dd1a15dfbe29c6a1de61c4cc23e2cd6487f0 `nix-env.qaCount` and `nix-env.qaCountDrv` were equivalent, after that change that is no longer the case so this needs a separate metric now. Jan Malakhovski2019-02-221-0/+3
* metrics job: update for nix-2.2•••Fixes https://github.com/NixOS/nixpkgs/issues/53858 I think I managed to keep all numbers the same as before nix-2.2. Vladimír Čunát2019-01-131-8/+13
* metrics.nix: add a metrick for the current number of packages as seen by nix-envJan Malakhovski2018-11-171-0/+3
* Revert "release/metrics: drop requiredSystemFeatures"•••This reverts commit 1d0caa7b035875cee70bf8072b46b19e4965c65b. Thanks to @vcunat we have a 'benchmark' machine again! Eelco Dolstra2018-07-301-1/+1
* release/metrics: drop requiredSystemFeatures•••Lack of a "benchmark" machine on Hydra prevents it from building, and that blocks channels. Vladimír Čunát2018-07-261-1/+1
* metrics: fix "values" to be count not bytes, to match prev behavior•••https://github.com/NixOS/nixpkgs/pull/36896#discussion_r174163744 Will Dietz2018-03-131-1/+1
* metrics: fixup sed expr to work with Nix 2Will Dietz2018-03-121-1/+1
* nixpkgs.metrics: --show-trace into the log•••If the log is empty, it's difficult to debug problems. This case: https://github.com/NixOS/nixpkgs/pull/30252/files#r153038794 Vladimír Čunát2017-11-251-4/+7
* nixpkgs-metrics: Suppress build productsEelco Dolstra2016-03-241-0/+1
* Keep track of Nixpkgs/NixOS evaluation statisticsEelco Dolstra2016-03-241-0/+54