Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

tests(rpc): add filter tests #1233

Merged
merged 15 commits into from
Aug 12, 2022
Merged

tests(rpc): add filter tests #1233

merged 15 commits into from
Aug 12, 2022

Conversation

danburck
Copy link
Contributor

@danburck danburck commented Aug 10, 2022

Description

This PR adds basic integration tests for testing JSON RPC eth filters on a ethermint/geth cluster. In the future we should add more complex testing cases.

Closes https://linear.app/evmos/issue/ENG-642/integration-test-json-rpc-filters

@github-actions github-actions bot added the Type: Tests issues and PR related to tests label Aug 10, 2022
@danburck danburck changed the title tests(rpc): add pending transaction filter test tests(rpc): add filter tests Aug 10, 2022
@danburck danburck marked this pull request as ready for review August 11, 2022 20:21
Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

LGTM, can you fix the linter errors?

@danburck
Copy link
Contributor Author

@facs95 @ramacarlucho @yihuang seems like the test_get_proof is failing even though this PR doesn't touch the types.

The last two merged commits passed:

Any idea why it's failing?

@yihuang
Copy link
Contributor

yihuang commented Aug 12, 2022

Any idea why it's failing?

Have no idea right now, didn't reproduce locally, maybe you try rerun, it'll success 🤔

@yihuang
Copy link
Contributor

yihuang commented Aug 12, 2022

I think the priority test failure is due to the dropping of the base fee, which causes the actual tx priority not as expected when sent, I'll update some numbers to make the drop effect less significant.

@yihuang
Copy link
Contributor

yihuang commented Aug 12, 2022

I think the priority test failure is due to the dropping of the base fee, which causes the actual tx priority not as expected when sent, I'll update some numbers to make the drop effect less significant.

#1238

@yihuang
Copy link
Contributor

yihuang commented Aug 12, 2022

seems like the test_get_proof is failing even though this PR doesn't touch the types

#1239

tests/integration_tests/README.md Outdated Show resolved Hide resolved
@danburck danburck enabled auto-merge (squash) August 12, 2022 13:51
@danburck danburck merged commit 9bbf356 into main Aug 12, 2022
@danburck danburck deleted the ENG-642-filters-integration-tests branch August 12, 2022 13:57
facs95 pushed a commit that referenced this pull request Aug 12, 2022
* tests(rpc): add pending transaction filter test

* tests(rpc): add block filter and event log  test

* tests(rpc): simplify to cluster instead of comparing types

* tests(rpc): wip filter by address

* tests(rpc): add get_logs test

* fix flake8 linter

* fix flake8 linter

* add caching to readme

* add caching to readme

Co-authored-by: Federico Kunze Küllmer <[email protected]>
@facs95 facs95 mentioned this pull request Aug 12, 2022
11 tasks
fedekunze added a commit that referenced this pull request Aug 13, 2022
* changelog

* Add support for miner_setGasPrice API (#1237)

* fix kv indexer unit test

* fix(rpc): get_proof test fail because block numbers are not high enough (#1239)

* Problem: get_proof test fail because block numbers are not high enough

Solution:
- wait for app block height rather than tendermint block height

* Update tests/integration_tests/test_types.py

* keep get_proof response the same as geth

Co-authored-by: Daniel Burckhardt <[email protected]>

* tests(rpc): add filter tests (#1233)

* tests(rpc): add pending transaction filter test

* tests(rpc): add block filter and event log  test

* tests(rpc): simplify to cluster instead of comparing types

* tests(rpc): wip filter by address

* tests(rpc): add get_logs test

* fix flake8 linter

* fix flake8 linter

* add caching to readme

* add caching to readme

Co-authored-by: Federico Kunze Küllmer <[email protected]>

* changelog

* update gomod2nix

* fix python linter

* Apply suggestions from code review

* Update CHANGELOG.md

Co-authored-by: yihuang <[email protected]>
Co-authored-by: Daniel Burckhardt <[email protected]>
Co-authored-by: Federico Kunze Küllmer <[email protected]>
hoanguyenkh pushed a commit to AstraProtocol/ethermint that referenced this pull request Aug 17, 2022
* changelog

* Add support for miner_setGasPrice API (evmos#1237)

* fix kv indexer unit test

* fix(rpc): get_proof test fail because block numbers are not high enough (evmos#1239)

* Problem: get_proof test fail because block numbers are not high enough

Solution:
- wait for app block height rather than tendermint block height

* Update tests/integration_tests/test_types.py

* keep get_proof response the same as geth

Co-authored-by: Daniel Burckhardt <[email protected]>

* tests(rpc): add filter tests (evmos#1233)

* tests(rpc): add pending transaction filter test

* tests(rpc): add block filter and event log  test

* tests(rpc): simplify to cluster instead of comparing types

* tests(rpc): wip filter by address

* tests(rpc): add get_logs test

* fix flake8 linter

* fix flake8 linter

* add caching to readme

* add caching to readme

Co-authored-by: Federico Kunze Küllmer <[email protected]>

* changelog

* update gomod2nix

* fix python linter

* Apply suggestions from code review

* Update CHANGELOG.md

Co-authored-by: yihuang <[email protected]>
Co-authored-by: Daniel Burckhardt <[email protected]>
Co-authored-by: Federico Kunze Küllmer <[email protected]>
devon-chain pushed a commit to PundiAI/ethermint that referenced this pull request Nov 17, 2022
* changelog

* Add support for miner_setGasPrice API (evmos#1237)

* fix kv indexer unit test

* fix(rpc): get_proof test fail because block numbers are not high enough (evmos#1239)

* Problem: get_proof test fail because block numbers are not high enough

Solution:
- wait for app block height rather than tendermint block height

* Update tests/integration_tests/test_types.py

* keep get_proof response the same as geth

Co-authored-by: Daniel Burckhardt <[email protected]>

* tests(rpc): add filter tests (evmos#1233)

* tests(rpc): add pending transaction filter test

* tests(rpc): add block filter and event log  test

* tests(rpc): simplify to cluster instead of comparing types

* tests(rpc): wip filter by address

* tests(rpc): add get_logs test

* fix flake8 linter

* fix flake8 linter

* add caching to readme

* add caching to readme

Co-authored-by: Federico Kunze Küllmer <[email protected]>

* changelog

* update gomod2nix

* fix python linter

* Apply suggestions from code review

* Update CHANGELOG.md

Co-authored-by: yihuang <[email protected]>
Co-authored-by: Daniel Burckhardt <[email protected]>
Co-authored-by: Federico Kunze Küllmer <[email protected]>
(cherry picked from commit 3762738)
@danburck danburck mentioned this pull request Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Tests issues and PR related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants