| 24 Sep 2024 |
| Lach joined the room. | 23:39:00 |
| 25 Sep 2024 |
| @luna-null:matrix.org changed their display name from luna-null to Autumn. | 06:39:21 |
@asymmetric:matrix.dapp.org.uk | is there an API endpoint for something like https://hydra.nixos.org/job/nixos/release-24.05/nixpkgs.rippled.x86_64-linux
i couldn't find it in the API docs so i guess not..? | 12:40:24 |
@asymmetric:matrix.dapp.org.uk | basically an endpoint for a job | 12:40:39 |
K900 | Don't think so | 12:49:35 |
Rick (Mindavi) | https://github.com/Mindavi/nixpkgs-mark-broken/blob/77cb016ea6ae570ec4bb861cd3f00f82e69b200f/nixpkgs-broken.py#L14 | 13:14:35 |
Rick (Mindavi) | I think there's something | 13:14:44 |
Rick (Mindavi) | But maybe not exactly what you'd like | 13:15:20 |
K900 | Yeah that's by job ID | 13:15:34 |
K900 | Which is the number | 13:15:37 |
Rick (Mindavi) | #💡 the hydra endpoint /{project-id}/{jobset-id}/{job-id}/latest (as documented here: https://github.com/NixOS/hydra/issues/1036) will return the latest _working_ build for a job! This makes it very easy to see how long a job has been broken already. | 13:15:41 |
K900 | I think | 13:15:51 |
Rick (Mindavi) | I think so, yeah | 13:16:59 |
Rick (Mindavi) | I'm at least aware there are some gaps where you'd expect endpoints so it's likely the one you want is missing | 13:17:53 |
Rick (Mindavi) | I ran into that too while building that script | 13:17:59 |
Rick (Mindavi) | Still hoping for someone adding those endpoints, but I presume it'll be rewritten before those are added 😅. I looked at the perl but already didn't understand the existing endpoints, let alone adding some | 13:21:45 |
@asymmetric:matrix.dapp.org.uk | where are endpoints defined in the code? | 13:56:30 |
@asymmetric:matrix.dapp.org.uk | also, under what conditions are logs a 404? e.g. for this build failure, no logs are available: https://hydra.nixos.org/build/271530024 | 13:57:04 |
K900 | Because > Cancelled by user | 13:57:30 |
K900 | There was no build to begin with | 13:57:33 |
@asymmetric:matrix.dapp.org.uk | ah right, just saw that after asking, thx | 13:57:52 |
@asymmetric:matrix.dapp.org.uk | just for context i'm thinking of building a matrix bot that periodically fetches job pages for selected packages, and notifies subscribers in case of failures | 13:59:17 |
Rick (Mindavi) | Make sure to rate-limit your bot. Maybe the nixpkgs-review-tools data is public? | 15:02:22 |
Rick (Mindavi) | Would be great if we could not all scrape hydra 😁 | 15:02:39 |
Rick (Mindavi) | I managed to get myself blocked for a short while by overloading hydra | 15:03:04 |
| 26 Sep 2024 |
| Fabián Heredia set a profile picture. | 01:16:06 |
| 27 Sep 2024 |
| SigmaSquadron joined the room. | 00:18:20 |
@asymmetric:matrix.dapp.org.uk | re: this: https://github.com/NixOS/hydra/blob/95003f2eb503f71979856470c7caea946f1ae7f0/doc/manual/src/notifications.md
is this hydra-notify component deployed on prod hydra? are any plugins enabled? i tried looking here for hints, it seems it is deployed but
a) idk if hydra-dev is actually prod b) whether any plugins are configured c) whether there's any interest on the infra people's side to deploy one for build notifications
| 08:43:42 |
K900 | It's deployed but turned off | 08:44:00 |
K900 | And the reason it's turned off is because it takes up stupid amounts of RAM and no one has figured out why | 08:44:14 |