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

Remove icarus genesis gap hack #2643

Merged
merged 2 commits into from
May 7, 2021
Merged

Conversation

Anviking
Copy link
Member

@Anviking Anviking commented May 7, 2021

Issue Number

ADP-828

Overview

  • Use the standard gap size, even for the genesis block.
  • Fund icarus fixture wallets using txs, not as part of the byron genesis
    • Not entirely sure why this helped though 🤔 - the wallets only had 10 addresses, so the order shouldn't have mattered anyway...

Comments

@Anviking
Copy link
Member Author

Anviking commented May 7, 2021

bors try

iohk-bors bot added a commit that referenced this pull request May 7, 2021
Copy link
Member

@KtorZ KtorZ left a comment

Choose a reason for hiding this comment

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

Yes! I am pretty sure there's also a special Icarus wallet with addresses starting only at a high index (like 500 or so) which would now fail because of this.

I think it's fine to get rid of this scenario now, since it was mainly for the ITN snapshot. @piotr-iohk, thoughts?

@Anviking Anviking self-assigned this May 7, 2021
Don't fund icarus wallets in genesis

This used to make
    ADDRESS_LIST_02 - Can filter used and unused addresses
fail, presumably because the genesis entries didn't have any guaranteed
order.

Remove unused shrinkPool etc

Remove BYRON_RESTORE_08
@Anviking Anviking force-pushed the anviking/ADP-828/rm-ica-hack branch from 9fae748 to 3fc76c7 Compare May 7, 2021 13:18
@Anviking
Copy link
Member Author

Anviking commented May 7, 2021

bors try

@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 7, 2021

try

Already running a review

@Anviking
Copy link
Member Author

Anviking commented May 7, 2021

bors try-

@Anviking
Copy link
Member Author

Anviking commented May 7, 2021

I am pretty sure there's also a special Icarus wallet with addresses starting only at a high index (like 500 or so) which would now fail because of this.

👍

@piotr-iohk, thoughts?

I think Piotr is off until something like Wednesday. But I can't either see why the test would matter now, and he'll have the opportunity to object in the QA phase of the ticket too, so merging.

bors r+

iohk-bors bot added a commit that referenced this pull request May 7, 2021
2643: Remove icarus genesis gap hack r=Anviking a=Anviking

# Issue Number

ADP-828

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] Use the standard gap size, even for the genesis block.
- [x] Fund icarus fixture wallets using txs, not as part of the byron genesis
    - Not entirely sure why this helped though 🤔 - the wallets only had 10 addresses, so the order shouldn't have mattered anyway...


# Comments

<!-- Additional comments or screenshots to attach if any -->

<!--
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding ticket
 ✓ Acknowledge any changes required to the Wiki
 ✓ Finally, in the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages.
-->


Co-authored-by: Johannes Lund <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 7, 2021

Build failed:

[65 of 86] Compiling Data.Time.Text   ( src/Data/Time/Text.hs, dist/build/Data/Time/Text.o, dist/build/Data/Time/Text.dyn_o )
ld: warning: /nix/store/zzcxvnywlxhdbrnzszppv4xcjz1zjybf-libiconv-osx-10.12.6/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/zzcxvnywlxhdbrnzszppv4xcjz1zjybf-libiconv-osx-10.12.6/lib/libiconv.dylib, ignoring unexpected dylib file
[66 of 86] Compiling Cardano.Wallet.Api.Types ( src/Cardano/Wallet/Api/Types.hs, dist/build/Cardano/Wallet/Api/Types.o, dist/build/Cardano/Wallet/Api/Types.dyn_o )
building of '/nix/store/q0vmm6gjpw2phzjdg4aj0m7yfd18ay1q-cardano-wallet-core-lib-cardano-wallet-core-2021.4.28' timed out after 900 seconds of silence

New one - the build times out. But
#expected
integration failure too.

@Anviking
Copy link
Member Author

Anviking commented May 7, 2021

bors r+

iohk-bors bot added a commit that referenced this pull request May 7, 2021
2643: Remove icarus genesis gap hack r=Anviking a=Anviking

# Issue Number

ADP-828

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] Use the standard gap size, even for the genesis block.
- [x] Fund icarus fixture wallets using txs, not as part of the byron genesis
    - Not entirely sure why this helped though 🤔 - the wallets only had 10 addresses, so the order shouldn't have mattered anyway...


# Comments

<!-- Additional comments or screenshots to attach if any -->

<!--
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding ticket
 ✓ Acknowledge any changes required to the Wiki
 ✓ Finally, in the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages.
-->


Co-authored-by: Johannes Lund <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 7, 2021

Build failed:

#expected

The fixture wallets now have 1 instead of 10 txs.
@Anviking
Copy link
Member Author

Anviking commented May 7, 2021

bors r+

