Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydra updates #160202

Closed
wants to merge 7 commits into from
Closed

Hydra updates #160202

wants to merge 7 commits into from

Conversation

lheckemann
Copy link
Member

@lheckemann lheckemann commented Feb 15, 2022

This PR combines changes from #157072, #152427, and a further update to a hydra commit from last week.

TODOs:

  • Decide whether to keep the refactoring, or continue to provide for multiple versions of hydra. I'm leaning towards keeping the refactor in spite of the code churn it causes. The prospect of another version of hydra being reintroduced seems unlikely.
  • Remove multi-versioning from the hydra NixOS tests
  • Potentially clean up commits (some changes, such as the maintainership changes, should probably not be rolled into the commits they currently lie in)

cc @Mindavi @dasJ who have agreed to be co-maintainers, @lovesegfault who opened the refactoring PR.

Closes #157072, closes #152427.

Mindavi and others added 7 commits February 15, 2022 20:03
Adds some new required deps too.
Apply nixpkgs-fmt.
Enable doCheck (tests).

(cherry picked from commit 5898812)
This is a legacy of when a "stable" version of hydra existed, and this
probably won't be coming back.

This also removes some obsolete bits which have no effect on the
result of evaluation.

Unlike the original approach in NixOS#157072, we're moving the common
expression to "unstable.nix" instead. This allow putting everything in
one commit, satisfies git's rename detection, and remains bisectable.

Co-Authored-By: Bernardo Meurer <[email protected]>
@@ -17241,8 +17241,7 @@ with pkgs;

hwloc = callPackage ../development/libraries/hwloc {};

inherit (callPackage ../development/tools/misc/hydra { })
hydra-unstable;
hydra_unstable = callPackage ../development/tools/misc/hydra/unstable.nix { nix = nix_2_4; };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nix_2_4 is now a forbidden alias to nixVersions.nix_2_4 (#156663).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a good reason to be using 2_4? I imagine this should just be the latest stable?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was before NixOS/hydra#1140 was merged, if we update the package accordingly it should be fine to use at least 2.6 if not 2.7.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently compatible version is 2.6, until https://github.com/NixOS/hydra/pull/1171/files or some alternative is merged.

Copy link
Member

@mweinelt mweinelt Mar 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hydra.nixos.org shows garbage collection problems with 2.5 and 2.6, so staying on 2.4 might be the better choice.

NixOS/hydra@78ef4ae

@Mindavi
Copy link
Contributor

Mindavi commented Mar 15, 2022

Gonna try and run this for a bit to see if it works as expected, ping me if you'd like to hear how it went :).

I'm in favor of removing the multi-versioning, so 👍 from me on that one. IMO the commit history is clean enough, and I think this could be acceptable wrt the policy (but I'd recommend to check it if you don't have it fresh in your mind).

@Mindavi
Copy link
Contributor

Mindavi commented Mar 28, 2022

Finally got this building (was having some issues with something nvidia related, not sure why it started building fine all of a sudden).

Everything seems to be fine on first glance, started a rebuild of something and that seemed to work fine. No obvious issues otherwise. Will keep this running for a while and report back if I see anything problematic.

Thanks for working on this!

Edit: been running this for 6 days now and I haven't seen issues. So LGTM.

@mweinelt mweinelt mentioned this pull request Apr 4, 2022
@Mindavi
Copy link
Contributor

Mindavi commented Apr 4, 2022

There's a merge conflict that should be solved.

@Mindavi
Copy link
Contributor

Mindavi commented May 6, 2022

Started rebasing: https://github.com/Mindavi/nixpkgs/tree/hydra-updates-2.

Time's up for now, might look at this for a bit this evening.

@Mindavi Mindavi mentioned this pull request May 9, 2022
9 tasks
@Mindavi Mindavi closed this May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants