Skip to content

Conversation

@marun
Copy link
Contributor

@marun marun commented Aug 20, 2023

Why this should be merged

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

How this works

How this was tested

CI

TODO

@marun marun added testing This primarily focuses on testing e2e-migrate-kurtosis labels Aug 20, 2023
@marun marun mentioned this pull request Aug 20, 2023
16 tasks
@marun marun force-pushed the e2e-p-chain-workflow branch from 5b122ff to cb7166d Compare August 20, 2023 21:53
@marun marun force-pushed the e2e-p-chain-workflow branch 2 times, most recently from 064d475 to 19987b2 Compare August 22, 2023 00:09
@marun marun linked an issue Aug 23, 2023 that may be closed by this pull request
16 tasks
@marun marun self-assigned this Aug 23, 2023
@marun marun force-pushed the e2e-p-chain-workflow branch 2 times, most recently from 1a6e8de to 2996199 Compare August 27, 2023 19:18
@marun marun marked this pull request as ready for review August 27, 2023 19:18
@marun marun requested review from abi87 and gyuho as code owners August 27, 2023 19:18
@marun marun force-pushed the e2e-p-chain-workflow branch from 2996199 to 1bfab3d Compare August 27, 2023 19:59
@marun marun requested a review from danlaine August 27, 2023 20:07
@marun marun requested a review from StephenButtolph as a code owner August 27, 2023 21:12
@marun marun marked this pull request as draft August 30, 2023 16:37
@marun marun force-pushed the e2e-p-chain-workflow branch 6 times, most recently from 4475f2d to 34feccc Compare September 1, 2023 18:33
@marun marun force-pushed the e2e-p-chain-workflow branch 2 times, most recently from d785771 to d30a8ac Compare September 7, 2023 01:13
@marun marun marked this pull request as ready for review September 7, 2023 01:14
@marun marun force-pushed the e2e-p-chain-workflow branch from 99a3b3d to 2f094ed Compare September 21, 2023 06:39
@marun
Copy link
Contributor Author

marun commented Sep 21, 2023

Rebased

nodeID, nodePOP, err := infoClient.GetNodeID(e2e.DefaultContext())
require.NoError(err)

ginkgo.By("adding the new node as a validator", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

q: why do we need to promote the node as validator? Can't we let it be a non-validator issuing a import/export Tx and let other validators in the network do the job of accepting the transactions?

Copy link
Contributor Author

@marun marun Sep 21, 2023

Choose a reason for hiding this comment

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

The requirement in #1547 is for A P-Chain workflow test where we add a node to the validator set, add a delegator for that node, and do import/export transactions to the X-Chain and C-Chain.

require.NoError(err)
})

ginkgo.By("adding a delegator to the new node", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

q: why do we need to make nodeID as both validator and delegator?
Also IIUC, what we are doing here is delegating some more nodeID's funds to nodeID. Why is this needed?

Copy link
Contributor Author

@marun marun Sep 21, 2023

Choose a reason for hiding this comment

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

Again, the requirement in #1547 is for A P-Chain workflow test where we add a node to the validator set, add a delegator for that node, and do import/export transactions to the X-Chain and C-Chain.

abi87
abi87 previously requested changes Sep 21, 2023
Copy link
Contributor

@abi87 abi87 left a comment

Choose a reason for hiding this comment

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

a couple of questions about test structure, which may be simpler. Other than that LGTM

@marun marun force-pushed the e2e-p-chain-workflow branch from 4406254 to 317b548 Compare September 21, 2023 12:46
@StephenButtolph StephenButtolph dismissed abi87’s stale review September 21, 2023 15:47

comments were addressed

@StephenButtolph StephenButtolph added this to the v1.10.11 milestone Sep 21, 2023
@StephenButtolph StephenButtolph merged commit fd36124 into dev Sep 21, 2023
@StephenButtolph StephenButtolph deleted the e2e-p-chain-workflow branch September 21, 2023 16:10
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

7 participants