hydra icon indicating copy to clipboard operation
hydra copied to clipboard

Allow customize flake attribute built.

Open jbgi opened this issue 3 years ago • 4 comments

Use case: for a same repo we can have multiple jobsets, eg, one that run integration tests; one that does do cache test failures. Ie. this is to replace the lack of inputs feature for flake jobsets.

jbgi avatar Feb 07 '22 16:02 jbgi

this works well! thanks

tomberek avatar May 19 '22 05:05 tomberek

This PR is probably unnecessary: I did not realized that the flake hydraJobs attribute can be a function and receive the same inputs attribute set as release.nix. The only issue being with nix flake check/nix flake show: https://github.com/NixOS/nix/issues/7031

jbgi avatar Sep 13 '22 12:09 jbgi

This has still been useful as a way to make the jobsets separate. Rebase of the patch is here: https://github.com/NixOS/hydra/commit/7f5cf4d6af8e0f9c0765e3203c19a2ae771382b1

tomberek avatar Nov 05 '22 14:11 tomberek

@edolstra what is your opinion on this? Should this be supported?

dasJ avatar Nov 05 '22 14:11 dasJ