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

test(e2e): lower cost to run on live networks #1646

Merged
merged 16 commits into from
Jun 30, 2023
Merged

Conversation

pirtleshell
Copy link
Member

Description

Updates e2e tests!

  • adds monitoring to track how much the e2e tests spend (on gas, by sending to orphaned accounts or depositing into protocols)
  • loops through all signing accounts on test suite teardown and returns all sdk funds back to funding account
  • returns pre-deployed erc20 funds to funding account (adds registration for erc20s for registering and refunding more erc20s in the future)
  • lowers values used by tests so funding account requires less funds
  • lowers unnecessarily high gas costs in tests

Results of lowering the costs!
If run on mainnet post-kavav 14 upgrade, here's what the spend would be. erc20 in this case is multichain USDC & the ibc denom is uatom.
before this PR:

cost:
- 11000erc20
- 4000000ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2
- 17947528ukava

after this PR:

- 101erc20
- 1ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2
- 144050ukava

So to perform a hypothetical e2e test run on mainnet goes from costing ~$53 (LOL) to ~14.5 cents 💪

Checklist

  • Changelog has been updated as necessary.

@pirtleshell pirtleshell merged commit 5cfa33f into master Jun 30, 2023
6 of 7 checks passed
@pirtleshell pirtleshell deleted the rp-e2e-cost-savings branch June 30, 2023 05:30
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