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

Properly test the early cutoff for CA derivations #4308

Merged
merged 2 commits into from Dec 3, 2020

Conversation

thufschmitt
Copy link
Member

The current ca test suite doesn't really test early cutoff as it should because the tests that are supposed to do it don't change the seed argument, meaning that they build twice the exact same derivation rather than two derivations that resolve to the same thing. Fix that to make the test actually useful.

(I'm not sure what happened to this testsuite, but between this and #4282 it seems to have been mostly useless so far…).

Also removes the early check for -j0 in the build loop as it's invalid with CA derivations (and would in particular make this test quite more painful to write)

If the build closure contains some CA derivations, then we can't know
ahead-of-time that we won't build anything as early-cutoff might come-in
at a laster stage
Build things with a different seed each time to make sure that it works
despite the different drvs
@edolstra edolstra merged commit 0bd060f into NixOS:master Dec 3, 2020
@edolstra edolstra deleted the properly-test-early-cutoff branch December 3, 2020 13:45
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.

None yet

2 participants