NixOS / hydra

Hydra, the Nix-based continuous build system
http://nixos.org/hydra
GNU General Public License v3.0
1.1k stars 291 forks source link

Get still failing jobs in a jobset #1282

Closed lucasew closed 1 year ago

lucasew commented 1 year ago

Is your feature request related to a problem? Please describe. I want to fetch which packages are failing to build to mark them as broken so hydra doesn't try to build them until it's fixed. It's kinda easy to do this in the web version, but to build an automation around it the first step is to fetch the failing jobs, then build something to mark it as broken and send pull requests like how r-ryantm do with package bumps.

Describe the solution you'd like A JSON API route to fetch which jobs are in the "Still failing jobs" row.

Describe alternatives you've considered Marking as broken manually: boring AF

Web scraping: would work, but it's very sensitive about how the HTML is structured

Additional context Experimenting with the NixOS organization hydra. Not a personal instance.

lucasew commented 1 year ago

I kinda found a way to overcome this https://github.com/lucasew/playground/tree/master/nix/hydra-fetch-failed-jobs