git.iko.soy/typeable/nixpkgs
on master help sign in
nodePackages.statsd: remove

The package/service is broken. Upstream is dead

commit552c2236254271f12342d3ad7a0f7c0bbc81c628 authorJörg Thalheim <joerg@thalheim.io> dateWed 14 Nov 2018, 18:27 (8 years ago) parente15babe
7 files changed+2−66
nixos/modules/misc/ids.nix+2−2 nixos/modules/module-list.nix−1 nixos/tests/all-tests.nix−1 nixos/tests/statsd.nix−51 pkgs/development/node-packages/default-v8.nix−6 pkgs/development/node-packages/node-packages-v8.json−3 pkgs/top-level/all-packages.nix−2
nixos/modules/misc/ids.nix+2−2
@@ -101,7 +101,7 @@
101101 iodined = 66;
102102 #libvirtd = 67; # unused
103103 graphite = 68;
104− statsd = 69;
104+ #statsd = 69; # removed 2018-11-14
105105 transmission = 70;
106106 postgres = 71;
107107 #vboxusers = 72; # unused
@@ -411,7 +411,7 @@
411411 iodined = 66;
412412 libvirtd = 67;
413413 graphite = 68;
414− #statsd = 69; # unused
414+ #statsd = 69; # removed 2018-11-14
415415 transmission = 70;
416416 postgres = 71;
417417 vboxusers = 72;
nixos/modules/module-list.nix−1
@@ -452,7 +452,6 @@
452452 ./services/monitoring/riemann-tools.nix
453453 ./services/monitoring/scollector.nix
454454 ./services/monitoring/smartd.nix
455− ./services/monitoring/statsd.nix
456455 ./services/monitoring/sysstat.nix
457456 ./services/monitoring/systemhealth.nix
458457 ./services/monitoring/teamviewer.nix
nixos/tests/all-tests.nix−1
@@ -190,7 +190,6 @@ in
190190 smokeping = handleTest ./smokeping.nix {};
191191 snapper = handleTest ./snapper.nix {};
192192 solr = handleTest ./solr.nix {};
193− #statsd = handleTest ./statsd.nix {}; # statsd is broken: #45946
194193 strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
195194 sudo = handleTest ./sudo.nix {};
196195 switchTest = handleTest ./switch-test.nix {};
nixos/tests/statsd.nixdeleted−51
@@ -1,51 +0,0 @@
1−import ./make-test.nix ({ pkgs, lib, ... }:
2−
3−with lib;
4−
5−{
6− name = "statsd";
7− meta = with pkgs.stdenv.lib.maintainers; {
8− maintainers = [ ma27 ];
9− };
10−
11− machine = {
12− services.statsd.enable = true;
13− services.statsd.backends = [ "statsd-influxdb-backend" "console" ];
14− services.statsd.extraConfig = ''
15− influxdb: {
16− username: "root",
17− password: "root",
18− database: "statsd"
19− }
20− '';
21−
22− services.influxdb.enable = true;
23−
24− systemd.services.influx-init = {
25− description = "Setup Influx Test Base";
26− after = [ "influxdb.service" ];
27− before = [ "statsd.service" ];
28−
29− script = ''
30− echo "CREATE DATABASE statsd" | ${pkgs.influxdb}/bin/influx
31− '';
32− };
33− };
34−
35− testScript = ''
36− $machine->start();
37− $machine->waitForUnit("statsd.service");
38− $machine->waitForOpenPort(8126);
39−
40− # check state of the `statsd` server
41− $machine->succeed('[ "health: up" = "$(echo health | nc 127.0.0.1 8126 -w 120 -N)" ];');
42−
43− # confirm basic examples for metrics derived from docs:
44− # https://github.com/etsy/statsd/blob/v0.8.0/README.md#usage and
45− # https://github.com/etsy/statsd/blob/v0.8.0/docs/admin_interface.md
46− $machine->succeed("echo 'foo:1|c' | nc -u -w 0 127.0.0.1 8125");
47− $machine->succeed("echo counters | nc -w 120 127.0.0.1 8126 -N | grep foo");
48− $machine->succeed("echo 'delcounters foo' | nc -w 120 127.0.0.1 8126 -N");
49− $machine->fail("echo counters | nc -w 120 127.0.0.1 8126 -N | grep foo");
50− '';
51−})
pkgs/development/node-packages/default-v8.nix−6
@@ -90,12 +90,6 @@ nodePackages // {
9090 buildInputs = [ pkgs.automake pkgs.autoconf nodePackages.node-gyp-build ];
9191 };
9292
93− statsd = nodePackages.statsd.override {
94− # broken with node v8, dead upstream,
95− # see #45946 and https://github.com/etsy/statsd/issues/646
96− meta.broken = true;
97− };
98−
9993 webdrvr = nodePackages.webdrvr.override {
10094 buildInputs = [ pkgs.phantomjs ];
10195
pkgs/development/node-packages/node-packages-v8.json−3
@@ -102,9 +102,6 @@
102102, "snyk"
103103, "socket.io"
104104, "stackdriver-statsd-backend"
105−, "statsd"
106−, "statsd-influxdb-backend"
107−, "statsd-librato-backend"
108105, "svgo"
109106, "swagger"
110107, "tern"
pkgs/top-level/all-packages.nix−2
@@ -19000,8 +19000,6 @@ with pkgs;
1900019000
1900119001 stella = callPackage ../misc/emulators/stella { };
1900219002
19003− statsd = nodePackages.statsd;
19004−
1900519003 linuxstopmotion = callPackage ../applications/video/linuxstopmotion { };
1900619004
1900719005 sweethome3d = recurseIntoAttrs ( (callPackage ../applications/misc/sweethome3d { })