Skip to content

feat: external stress test#1137

Merged
kevinssgh merged 11 commits intodevelopfrom
ext-stress-test
Oct 3, 2023
Merged

feat: external stress test#1137
kevinssgh merged 11 commits intodevelopfrom
ext-stress-test

Conversation

@kevinssgh
Copy link
Contributor

@kevinssgh kevinssgh commented Sep 14, 2023

Description

Modifications to run stress test on specific chain.

Closes: #1136

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.

  • Tested CCTX in localnet
  • Tested in development environment
  • Go unit tests
  • Go integration tests
  • Tested via GitHub Actions

Checklist:

  • I have added unit tests that prove my fix feature works

Copy link
Contributor

@ws4charlie ws4charlie left a comment

Choose a reason for hiding this comment

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

looks good

Comment on lines +166 to +169
} else {
ethZRC20Addr, _ := smokeTest.SystemContract.GasCoinZRC20ByChainId(&bind.CallOpts{}, big.NewInt(5))
smokeTest.ETHZRC20Addr = ethZRC20Addr
smokeTest.ETHZRC20, _ = zrc20.NewZRC20(smokeTest.ETHZRC20Addr, smokeTest.zevmClient)
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I can tell, we support either local or testnet?

I would suggest checking here stressTestArgs.network == "TESTNET" and returning error otherwise

StressCmd.Flags().StringVar(&stressTestArgs.deployerAddress, "addr", "0xE5C5367B8224807Ac2207d350E60e1b6F27a7ecC", "--addr <eth address>")
StressCmd.Flags().StringVar(&stressTestArgs.deployerPrivateKey, "privKey", "d87baf7bf6dc560a252596678c12e41f7d1682837f05b29d411bc3f78ae2c263", "--privKey <eth private key>")
StressCmd.Flags().BoolVar(&stressTestArgs.local, "local", true, "--local")
StressCmd.Flags().StringVar(&stressTestArgs.network, "network", "PRIVNET", "--network PRIVNET")
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know if we use privnet naming anywhere else but I think localnet is a more common language to specify the local network

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 agree it isn't the correct language for this case but it is the name of the build flag used for the smoketest and config files.

@kevinssgh kevinssgh merged commit 19b6129 into develop Oct 3, 2023
@lumtis lumtis deleted the ext-stress-test branch October 27, 2023 23:20
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.

Modify stress test to run on specified chain

5 participants