New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
statsd: restore support for {influx,librato,stackdriver} backends #32051
Conversation
d051622
to
18ce19c
Compare
I think it might be the best option to add a full-blown testcase for |
@garbas I added a simple testcase and removed the WIP label. If everything is fine for you, we can merge this now :-) |
e4452e0
to
d582406
Compare
@GrahamcOfBorg test statsd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure for system: x86_64-linux
error: attribute ‘statsd’ in selection path ‘tests.statsd’ not found
If your test is not in |
ah good to know :-) |
d582406
to
d7157a1
Compare
@GrahamcOfBorg test statsd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure for system: x86_64-linux
error: anonymous function at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-zoidberg/nixos/tests/statsd.nix:1:25 called with unexpected argument ‘system’, at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-zoidberg/nixos/tests/make-test.nix:5:41
@Mic92 how does the bot call these tests? (it's actually the first test I contribute to nixpkgs and I just used |
These packages will be placed into an environment using `backendsToPackages`. This function explicitly maps backends to `pkgs.nodePackages.${type}` unless it's a builtin. This ensures that only valid backends that work on NixOS are used (if not, the build already breaks at evaluation time). The log will be redirected to `stdout` to be able to watch the entire output using `journalctl`. Configuration parameters for the backends need to be set using `services.statsd.extraConfig` as each backend has its own options and all of them shouldn't be validated and checked explicitly and manually.
d7157a1
to
3dff2ce
Compare
@garbas I just resolved the merge conflict introduced by the autogenerated node2nix expressions, so this should be mergable again :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tnx!
Motivation for this change
adds backends (follow-up for #31235)
These packages will be placed into an environment using
backendsToPackages
. This function explicitly maps backends topkgs.nodePackages.${type}
unless it's a builtin (some backendsare directly available in the
statsd
source tree). This ensures that onlyvalid backends that work on NixOS are used (if not, the build already
breaks at evaluation time).
The log will be redirected to
stdout
to be able to watch the entireoutput using
journalctl
.Configuration parameters for the backends need to be set using
services.statsd.extraConfig
as each backend has its own options andall of them shouldn't be validated and checked explicitly and manually.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)