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-4693 deprecate add lane replaced with granular changesets #15784

Merged
merged 20 commits into from
Dec 20, 2024

Conversation

AnieeG
Copy link
Contributor

@AnieeG AnieeG commented Dec 20, 2024

Requires

Supports

@AnieeG AnieeG requested review from a team as code owners December 20, 2024 00:15
_ deployment.ChangeSet[UpdateRouterRampsConfig] = UpdateRouterRamps
_ deployment.ChangeSet[UpdateFeeQuoterDestsConfig] = UpdateFeeQuoterDests
_ deployment.ChangeSet[SetOCR3OffRampConfig] = SetOCR3OffRamp
_ deployment.ChangeSet[UpdateFeeQuoterPricesConfig] = UpdateFeeQuoterPricesCS
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Appending CS at the end of changesets. otherwise in lot of places the CS and deploy/config funcs are throwing lint error for having same name

Copy link
Contributor

github-actions bot commented Dec 20, 2024

AER Report: CI Core

aer_workflow , commit , Detect Changes , Scheduled Run Frequency , Clean Go Tidy & Generate , Flakeguard Root Project / Get Tests To Run , GolangCI Lint (integration-tests) , Core Tests (go_core_tests) , GolangCI Lint (deployment) , Core Tests (go_core_tests_integration) , test-scripts , Core Tests (go_core_ccip_deployment_tests) , Core Tests (go_core_fuzz) , Core Tests (go_core_race_tests) , Flakeguard Deployment Project / Get Tests To Run , Flakeguard Root Project / Run Tests , Flakeguard Root Project / Report , Flakeguard Deployment Project / Run Tests (github.com/smartcontractkit/chainlink/deployment/ccip/changeset, ubuntu-latest) , lint , SonarQube Scan , Flakey Test Detection , Flakeguard Deployment Project / Report

1. fmt.Errorf can be replaced with errors.New:[Golang Lint (deployment)]

Source of Error:
deployment/ccip/changeset/cs_chain_contracts.go:555:12: fmt.Errorf can be replaced with errors.New (perfsprint)
				return fmt.Errorf("source and destination chain cannot be the same")
				 ^
**Why**: The error is caused by the use of `fmt.Errorf` where `errors.New` would be more appropriate. This is a performance issue flagged by the linter.

Suggested fix: Replace fmt.Errorf("source and destination chain cannot be the same") with errors.New("source and destination chain cannot be the same").

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

Copy link
Contributor

Flakeguard Summary

Ran new or updated tests between develop and 6e6155c (ccip-4693-deprecate-add-lane).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestRevert 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment false 10ms @smartcontractkit/ccip, @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

type NonceManagerUpdate struct {
AddedAuthCallers []common.Address
RemovedAuthCallers []common.Address
PreviousRampsArgs []nonce_manager.NonceManagerPreviousRampsArgs
Copy link
Contributor

Choose a reason for hiding this comment

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

I think in some cases we can we can look up the relevant addresses instead of passing them to make it more robust. Here I think it'll be simpler if we expose just a boolean flag like EnablePrevRamps (and perhaps a DisablePrevRamps flag which would set them to zero) which would look up the relevant prev ramps on the chain (and fail if there are no such legacy ramps). Similar to the approach I took for the TestRouter bool, that way you can't mess it up

@@ -167,6 +307,143 @@ func UpdateOnRampsDests(e deployment.Environment, cfg UpdateOnRampDestsConfig) (
}}, nil
}

type UpdateFeeQuoterPricesConfig struct {
InitialPrices map[uint64]FeeQuoterPriceUpdatePerSource
Copy link
Contributor

Choose a reason for hiding this comment

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

not initial right, just prices to set?

if chainState.FeeQuoter == nil {
return fmt.Errorf("missing fee quoter for chain %d", chainSel)
}
if err := commoncs.ValidateOwnership(e.GetContext(), cfg.MCMS != nil, e.Chains[chainSel].DeployerKey.From, chainState.Timelock.Address(), chainState.FeeQuoter); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we'd also need to check that the timelock or deployerkey is enabled as a price updater

@cl-sonarqube-production
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

@AnieeG AnieeG enabled auto-merge December 20, 2024 17:22
@AnieeG AnieeG added this pull request to the merge queue Dec 20, 2024
Merged via the queue into develop with commit 6ea85ea Dec 20, 2024
188 of 190 checks passed
@AnieeG AnieeG deleted the ccip-4693-deprecate-add-lane branch December 20, 2024 17:50
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.

3 participants