-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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-4948: Adding new test for disable and enable lane #16038
Conversation
@@ -705,12 +705,10 @@ func UpdateOffRampSourcesChangeset(e deployment.Environment, cfg UpdateOffRampSo | |||
var args []offramp.OffRampSourceChainConfigArgs | |||
for source, update := range updates { | |||
router := common.HexToAddress("0x0") | |||
if update.IsEnabled { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
router can't be 0x0 address as Offramp expects valid router address ow it will throw ZeroAddressNotAllowed error message.
revert ZeroAddressNotAllowed(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's not possible to disable a router in offRamp, the parameter IsEnabled should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is still needed to make here
IsEnabled: update.IsEnabled, |
AER Report: CI Core ran successfully ✅AER Report: Operator UI CI ran successfully ✅ |
457f900
to
093222d
Compare
@@ -705,12 +705,10 @@ func UpdateOffRampSourcesChangeset(e deployment.Environment, cfg UpdateOffRampSo | |||
var args []offramp.OffRampSourceChainConfigArgs | |||
for source, update := range updates { | |||
router := common.HexToAddress("0x0") | |||
if update.IsEnabled { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's not possible to disable a router in offRamp, the parameter IsEnabled should be removed
review comments rename Add test to CI and add enabledConfig flag remove unwanted sql add variables locally
8ad49b2
to
2dbae80
Compare
Changeset: commoncs.WrapChangeSet(changeset.UpdateOffRampSourcesChangeset), | ||
Config: changeset.UpdateOffRampSourcesConfig{ | ||
UpdatesByChain: map[uint64]map[uint64]changeset.OffRampSourceUpdate{ | ||
dest: { | ||
src: { | ||
IsEnabled: false, | ||
TestRouter: isTestRouter, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@makramkd would it affect the inflight requests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, no offramp changes should be made
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my observation, if no offramp changes are made, then in-flight requests are getting delivered. Let's say, we made the offramp changes as well, in that case the in-flight requests are not getting delivered. Haven't seen reverting as well not sure If I need to wait longer for that.
So, we should not make offramp changes when there is in-flight request. Will remove this part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if no offramp changes are made, then in-flight requests are getting delivered.
Yeah, just to be clear this is the desired behavior.
remove if
9b9b48a
to
193de02
Compare
Quality Gate passedIssues Measures |
Adding test to verify the op changeset workflow to disable and re-enable the lane.
Tests it will cover: TC001 & TC002
https://smartcontract-it.atlassian.net/wiki/spaces/QA/pages/1262846210/CCIP+V1.6+Changeset+Test+Plan