Skip to content

Conversation

jkongie
Copy link
Contributor

@jkongie jkongie commented Oct 17, 2025

Updates the remaining deployment/common MCMS tests to use the test engine runtime.

This also adds a new soltestutils package to help with preloading MCMS programs and funding accounts.

Comment on lines -293 to -315
evmSelectors[1]: {
Proposer: mcmstypes.Config{
Quorum: 1,
Signers: []common.Address{common.HexToAddress("0x0000000000000000000000000000000000000011")},
GroupSigners: []mcmstypes.Config{},
},
Canceller: mcmstypes.Config{
Quorum: 2,
Signers: []common.Address{
common.HexToAddress("0x0000000000000000000000000000000000000012"),
common.HexToAddress("0x0000000000000000000000000000000000000013"),
common.HexToAddress("0x0000000000000000000000000000000000000014"),
},
GroupSigners: []mcmstypes.Config{},
},
Bypasser: mcmstypes.Config{
Quorum: 1,
Signers: []common.Address{common.HexToAddress("0x0000000000000000000000000000000000000005")},
GroupSigners: []mcmstypes.Config{},
},
TimelockMinDelay: big.NewInt(1),
},
solanaSelectors[0]: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no need to test 2 evm deploys, so removed the second one

newCfgBypasser.Signers = append(newCfgBypasser.Signers, signer1Addr)
newCfgBypasser.Quorum = 2

t.Run("MCMS disabled", func(t *testing.T) {
Copy link
Contributor Author

@jkongie jkongie Oct 17, 2025

Choose a reason for hiding this comment

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

Changed to run sequentially so that we only have to boot a single container

Comment on lines -196 to -209
func SetPreloadedSolanaAddresses(t *testing.T, env cldf.Environment, selector uint64) {
typeAndVersion := cldf.NewTypeAndVersion(commontypes.ManyChainMultisigProgram, deployment.Version1_0_0)
err := env.ExistingAddresses.Save(selector, memory.SolanaProgramIDs["mcm"], typeAndVersion)
require.NoError(t, err)

typeAndVersion = cldf.NewTypeAndVersion(commontypes.AccessControllerProgram, deployment.Version1_0_0)
err = env.ExistingAddresses.Save(selector, memory.SolanaProgramIDs["access_controller"], typeAndVersion)
require.NoError(t, err)

typeAndVersion = cldf.NewTypeAndVersion(commontypes.RBACTimelockProgram, deployment.Version1_0_0)
err = env.ExistingAddresses.Save(selector, memory.SolanaProgramIDs["timelock"], typeAndVersion)
require.NoError(t, err)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced by the soltestutils package

Comment on lines -63 to -64
quarantine.Flaky(t, "DX-1873")
quarantine.Flaky(t, "DX-1811")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is now fixed because we get rid of the booting of the solana container


func TestTransferFromTimelockConfig_Apply(t *testing.T) {
quarantine.Flaky(t, "DX-1754")
// quarantine.Flaky(t, "DX-1754")
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we want to do this?


func TestTransferToMCMSToTimelockSolana(t *testing.T) {
quarantine.Flaky(t, "DX-1773")
// quarantine.Flaky(t, "DX-1773")
Copy link
Collaborator

Choose a reason for hiding this comment

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

this too? Do we want to uncomment it?

env := memory.NewMemoryEnvironment(t, lggr, zapcore.DebugLevel, cfg)
chainSelector := env.BlockChains.ListChainSelectors(cldf_chain.WithFamily(chain_selectors.FamilyEVM))[0]
chainSelectorSolana := env.BlockChains.ListChainSelectors(cldf_chain.WithFamily(chain_selectors.FamilySolana))[0]
// quarantine.Flaky(t, "DX-1824")
Copy link
Collaborator

Choose a reason for hiding this comment

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

here too

@jkongie jkongie force-pushed the CLD-730/update-common-mcms-tests branch 6 times, most recently from de38de8 to 94bfd1b Compare October 17, 2025 13:56
This commit updates the remaining deployment/common MCMS tests to use
the test engine runtime.

This commit also adds a new soltestutils package to help with
preloading MCMS programs and funding accounts.
@jkongie jkongie force-pushed the CLD-730/update-common-mcms-tests branch from 94bfd1b to a431e9e Compare October 18, 2025 16:02
@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