-
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
cabal: Add version constraint on random #2686
Conversation
In later versions, `StdGen` no longer has a `Read` instance.
b24a083
to
8fb8912
Compare
8fb8912
to
75a245f
Compare
-- Disable all other tests. This is what they do in the cardano-node | ||
-- cabal project. | ||
-- The global tests: False flag doesn't seem to work though. | ||
-- Now disable all other tests with a global flag. |
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.
Does this actually work? I've always had trouble with cabal.project's and global flags.
I've tried things like
package *:
tests: False
In the past but haven't had it work.
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.
Always confuses me.
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.
It seems to work for me locally, and the CI builds also work (whereas before they were failing due to difficult test suite dependencies). I think key part is using Cabal 3.4.0.0.
bors r+ |
2686: cabal: Add version constraint on random r=rvl a=rvl # Issue Number ADP-961 # Overview In `random>=1.2.0`, `StdGen` no longer has a `Read` instance. - Add version constraint so Cabal uses previous version. - Clean up `cabal.project`, with the assumption of Cabal >= 3.4.0.0. - Add a nightly CI step to run the cabal build. - Use cabal-cache to make the nightly build faster. - Make sure every Haskell tool built for the nix-shell has a materialization, for faster evaluation without warnings. # Comments Resolves #2685. We may fix the usage of `instance Read StdGen` later. 2688: Restoration bench: increase heap and only bench {0%,0.2%} x {seq,rnd} r=rvl a=Anviking # Issue Number ADP-846 # Overview Let the nightly benchmark finish successfully within the alotted time. - [x] Increase max heap from 8GB to 16GB - [x] Replace 0.1% and 0.4% rnd and seq benchmarks with 0.2% to prevent timeout. # Comments [![Build status](https://badge.buildkite.com/59ea9363b8526e867005ca8839db47715bc5f661f36e490143.svg?branch=anviking%2FADP-846%2Fmore-heap)](https://buildkite.com/input-output-hk/cardano-wallet-nightly/builds?branch=anviking%2FADP-846%2Fmore-heap) Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: Johannes Lund <[email protected]>
Build failed (retrying...):
#2467, but the third one looks like something different... |
Build succeeded: |
Issue Number
ADP-961
Overview
In
random>=1.2.0
,StdGen
no longer has aRead
instance.cabal.project
, with the assumption of Cabal >= 3.4.0.0.Comments
Resolves #2685.
We may fix the usage of
instance Read StdGen
later.