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

Ccip-4110 migration test #15854

Merged
merged 35 commits into from
Jan 10, 2025
Merged

Ccip-4110 migration test #15854

merged 35 commits into from
Jan 10, 2025

Conversation

AnieeG
Copy link
Contributor

@AnieeG AnieeG commented Jan 7, 2025

Requires

Supports

@AnieeG AnieeG requested review from a team as code owners January 7, 2025 15:02
@AnieeG AnieeG marked this pull request as draft January 7, 2025 15:02
Copy link
Contributor

github-actions bot commented Jan 7, 2025

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

Copy link
Contributor

github-actions bot commented Jan 7, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

Copy link
Contributor

@makramkd makramkd left a comment

Choose a reason for hiding this comment

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

💯

@@ -323,7 +323,7 @@ func (params CCIPJobSpecParams) BootstrapJob(contractID string) *OCR2TaskJobSpec
},
}
return &OCR2TaskJobSpec{
Name: fmt.Sprintf("%s-%s", Boostrap, params.DestChainName),
Name: fmt.Sprintf("%s-%s-%s", Boostrap, params.SourceChainName, params.DestChainName),
Copy link
Contributor

Choose a reason for hiding this comment

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

If we're here fixing stuff may as well fix the typo Boostrap

},
})
require.NoError(t, err)
AddLaneWithDefaultPricesAndFeeQuoterConfig(t, &e, state, chain1, chain2, true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Haha we removed this and now its back, I actually copy/pasted the above code for my PR but I guess having this helper is fine.

Comment on lines +795 to 803
if cfg.TestRouter {
if err := commoncs.ValidateOwnership(e.GetContext(), cfg.MCMS != nil, e.Chains[chainSel].DeployerKey.From, chainState.Timelock.Address(), chainState.TestRouter); err != nil {
return err
}
} else {
if err := commoncs.ValidateOwnership(e.GetContext(), cfg.MCMS != nil, e.Chains[chainSel].DeployerKey.From, chainState.Timelock.Address(), chainState.Router); err != nil {
return err
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

q: if TestRouter is enabled why not validate ownership of it + the real router? Instead of either/or

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The real router can be owned by MCMS and test router can be owned by deployer key.

RMNStaticConfig: NewTestRMNStaticConfig(),
NodeOperators: NewTestNodeOperator(e.Env.Chains[e.HomeChainSel].DeployerKey.From),
NodeP2PIDsPerNodeOpAdmin: map[string][][32]byte{
"NodeOperator": envNodes.NonBootstraps().PeerIDs(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is "NodeOperator" the name of the nop or something? Would be nice as a constant or determined via some other way?

@@ -233,15 +235,25 @@ func (d *DeployedEnv) SetupJobs(t *testing.T) {

type MemoryEnvironment struct {
DeployedEnv
Chains map[uint64]deployment.Chain
TCConfig *TestConfigs
Copy link
Contributor

Choose a reason for hiding this comment

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

naming nit: just TestConfigs?

Comment on lines 476 to 477
var err error
envNodes, err := deployment.NodeInfo(e.Env.NodeIDs, e.Env.Offchain)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
var err error
envNodes, err := deployment.NodeInfo(e.Env.NodeIDs, e.Env.Offchain)
envNodes, err := deployment.NodeInfo(e.Env.NodeIDs, e.Env.Offchain)

Comment on lines 110 to 112
// Adding to src1 and dest chains first, due to the open issue -
// if ccip contracts are added to all chains and only one lane is enabled between src1 and dest, the plugin will not work
// until lanes are added involving the rest of the chains
Copy link
Contributor

Choose a reason for hiding this comment

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

What open issue is this referring to?

makramkd
makramkd previously approved these changes Jan 10, 2025
Comment on lines 319 to 320
require.NoError(t, testCfg.Validate(), "invalid test con"+
"fig")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the error string two lines?

tEnv.UpdateDeployedEnvironment(e)
e = AddCCIPContractsToEnvironment(t, e.Env.AllChainSelectors(), tEnv)
// now we update RMNProxy to point to RMNRemote
e.Env, err = commonchangeset.ApplyChangesets(t, e.Env, nil, []commonchangeset.ChangesetApplication{
Copy link
Contributor

Choose a reason for hiding this comment

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

Noticed that this isn't in AddCCIPContractsToEnvironment, is that intentional? This caught me when writing the add chain test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. RMNProxy can be owned by timelock like in this test case. If owned by timelock, we will have to run this changeset with MCMS config but that's not the case for generic test set up. that's why I have kept it separate.

@AnieeG AnieeG enabled auto-merge January 10, 2025 20:42
@AnieeG AnieeG added this pull request to the merge queue Jan 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 10, 2025
@AnieeG AnieeG added this pull request to the merge queue Jan 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 10, 2025
@AnieeG AnieeG added this pull request to the merge queue Jan 10, 2025
Merged via the queue into develop with commit 6a91c28 Jan 10, 2025
193 of 194 checks passed
@AnieeG AnieeG deleted the ccip-4110-migration-test branch January 10, 2025 21:45
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.

4 participants