Skip to content

Better 'required' job that includes everything #976

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

Merged
merged 22 commits into from
Jan 6, 2021
Merged

Conversation

michaelpj
Copy link
Collaborator

This requires explicitly identifying the things that don't work and
removing them. I used our own disabled attribute, because broken is
weird and breaks evaluation, which isn't really what we want.

This requires explicitly identifying the things tht don't work and
removing them. I used our own `disabled` attribute, because `broken` is
weird and breaks evaluation, which isn't really what we want.
@michaelpj
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Dec 17, 2020
@michaelpj
Copy link
Collaborator Author

bors try

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 17, 2020

try

Already running a review

@michaelpj
Copy link
Collaborator Author

bors try

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 17, 2020

try

Already running a review

@michaelpj
Copy link
Collaborator Author

bors try-

@michaelpj
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Dec 17, 2020
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 17, 2020

try

Build failed:

Copy link
Contributor

@rvl rvl left a comment

Choose a reason for hiding this comment

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

Looks good to me -- if it builds!

Comment on lines +55 to +57
isDisabled = d:
let meta = d.meta or {};
in meta.disabled or false;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a good idea - I was thinking about doing the same thing in cardano-wallet.

meta.disabled = stdenv.hostPlatform.isMusl;
meta = {
platforms = platforms.all;
disabled = stdenv.hostPlatform != stdenv.buildPlatform || stdenv.hostPlatform.isMusl;
Copy link
Contributor

Choose a reason for hiding this comment

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

I previously had a horrible time doing these sort of platform checks in order to remove jobs from the Hydra jobset.

What I think was happening, is that Hydra was getting the job list by evaluating with its native linux platform. So I was unable to remove jobs for e.g. macOS only.

But I was probably doing something wrong - is this working alright on Hydra?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it was working before! The platform it's evaluating on shouldn't matter (unless you use buildins.currentSystem - this is checking the host/build platforms from stdenv, so should be okay.

@michaelpj
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Dec 18, 2020
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 18, 2020

try

Build failed:

@michaelpj
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Dec 18, 2020
@michaelpj
Copy link
Collaborator Author

bors try

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 18, 2020

try

Already running a review

@michaelpj
Copy link
Collaborator Author

bors try-

@michaelpj
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Dec 18, 2020
This doesn't actually matter, not sure why I was changing it.
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 18, 2020

try

Build failed:

@michaelpj
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Jan 5, 2021
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 5, 2021

try

Timed out.

@michaelpj
Copy link
Collaborator Author

Interestingly, the commit status for the previous commit is okay, so it actually evaluated there. I guess it's just right on the edge of what's manageable? I guess I'm just not sure how to make it use less memory...

@hamishmack
Copy link
Collaborator

bors try

iohk-bors bot added a commit that referenced this pull request Jan 5, 2021
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 5, 2021

try

Build failed:

@hamishmack
Copy link
Collaborator

bors try

iohk-bors bot added a commit that referenced this pull request Jan 5, 2021
@hamishmack
Copy link
Collaborator

bors try

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 6, 2021

try

Already running a review

@hamishmack
Copy link
Collaborator

bors try-

@hamishmack
Copy link
Collaborator

bors try

iohk-bors bot added a commit that referenced this pull request Jan 6, 2021
@hamishmack
Copy link
Collaborator

bors try

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 6, 2021

try

Already running a review

@hamishmack
Copy link
Collaborator

bors try-

@hamishmack
Copy link
Collaborator

bors try

iohk-bors bot added a commit that referenced this pull request Jan 6, 2021
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 6, 2021

@hamishmack
Copy link
Collaborator

OMG NixOS/hydra#715 worked! It seems to fix the OOM issue with having one massive required job.

This PR now also cuts the number of jobs from over 2000 to 216. This seems to greatly speeds up the time it takes small changes (where most stuff remains the same) to be processed by hydra.

@hamishmack hamishmack merged commit f6bc2f7 into master Jan 6, 2021
@iohk-bors iohk-bors bot deleted the imp/better-release branch January 6, 2021 03:44
@michaelpj
Copy link
Collaborator Author

🥇

Hamish you are a champion!

@michaelpj michaelpj mentioned this pull request Mar 3, 2021
booniepepper pushed a commit to booniepepper/haskell.nix that referenced this pull request Feb 4, 2022
This requires explicitly identifying the things tht don't work and
removing them. I used our own `disabled` attribute, because `broken` is
weird and breaks evaluation, which isn't really what we want.

Cuts the number of jobs from over 2000 to 216. This seems to greatly
speeds up the time it takes small changes (where most stuff remains the
same) to be processed by hydra.

Uses NixOS/hydra#715 to reference the
jobs in required by name avoiding OOM issues.

Co-authored-by: Hamish Mackenzie <Hamish.Mackenzie@iohk.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants