!zghijEASpYQWYFzriI:nixos.org

Hydra

389 Members
109 Servers

Load older messages


SenderMessageTime
19 Aug 2021
@grahamc:nixos.org@grahamc:nixos.orgyeah, I don't really know how automake expects to be used to make this thing get called21:17:36
@grahamc:nixos.org@grahamc:nixos.orgdoes automake automatically call all the targets?21:17:44
@tomberek:matrix.orgtombereki believe TESTS will be turned into targets that are called. https://www.gnu.org/software/automake/manual/html_node/Tests.html21:19:18
@tomberek:matrix.orgtomberekoh, i see what you mean21:21:45
@tomberek:matrix.orgtomberekPL_LOG_COMPILER21:24:48
@tomberek:matrix.orgtomberek you need to set the test runner to be make 21:25:50
@grahamc:nixos.org@grahamc:nixos.orgeh?21:26:04
@grahamc:nixos.org@grahamc:nixos.orgwhat test runner?21:26:14
@tomberek:matrix.orgtomberek
For all tests without a registered extension, the variables LOG_COMPILER, AM_LOG_FLAGS, and LOG_FLAGS may be used.
21:27:06
@tomberek:matrix.orgtombereki think default behavior is for TESTS to be a list of local files, not a list of make targets21:28:45
@grahamc:nixos.org@grahamc:nixos.orghrm21:29:58
@grahamc:nixos.org@grahamc:nixos.orgI have to assume there is a better solution here, I only added it to TESTS because it was right there21:31:11
@tomberek:matrix.orgtombereki'll look after dinner21:34:19
@sternenseemann:systemli.orgsterniI suppose you just can have a #!/usr/bin/env perl script somewhere which is added to TESTS21:34:32
@sternenseemann:systemli.orgsterniand that invokes PerlCritic in the right way21:34:39
@tomberek:matrix.orgtomberek

grahamc (he/him):

diff --git a/Makefile.am b/Makefile.am
index 3a59d6e8..33a0817f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,11 +2,8 @@ SUBDIRS = src t doc
 BOOTCLEAN_SUBDIRS = $(SUBDIRS)
 DIST_SUBDIRS      = $(SUBDIRS)
 EXTRA_DIST        = hydra-module.nix
-TESTS             = perlcritic
-
-.PHONY: perlcritic
-perlcritic:
-	perlcritic .
+TESTS             = src t
+TESTS_ENVIRONMENT = perlcritic
 
 install-data-local: hydra-module.nix
 	$(INSTALL) -d $(DESTDIR)$(datadir)/nix

23:02:09
20 Aug 2021
@grahamc:nixos.org@grahamc:nixos.orgI ended up just, indeed, making a TESTS .pl script to avoid interrupting hairy automake goop: https://github.com/NixOS/hydra/pull/1002/files#diff-a2c2431dcaeb95008ab4c5578c34b5f37f334783f8033f3b7616cf0b4ac3e4b114:45:57
21 Aug 2021
@sternenseemann:systemli.orgsterni changed their display name from sterni (he/him) to sterni[m].22:21:30
@sternenseemann:systemli.orgsterni changed their display name from sterni[m] to sterni.22:21:49
@schuelermine:matrix.orgschuelermine joined the room.22:25:12
24 Aug 2021
@grahamc:nixos.org@grahamc:nixos.organyone have opinions on this PR adding a prometheus exporter?15:13:52
@grahamc:nixos.org@grahamc:nixos.orgoops, this one: https://github.com/NixOS/hydra/pull/100115:14:25
@andi:kack.itandi- this PR? 15:14:28
@andi:kack.itandi-ah15:14:29
@andi:kack.itandi-Probably unrelated to this PR but shouldn't we have Nix options to define all these things? Having to go back to (templated) strings feels pretty counterintuitive.15:15:51
@andi:kack.itandi-Also they are basically not discoverable unless you read the Hydra source (and some of the docs).15:16:18
@grahamc:nixos.org@grahamc:nixos.orgGood question, I, uh -- maybe?15:17:16
@grahamc:nixos.org@grahamc:nixos.orgI should probably put this in the PR template but I'm really looking for patches that is adjacent to / changes config to include docs at a minimum, should it also include module updates? perhaps15:18:36
@andi:kack.itandi-I guess for now it is fine to carry on with the status quo. As soon as some (poor) soul has put in the time to create options for everything (we know of) that changes.15:20:36
@andi:kack.itandi-I left a few comments on the PR. I really don't like the mmap JSON thingy that you explained there. If you wouldn't have explained it I might not have bothered.15:24:11

Show newer messages


Back to Room ListRoom Version: 6