Skip to content

chore: replace mcms helpers usages [OPT-1911]#22019

Draft
ecPablo wants to merge 4 commits intodevelopfrom
ecpablo/replace-mcms-helpers-usages
Draft

chore: replace mcms helpers usages [OPT-1911]#22019
ecPablo wants to merge 4 commits intodevelopfrom
ecpablo/replace-mcms-helpers-usages

Conversation

@ecPablo
Copy link
Copy Markdown
Contributor

@ecPablo ecPablo commented Apr 14, 2026

Replaces all usages of proposalutils/mcms_helpers.go with CLDF functions.

AI Summary

This pull request refactors test and implementation code to consistently use shared helper utilities for MCMS (Multi-Chain Management System) proposal creation, execution, and configuration. The main changes involve replacing direct imports and usage of the local proposalutils package with the shared cldftesthelpers and cldfproposalutils modules from the chainlink-deployments-framework. This improves code reuse, maintainability, and consistency across the codebase.

Test code refactoring:

  • Replaced proposalutils.SingleGroupMCMSV2 and related helpers with cldftesthelpers.SingleGroupMCMS in multiple test files, including cs_deploy_aptos_chain_test.go, test_helpers.go, test_helpers_aptos.go, test_helpers_solana_v0_1_0.go, and test_helpers_solana_v0_1_1.go. This standardizes MCMS test configuration and reduces duplication. [1] [2] [3] [4] [5] [6] [7]

  • Updated test execution helpers to use cldftesthelpers for signing and executing MCMS proposals, replacing previous proposalutils calls in cross-family and Solana-related tests.

Implementation code refactoring:

  • Changed all usage of proposalutils.McmsInspectorForChain, proposalutils.BatchOperationForChain, and proposalutils.TransactionForChain to use the shared cldfproposalutils package in several implementation files, including cs_rmn.go, cs_add_registry_module.go, cs_ccip_home.go, and cs_chain_contracts.go. This centralizes MCMS proposal logic and reduces the risk of divergence. [1] [2] [3] [4] [5] [6] [7] [8]

Import cleanup and consistency:

  • Updated imports throughout the codebase to remove references to the local proposalutils and instead import cldftesthelpers and cldfproposalutils where needed, improving clarity and maintainability. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]

These changes help ensure that all MCMS-related proposal logic and test helpers are sourced from a single, shared location, reducing duplication and the risk of inconsistencies.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 14, 2026

CORA - Pending Reviewers

Codeowners Entry Overall Num Files Owners
/deployment/ccip/ 15 @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @smartcontractkit/operations-platform, @smartcontractkit/core
/deployment/common/ 16 @smartcontractkit/operations-platform
/deployment/cre/ 3 @smartcontractkit/keystone, @smartcontractkit/operations-platform
/deployment/data-feeds/ 1 @smartcontractkit/data-feeds-engineers, @smartcontractkit/operations-platform, @smartcontractkit/core
/deployment/keystone/ 16 @smartcontractkit/keystone, @smartcontractkit/operations-platform, @smartcontractkit/core
/deployment/vault/ 1 @smartcontractkit/cld-vault, @smartcontractkit/operations-platform, @smartcontractkit/core
go.mod 1 @smartcontractkit/core, @smartcontractkit/foundations
go.sum 1 @smartcontractkit/core, @smartcontractkit/foundations

Legend: ✅ Approved | ❌ Changes Requested | 💬 Commented | 🚫 Dismissed | ⏳ Pending | ❓ Unknown

For more details, see the full review summary.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 14, 2026

✅ No conflicts with other open PRs targeting develop

@trunk-io
Copy link
Copy Markdown

trunk-io bot commented Apr 15, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

Failed Test Failure Summary Logs
TestSetupEnv/test_env_with_in_memory_nodes Logs ↗︎
TestWithdrawOnRampFeeTokens/MCMS_enabled Logs ↗︎
TestUpdateAdminRoleChangesetV2_MultipleTokensPerChain Logs ↗︎
TestProposeAdminRoleChangesetV2_ExecutionWithMCMS Logs ↗︎

... and 166 more

View Full Report ↗︎Docs

@cl-sonarqube-production
Copy link
Copy Markdown

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.

1 participant