iohk-bors bot added a commit that referenced this pull request May 7, 2021
2643: Remove icarus genesis gap hack r=Anviking a=Anviking

# Issue Number

ADP-828

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] Use the standard gap size, even for the genesis block.
- [x] Fund icarus fixture wallets using txs, not as part of the byron genesis
    - Not entirely sure why this helped though 🤔 - the wallets only had 10 addresses, so the order shouldn't have mattered anyway...


# Comments

<!-- Additional comments or screenshots to attach if any -->

<!--
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding ticket
 ✓ Acknowledge any changes required to the Wiki
 ✓ Finally, in the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages.
-->


Co-authored-by: Johannes Lund <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 7, 2021

Build failed:

Cardano.Wallet.DB.Sqlite.Types
  Values can be persisted and unpersisted successfully
    can persist and unpersist values of type 'SlotNo'
      +++ OK, passed 100 tests.
    can persist and unpersist values of type 'NominalDiffTime'
      +++ OK, passed 100 tests.
    can persist and unpersist values of type 'TokenQuantity'
      +++ OK, passed 100 tests.
  Coverage checks for generators
    TokenQuantity
      +++ OK, passed 100 tests:
building of '/nix/store/gkds2as2iwlxq1x9yxvyihgcy1ii5112-cardano-wallet-core-test-unit-2021.4.28-check' timed out after 900 seconds of silence

#2472

@Anviking
Copy link
Member Author

Anviking commented May 7, 2021

bors r+

iohk-bors bot added a commit that referenced this pull request May 7, 2021
2643: Remove icarus genesis gap hack r=Anviking a=Anviking

# Issue Number

ADP-828

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] Use the standard gap size, even for the genesis block.
- [x] Fund icarus fixture wallets using txs, not as part of the byron genesis
    - Not entirely sure why this helped though 🤔 - the wallets only had 10 addresses, so the order shouldn't have mattered anyway...


# Comments

<!-- Additional comments or screenshots to attach if any -->

<!--
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding ticket
 ✓ Acknowledge any changes required to the Wiki
 ✓ Finally, in the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages.
-->


Co-authored-by: Johannes Lund <[email protected]>
Copy link
Contributor

@paweljakubas paweljakubas left a comment

Choose a reason for hiding this comment

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

lgmt

@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 7, 2021

Build failed:

Failures:

  src/Test/Integration/Scenario/API/Byron/Wallets.hs:187:59: 
  1) API Specifications, BYRON_WALLETS, BYRON_RESTORE_01, GET_01, LIST_01 - Restore a wallet, ledger 18 words
       While verifying (Status {statusCode = 200, statusMessage = "OK"},Right (ApiByronWallet {id = ApiT {getApiT = WalletId {getWalletId = e814898be91c453b1103662e2d60b43a57a2460b}}, balance = ApiByronWalletBalance {available = Quantity {getQuantity = 0}, total = Quantity {getQuantity = 0}}, assets = ApiWalletAssetsBalance {available = ApiT {getApiT = TokenMap (fromList [])}, total = ApiT {getApiT = TokenMap (fromList [])}}, discovery = DiscoverySequential, name = ApiT {getApiT = WalletName {getWalletName = "Empty Byron Wallet"}}, passphrase = Just (ApiWalletPassphraseInfo {lastUpdatedAt = 2021-05-07 18:30:40.56883832 UTC}), state = ApiT {getApiT = Syncing (Quantity {getQuantity = Percentage {getPercentage = 2641 % 5000}})}, tip = ApiBlockReference {absoluteSlotNumber = ApiT {getApiT = SlotNo 2027}, slotId = ApiSlotId {epochNumber = ApiT {getApiT = EpochNo {unEpochNo = 40}}, slotNumber = ApiT {getApiT = SlotInEpoch {unSlotInEpoch = 27}}}, time = 2021-05-07 18:24:39.4 UTC, block = ApiBlockInfo {height = Quantity {getQuantity = 1000}}}}))
       Waited longer than 90s to resolve action: "wallet is available and ready".
[cardano-wallet.network:Warning:2014] [2021-05-07 18:47:59.09 UTC] Connection lost with the node. Network.Socket.recvBuf: resource vanished (Connection reset by peer)
       expected: Ready
        but got: Syncing (Quantity {getQuantity = Percentage {getPercentage = 2641 % 5000}})

  To rerun use: --match "/API Specifications/BYRON_WALLETS/BYRON_RESTORE_01, GET_01, LIST_01 - Restore a wallet/ledger 18 words/"

#2565

@Anviking
Copy link
Member Author

Anviking commented May 7, 2021

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 7, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit 6814c0e into master May 7, 2021
@iohk-bors iohk-bors bot deleted the anviking/ADP-828/rm-ica-hack branch May 7, 2021 19:26
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.

3 participants