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

Jörmungandr 0.9.0 #1779

Merged
merged 11 commits into from
Jun 26, 2020
Merged

Jörmungandr 0.9.0 #1779

merged 11 commits into from
Jun 26, 2020

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Jun 18, 2020

Issue Number

Overview

  • 9071b4e
    📍 bump jormungandr.nix to use 0.9.0-rc1

  • cc4e904
    📍 re-generate jormungandr arbitrary blocks

  • 8005030
    📍 fix missing configuration param & fragment in Jörmungandr Binary

  • bf2634f
    📍 bump jormungandr integration to 0.9.0

  • cf90092
    📍 bump iohk-nix to get a more recent version of the rust compiler

  • 4e835cc
    📍 Fix jormungandr windows zip URL
    The v was removed from the filenames.

  • 99ab316
    📍 align jormungandr error messages for addresses with cardano-node

  • 2ae6107
    📍 make chimeric account conversion tight to the underlying key scheme.
    ShelleyKey and cardano-node requires the reward account public key to be hashed, whereas Jörmungandr requires the raw
    public key. We initially cope with that directly in the backend-specific packages but it doesn't quite work and
    the engine also needs to be agnostic to the way accounts are obtained from the wallet's state

  • b0dbd2c
    📍 only disable fetching reward account on ShelleyKey
    And make it log a warning about this feature being temporarily disabled.

@KtorZ KtorZ requested a review from piotr-iohk June 18, 2020 17:44
@KtorZ KtorZ self-assigned this Jun 18, 2020
@KtorZ KtorZ force-pushed the KtorZ/jormungandr-0.9.0-rc1 branch from 6087bd1 to fde9e87 Compare June 24, 2020 17:23
@KtorZ KtorZ changed the title Jörmungandr 0.9.0-rc1 Jörmungandr 0.9.0 Jun 24, 2020
@KtorZ KtorZ force-pushed the KtorZ/jormungandr-0.9.0-rc1 branch 2 times, most recently from 3df8a5b to a74d5e0 Compare June 24, 2020 18:24
@rvl rvl force-pushed the KtorZ/jormungandr-0.9.0-rc1 branch from a74d5e0 to cf90092 Compare June 25, 2020 07:39
@rvl
Copy link
Contributor

rvl commented Jun 25, 2020

bors try

iohk-bors bot added a commit that referenced this pull request Jun 25, 2020
@rvl
Copy link
Contributor

rvl commented Jun 25, 2020

bors try-

I forgot - we are only running jormungandr tests nightly anyway.

@KtorZ
Copy link
Member Author

KtorZ commented Jun 25, 2020

@rvl I think they still run in Hydra though, so bors would eventually run them.

@KtorZ
Copy link
Member Author

KtorZ commented Jun 25, 2020

I still have two failures locally.. rewards don't accumulate on some scenario, which is odd.

@KtorZ KtorZ added the RESOLVING ISSUE Mark a PR as resolving issues, for auto-generated CHANGELOG label Jun 25, 2020
@KtorZ
Copy link
Member Author

KtorZ commented Jun 25, 2020

    -- TODO: issue #1750 re-enable querying reward balance when it's faster
    reward <- withWorkerCtx @_ @s @k ctx wid liftE liftE $ \wrk -> liftHandler $
        if False
            then W.fetchRewardBalance @_ @s @t @k wrk wid
            else pure $ Quantity 0

AH! It only took me a few hours before I found this :|

@piotr-iohk
Copy link
Contributor

piotr-iohk commented Jun 25, 2020

I see these two locally:

Failures:

  test/integration/Test/Integration/Jormungandr/Scenario/API/StakePools.hs:328:5: 
  1) API Specifications STAKE_POOLS_JOIN_04 - Rewards accumulate and stop
       uncaught exception: IOException of type UserError
       user error (waited more than 3min for action to eventually resolve. Action: "Wallet gets rewards")

  To rerun use: --match "/API Specifications/STAKE_POOLS_JOIN_04 - Rewards accumulate and stop/"

  test/integration/Test/Integration/Jormungandr/Scenario/API/StakePools.hs:386:5: 
  2) API Specifications STAKE_POOLS_JOIN_04 -Delegate, stop in the next epoch, and still earn rewards
       uncaught exception: IOException of type UserError
       user error (waited more than 3min for action to eventually resolve. Action: "wallet gets rewards")

  To rerun use: --match "/API Specifications/STAKE_POOLS_JOIN_04 -Delegate, stop in the next epoch, and still earn rewards/"

Randomized with seed 48877705

I saw the comment #1779 (comment), not sure if these were supposed to be addressed or not?

