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

ERC20 bridge multihop #140

Merged
merged 13 commits into from
Nov 21, 2023
Merged

ERC20 bridge multihop #140

merged 13 commits into from
Nov 21, 2023

Conversation

gwen917
Copy link
Contributor

@gwen917 gwen917 commented Nov 16, 2023

Why this should be merged

Implements the following test cases from #27:

Port the integration test cases in erc20_bridge_multihop.sh into Gingko.

How this works

See above

How this was tested

New E2E test case

How is this documented

@@ -80,12 +82,15 @@ func SetupNetwork(warpGenesisFile string) {
// Name 10 new validators (which should have BLS key registered)
var subnetANodeNames []string
var subnetBNodeNames []string
for i := 1; i <= 10; i++ {
var subnetCNodeNames []string

Choose a reason for hiding this comment

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

I think validate_churn should be updated to issue txs to the propose vm for all subnets. Also the node ids collide from 15-19 right now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I tried it from 16 to 20, but it still get error. I will double check.

Copy link
Contributor Author

@gwen917 gwen917 Nov 20, 2023

Choose a reason for hiding this comment

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

Here is failed CI with this change.

@@ -51,6 +51,10 @@ var _ = ginkgo.BeforeSuite(func() {
var _ = ginkgo.AfterSuite(localUtils.TearDownNetwork)

var _ = ginkgo.Describe("[Teleporter integration tests]", func() {
// Cross-chain application tests

Choose a reason for hiding this comment

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

after the comment below, and we issue tx to propose vm to all subnets, I'd like for validator churn to not need to be added last. Do you know right now if these tests are in random order?

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed. If we can fix it we should. Otherwise what happens if we have another test that also needs to go last? 🙃

Choose a reason for hiding this comment

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

instead of making the issue to proposevm calls to each subnet individually, can we iterate through all subnets in the network, get subnet info, and issue tx? To prevent in the future if we add more subnets for this test to break and need to be debugged.

Copy link
Contributor

@cam-schultz cam-schultz left a comment

Choose a reason for hiding this comment

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

A few more small comments, otherwiss LGTM

@@ -64,7 +68,4 @@ var _ = ginkgo.Describe("[Teleporter integration tests]", func() {
ginkgo.It("Resubmit altered message", ResubmitAlteredMessageGinkgo)
ginkgo.It("Relayer modifies message", RelayerModifiesMessageGinkgo)
ginkgo.It("Validator churn", ValidatorChurnGinkgo)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment here explaining that this test should be run last since it changes the network topology? In theory it shouldn't have any effect, but it seems like we have some further investigating to do. Can you please create a ticket and include all of your findings so far?

tests/validator_churn.go Show resolved Hide resolved
tests/e2e_test.go Show resolved Hide resolved
tests/validator_churn.go Show resolved Hide resolved
tests/erc20_bridge_multihop.go Outdated Show resolved Hide resolved
tests/erc20_bridge_multihop.go Outdated Show resolved Hide resolved
tests/erc20_bridge_multihop.go Outdated Show resolved Hide resolved
Copy link

@minghinmatthewlam minghinmatthewlam left a comment

Choose a reason for hiding this comment

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

LGTM, comment about checking total nodes instead of hardcoding is addressed in PR #93.

@minghinmatthewlam
Copy link

just bmping to create issue related to investigating validator_churn failure when different ordering: #140 (comment)

Copy link
Contributor

@bernard-avalabs bernard-avalabs left a comment

Choose a reason for hiding this comment

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

LGTM

@gwen917 gwen917 merged commit 00d2323 into general-e2e Nov 21, 2023
11 checks passed
@gwen917 gwen917 deleted the erc20-bridge-multihop branch November 21, 2023 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants