Skip to content

e2e: Ensure interchain workflow coverage for X-Chain and C-Chain #1871

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

Merged
merged 9 commits into from
Aug 25, 2023

Conversation

marun
Copy link
Contributor

@marun marun commented Aug 17, 2023

Why this should be merged

Fulfills one of the requirements for #1547 (migration of Kurtosis tests)

How this works

  • ensures coverage of interchain transfer equivalent to and extending from avalanche-testing's C-Chain Atomic Workflow test
  • Previously pre-funded keys were only funded on the X-Chain, but now they are funded on the C-Chain too to support the new testing of the C-Chain workflow.

How this was tested

CI

TODO

Implementation of the P-Chain workflow will be tackled in a different PR due to the dependency on node addition added by #1573.

@marun marun mentioned this pull request Aug 17, 2023
16 tasks
@marun marun force-pushed the e2e-kurtosis-interchain-workflow branch 4 times, most recently from f13f760 to 9460e58 Compare August 19, 2023 18:12
@marun marun force-pushed the e2e-kurtosis-interchain-workflow branch 3 times, most recently from 83e2078 to 3eaef23 Compare August 19, 2023 21:27
@marun marun force-pushed the e2e-kurtosis-interchain-workflow branch 3 times, most recently from 40316dc to 8e661ff Compare August 20, 2023 00:07
@marun marun marked this pull request as ready for review August 20, 2023 00:08
@marun marun force-pushed the e2e-kurtosis-interchain-workflow branch from 8e661ff to f60ce01 Compare August 20, 2023 15:49
@marun marun changed the title e2e: Ensure interchain workflow coverage equivalent to kurtosis testing e2e: Ensure interchain workflow coverage for X-Chain and C-Chain Aug 20, 2023
@marun marun added testing This primarily focuses on testing e2e-migrate-kurtosis labels Aug 20, 2023
@ava-labs ava-labs deleted a comment from marun Aug 21, 2023
Copy link

@danlaine danlaine left a comment

Choose a reason for hiding this comment

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

The tests themselves LGTM but I left some questions/nits.

Also, personally I prefer to use

var (
   thing1 = ...
   thing2 = ...
)

as opposed to

thing1 := ...
thing2 := ...

when there are more than 2 things being declared consecutively. Not a binding style thing but I just like it better. Up to you.

// Sign transaction
cChainID, err := ethClient.ChainID(e2e.DefaultContext())
require.NoError(err)
signer := types.NewEIP155Signer(cChainID)

Choose a reason for hiding this comment

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

Someone who knows the EVM better than I do should comment as to whether this is the signer we want to use

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FWIW I'm copying what we used in snow-machine: https://github.com/ava-labs/snow-machine/blob/cchain-send/c/c.go#L37

@marun marun force-pushed the e2e-kurtosis-interchain-workflow branch from 2faec8c to bf18183 Compare August 22, 2023 17:38
@marun
Copy link
Contributor Author

marun commented Aug 22, 2023

Rebaed

@abi87 abi87 linked an issue Aug 23, 2023 that may be closed by this pull request
16 tasks
@StephenButtolph StephenButtolph added this to the v1.10.10 milestone Aug 25, 2023
@marun marun force-pushed the e2e-kurtosis-interchain-workflow branch from 5ee2c53 to 6dfadc6 Compare August 25, 2023 18:46
maru-ava and others added 4 commits August 25, 2023 11:47
Co-authored-by: Stephen Buttolph <stephen@avalabs.org>
Signed-off-by: marun <maru.newby@avalabs.org>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org>
Signed-off-by: marun <maru.newby@avalabs.org>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org>
Signed-off-by: marun <maru.newby@avalabs.org>
@marun
Copy link
Contributor Author

marun commented Aug 25, 2023

Removed superflous cchain default amount and invalid reference.

@StephenButtolph StephenButtolph merged commit c3e9a69 into dev Aug 25, 2023
@StephenButtolph StephenButtolph deleted the e2e-kurtosis-interchain-workflow branch August 25, 2023 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing This primarily focuses on testing
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Migrate Kurtosis Tests
6 participants