diff --git a/.github/workflows/automation-ondemand-tests.yml b/.github/workflows/automation-ondemand-tests.yml index 83701ef7f9d..324d5b04b9b 100644 --- a/.github/workflows/automation-ondemand-tests.yml +++ b/.github/workflows/automation-ondemand-tests.yml @@ -152,15 +152,42 @@ jobs: pyroscope_env: ci-automation-on-demand-chaos network: SIMULATED command: -run ^TestAutomationChaos$ ./chaos - - name: reorg - id: reorg + - name: reorg 2.0 + id: reorg-2.0 suite: reorg - nodes: 7 + nodes: 1 + os: ubuntu-latest + enabled: ${{ inputs.enableReorg }} + pyroscope_env: ci-automation-on-demand-reorg + network: SIMULATED + command: -run ^TestAutomationReorg/registry_2_0 ./reorg + - name: reorg 2.1 + id: reorg-2.1 + suite: reorg + nodes: 2 + os: ubuntu-latest + enabled: ${{ inputs.enableReorg }} + pyroscope_env: ci-automation-on-demand-reorg + network: SIMULATED + command: -run ^TestAutomationReorg/registry_2_1 ./reorg + - name: reorg 2.2 + id: reorg-2.2 + suite: reorg + nodes: 2 + os: ubuntu-latest + enabled: ${{ inputs.enableReorg }} + pyroscope_env: ci-automation-on-demand-reorg + network: SIMULATED + command: -run ^TestAutomationReorg/registry_2_2 ./reorg + - name: reorg 2.3 + id: reorg-2.3 + suite: reorg + nodes: 2 os: ubuntu-latest enabled: ${{ inputs.enableReorg }} pyroscope_env: ci-automation-on-demand-reorg network: SIMULATED - command: -run ^TestAutomationReorg$ ./reorg + command: -run ^TestAutomationReorg/registry_2_3 ./reorg - name: upgrade 2.0 id: upgrade-2.0 type: upgrade diff --git a/integration-tests/actions/automation_ocr_helpers_local.go b/integration-tests/actions/automation_ocr_helpers_local.go index ec6f8ba2684..d513f1875a4 100644 --- a/integration-tests/actions/automation_ocr_helpers_local.go +++ b/integration-tests/actions/automation_ocr_helpers_local.go @@ -6,6 +6,8 @@ import ( "fmt" "time" + tc "github.com/smartcontractkit/chainlink/integration-tests/testconfig" + "github.com/ethereum/go-ethereum/common" "github.com/lib/pq" "github.com/rs/zerolog" @@ -26,6 +28,24 @@ import ( "github.com/smartcontractkit/chainlink/v2/core/store/models" ) +func AutomationDefaultRegistryConfig(c tc.AutomationTestConfig) contracts.KeeperRegistrySettings { + registrySettings := c.GetAutomationConfig().AutomationConfig.RegistrySettings + return contracts.KeeperRegistrySettings{ + PaymentPremiumPPB: *registrySettings.PaymentPremiumPPB, + FlatFeeMicroLINK: *registrySettings.FlatFeeMicroLINK, + CheckGasLimit: *registrySettings.CheckGasLimit, + StalenessSeconds: registrySettings.StalenessSeconds, + GasCeilingMultiplier: *registrySettings.GasCeilingMultiplier, + MinUpkeepSpend: registrySettings.MinUpkeepSpend, + MaxPerformGas: *registrySettings.MaxPerformGas, + FallbackGasPrice: registrySettings.FallbackGasPrice, + FallbackLinkPrice: registrySettings.FallbackLinkPrice, + MaxCheckDataSize: *registrySettings.MaxCheckDataSize, + MaxPerformDataSize: *registrySettings.MaxPerformDataSize, + MaxRevertDataSize: *registrySettings.MaxRevertDataSize, + } +} + func BuildAutoOCR2ConfigVarsLocal( l zerolog.Logger, chainlinkNodes []*client.ChainlinkClient, diff --git a/integration-tests/reorg/automation_reorg_test.go b/integration-tests/reorg/automation_reorg_test.go index 383c8d5c95b..1b9cf5819b9 100644 --- a/integration-tests/reorg/automation_reorg_test.go +++ b/integration-tests/reorg/automation_reorg_test.go @@ -2,32 +2,31 @@ package reorg //revive:disable:dot-imports import ( + "context" "fmt" "math/big" "regexp" "strconv" "strings" - "sync" "testing" - "time" - seth_utils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth" + ocr3 "github.com/smartcontractkit/libocr/offchainreporting2plus/ocr3confighelper" + "go.uber.org/zap/zapcore" + + ocr2keepers30config "github.com/smartcontractkit/chainlink-automation/pkg/v3/config" + "github.com/smartcontractkit/chainlink-testing-framework/testreporters" + sethUtils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth" + "github.com/smartcontractkit/chainlink/integration-tests/actions/automationv2" + "github.com/smartcontractkit/chainlink/integration-tests/docker/test_env" "github.com/onsi/gomega" "github.com/stretchr/testify/require" - "go.uber.org/zap/zapcore" - ctf_client "github.com/smartcontractkit/chainlink-testing-framework/client" - ctf_config "github.com/smartcontractkit/chainlink-testing-framework/config" - "github.com/smartcontractkit/chainlink-testing-framework/k8s/environment" - "github.com/smartcontractkit/chainlink-testing-framework/k8s/pkg/helm/chainlink" + ctfClient "github.com/smartcontractkit/chainlink-testing-framework/client" "github.com/smartcontractkit/chainlink-testing-framework/logging" - "github.com/smartcontractkit/chainlink-testing-framework/networks" "github.com/smartcontractkit/chainlink-testing-framework/utils/testcontext" - geth_helm "github.com/smartcontractkit/chainlink-testing-framework/k8s/pkg/helm/ethereum" "github.com/smartcontractkit/chainlink/integration-tests/actions" - "github.com/smartcontractkit/chainlink/integration-tests/client" "github.com/smartcontractkit/chainlink/integration-tests/contracts" "github.com/smartcontractkit/chainlink/integration-tests/contracts/ethereum" tc "github.com/smartcontractkit/chainlink/integration-tests/testconfig" @@ -37,47 +36,19 @@ var ( reorgBlockCount = 10 // Number of blocks to reorg (should be less than finalityDepth) upkeepCount = 2 nodeCount = 6 - nodeFundsAmount = new(big.Float).SetFloat64(2) // Each node will have 2 ETH defaultUpkeepGasLimit = uint32(2500000) defaultLinkFunds = int64(9e18) finalityDepth int historyDepth int - - defaultAutomationSettings = map[string]interface{}{ - "toml": "", - "db": map[string]interface{}{ - "stateful": false, - "capacity": "1Gi", - "resources": map[string]interface{}{ - "requests": map[string]interface{}{ - "cpu": "250m", - "memory": "256Mi", - }, - "limits": map[string]interface{}{ - "cpu": "250m", - "memory": "256Mi", - }, - }, - }, - } - mutex sync.Mutex - defaultOCRRegistryConfig = contracts.KeeperRegistrySettings{ - PaymentPremiumPPB: uint32(200000000), - FlatFeeMicroLINK: uint32(0), - BlockCountPerTurn: big.NewInt(10), - CheckGasLimit: uint32(2500000), - StalenessSeconds: big.NewInt(90000), - GasCeilingMultiplier: uint16(1), - MinUpkeepSpend: big.NewInt(0), - MaxPerformGas: uint32(5000000), - FallbackGasPrice: big.NewInt(2e11), - FallbackLinkPrice: big.NewInt(2e18), - MaxCheckDataSize: uint32(5000), - MaxPerformDataSize: uint32(5000), - MaxRevertDataSize: uint32(5000), - } ) +var logScannerSettings = test_env.GetDefaultChainlinkNodeLogScannerSettingsWithExtraAllowedMessages(testreporters.NewAllowedLogMessage( + "Got very old block with number", + "It is expected, because we are causing reorgs", + zapcore.DPanicLevel, + testreporters.WarnAboutAllowedMsgs_No, +)) + /* * This test verifies that conditional upkeeps automatically recover from chain reorgs. * @@ -105,10 +76,10 @@ func TestAutomationReorg(t *testing.T) { return 0, fmt.Errorf("no match found for %s", substring) } - finalityDepth, err = findIntValue(c.NodeConfig.CommonChainConfigTOML, "FinalityDepth") + finalityDepth, err = findIntValue(c.NodeConfig.ChainConfigTOMLByChainID["1337"], "FinalityDepth") require.NoError(t, err, "Error getting finality depth") - historyDepth, err = findIntValue(c.NodeConfig.CommonChainConfigTOML, "HistoryDepth") + historyDepth, err = findIntValue(c.NodeConfig.ChainConfigTOMLByChainID["1337"], "HistoryDepth") require.NoError(t, err, "Error getting history depth") require.Less(t, reorgBlockCount, finalityDepth, "Reorg block count should be less than finality depth") @@ -136,118 +107,96 @@ func TestAutomationReorg(t *testing.T) { t.Fatal(err) } - network := networks.MustGetSelectedNetworkConfig(config.Network)[0] + privateNetwork, err := actions.EthereumNetworkConfigFromConfig(l, &config) + require.NoError(t, err, "Error building ethereum network config") - tomlConfig, err := actions.BuildTOMLNodeConfigForK8s(&config, network) - require.NoError(t, err, "Error building TOML config") + env, err := test_env.NewCLTestEnvBuilder(). + WithTestInstance(t). + WithTestConfig(&config). + WithPrivateEthereumNetwork(privateNetwork.EthereumNetworkConfig). + WithMockAdapter(). + WithCLNodes(nodeCount). + WithStandardCleanup(). + WithChainlinkNodeLogScanner(logScannerSettings). + Build() + require.NoError(t, err, "Error deploying test environment") - mutex.Lock() - defaultAutomationSettings["replicas"] = nodeCount - defaultAutomationSettings["toml"] = tomlConfig - mutex.Unlock() + nodeClients := env.ClCluster.NodeAPIs() - var overrideFn = func(_ interface{}, target interface{}) { - ctf_config.MustConfigOverrideChainlinkVersion(config.GetChainlinkImageConfig(), target) - ctf_config.MightConfigOverridePyroscopeKey(config.GetPyroscopeConfig(), target) - } + evmNetwork, err := env.GetFirstEvmNetwork() + require.NoError(t, err, "Error getting first evm network") - cd := chainlink.NewWithOverride(0, defaultAutomationSettings, config.ChainlinkImage, overrideFn) - - testEnvironment := environment. - New(&environment.Config{ - NamespacePrefix: fmt.Sprintf("automation-reorg-%d", reorgBlockCount), - TTL: time.Hour * 1, - Test: t}). - // Use Geth blockchain to simulate reorgs - AddHelm(geth_helm.New(&geth_helm.Props{ - NetworkName: network.Name, - Simulated: true, - WsURLs: network.URLs, - })). - AddHelm(cd) - err = testEnvironment.Run() - require.NoError(t, err, "Error setting up test environment") - - if testEnvironment.WillUseRemoteRunner() { - return - } - if !testEnvironment.Cfg.InsideK8s { - // Test is running locally, set forwarded URL of Geth blockchain node - wsURLs := testEnvironment.URLs[network.Name+"_internal"] - httpURLs := testEnvironment.URLs[network.Name+"_internal_http"] - require.NotEmpty(t, wsURLs, "Forwarded Geth URLs should not be empty") - require.NotEmpty(t, httpURLs, "Forwarded Geth URLs should not be empty") - network.URLs = wsURLs - network.HTTPURLs = httpURLs - } + sethClient, err := sethUtils.GetChainClient(&config, *evmNetwork) + require.NoError(t, err, "Error getting seth client") - gethRPCClient := ctf_client.NewRPCClient(network.HTTPURLs[0]) - chainClient, err := seth_utils.GetChainClient(config, network) - require.NoError(t, err, "Error connecting to blockchain") - chainlinkNodes, err := client.ConnectChainlinkNodes(testEnvironment) - require.NoError(t, err, "Error connecting to Chainlink nodes") + err = actions.FundChainlinkNodesFromRootAddress(l, sethClient, contracts.ChainlinkClientToChainlinkNodeWithKeysAndAddress(env.ClCluster.NodeAPIs()), big.NewFloat(*config.GetCommonConfig().ChainlinkNodeFunding)) + require.NoError(t, err, "Failed to fund the nodes") - // Register cleanup for any test - t.Cleanup(func() { - err := actions.TeardownSuite(t, chainClient, testEnvironment, chainlinkNodes, nil, zapcore.PanicLevel, &config) - require.NoError(t, err, "Error tearing down environment") - }) + gethRPCClient := ctfClient.NewRPCClient(evmNetwork.HTTPURLs[0]) - err = actions.FundChainlinkNodesFromRootAddress(l, chainClient, contracts.ChainlinkK8sClientToChainlinkNodeWithKeysAndAddress(chainlinkNodes), nodeFundsAmount) - require.NoError(t, err, "Error funding Chainlink nodes") + registryConfig := actions.AutomationDefaultRegistryConfig(config) + registryConfig.RegistryVersion = registryVersion - linkToken, err := contracts.DeployLinkTokenContract(l, chainClient) - require.NoError(t, err, "Error deploying LINK token") - - wethToken, err := contracts.DeployWETHTokenContract(l, chainClient) - require.NoError(t, err, "Error deploying weth token contract") - - // This feed is used for both eth/usd and link/usd - ethUSDFeed, err := contracts.DeployMockETHUSDFeed(chainClient, defaultOCRRegistryConfig.FallbackLinkPrice) - require.NoError(t, err, "Error deploying eth usd feed contract") - - defaultOCRRegistryConfig.RegistryVersion = registryVersion - registry, registrar := actions.DeployAutoOCRRegistryAndRegistrar( - t, - chainClient, - registryVersion, - defaultOCRRegistryConfig, - linkToken, - wethToken, - ethUSDFeed, - ) + a := automationv2.NewAutomationTestDocker(l, sethClient, nodeClients) + a.SetMercuryCredentialName("cred1") + a.RegistrySettings = registryConfig + a.RegistrarSettings = contracts.KeeperRegistrarSettings{ + AutoApproveConfigType: uint8(2), + AutoApproveMaxAllowed: 1000, + MinLinkJuels: big.NewInt(0), + } + plCfg := config.GetAutomationConfig().AutomationConfig.PluginConfig + a.PluginConfig = ocr2keepers30config.OffchainConfig{ + TargetProbability: *plCfg.TargetProbability, + TargetInRounds: *plCfg.TargetInRounds, + PerformLockoutWindow: *plCfg.PerformLockoutWindow, + GasLimitPerReport: *plCfg.GasLimitPerReport, + GasOverheadPerUpkeep: *plCfg.GasOverheadPerUpkeep, + MinConfirmations: *plCfg.MinConfirmations, + MaxUpkeepBatchSize: *plCfg.MaxUpkeepBatchSize, + } + pubCfg := config.GetAutomationConfig().AutomationConfig.PublicConfig + a.PublicConfig = ocr3.PublicConfig{ + DeltaProgress: *pubCfg.DeltaProgress, + DeltaResend: *pubCfg.DeltaResend, + DeltaInitial: *pubCfg.DeltaInitial, + DeltaRound: *pubCfg.DeltaRound, + DeltaGrace: *pubCfg.DeltaGrace, + DeltaCertifiedCommitRequest: *pubCfg.DeltaCertifiedCommitRequest, + DeltaStage: *pubCfg.DeltaStage, + RMax: *pubCfg.RMax, + MaxDurationQuery: *pubCfg.MaxDurationQuery, + MaxDurationObservation: *pubCfg.MaxDurationObservation, + MaxDurationShouldAcceptAttestedReport: *pubCfg.MaxDurationShouldAcceptAttestedReport, + MaxDurationShouldTransmitAcceptedReport: *pubCfg.MaxDurationShouldTransmitAcceptedReport, + F: *pubCfg.F, + } - // Fund the registry with LINK - err = linkToken.Transfer(registry.Address(), big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(int64(upkeepCount)))) - require.NoError(t, err, "Funding keeper registry contract shouldn't fail") + a.SetupAutomationDeployment(t) + a.SetDockerEnv(env) - actions.CreateOCRKeeperJobs(t, chainlinkNodes, registry.Address(), network.ChainID, 0, registryVersion) - nodesWithoutBootstrap := chainlinkNodes[1:] + sb, err := a.ChainClient.Client.BlockNumber(context.Background()) + require.NoError(t, err, "Failed to get start block") - ocrConfig, err := actions.BuildAutoOCR2ConfigVars(t, nodesWithoutBootstrap, defaultOCRRegistryConfig, registrar.Address(), 5*time.Second, registry.ChainModuleAddress(), registry.ReorgProtectionEnabled(), linkToken, wethToken, ethUSDFeed) - require.NoError(t, err, "OCR2 config should be built successfully") - if registryVersion == ethereum.RegistryVersion_2_0 { - err = registry.SetConfig(defaultOCRRegistryConfig, ocrConfig) - } else { - err = registry.SetConfigTypeSafe(ocrConfig) - } - require.NoError(t, err, "Registry config should be set successfully") + t.Cleanup(func() { + actions.GetStalenessReportCleanupFn(t, a.Logger, a.ChainClient, sb, a.Registry, registryVersion)() + }) // Use the name to determine if this is a log trigger or not isLogTrigger := strings.Contains(name, "logtrigger") consumers, upkeepIDs := actions.DeployConsumers( t, - chainClient, - registry, - registrar, - linkToken, + sethClient, + a.Registry, + a.Registrar, + a.LinkToken, upkeepCount, big.NewInt(defaultLinkFunds), defaultUpkeepGasLimit, isLogTrigger, false, false, - wethToken, + a.WETHToken, ) if isLogTrigger { diff --git a/integration-tests/smoke/automation_test.go b/integration-tests/smoke/automation_test.go index 62462d641a8..92b25dfd522 100644 --- a/integration-tests/smoke/automation_test.go +++ b/integration-tests/smoke/automation_test.go @@ -62,24 +62,6 @@ func upgradeChainlinkNodeVersionsLocal( return nil } -func automationDefaultRegistryConfig(c tc.AutomationTestConfig) contracts.KeeperRegistrySettings { - registrySettings := c.GetAutomationConfig().AutomationConfig.RegistrySettings - return contracts.KeeperRegistrySettings{ - PaymentPremiumPPB: *registrySettings.PaymentPremiumPPB, - FlatFeeMicroLINK: *registrySettings.FlatFeeMicroLINK, - CheckGasLimit: *registrySettings.CheckGasLimit, - StalenessSeconds: registrySettings.StalenessSeconds, - GasCeilingMultiplier: *registrySettings.GasCeilingMultiplier, - MinUpkeepSpend: registrySettings.MinUpkeepSpend, - MaxPerformGas: *registrySettings.MaxPerformGas, - FallbackGasPrice: registrySettings.FallbackGasPrice, - FallbackLinkPrice: registrySettings.FallbackLinkPrice, - MaxCheckDataSize: *registrySettings.MaxCheckDataSize, - MaxPerformDataSize: *registrySettings.MaxPerformDataSize, - MaxRevertDataSize: *registrySettings.MaxRevertDataSize, - } -} - func TestMain(m *testing.M) { logging.Init() // config, err := tc.GetConfig(tc.NoTest, tc.Smoke, tc.Automation) @@ -144,7 +126,7 @@ func SetupAutomationBasic(t *testing.T, nodeUpgrade bool) { isMercury := isMercuryV02 || isMercuryV03 a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(cfg), isMercuryV02, isMercuryV03, &cfg, + t, registryVersion, actions.AutomationDefaultRegistryConfig(cfg), isMercuryV02, isMercuryV03, &cfg, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) @@ -283,7 +265,7 @@ func TestSetUpkeepTriggerConfig(t *testing.T) { require.NoError(t, err, "Failed to get config") a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(config), false, false, &config, + t, registryVersion, actions.AutomationDefaultRegistryConfig(config), false, false, &config, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) @@ -466,7 +448,7 @@ func TestAutomationAddFunds(t *testing.T) { config, err := tc.GetConfig([]string{"Smoke"}, tc.Automation) require.NoError(t, err, "Failed to get config") a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(config), false, false, &config, + t, registryVersion, actions.AutomationDefaultRegistryConfig(config), false, false, &config, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) @@ -546,7 +528,7 @@ func TestAutomationPauseUnPause(t *testing.T) { require.NoError(t, err, "Failed to get config") a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(config), false, false, &config, + t, registryVersion, actions.AutomationDefaultRegistryConfig(config), false, false, &config, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) @@ -647,7 +629,7 @@ func TestAutomationRegisterUpkeep(t *testing.T) { require.NoError(t, err, "Failed to get config") a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(config), false, false, &config, + t, registryVersion, actions.AutomationDefaultRegistryConfig(config), false, false, &config, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) @@ -743,7 +725,7 @@ func TestAutomationPauseRegistry(t *testing.T) { require.NoError(t, err, "Failed to get config") a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(config), false, false, &config, + t, registryVersion, actions.AutomationDefaultRegistryConfig(config), false, false, &config, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) @@ -823,7 +805,7 @@ func TestAutomationKeeperNodesDown(t *testing.T) { require.NoError(t, err, "Failed to get config") a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(config), false, false, &config, + t, registryVersion, actions.AutomationDefaultRegistryConfig(config), false, false, &config, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) @@ -931,7 +913,7 @@ func TestAutomationPerformSimulation(t *testing.T) { require.NoError(t, err, "Failed to get config") a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(config), false, false, &config, + t, registryVersion, actions.AutomationDefaultRegistryConfig(config), false, false, &config, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) @@ -1002,7 +984,7 @@ func TestAutomationCheckPerformGasLimit(t *testing.T) { config, err := tc.GetConfig([]string{"Smoke"}, tc.Automation) require.NoError(t, err, "Failed to get config") a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(config), false, false, &config, + t, registryVersion, actions.AutomationDefaultRegistryConfig(config), false, false, &config, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) @@ -1109,7 +1091,7 @@ func TestAutomationCheckPerformGasLimit(t *testing.T) { } // Now increase checkGasLimit on registry - highCheckGasLimit := automationDefaultRegistryConfig(config) + highCheckGasLimit := actions.AutomationDefaultRegistryConfig(config) highCheckGasLimit.CheckGasLimit = uint32(5000000) highCheckGasLimit.RegistryVersion = registryVersion @@ -1157,7 +1139,7 @@ func TestUpdateCheckData(t *testing.T) { require.NoError(t, err, "Failed to get config") a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(config), false, false, &config, + t, registryVersion, actions.AutomationDefaultRegistryConfig(config), false, false, &config, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) @@ -1238,7 +1220,7 @@ func TestSetOffchainConfigWithMaxGasPrice(t *testing.T) { t.Fatal(err) } a := setupAutomationTestDocker( - t, registryVersion, automationDefaultRegistryConfig(config), false, false, &config, + t, registryVersion, actions.AutomationDefaultRegistryConfig(config), false, false, &config, ) sb, err := a.ChainClient.Client.BlockNumber(context.Background()) diff --git a/integration-tests/testconfig/automation/automation.toml b/integration-tests/testconfig/automation/automation.toml index a30202d0ec7..7e10af62cfa 100644 --- a/integration-tests/testconfig/automation/automation.toml +++ b/integration-tests/testconfig/automation/automation.toml @@ -87,29 +87,70 @@ max_perform_data_size=5_000 max_revert_data_size=5_000 # reorg test specific overrides +[Reorg.Common] +chainlink_node_funding = 2.0 + + [Reorg.Automation] -[Reorg.NodeConfig] -CommonChainConfigTOML = """ +[Reorg.NodeConfig.ChainConfigTOMLByChainID] +# applicable for simulated chain +1337 = """ +AutoCreateKey = true FinalityDepth = 20 LogPollInterval = '1s' - +MinContractPayment = 0 [HeadTracker] HistoryDepth = 30 - [GasEstimator] Mode = 'FixedPrice' LimitDefault = 5_000_000 """ -[Reorg.Automation.General] -number_of_nodes=6 -duration=100 -block_time=1 -spec_type="minimum" -chainlink_node_log_level="info" -use_prometheus=false -remove_namespace = true +[Reorg.Automation.AutomationConfig] +use_log_buffer_v1=false + +[Reorg.Automation.AutomationConfig.PublicConfig] +delta_progress=10_000_000_000 +delta_resend=15_000_000_000 +delta_initial=500_000_000 +delta_round=1_000_000_000 +delta_grace=200_000_000 +delta_certified_commit_request=300_000_000 +delta_stage=30_000_000_000 +r_max=24 +f=1 +max_duration_query=20_000_000 +max_duration_observation=20_000_000 +max_duration_should_accept_attested_report=1_200_000_000 +max_duration_should_transmit_accepted_report=20_000_000 + +[Reorg.Automation.AutomationConfig.PluginConfig] +perform_lockout_window=3_600_000 +target_probability="0.999" +target_in_rounds=1 +min_confirmations=0 +gas_limit_per_report=10_300_000 +gas_overhead_per_upkeep=300_000 +max_upkeep_batch_size=10 + +[Reorg.Automation.AutomationConfig.PluginConfig.LogProviderConfig] +block_rate=1 +log_limit=2 + +[Reorg.Automation.AutomationConfig.RegistrySettings] +payment_premium_ppb=200_000_000 +flat_fee_micro_link=0 +check_gas_limit=2_500_000 +staleness_seconds=90000 +gas_ceiling_multiplier=1 +max_perform_gas=5_000_000 +min_upkeep_spend=0 +fallback_gas_price=200_000_000_000 +fallback_link_price=2_000_000_000_000_000_000 +max_check_data_size=5_000 +max_perform_data_size=5_000 +max_revert_data_size=5_000 # load test specific overrides [Load.Seth]