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

Upgrade to hydra-0.16 #166

Merged
merged 4 commits into from
Apr 2, 2024
Merged

Conversation

locallycompact
Copy link

@locallycompact locallycompact commented Mar 22, 2024

Hydra 0.16 drops JSON encoding of transactions in favour of a CBOR representation only. This updates the hydra submodule to provide a golden test file in the new format.

Co-Authored by Daniel Firth [email protected]

Hydra 0.16 drops JSON encoding of transactions in favour of a CBOR representation only. This updates the hydra submodule to provide a golden test file in the new format.

Co-Authored by Daniel Firth <[email protected]>
@ch1bo ch1bo requested review from ch1bo and KtorZ March 25, 2024 10:46
@ch1bo ch1bo self-assigned this Mar 25, 2024
Copy link
Contributor

@ch1bo ch1bo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the code changes requested, it seems like this is not working in the end-to-end test.

In fact, Hydra end-to-end tests seem to be broken for longer already? I tried kupo 2.8 and 2.7 against latest released hydra 0.15.0 and both did not work either. CC @KtorZ

@@ -2,6 +2,8 @@

#### Added

* Compatibility with hydra-node 0.16.0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should: add this to a new, unreleased section as 2.8.0 seems to have already been released.

src/Kupo/Data/Hydra.hs Outdated Show resolved Hide resolved
src/Kupo/Data/Hydra.hs Outdated Show resolved Hide resolved
src/Kupo/Data/Hydra.hs Outdated Show resolved Hide resolved
src/Kupo/Data/Hydra.hs Outdated Show resolved Hide resolved
@ch1bo ch1bo removed their assignment Mar 27, 2024
This is to be discussed!

Having the currentNetworkTip be executed on test case creation does
prevent running the test suite without a CARDANO_NODE_SOCKET environment
variable.

For only running hydra tests, we move these back into tests which later
refer to the 'tip' variable. These tests might become slower now.
@ch1bo
Copy link
Contributor

ch1bo commented Mar 27, 2024

We can use cardano-scaling/hydra#1378 now to have a constant stream of snapshots (= blocks) and the end-to-end test "can connect" should pass now against this (while master does not).

ch1bo and others added 2 commits March 27, 2024 15:06
This will enforce correct operation of transaction / snapshot decoding
for Hydra (and block decoding for the other providers).
@v0d1ch
Copy link
Contributor

v0d1ch commented Mar 29, 2024

@KtorZ @ch1bo you could take a look at this. I can confirm that all tests pass and I could index Hydra 0.16 txs with Kupo locally.

@KtorZ KtorZ merged commit e0743b1 into CardanoSolutions:master Apr 2, 2024
4 of 5 checks passed
@ch1bo
Copy link
Contributor

ch1bo commented Apr 2, 2024

Well.. as this got merged, we should release hydra 0.16.0 soon then :)

@KtorZ
Copy link
Member

KtorZ commented Apr 2, 2024

Note: I haven't tested the Hydra integration myself. I will in the upcoming days for the next Kupo release.

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.

5 participants