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

jenkins: fixed-output derivation to avoid rebuilds #29030

Closed
wants to merge 1 commit into from

Conversation

jammerful
Copy link
Contributor

@jammerful jammerful commented Sep 5, 2017

see also #27754 (comment) for motivation.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via nixos/tests/jenkins.nix(had to raise the timeout)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Fits CONTRIBUTING.md.

@jammerful
Copy link
Contributor Author

@Mic92 You did the same thing for my Gerrit package yesterday, this was the pattern I followed so doing the same for it.

@bjornfor
Copy link
Contributor

bjornfor commented Sep 6, 2017

This pattern adds a second hash that needs to be updated on version bumps. How much rebuilding is "saved"? Is it worth it?

@bjornfor
Copy link
Contributor

bjornfor commented Sep 7, 2017

It can be done with one hash, if buildCommand moved to postFetch of fetchurl/fetchzip (see examples in data/fonts directory).

But that hash won't correspond to upstream source hash (right?). So it becomes more difficult to verify that the source we have is the exact same source upstream provides.

I think I'm -1 on this pattern. I think it's premature optimization. (At least in the form used in this PR.)

@jammerful jammerful closed this Sep 7, 2017
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