Future of constituents in Hydra? #11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
370a4bf138
started removing those giving the following rationale:However, this is used for the
unstable
job[1][2].Anyways, I hacked the constituents feature into my fork of
nix-eval-jobs
[3] (in a way that doesn't give up the streaming of results[4]) and used that to bring it back to Hydra[5] because I use this on my private Hydra, I just didn't notice for a while because jobs with existing constituents kept these constituents (leading to interesting side-effects when these child jobs were removed).My question is now, do we plan to keep using this kind of feature? If not, what's the ideal solution here?
Sure, my code needs some polishing (it's mostly the old hydra-eval-jobs part stitched together), but I'd be happy to make this ready to integrate here.
cc @delroth @raitobezarius @yu-re-ka @vriska
[1]
564451a037/pkgs/top-level/release.nix (L141)
[2] https://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents
[3]
5ce92e2c4d
[4] well, aggregate jobs are only printed at the very end. But this is IMHO OK since there's usually very few aggregate jobs in contrast to very many non-aggregate jobs.
[5]
cdfc5c81e8
I do think continuing to support aggregate jobs would be ideal, I just didn't really have a reason to reimplement them myself.
If you want to port it feel free - but I think this would possibly be better served by channel scripts instead? In practice the only real way h.n.o uses that is to expose a "is channel broken?" bit, as far as I understand, and channel scripts could be doing this check instead. No strong opinion either way.
Sure, but I think it's pretty useful to have a UI integrated into CI that shows you what's still missing (also over time).
But I guess I'll consider this a positive reaction :D
Will reach out to the nix-eval-jobs maintainers soonish to see if they'd be open to accept a (polished) variant of my current patch.
Oh, also cc @raito for opinions, just noticed your handle here isn't the same as on GitHub 🙃
I'm also in agreement with @delroth on this one. I would prefer carving this feature in the channel-scripts and decreasing the amount of things in Hydra so that it's easier to do things in there, as a general principle.
But this really boils down to: if there's someone willing to port this and convinced this is useful, I wouldn't block anyone from doing that.