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

Less wallets in e2e tests #3027

Merged
merged 5 commits into from
Nov 19, 2021
Merged

Less wallets in e2e tests #3027

merged 5 commits into from
Nov 19, 2021

Conversation

piotr-iohk
Copy link
Contributor

@piotr-iohk piotr-iohk commented Nov 18, 2021

  • c3c4288
    Limit nb of wallets in e2e tests

  • 637f4ff
    Migrate all funds back to fixture wallet back from target wallet that's used across the test suite

Comments

Using single target wallet for transactions in e2e tests and extending/refactoring assertions for checking balances on target and source wallets before and after transactions taking in account amounts, assets and fees. At the end of the suite all funds are migrated back to the fixture wallet which is a good test in itself.

Issue Number

ADP-1196

@piotr-iohk piotr-iohk self-assigned this Nov 18, 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
Copy link
Contributor

iohk-bors bot commented Nov 19, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit 9e337df into master Nov 19, 2021
@iohk-bors iohk-bors bot deleted the piotr/adp-1196/less-wallets branch November 19, 2021 17:09
iohk-bors bot added a commit that referenced this pull request Nov 23, 2021
3031: Fix node db cache and e2e workflow improvements r=piotr-iohk a=piotr-iohk

- 5cccf82
  Attempt to fix node db caching
  
- 5356643
  More granular steps in e2e workflows
  
- 087f7a5
  Use Linux workflow cache if other not available
  
- 0d752a0
  Docker workflow adjustments
  
- e2b2ef5
  update README

### Comments

Improvements made here and in #3027 bring significant improvements in speed and reliability of e2e tests. Tests on MacOS and Linux used to take 2-3h overall and on Windows even up to 6h (which often led to exceeding GH actions timeout). This was mainly due to incorrect use of node db caching which caused a lot of time spend of syncing node db against testnet. Improved execution times are as follows:

|  Linux|MacOS|Windows|Docker|
|--|--|--|--|
|[1h](https://github.com/input-output-hk/cardano-wallet/actions/runs/1490250065)|[1h 6m](https://github.com/input-output-hk/cardano-wallet/actions/runs/1490370180)|[1h 31m](https://github.com/input-output-hk/cardano-wallet/actions/runs/1490442118)|[1h](https://github.com/input-output-hk/cardano-wallet/actions/runs/1493877513)|

Due to node db caching, which is happening properly now on every run, node db syncing time is cut from few hours to few minutes 🎉. Majority of the remaining test suite time is still spend on syncing fixture wallets, but it is good test on it's own so there seems to be no need for further improvements. Execution times seem to be satisfactory for nightly e2e tests and also in the need for an ad-hoc e2e run. 

### Issue Number

ADP-1196


3032: Remove redundant imports and constraints. r=Anviking a=jonathanknowles

## Issue Number

None

## Summary

This PR removes some redundant imports and constraints.

I collected these patches while working on other things. It seemed sensible to put them in their own PR.

Co-authored-by: Piotr Stachyra <[email protected]>
Co-authored-by: Jonathan Knowles <[email protected]>
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.

2 participants