Skip to content

test: replace legacy changeset usage with new#110

Closed
graham-chainlink wants to merge 1 commit into
mainfrom
ggoh/cld-2719/remove-legacy-usage-mcms
Closed

test: replace legacy changeset usage with new#110
graham-chainlink wants to merge 1 commit into
mainfrom
ggoh/cld-2719/remove-legacy-usage-mcms

Conversation

@graham-chainlink

@graham-chainlink graham-chainlink commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Replace legacy changeset usage in the new changeset tests , spefiically the deploy mcms legacy changeset, now they use the new deploy changeset for mcms. This was done initially to get things going before the deploy changesets were ready.

@graham-chainlink graham-chainlink changed the title tests: replace legacy changeset usage with new [NOT READY]tests: replace legacy changeset usage with new Jun 29, 2026
@graham-chainlink graham-chainlink marked this pull request as ready for review June 29, 2026 13:09
@graham-chainlink graham-chainlink requested a review from a team as a code owner June 29, 2026 13:09
@graham-chainlink graham-chainlink force-pushed the ggoh/cld-2719/remove-legacy-usage-mcms branch from ee9edce to 6b95819 Compare June 29, 2026 13:16
@graham-chainlink graham-chainlink requested a review from ecPablo June 29, 2026 13:17
ecPablo
ecPablo previously approved these changes Jun 29, 2026
@graham-chainlink graham-chainlink force-pushed the ggoh/CLD-2719/solana-mcms-deploy branch 3 times, most recently from 0848548 to 641037d Compare June 30, 2026 00:36
Base automatically changed from ggoh/CLD-2719/solana-mcms-deploy to main June 30, 2026 01:03
@graham-chainlink graham-chainlink dismissed ecPablo’s stale review June 30, 2026 01:03

The base branch was changed.

@graham-chainlink graham-chainlink force-pushed the ggoh/cld-2719/remove-legacy-usage-mcms branch from 6b95819 to 3403a97 Compare June 30, 2026 01:06
Copilot AI review requested due to automatic review settings June 30, 2026 01:06
@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

Release impact (release-please)

Current version 0.7.1 (on main)
After merge no version bump (no release)

PR title: test: replace legacy changeset usage with new

This title will not trigger a semver bump when squash-merged to main. Use feat: for a minor release, or fix: / perf: / revert: for a patch release.

Conventional commit → bump

Intent PR title prefix Bump
Bug fix fix: patch
New feature feat: minor
Breaking change feat!: / fix!: or BREAKING CHANGE: / BREAKING-CHANGE: in description major
No release chore:, docs:, ci:, refactor:, etc. none

Update the PR title before merge if you need a different bump (squash commit message = PR title).

Preview is based on this PR title only. The release-please release PR may include other unreleased commits already on main.

@graham-chainlink graham-chainlink changed the title [NOT READY]tests: replace legacy changeset usage with new tests: replace legacy changeset usage with new Jun 30, 2026
@graham-chainlink graham-chainlink changed the title tests: replace legacy changeset usage with new test: replace legacy changeset usage with new Jun 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates MCMS integration/unit tests to stop relying on legacy MCMS changesets (notably the legacy deploy changeset) and instead exercise the new MCMS deploy + related changesets/registrations for both EVM and Solana paths.

Changes:

  • Migrate Solana/EVM tests from legacy/mcms/changesets deploy/transfer usage to mcms/changesets/deploy (+ transfer-to-timelock where applicable).
  • Introduce Solana test helpers to (a) reuse cached MCMS program artifacts and (b) seed a datastore with canonical Solana MCMS program IDs for the new deploy changeset.
  • Convert several EVM set-config tests to black-box (*_test) package usage and validate via the exported registration/sequence/operation APIs.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
mcms/solana/set-config/sequence_test.go Switch Solana set-config test runtime bootstrap to new deploy changeset + seeded datastore.
mcms/solana/firedrill/changeset_test.go Switch Solana firedrill runtime bootstrap to new deploy changeset + seeded datastore.
mcms/solana/deploy/changeset_test.go Reuse shared Solana datastore seeding helper instead of inline datastore setup.
mcms/evm/set-config/validate_test.go Move to external test package; validate via Registration().Verify with proper chain context.
mcms/evm/set-config/sequence_test.go Replace legacy deploy/transfer tests with new changesets and sequence execution via registry.
mcms/evm/set-config/register_test.go Validate EVM registration through exported registration and registry lookups.
mcms/evm/set-config/operation_test.go Update operation tests to call exported operation/types from the package.
mcms/evm/firedrill/changeset_test.go Switch EVM firedrill runtime bootstrap to new deploy changeset.
mcms/changesets/set-config/helpers_test.go Update shared test helpers to use new deploy + transfer-to-timelock changesets; add EVM ref loading via readers.
mcms/changesets/set-config/changeset_test.go Update EVM MCMS address/ref loading and qualifier tests to use new deploy + readers-based lookup.
legacy/pkg/family/solana/testutils/preload.go Add LoadMCMSPrograms helper to reuse cached MCMS Solana program artifacts.
internal/testutil/solanatest/datastore.go Add helper to seed datastore with canonical Solana MCMS program IDs for tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mcms/evm/set-config/validate_test.go
Comment thread mcms/evm/set-config/register_test.go
Comment thread mcms/solana/set-config/sequence_test.go Outdated
Comment thread mcms/solana/firedrill/changeset_test.go Outdated
Comment thread mcms/changesets/set-config/helpers_test.go Outdated
@graham-chainlink graham-chainlink force-pushed the ggoh/cld-2719/remove-legacy-usage-mcms branch from 3403a97 to 40cc742 Compare June 30, 2026 01:17
Replace legacy changeset usage in the new changeset tests , spefiically the deploy mcms legacy changeset, now they use the new deploy changeset for mcms
Copilot AI review requested due to automatic review settings June 30, 2026 01:31
@graham-chainlink graham-chainlink force-pushed the ggoh/cld-2719/remove-legacy-usage-mcms branch from 40cc742 to 408938d Compare June 30, 2026 01:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Comment on lines +195 to 203
// MaybeLoadMCMSWithTimelockState loads MCMSWithTimelockState for each provided chain selector from the environment.
func MaybeLoadMCMSWithTimelockState(env cldf.Environment, chainSelectors []uint64) (map[uint64]*MCMSWithTimelockState, error) {
result := map[uint64]*MCMSWithTimelockState{}
solChains := env.BlockChains.SolanaChains()
for _, chainSelector := range chainSelectors {
chain, ok := solChains[chainSelector]
if !ok {
return nil, fmt.Errorf("chain %d not found", chainSelector)
}
addressesChain, err := env.ExistingAddresses.AddressesForChain(chainSelector) //nolint:staticcheck // SA1019: AddressBook deprecated; Solana MCMS load merges with address book until full DataStore migration.
if err != nil {
if !errors.Is(err, cldf.ErrChainNotFound) {
return nil, fmt.Errorf("unable to get addresses for chain %v: %w", chainSelector, err)
}
// chain not found in address book, initialize empty
addressesChain = make(map[string]cldf.TypeAndVersion)
}
state, err := MaybeLoadMCMSWithTimelockChainState(chain, addressesChain)
state, err := GetState(env, chainSelector)
if err != nil {
return nil, fmt.Errorf("unable to load mcms and timelock solana chain state: %w", err)
return nil, fmt.Errorf("unable to load mcms and timelock solana chain state for chain %d: %w", chainSelector, err)
}
result[chainSelector] = state
@graham-chainlink graham-chainlink deleted the ggoh/cld-2719/remove-legacy-usage-mcms branch July 1, 2026 06:16
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