hydra icon indicating copy to clipboard operation
hydra copied to clipboard

Make declarative jobsets a lot more usable

Open dasJ opened this issue 5 years ago • 5 comments

  • Document the fields
  • Default most fields
  • Mostly validate fields
  • Allow rich values for enabled and type
  • Print all errors instead of only the first

Errors look like this:

image

dasJ avatar Sep 13 '20 15:09 dasJ

Beyond the merge conflicts present, I think this PR would be easier to review and merge if the validation of the data and fields were its own function, with tests written to cover at least its most important cases.

I've rebased the rest of it (docs, the migration) in the attached patch, hopefully that helps: 0001-Partially-rebase-814-to-master.patch.txt

grahamc avatar Mar 08 '21 15:03 grahamc

cc @grahamc as your watch was probably dismissed by me marking this PR as a draft

dasJ avatar Mar 09 '21 18:03 dasJ

@grahamc Since this also fixes a bug I introduced, do you want me to make a PR with only that bugfix so it gets to master faster or does this have the change to be merged soon?

dasJ avatar Mar 11 '21 11:03 dasJ

Probably a good idea to make it a separate PR, even though I'd like to

merge this one soon too!

On March 11, 2021, GitHub @.***> wrote:

@grahamc https://github.com/grahamc Since this also fixes a bug I introduced, do you want me to make a PR with only that bugfix so it gets to master faster or does this have the change to be merged soon?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NixOS/hydra/pull/814#issuecomment-796654615, or unsubscribe <https://github.com/notifications/unsubscribe- auth/AAASXLDGLTXU5WSMSBC5XZDTDCPRPANCNFSM4RKXN5TQ>.

grahamc avatar Mar 11 '21 12:03 grahamc

I pulled the fix for #889 out in to https://github.com/NixOS/hydra/pull/891, since I'd really like to see the validation here made in to its own function.

grahamc avatar Mar 16 '21 13:03 grahamc