-
Notifications
You must be signed in to change notification settings - Fork 217
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
Update to latest haskell.nix #1106
Conversation
971817e
to
bf51372
Compare
Once this PR is complete we should have the Windows tests running under Wine. Thanks @hamishmack |
I'm working on a fix for haskell.nix to make makeRelativeToProject work with I'm working on a change that will makes put the component source (with patches applied into the store) and build from there). Failing that we will need to use an environment variable to override the location of |
OK I see. If the universal fix for |
See #1109 for a fix for the test data directory. |
9463c47
to
9515a76
Compare
68cf491
to
15a008a
Compare
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.
Looks good @hamishmack , and I see that the tests are now being run under wine.
Is there anything left to fix? Because this PR is still draft.
Could you please put the stylish-haskell package change and the release.nix memoization in separate PRs where they can be reviewed separately?
release.nix
Outdated
gitrev = cardano-wallet.rev; | ||
}; | ||
|
||
with pkgs.lib; | ||
|
||
let | ||
testsSupportedSystems = [ "x86_64-linux" "x86_64-darwin" ]; | ||
collectTests = ds: filter (d: elem d.system testsSupportedSystems) (collect isDerivation ds); | ||
# Adds the package name to the test derivations for windows-testing-bundle.nix | ||
# (passthru.identity.name does not seem to survive release-lib.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.
If passthru.identity.name gets removed, then I think it would be just be simplest to remove this change and the corresponding one in windows-testing-bundle.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.
The problem is that $pkg
is no longer the packager name. Tests and benchmarks are now in bin
subdir (not a package id based subdir). I'll replace $pkg
with "bin"
to make this clear.
We need to ensure that the executable in the windows bundle has a unique location (otherwise tests like unit-tests
will clash when we copy them to the bundle). We could zip [1..] with the list and put each executable in a numbered sub dir, but I think it might be more user friendly to keep using the package name somehow.
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.
OK got it. I have split the function and added an extra comment.
65726ff
to
8c93e0d
Compare
8c93e0d
to
aa6c57c
Compare
I have rebased and moved the stylish-haskell package change and the release.nix memoization into #1120. |
aa6c57c
to
a46c0f9
Compare
I would feel inclined to merge this now and fix the two test suite failures in a subsequent PR. |
bors r+ |
1106: Update to latest haskell.nix r=KtorZ a=hamishmack This PR is to prepare for updating to latest haskell.nix. It is likely we will need #1100 and #1101 to get the tests to pass. [Hydra jobs](https://hydra.iohk.io/jobset/Cardano/cardano-wallet-pr-1106#tabs-jobs) - See under `x86_64-pc-mingw32.checks` for tests running under wine. - x86_64-pc-mingw32.checks.bech32.bech32-test.x86_64-linux - pass - x86_64-pc-mingw32.checks.cardano-wallet-cli.unit.x86_64-linux - pass - x86_64-pc-mingw32.checks.cardano-wallet-core.unit.x86_64-linux - pass - x86_64-pc-mingw32.checks.cardano-wallet-jormungandr.integration.x86_64-linux - [failed](https://hydra.iohk.io/build/1550317/nixlog/1) - x86_64-pc-mingw32.checks.cardano-wallet-jormungandr.unit.x86_64-linux - pass - x86_64-pc-mingw32.checks.cardano-wallet-launcher.unit.x86_64-linux - [failed](https://hydra.iohk.io/build/1550326/nixlog/2) - x86_64-pc-mingw32.checks.text-class.unit.x86_64-linux - pass Co-authored-by: Hamish Mackenzie <[email protected]> Co-authored-by: Rodney Lorrimar <[email protected]>
Build succeeded |
This PR is to prepare for updating to latest haskell.nix. It is likely we will need #1100 and #1101 to get the tests to pass.
Hydra jobs - See under
x86_64-pc-mingw32.checks
for tests running under wine.