!zghijEASpYQWYFzriI:nixos.org

Hydra

397 Members
114 Servers

Load older messages


SenderMessageTime
4 Nov 2021
@mic92:nixos.devMic92Why is the prometheus endpoint per job and not per jobset?18:36:55
@mic92:nixos.devMic92Nevermind. I can just use telegraf's sql input for that.18:45:20
@grahamc:nixos.org@grahamc:nixos.orgwhat would you like it to say per jobset?18:56:55
@grahamc:nixos.org@grahamc:nixos.org one reason I didn't make it per jobset is indeed I wanted to monitor a specific job 18:57:13
@grahamc:nixos.org@grahamc:nixos.orgso, probably the reason is nobody built it yet :P18:57:23
@mic92:nixos.devMic92grahamc: getting an alert if one of my build fails: https://hydra.thalheim.io/eval/16018:58:45
@grahamc:nixos.org@grahamc:nixos.orggotcha, so just monitor the entire jobset instead of an aggregate job18:59:13
@grahamc:nixos.org@grahamc:nixos.orgmakes good sense to me18:59:16
@mic92:nixos.devMic92@grahamc: only issue is if you use this endpoint on nixpkgs with 100.000 jobs per jobset.19:00:04
@grahamc:nixos.org@grahamc:nixos.orgyeah, that is also why I haven't tried to implement it :)19:00:30
@grahamc:nixos.org@grahamc:nixos.orgthere is a gulf between "Most users" and "hydra.nixos.org" on appropriate features19:00:55
@janne.hess:helsinki-systems.dedas_j sounds like return if Sys::Hostname == "NAME_OF_THE_NIXOS_HOST" 19:01:42
@grahamc:nixos.org@grahamc:nixos.orgpuke19:01:52
@janne.hess:helsinki-systems.dedas_j * sounds like return if Sys::Hostname::hostname == "NAME_OF_THE_NIXOS_HOST" 19:01:53
@grahamc:nixos.org@grahamc:nixos.orgI mean, finding ways to make the queries efficient would be cool19:02:21
@mic92:nixos.devMic92@cole-h: can I use type == "githubpulls" with this flake-enabled repos? https://github.com/DeterminateSystems/terraform-provider-hydra/blob/49a6e07486ce42894b859ebc44cb6dbf36d07902/examples/default/main.tf#L6119:28:08
@cole-h:matrix.orgcole-h IIRC githubpulls is a legacy input type, so I don't think so... 19:54:10
@cole-h:matrix.orgcole-hCan you do that if you create it from the Hydra web UI?19:54:25
@mic92:nixos.devMic92cole-h: you are right. That's not a thing. That's a weird limitation.19:59:54
@grahamc:nixos.org@grahamc:nixos.org ma27 has a PR which makes it possible to add inputs to a flake. I was hesitant because I think the UI is destined to be confusing, but that hasn't stopped much in Hydra before :P 20:32:36
@ma27:nicht-so.sexyma27I added a big warning above the form if flakes are supposed to be used. So it's ugly, but the behavior shouldn't be too unexpected :) using this patch for a few months btw and it seems to work fine for me :) 20:43:22
@mic92:nixos.devMic92well. I think I can live with the current approach: https://github.com/Mic92/dotfiles/blob/master/nixos/eve/modules/hydra/jobs.tf20:44:38
@ma27:nicht-so.sexyma27yup, that's what I planned to do in my setup at some point anyway, but I still think it makes sense to support that in the UI as well %) 20:49:31
@mic92:nixos.devMic92wow, the github pr integration is super hacky: https://github.com/cleverca22/hydra-configs/blob/eae3caea99ca01af1b9641e375112f0036a30e70/not-os/default.nix#L4421:56:26
@cleverca22:matrix.orgcleverca22yep21:56:55
@cleverca22:matrix.orgcleverca22hydra has a special input type, that will fetch the pull list and pass it to you as json21:57:07
@cleverca22:matrix.orgcleverca22your nix code is then responsible for incorporating that into the declarative jobsets21:57:28
@mic92:nixos.devMic92ma27: Would this PR enable github pull request with flakes? https://github.com/NixOS/hydra/pull/922/files I mean I would the same json file that one cannot use it in flakes.22:09:03
@ma27:nicht-so.sexyma27it works fine for gitea status, IIRC the github pr plugin uses a similar mechanism, so most likely yes :) 22:11:10
@mic92:nixos.devMic92the github pullrequest plugin generates a file like this: https://github.com/cleverca22/hydra-configs/blob/eae3caea99ca01af1b9641e375112f0036a30e70/sample-pr.json22:13:45

Show newer messages


Back to Room ListRoom Version: 6