Skip to content

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

Merged
gustavogama-cll merged 1 commit intodevelopfrom
ecpablo/replace-mcms-helpers-usages
Apr 21, 2026
Merged

chore: replace mcms helpers usages [OPT-1911]#22019
gustavogama-cll merged 1 commit 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, mcms_test_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

All codeowners have approved! ✅

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

For more details, see the full review summary.

@github-actions

This comment was marked as resolved.

@trunk-io

This comment was marked as resolved.

This comment was marked as resolved.

@ecPablo ecPablo force-pushed the ecpablo/replace-mcms-helpers-usages branch from c87d13d to 259d225 Compare April 21, 2026 12:53
@cl-sonarqube-production
Copy link
Copy Markdown

@gustavogama-cll gustavogama-cll added this pull request to the merge queue Apr 21, 2026
Merged via the queue into develop with commit b3f5ffd Apr 21, 2026
364 of 370 checks passed
@gustavogama-cll gustavogama-cll deleted the ecpablo/replace-mcms-helpers-usages branch April 21, 2026 21:12
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.

6 participants