-
Notifications
You must be signed in to change notification settings - Fork 1.9k
chore: update deployment/common MCMS tests #19943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
86b0447
to
938656c
Compare
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]: { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
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) | ||
} | ||
|
There was a problem hiding this comment.
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
quarantine.Flaky(t, "DX-1873") | ||
quarantine.Flaky(t, "DX-1811") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too
de38de8
to
94bfd1b
Compare
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.
94bfd1b
to
a431e9e
Compare
|
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.