@KtorZ
Copy link
Member Author

KtorZ commented Jun 25, 2020

@piotr-iohk indeed... I thought I fixed it, but it was something else which I just found (and fixed). What about now :) ?

@KtorZ
Copy link
Member Author

KtorZ commented Jun 25, 2020

bors try

iohk-bors bot added a commit that referenced this pull request Jun 25, 2020
Copy link
Contributor

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

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

LGTM

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 25, 2020

try

Build failed

@KtorZ KtorZ force-pushed the KtorZ/jormungandr-0.9.0-rc1 branch from b0dbd2c to 3ca10ed Compare June 25, 2020 16:11
@KtorZ
Copy link
Member Author

KtorZ commented Jun 25, 2020

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 25, 2020
1779: Jörmungandr 0.9.0 r=KtorZ a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->


# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->
- 9071b4e
  📍 **bump jormungandr.nix to use 0.9.0-rc1**
  
- cc4e904
  📍 **re-generate jormungandr arbitrary blocks**
  
- 8005030
  📍 **fix missing configuration param & fragment in Jörmungandr Binary**
  
- bf2634f
  📍 **bump jormungandr integration to 0.9.0**
  
- cf90092
  📍 **bump iohk-nix to get a more recent version of the rust compiler**
  
- 4e835cc
  📍 **Fix jormungandr windows zip URL**
  The v was removed from the filenames.

- 99ab316
  📍 **align jormungandr error messages for addresses with cardano-node**
  
- 2ae6107
  📍 **make chimeric account conversion tight to the underlying key scheme.**
  ShelleyKey and cardano-node requires the reward account public key to be hashed, whereas Jörmungandr requires the raw
public key. We initially cope with that directly in the backend-specific packages but it doesn't quite work and
the engine also needs to be agnostic to the way accounts are obtained from the wallet's state

- b0dbd2c
  📍 **only disable fetching reward account on ShelleyKey**
  And make it log a warning about this feature being temporarily disabled.


Co-authored-by: KtorZ <[email protected]>
Co-authored-by: Rodney Lorrimar <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 25, 2020

Build failed

rvl and others added 5 commits June 26, 2020 15:35
The v was removed from the filenames.
ShelleyKey and cardano-node requires the reward account public key to be hashed, whereas Jörmungandr requires the raw
public key. We initially cope with that directly in the backend-specific packages but it doesn't quite work and
the engine also needs to be agnostic to the way accounts are obtained from the wallet's state
And make it log a warning about this feature being temporarily disabled.
Using 28 byte hash for Shelley reward address.
@rvl rvl force-pushed the KtorZ/jormungandr-0.9.0-rc1 branch from 3ca10ed to 86e072a Compare June 26, 2020 05:50
@rvl
Copy link
Contributor

rvl commented Jun 26, 2020

Jormungandr integration API specs passed for me locally.

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 26, 2020
1779: Jörmungandr 0.9.0 r=rvl a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->


# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->
- 9071b4e
  📍 **bump jormungandr.nix to use 0.9.0-rc1**
  
- cc4e904
  📍 **re-generate jormungandr arbitrary blocks**
  
- 8005030
  📍 **fix missing configuration param & fragment in Jörmungandr Binary**
  
- bf2634f
  📍 **bump jormungandr integration to 0.9.0**
  
- cf90092
  📍 **bump iohk-nix to get a more recent version of the rust compiler**
  
- 4e835cc
  📍 **Fix jormungandr windows zip URL**
  The v was removed from the filenames.

- 99ab316
  📍 **align jormungandr error messages for addresses with cardano-node**
  
- 2ae6107
  📍 **make chimeric account conversion tight to the underlying key scheme.**
  ShelleyKey and cardano-node requires the reward account public key to be hashed, whereas Jörmungandr requires the raw
public key. We initially cope with that directly in the backend-specific packages but it doesn't quite work and
the engine also needs to be agnostic to the way accounts are obtained from the wallet's state

- b0dbd2c
  📍 **only disable fetching reward account on ShelleyKey**
  And make it log a warning about this feature being temporarily disabled.


Co-authored-by: KtorZ <[email protected]>
Co-authored-by: Rodney Lorrimar <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 26, 2020

Build failed

@rvl
Copy link
Contributor

rvl commented Jun 26, 2020

Fixed a test failure.

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 26, 2020

@iohk-bors iohk-bors bot merged commit f4ce22b into master Jun 26, 2020
@iohk-bors iohk-bors bot deleted the KtorZ/jormungandr-0.9.0-rc1 branch June 26, 2020 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RESOLVING ISSUE Mark a PR as resolving issues, for auto-generated CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants