Skip to content

chore: replace custom inspector/executor builders with mcms helpers#21505

Draft
gustavogama-cll wants to merge 1 commit intodevelopfrom
ggama/chore/use-mcms-chainwrappers-helpers
Draft

chore: replace custom inspector/executor builders with mcms helpers#21505
gustavogama-cll wants to merge 1 commit intodevelopfrom
ggama/chore/use-mcms-chainwrappers-helpers

Conversation

@gustavogama-cll
Copy link
Contributor

Bump the mcms library and replace some of the custom inspector/executor/ converter "builder" logic with the "official" helpers recently added to the mcms library.

@gustavogama-cll gustavogama-cll requested review from a team as code owners March 11, 2026 22:45
Copilot AI review requested due to automatic review settings March 11, 2026 22:45
@gustavogama-cll gustavogama-cll marked this pull request as draft March 11, 2026 22:45
@smartcontractkit smartcontractkit deleted a comment from github-actions bot Mar 11, 2026
@github-actions
Copy link
Contributor

I see you updated files related to core. Please run make gocs 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.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2026

✅ No conflicts with other open PRs targeting develop

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Risk Rating: HIGH

This PR bumps the mcms dependency and refactors deployment MCMS test/proposal helpers to use the new mcms/chainwrappers builder helpers, while updating related Go module dependencies across deployment, integration-tests, and system-tests.

Changes:

  • Upgrade github.com/smartcontractkit/mcms to v0.37.0 (and bump chainlink-deployments-framework to v0.86.1 in affected modules).
  • Replace custom inspector/executor/converter construction with mcms/chainwrappers helpers + CLDF MCMS adapters in deployment/common/proposalutils.
  • Update various indirect dependencies (AWS SDK v2, grpc-gateway, gopsutil, testcontainers, OpenTelemetry, gRPC) as a result of the bump.

Reviewed changes

Copilot reviewed 8 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
system-tests/tests/go.mod Bump CLDF + indirect deps (incl. mcms) for system test module.
system-tests/tests/go.sum Lockfile updates for bumped deps.
system-tests/lib/go.mod Bump CLDF + indirect deps (incl. mcms) for system test lib module.
system-tests/lib/go.sum Lockfile updates for bumped deps.
integration-tests/load/go.mod Bump CLDF + indirect deps (incl. mcms) for load test module.
integration-tests/load/go.sum Lockfile updates for bumped deps.
integration-tests/go.mod Bump mcms/CLDF/testcontainers/grpc for integration-tests module.
integration-tests/go.sum Lockfile updates for bumped deps.
deployment/common/proposalutils/mcms_test_helpers.go Refactor test signing/execution helpers to use mcms/chainwrappers + CLDF adapters.
deployment/common/proposalutils/mcms_helpers.go Refactor inspector building to use mcms/chainwrappers + CLDF adapters; delegate Aptos role mapping helper.
deployment/go.mod Bump mcms + CLDF; adds an mcms replace directive (needs scrutiny).
deployment/go.sum Lockfile updates for bumped deps.
core/scripts/go.mod Bump CLDF + indirect deps (incl. mcms) for scripts module.
core/scripts/go.sum Lockfile updates for bumped deps.

Requires scrupulous human review:

  • deployment/common/proposalutils/mcms_test_helpers.go: correctness of BuildConverters/BuildInspectors/BuildExecutors/BuildTimelockExecutors usage across EVM/Solana/Aptos and the action passed in (especially for non-schedule actions).
  • deployment/common/proposalutils/mcms_helpers.go: Aptos role/action mapping behavior and error propagation (since this impacts proposal construction in deployment workflows).
  • deployment/go.mod: module replacement semantics and build/CI impact.

Suggested reviewers (per CODEOWNERS):

  • For /deployment/**: @smartcontractkit/operations-platform, @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @smartcontractkit/keystone, @smartcontractkit/core
  • For /integration-tests/**: @smartcontractkit/devex-tooling, @smartcontractkit/core
  • General dependency/go-mod changes: @smartcontractkit/core, @smartcontractkit/foundations

var err error
action, err = mcmsaptossdk.ActionFromAptosRole(options.AptosRole)
if err != nil {
return nil, fmt.Errorf("failed to get action from aptos role: %s", options.AptosRole.String())
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

When mcmsaptossdk.ActionFromAptosRole returns an error, the returned error message drops the underlying error context (it doesn't include/%w the err). Wrap the original error so callers can diagnose why the role->action mapping failed.

Suggested change
return nil, fmt.Errorf("failed to get action from aptos role: %s", options.AptosRole.String())
return nil, fmt.Errorf("failed to get action from aptos role %s: %w", options.AptosRole.String(), err)

Copilot uses AI. Check for mistakes.
@trunk-io
Copy link

trunk-io bot commented Mar 12, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Bump the mcms library and replace some of the custom inspector/executor/
converter "builder" logic with the "official" helpers recently added to
the mcms library.
@cl-sonarqube-production
Copy link

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.

2 participants