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

E2E golden tests cardano-wallet vs. cardano-addresses account xpub (including purpose) #2697

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

piotr-iohk
Copy link
Contributor

Issue Number

ADP-950

Overview

  • 0ded5ef
    E2E golden tests cardano-wallet vs. cardano-addresses account xpub (including purpose)

Comments

While testing purpose addition to https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postAccountKey endpoint I have extended existing e2e tests to assert if the returned keys are the same as produced by cardano-addresses.

@piotr-iohk piotr-iohk requested a review from paweljakubas June 9, 2021 13:31
@piotr-iohk piotr-iohk self-assigned this Jun 9, 2021
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.

lgtm

@piotr-iohk
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 9, 2021
2697: E2E golden tests cardano-wallet vs. cardano-addresses account xpub (including purpose) r=piotr-iohk a=piotr-iohk



# Issue Number

ADP-950


# Overview

- 0ded5ef
  E2E golden tests cardano-wallet vs. cardano-addresses account xpub (including purpose)


# Comments

While testing purpose addition to https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postAccountKey endpoint I have extended existing e2e tests to assert if the returned keys are the same as produced by cardano-addresses.


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

iohk-bors bot commented Jun 9, 2021

Build failed:

Cardano.Wallet.DB.MVar
  MVar
    Extra Properties about DB initialization
running auto-GC to free 20336619520 bytes
waiting for the big garbage collector lock...
building of '/nix/store/40x1zr82r1qbhyvys639zpz3vpz1dsbl-cardano-wallet-core-test-unit-2021.5.26-check' timed out after 900 seconds of silence

#2472 (mac-mini-2)

@piotr-iohk
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 9, 2021
2697: E2E golden tests cardano-wallet vs. cardano-addresses account xpub (including purpose) r=piotr-iohk a=piotr-iohk



# Issue Number

ADP-950


# Overview

- 0ded5ef
  E2E golden tests cardano-wallet vs. cardano-addresses account xpub (including purpose)


# Comments

While testing purpose addition to https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postAccountKey endpoint I have extended existing e2e tests to assert if the returned keys are the same as produced by cardano-addresses.


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

iohk-bors bot commented Jun 9, 2021

Build failed:

Cardano.Wallet.DB.MVar
  MVar
    Extra Properties about DB initialization
building of '/nix/store/ksc159riv85ki5z080dsds2xww1qc2kv-cardano-wallet-core-test-unit-2021.5.26-check' timed out after 900 seconds of silence

#2472 (mac-mini-1)

@rvl
Copy link
Contributor

rvl commented Jun 10, 2021

bors r+

iohk-bors bot added a commit that referenced this pull request Jun 10, 2021
2696: Timeout earlier on SQLITE_BUSY when deleting wallets in tests r=rvl a=Anviking

# Issue Number

ADP-827

# Overview

- [x] Set `CARDANO_WALLET_INTEGRATION` env var in integration tests
- [x] Change timeout to close all connections from `60s` to `2s` if `CARDANO_WALLET_INTEGRATION` is set.


# Comments

- Workaround that should make CI faster (and perhaps a bit more stable), until we have time to investigate and address the underlying issue and its effects in production. The problem in production is likely much less serious, as users likely don't create and delete wallets as often as in our integration tests.
- Locally, running `stack test cardano-wallet:integration --ta '-j 6'` I get:
    - 2s -> 335s
    - 5s -> 380s
    - 60s (without the `setEnv`) -> 1190s

So that's why I went with 2s rather than 5s.

<!-- 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.
-->


2697: E2E golden tests cardano-wallet vs. cardano-addresses account xpub (including purpose) r=rvl a=piotr-iohk



# Issue Number

ADP-950


# Overview

- 0ded5ef
  E2E golden tests cardano-wallet vs. cardano-addresses account xpub (including purpose)


# Comments

While testing purpose addition to https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postAccountKey endpoint I have extended existing e2e tests to assert if the returned keys are the same as produced by cardano-addresses.


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

iohk-bors bot commented Jun 10, 2021

Build failed (retrying...):

Failures:
  src/Test/Integration/Scenario/API/Shelley/Migrations.hs:926:23:
  1) API Specifications, SHELLEY_MIGRATIONS, SHELLEY_MIGRATE_08 - It's possible to migrate a wallet with many small ada quantities, provided that the total balance is significantly greater than the minimum ada quantity for an output.
       While verifying (Status {statusCode = 200, statusMessage = "OK"},Right (ApiUtxoStatistics {total = Quantity {getQuantity = 0}, scale = ApiT {getApiT = Log10}, distribution = fromList [(10,0),(100,0),(1000,0),(10000,0),(100000,0),(1000000,0),(10000000,0),(100000000,0),(1000000000,0),(10000000000,0),(100000000000,0),(1000000000000,0),(10000000000000,0),(100000000000000,0),(1000000000000000,0),(10000000000000000,0),(45000000000000000,0)]}))
       expected: [(100000000,1)]
        but got: []

#2699

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 10, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit 27cc367 into master Jun 10, 2021
@iohk-bors iohk-bors bot deleted the piotr/update-e2e-tests-with-purpose branch June 10, 2021 08:51
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