-
Notifications
You must be signed in to change notification settings - Fork 41
[DEVOPS-32] ensure pkgs/default.nix is up to date #82
Conversation
d164420
to
edad927
Compare
and 2 more edge cases,
i also had an idea on how to perform stack2nix testing under hydra, just flag it as a fixed-output derivation, because we want the output to be "no differences found", and any deviation from that is a failure
|
bc83c63
to
345c739
Compare
.travis.yml
Outdated
@@ -5,6 +5,10 @@ env: | |||
|
|||
install: | |||
- nix-env -iA nixopsUnstable -f '<nixpkgs>' | |||
- echo "binary-caches = https://cache.nixos.org https://hydra.iohk.io" > ~/nix.conf | |||
- echo "binary-cache-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" > ~/nix.conf | |||
- export NIX_CONF_DIR=~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bad idea since the default file does bring some sanity things.
Try to workaround the 14.04 bug by doing - export PYTHONPATH=
jobsets/cardano.nix
Outdated
@@ -17,4 +16,5 @@ in rec { | |||
]; | |||
}).config.system.build.amazonImage; | |||
tests = import ./../tests { inherit pkgs supportedSystems; }; | |||
#stack2nix-output = callPackage ./check-stack2nix.nix { inherit (iohkpkgs) stack2nix; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work since stack2nix
is very impure, let's remove it from here :)
scripts/check-stack2nix.sh
Outdated
|
||
time nix-build -A stack2nix -o $scriptDir/stack2nix -Q -j 4 | ||
|
||
time $scriptDir/stack2nix/bin/stack2nix --revision 4bcf1e6b601d531f753ebdb6aec23e19d4b08e6c https://github.com/input-output-hk/cardano-sl.git > $scriptDir/default-2.nix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hoping we could just run pkgs/generate.sh
and check git diff
to have no output. Then we wouldn't need this script at all. Am I missing something with that approach?
1f4a456
to
8e55aea
Compare
8e55aea
to
78e528f
Compare
@cleverca22 let's try rebasing this on top of latest master to see what happens :) |
c5a11ae
to
e05ef15
Compare
8c42c6e
to
4cd692e
Compare
4cd692e
to
c06bc33
Compare
@domenkozar all checks are now passing and the PR looks good to me |
found an edgecase in testing this, updating
pkgs/default.nix
changes the build of stack2nix, and now travis cant use the cached copy, so it needs a PR built by hydra