-
Notifications
You must be signed in to change notification settings - Fork 87
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
Reorganise ouroboros-consensus #1657
Conversation
2395572
to
0afe404
Compare
ouroboros-consensus/test-consensus/Test/Consensus/Protocol/PBFT.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus/test-consensus/Test/Consensus/BlockchainTime/SlotLengths.hs
Show resolved
Hide resolved
While we're at it (can be separate PR): |
The |
0afe404
to
5833f6b
Compare
Moving
|
3b3dc7f
to
c37cbfd
Compare
ouroboros-consensus-byron/src/Ouroboros/Consensus/Byron/Protocol/PBFT.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus/ouroboros-consensus-mock/ouroboros-consensus-mock.cabal
Outdated
Show resolved
Hide resolved
ouroboros-consensus/src/Ouroboros/Consensus/Protocol/PBFT/Crypto.hs
Outdated
Show resolved
Hide resolved
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.
Reviewed over hangout. And I thought I was bad when it came to refactoring 😁 Good stuff, will be great to get this in. Then more refactoring coming up soon :)
c37cbfd
to
8be6a2b
Compare
Fixes #1651 and #1652. * Split off Byron related code and tests to `./ouroboros-consensus-byron`. * Split off Byron Spec related code and tests to `./ouroboros-consensus-byronspec`. * Split off mock block related code and tests to `./ouroboros-consensus/ouroboros-consensus-mock`. * Split off test infrastructure code and tests to `./ouroboros-consensus/ouroboros-consensus-test-infra`. These last two are both internal libraries of `ouroboros-consensus` and separate packages, because the test suites of `ouroboros-consensus` depend on them, while other packages, i.e., `ouroboros-consensus-byron`, `cardano-node`, ..., will also depend on them. If only Cabal supported multiple public libraries in one project. * Remove the `Exception` instance of `PBftLeaderCredentialsError`, as it was never actually thrown. * Add `nodeToExitReason`, as it can be `blk`-dependent. * Rename `Ouroboros.Storage` to `Ouroboros.Consensus.Storage`.
Running `cabal test all` should not run the tests of `cardano-ledger`, etc.
5c6f693
to
56e5331
Compare
If we disable it now without having a nightly job to run it, it will bitrot for sure. You can still disable the test locally by disabling the `cddl` flag in your `cabal.project.local`.
bors r+ |
1657: Reorganise ouroboros-consensus r=mrBliss a=mrBliss Fixes #1651 and #1652. * Split off Byron related code and tests to `./ouroboros-consensus-byron`. * Split off Byron Spec related code and tests to `./ouroboros-consensus-byronspec`. * Split off mock block related code and tests to `./ouroboros-consensus/ouroboros-consensus-mock`. * Split off test infrastructure code and tests to `./ouroboros-consensus/ouroboros-consensus-test-infra`. These last two are both internal libraries of `ouroboros-consensus` and separate packages, because the test suites of `ouroboros-consensus` depend on them, while other packages, i.e., `ouroboros-consensus-byron`, `cardano-node`, ..., will also depend on them. If only Cabal supported multiple public libraries in one project. * Remove the `Exception` instance of `PBftLeaderCredentialsError`, as it was never actually thrown. * Add `nodeToExitReason`, as it can be `blk`-dependent. * Rename `Ouroboros.Storage` to `Ouroboros.Consensus.Storage`. Co-authored-by: Thomas Winant <thomas@well-typed.com>
After IntersectMBO/ouroboros-network#1657 Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
After IntersectMBO/ouroboros-network#1657 Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
588: Update ouroboros-network dependency r=mrBliss a=mrBliss Issue ------ Pushing through the changes made in IntersectMBO/ouroboros-network#1657 checklist --------- - [ ] This PR contains all the work required to resolve the linked issue. - [ ] This PR results in breaking changes to upstream dependencies. - [ ] The work contained has sufficient documentation to describe what it does and how to do it. - [ ] The work has sufficient tests and/or testing. - [ ] I have committed clear and descriptive commits. Be considerate as somebody else will have to read these. - [ ] I have added the appropriate labels to this PR. Co-authored-by: Thomas Winant <thomas@well-typed.com> Co-authored-by: Marcin Szamotulski <profunctor@pm.me>
After IntersectMBO/ouroboros-network#1657 Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
After IntersectMBO/ouroboros-network#1657 Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
After IntersectMBO/ouroboros-network#1657 Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
After IntersectMBO/ouroboros-network#1657 Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
588: Update ouroboros-network dependency r=mrBliss a=mrBliss Issue ------ Pushing through the changes made in IntersectMBO/ouroboros-network#1657 checklist --------- - [ ] This PR contains all the work required to resolve the linked issue. - [ ] This PR results in breaking changes to upstream dependencies. - [ ] The work contained has sufficient documentation to describe what it does and how to do it. - [ ] The work has sufficient tests and/or testing. - [ ] I have committed clear and descriptive commits. Be considerate as somebody else will have to read these. - [ ] I have added the appropriate labels to this PR. Co-authored-by: Thomas Winant <thomas@well-typed.com> Co-authored-by: Marcin Szamotulski <profunctor@pm.me> Co-authored-by: Luke Nadur <19835357+intricate@users.noreply.github.com>
Fixes #1651 and #1652.
Split off Byron related code and tests to
./ouroboros-consensus-byron
.Split off Byron Spec related code and tests to
./ouroboros-consensus-byronspec
.Split off mock block related code and tests to
./ouroboros-consensus/ouroboros-consensus-mock
.Split off test infrastructure code and tests to
./ouroboros-consensus/ouroboros-consensus-test-infra
.These last two are both internal libraries of
ouroboros-consensus
andseparate packages, because the test suites of
ouroboros-consensus
depend onthem, while other packages, i.e.,
ouroboros-consensus-byron
,cardano-node
,..., will also depend on them. If only Cabal supported multiple public
libraries in one project.
Remove the
Exception
instance ofPBftLeaderCredentialsError
, as it wasnever actually thrown.
Add
nodeToExitReason
, as it can beblk
-dependent.Rename
Ouroboros.Storage
toOuroboros.Consensus.Storage
.