-
Notifications
You must be signed in to change notification settings - Fork 94
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
Move ETH tests to the new testnet #1828
Conversation
@caglaryucekaya the below tests pass locally but fail in CI, can you please fix them? mm2_tests::mm2_tests_inner::test_eth_swap_contract_addr_negotiation_same_fallback
mm2_tests::mm2_tests_inner::test_eth_swap_negotiation_fails_maker_no_fallback
mm2_tests::mm2_tests_inner::test_my_orders_after_matched
mm2_tests::mm2_tests_inner::test_update_maker_order_after_matched
mm2_tests::mm2_tests_inner::test_withdraw_and_send |
The errors in CI are caused by a connection problem to electrum nodes, which also happen on the dev branch so it's not relevant to the changes in this PR. |
I reran the tests in CI and they still fail, they also don't fail in other branches/PRs. It's not related to electrum nodes connections, e.g. for thread 'mm2_tests::mm2_tests_inner::test_eth_swap_contract_addr_negotiation_same_fallback' panicked at '!buy: {"error":"rpc:211] dispatcher_legacy:141] lp_ordermatch:3754] taker_swap:2285] eth:4672] Transport error: Got invalid response: http://195.201.137.5:8545/: data did not match any variant of untagged enum Response"}', /home/runner/work/atomicDEX-API/atomicDEX-API/mm2src/mm2_test_helpers/src/for_tests.rs:2756:9 Which is related to the new ethereum testnet node, this is the same error that I got before when trying to use the new testnet for |
You're right, I was having the electrum node problem locally, the problem on CI had a different reason. |
I don't know why different bob/alice passphrases are used in different CI machines, that's how it was in the old CI workflow and we wanted to keep it the same. If I had to guess why this decision was made in the past, it would be to prevent race conditions when running the CI jobs in parallel. |
Yeah that could be the reason, I'm having similar issues on watchtower tests when I use the same addresses and the tests are running in parallel. It can stay this way then, managing the balance of three pairs of addresses isn't a big problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this much needed PR! We finally have a healthy/green CI pipeline!
I only have a few minor comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
To merge this PR, please add a changelog entry and add a todo for this #1828 (comment)
This PR: