diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 1b0d0d091ed..3c0ce89389f 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -158,8 +158,8 @@ jobs: id: build-test-matrix-list run: | cd ./integration-tests - MATRIX_JSON_AUTOMATION=$(./scripts/buildTestMatrixList.sh ./smoke/automation_test.go automation ubuntu20.04-8cores-32GB) - MATRIX_JSON_KEEPER=$(./scripts/buildTestMatrixList.sh ./smoke/keeper_test.go keeper ubuntu20.04-8cores-32GB) + MATRIX_JSON_AUTOMATION=$(./scripts/buildTestMatrixList.sh ./smoke/automation_test.go automation ubuntu20.04-8cores-32GB 1) + MATRIX_JSON_KEEPER=$(./scripts/buildTestMatrixList.sh ./smoke/keeper_test.go keeper ubuntu20.04-8cores-32GB 1) COMBINED_ARRAY=$(jq -c -n "$MATRIX_JSON_AUTOMATION + $MATRIX_JSON_KEEPER") echo "MATRIX_JSON=${COMBINED_ARRAY}" >> $GITHUB_ENV eth-smoke-tests-matrix-automation: diff --git a/integration-tests/docker/test_env/test_env_builder.go b/integration-tests/docker/test_env/test_env_builder.go index 7726c115fff..156ee0a9b8d 100644 --- a/integration-tests/docker/test_env/test_env_builder.go +++ b/integration-tests/docker/test_env/test_env_builder.go @@ -194,7 +194,7 @@ func (b *CLTestEnvBuilder) buildNewEnv(cfg *TestEnvConfig) (*CLClusterTestEnv, e if b.clNodeConfig != nil { cfg = b.clNodeConfig } else { - cfg = node.NewConfig(node.BaseConf, + cfg = node.NewConfig(node.NewBaseConfig(), node.WithOCR1(), node.WithP2Pv1(), ) diff --git a/integration-tests/scripts/buildTestMatrixList.sh b/integration-tests/scripts/buildTestMatrixList.sh index 25f72715095..7f058b5b659 100755 --- a/integration-tests/scripts/buildTestMatrixList.sh +++ b/integration-tests/scripts/buildTestMatrixList.sh @@ -14,6 +14,7 @@ cd "$SCRIPT_DIR"/../ || exit 1 FILENAME=$1 MATRIX_JOB_NAME=$2 NODE_LABEL=$3 +NODE_COUNT=$4 # Get list of test names from JSON file JSONFILE="${FILENAME}_test_list.json" @@ -25,13 +26,18 @@ matrix_output() { local job_name=$2 local test_name=$3 local node_label=$4 + local node_count=$5 local counter_out=$(printf "%02d\n" $counter) - echo -n "{\"name\": \"${job_name}-${counter_out}\", \"file\": \"${job_name}\",\"nodes\": 1, \"os\": \"${node_label}\", \"pyroscope_env\": \"ci-smoke-${job_name}-evm-simulated\", \"run\": \"-run '^${test_name}$'\"}" + echo -n "{\"name\": \"${job_name}-${counter_out}\", \"file\": \"${job_name}\",\"nodes\": ${node_count}, \"os\": \"${node_label}\", \"pyroscope_env\": \"ci-smoke-${job_name}-evm-simulated\", \"run\": \"-run '^${test_name}$'\"}" } # Read the JSON file and loop through 'tests' and 'run' jq -c '.tests[]' ${JSONFILE} | while read -r test; do testName=$(echo ${test} | jq -r '.name') + label=$(echo ${test} | jq -r '.label // empty') + effective_node_label=${label:-$NODE_LABEL} + node_count=$(echo ${test} | jq -r '.nodes // empty') + effective_node_count=${node_count:-$NODE_COUNT} subTests=$(echo ${test} | jq -r '.run[]?.name // empty') output="" @@ -41,14 +47,14 @@ jq -c '.tests[]' ${JSONFILE} | while read -r test; do if [ $COUNTER -ne 1 ]; then echo -n "," fi - matrix_output $COUNTER $MATRIX_JOB_NAME "${testName}/${subTest}" ${NODE_LABEL} + matrix_output $COUNTER $MATRIX_JOB_NAME "${testName}/${subTest}" ${effective_node_label} ${effective_node_count} ((COUNTER++)) done else if [ $COUNTER -ne 1 ]; then echo -n "," fi - matrix_output $COUNTER $MATRIX_JOB_NAME "${testName}" ${NODE_LABEL} + matrix_output $COUNTER $MATRIX_JOB_NAME "${testName}" ${effective_node_label} ${effective_node_count} ((COUNTER++)) fi diff --git a/integration-tests/smoke/automation_test.go b/integration-tests/smoke/automation_test.go index 67b9b0b2648..63d52d326ba 100644 --- a/integration-tests/smoke/automation_test.go +++ b/integration-tests/smoke/automation_test.go @@ -87,8 +87,6 @@ func TestAutomationBasic(t *testing.T) { func SetupAutomationBasic(t *testing.T, nodeUpgrade bool) { t.Parallel() - l := utils.GetTestLogger(t) - registryVersions := map[string]ethereum.KeeperRegistryVersion{ "registry_2_0": ethereum.RegistryVersion_2_0, "registry_2_1_conditional": ethereum.RegistryVersion_2_1, @@ -100,6 +98,7 @@ func SetupAutomationBasic(t *testing.T, nodeUpgrade bool) { registryVersion := rv t.Run(name, func(t *testing.T) { t.Parallel() + l := utils.GetTestLogger(t) var ( upgradeImage string @@ -431,8 +430,6 @@ func TestAutomationAddFunds(t *testing.T) { func TestAutomationPauseUnPause(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) - registryVersions := map[string]ethereum.KeeperRegistryVersion{ "registry_2_0": ethereum.RegistryVersion_2_0, "registry_2_1": ethereum.RegistryVersion_2_1, @@ -443,6 +440,7 @@ func TestAutomationPauseUnPause(t *testing.T) { registryVersion := rv t.Run(name, func(t *testing.T) { t.Parallel() + l := utils.GetTestLogger(t) chainClient, _, contractDeployer, linkToken, registry, registrar, _ := setupAutomationTestDocker( t, "pause-unpause", registryVersion, defaultOCRRegistryConfig, false, ) @@ -515,8 +513,6 @@ func TestAutomationPauseUnPause(t *testing.T) { func TestAutomationRegisterUpkeep(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) - registryVersions := map[string]ethereum.KeeperRegistryVersion{ "registry_2_0": ethereum.RegistryVersion_2_0, "registry_2_1": ethereum.RegistryVersion_2_1, @@ -527,6 +523,7 @@ func TestAutomationRegisterUpkeep(t *testing.T) { registryVersion := rv t.Run(name, func(t *testing.T) { t.Parallel() + l := utils.GetTestLogger(t) chainClient, _, contractDeployer, linkToken, registry, registrar, _ := setupAutomationTestDocker( t, "register-upkeep", registryVersion, defaultOCRRegistryConfig, false, ) @@ -588,7 +585,6 @@ func TestAutomationRegisterUpkeep(t *testing.T) { func TestAutomationPauseRegistry(t *testing.T) { t.Parallel() - registryVersions := map[string]ethereum.KeeperRegistryVersion{ "registry_2_0": ethereum.RegistryVersion_2_0, "registry_2_1": ethereum.RegistryVersion_2_1, @@ -646,8 +642,6 @@ func TestAutomationPauseRegistry(t *testing.T) { func TestAutomationKeeperNodesDown(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) - registryVersions := map[string]ethereum.KeeperRegistryVersion{ "registry_2_0": ethereum.RegistryVersion_2_0, "registry_2_1": ethereum.RegistryVersion_2_1, @@ -658,6 +652,7 @@ func TestAutomationKeeperNodesDown(t *testing.T) { registryVersion := rv t.Run(name, func(t *testing.T) { t.Parallel() + l := utils.GetTestLogger(t) chainClient, chainlinkNodes, contractDeployer, linkToken, registry, registrar, _ := setupAutomationTestDocker( t, "keeper-nodes-down", registryVersion, defaultOCRRegistryConfig, false, ) @@ -733,7 +728,6 @@ func TestAutomationKeeperNodesDown(t *testing.T) { func TestAutomationPerformSimulation(t *testing.T) { t.Parallel() - registryVersions := map[string]ethereum.KeeperRegistryVersion{ "registry_2_0": ethereum.RegistryVersion_2_0, "registry_2_1": ethereum.RegistryVersion_2_1, @@ -797,8 +791,6 @@ func TestAutomationPerformSimulation(t *testing.T) { func TestAutomationCheckPerformGasLimit(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) - registryVersions := map[string]ethereum.KeeperRegistryVersion{ "registry_2_0": ethereum.RegistryVersion_2_0, "registry_2_1": ethereum.RegistryVersion_2_1, @@ -809,6 +801,7 @@ func TestAutomationCheckPerformGasLimit(t *testing.T) { registryVersion := rv t.Run(name, func(t *testing.T) { t.Parallel() + l := utils.GetTestLogger(t) chainClient, chainlinkNodes, contractDeployer, linkToken, registry, registrar, _ := setupAutomationTestDocker( t, "gas-limit", registryVersion, defaultOCRRegistryConfig, false, ) @@ -911,8 +904,6 @@ func TestAutomationCheckPerformGasLimit(t *testing.T) { func TestUpdateCheckData(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) - registryVersions := map[string]ethereum.KeeperRegistryVersion{ "registry_2_0": ethereum.RegistryVersion_2_0, "registry_2_1": ethereum.RegistryVersion_2_1, @@ -923,6 +914,7 @@ func TestUpdateCheckData(t *testing.T) { registryVersion := rv t.Run(name, func(t *testing.T) { t.Parallel() + l := utils.GetTestLogger(t) chainClient, _, contractDeployer, linkToken, registry, registrar, _ := setupAutomationTestDocker( t, "update-check-data", registryVersion, defaultOCRRegistryConfig, false, ) @@ -1003,7 +995,7 @@ func setupAutomationTestDocker( network := networks.SelectedNetwork // build the node config - clNodeConfig := node.NewConfig(node.BaseConf) + clNodeConfig := node.NewConfig(node.NewBaseConfig()) syncInterval := models.MustMakeDuration(5 * time.Minute) clNodeConfig.Feature.LogPoller = it_utils.Ptr[bool](true) clNodeConfig.OCR2.Enabled = it_utils.Ptr[bool](true) diff --git a/integration-tests/smoke/automation_test.go_test_list.json b/integration-tests/smoke/automation_test.go_test_list.json index 515e1632701..d5311641ce7 100644 --- a/integration-tests/smoke/automation_test.go_test_list.json +++ b/integration-tests/smoke/automation_test.go_test_list.json @@ -2,108 +2,51 @@ "tests": [ { "name": "TestAutomationBasic", - "run": [ - { - "name": "registry_2_0" - }, - { - "name": "registry_2_1_conditional" - }, - { - "name": "registry_2_1_logtrigger" - } - ] + "label": "ubuntu20.04-32cores-128GB", + "nodes": 3 + }, + { + "name": "TestSetUpkeepTriggerConfig" }, { "name": "TestAutomationAddFunds", - "run": [ - { - "name": "registry_2_0" - }, - { - "name": "registry_2_1" - } - ] + "label": "ubuntu20.04-32cores-128GB", + "nodes": 2 }, { "name": "TestAutomationPauseUnPause", - "run": [ - { - "name": "registry_2_0" - }, - { - "name": "registry_2_1" - } - ] + "label": "ubuntu20.04-16cores-64GB", + "nodes": 2 }, { "name": "TestAutomationRegisterUpkeep", - "run": [ - { - "name": "registry_2_0" - }, - { - "name": "registry_2_1" - } - ] + "label": "ubuntu20.04-16cores-64GB", + "nodes": 2 }, { "name": "TestAutomationPauseRegistry", - "run": [ - { - "name": "registry_2_0" - }, - { - "name": "registry_2_1" - } - ] + "label": "ubuntu20.04-16cores-64GB", + "nodes": 2 }, { "name": "TestAutomationKeeperNodesDown", - "run": [ - { - "name": "registry_2_0" - }, - { - "name": "registry_2_1" - } - ] + "label": "ubuntu20.04-16cores-64GB", + "nodes": 2 }, { "name": "TestAutomationPerformSimulation", - "run": [ - { - "name": "registry_2_0" - }, - { - "name": "registry_2_1" - } - ] + "label": "ubuntu20.04-16cores-64GB", + "nodes": 2 }, { "name": "TestAutomationCheckPerformGasLimit", - "run": [ - { - "name": "registry_2_0" - }, - { - "name": "registry_2_1" - } - ] + "label": "ubuntu20.04-32cores-128GB", + "nodes": 2 }, { "name": "TestUpdateCheckData", - "run": [ - { - "name": "registry_2_0" - }, - { - "name": "registry_2_1" - } - ] - }, - { - "name": "TestSetUpkeepTriggerConfig" + "label": "ubuntu20.04-32cores-128GB", + "nodes": 2 } ] } diff --git a/integration-tests/smoke/forwarders_ocr2_test.go b/integration-tests/smoke/forwarders_ocr2_test.go index 81c521ff387..bf422b30faa 100644 --- a/integration-tests/smoke/forwarders_ocr2_test.go +++ b/integration-tests/smoke/forwarders_ocr2_test.go @@ -24,7 +24,7 @@ func TestForwarderOCR2Basic(t *testing.T) { env, err := test_env.NewCLTestEnvBuilder(). WithGeth(). WithMockServer(1). - WithCLNodeConfig(node.NewConfig(node.BaseConf, + WithCLNodeConfig(node.NewConfig(node.NewBaseConfig(), node.WithOCR2(), node.WithP2Pv2(), )). diff --git a/integration-tests/smoke/keeper_test.go b/integration-tests/smoke/keeper_test.go index f07c42ab3d8..35bb632c113 100644 --- a/integration-tests/smoke/keeper_test.go +++ b/integration-tests/smoke/keeper_test.go @@ -75,17 +75,18 @@ var ( func TestKeeperBasicSmoke(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) registryVersions := []ethereum.KeeperRegistryVersion{ ethereum.RegistryVersion_1_1, ethereum.RegistryVersion_1_2, ethereum.RegistryVersion_1_3, } - chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) - - for _, registryVersion := range registryVersions { + for _, rv := range registryVersions { + registryVersion := rv t.Run(fmt.Sprintf("registry_1_%d", registryVersion), func(t *testing.T) { + t.Parallel() + l := utils.GetTestLogger(t) + chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) registry, _, consumers, upkeepIDs := actions.DeployKeeperContracts( t, registryVersion, @@ -150,17 +151,18 @@ func TestKeeperBasicSmoke(t *testing.T) { func TestKeeperBlockCountPerTurn(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) registryVersions := []ethereum.KeeperRegistryVersion{ ethereum.RegistryVersion_1_1, ethereum.RegistryVersion_1_2, ethereum.RegistryVersion_1_3, } - chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) - - for _, registryVersion := range registryVersions { + for _, rv := range registryVersions { + registryVersion := rv t.Run(fmt.Sprintf("registry_1_%d", registryVersion), func(t *testing.T) { + t.Parallel() + l := utils.GetTestLogger(t) + chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) registry, _, consumers, upkeepIDs := actions.DeployKeeperContracts( t, registryVersion, @@ -259,10 +261,11 @@ func TestKeeperSimulation(t *testing.T) { ethereum.RegistryVersion_1_3, } - chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) - - for _, registryVersion := range registryVersions { + for _, rv := range registryVersions { + registryVersion := rv t.Run(fmt.Sprintf("registry_1_%d", registryVersion), func(t *testing.T) { + t.Parallel() + chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) registry, _, consumersPerformance, upkeepIDs := actions.DeployPerformanceKeeperContracts( t, registryVersion, @@ -325,14 +328,16 @@ func TestKeeperSimulation(t *testing.T) { func TestKeeperCheckPerformGasLimit(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) registryVersions := []ethereum.KeeperRegistryVersion{ ethereum.RegistryVersion_1_2, ethereum.RegistryVersion_1_3, } - for _, registryVersion := range registryVersions { + for _, rv := range registryVersions { + registryVersion := rv t.Run(fmt.Sprintf("registry_1_%d", registryVersion), func(t *testing.T) { + t.Parallel() + l := utils.GetTestLogger(t) chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) registry, _, consumersPerformance, upkeepIDs := actions.DeployPerformanceKeeperContracts( t, @@ -435,17 +440,18 @@ func TestKeeperCheckPerformGasLimit(t *testing.T) { func TestKeeperRegisterUpkeep(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) registryVersions := []ethereum.KeeperRegistryVersion{ ethereum.RegistryVersion_1_1, ethereum.RegistryVersion_1_2, ethereum.RegistryVersion_1_3, } - chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) - - for _, registryVersion := range registryVersions { + for _, rv := range registryVersions { + registryVersion := rv t.Run(fmt.Sprintf("registry_1_%d", registryVersion), func(t *testing.T) { + t.Parallel() + l := utils.GetTestLogger(t) + chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) registry, registrar, consumers, upkeepIDs := actions.DeployKeeperContracts( t, registryVersion, @@ -529,10 +535,11 @@ func TestKeeperAddFunds(t *testing.T) { ethereum.RegistryVersion_1_3, } - chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) - - for _, registryVersion := range registryVersions { + for _, rv := range registryVersions { + registryVersion := rv t.Run(fmt.Sprintf("registry_1_%d", registryVersion), func(t *testing.T) { + t.Parallel() + chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) registry, _, consumers, upkeepIDs := actions.DeployKeeperContracts( t, registryVersion, @@ -584,17 +591,18 @@ func TestKeeperAddFunds(t *testing.T) { func TestKeeperRemove(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) registryVersions := []ethereum.KeeperRegistryVersion{ ethereum.RegistryVersion_1_1, ethereum.RegistryVersion_1_2, ethereum.RegistryVersion_1_3, } - chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) - - for _, registryVersion := range registryVersions { + for _, rv := range registryVersions { + registryVersion := rv t.Run(fmt.Sprintf("registry_1_%d", registryVersion), func(t *testing.T) { + t.Parallel() + l := utils.GetTestLogger(t) + chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) registry, _, consumers, upkeepIDs := actions.DeployKeeperContracts( t, registryVersion, @@ -667,10 +675,11 @@ func TestKeeperPauseRegistry(t *testing.T) { ethereum.RegistryVersion_1_3, } - chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) - - for _, registryVersion := range registryVersions { + for _, rv := range registryVersions { + registryVersion := rv t.Run(fmt.Sprintf("registry_1_%d", registryVersion), func(t *testing.T) { + t.Parallel() + chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) registry, _, consumers, upkeepIDs := actions.DeployKeeperContracts( t, registryVersion, @@ -811,15 +820,17 @@ func TestKeeperMigrateRegistry(t *testing.T) { func TestKeeperNodeDown(t *testing.T) { t.Parallel() - l := utils.GetTestLogger(t) registryVersions := []ethereum.KeeperRegistryVersion{ ethereum.RegistryVersion_1_1, ethereum.RegistryVersion_1_2, ethereum.RegistryVersion_1_3, } - for _, registryVersion := range registryVersions { + for _, rv := range registryVersions { + registryVersion := rv t.Run(fmt.Sprintf("registry_1_%d", registryVersion), func(t *testing.T) { + t.Parallel() + l := utils.GetTestLogger(t) chainClient, chainlinkNodes, contractDeployer, linkToken, _ := setupKeeperTest(t) registry, _, consumers, upkeepIDs := actions.DeployKeeperContracts( t, @@ -1082,7 +1093,7 @@ func setupKeeperTest(t *testing.T) ( contracts.LinkToken, *test_env.CLClusterTestEnv, ) { - clNodeConfig := node.NewConfig(node.BaseConf) + clNodeConfig := node.NewConfig(node.NewBaseConfig()) turnLookBack := int64(0) syncInterval := models.MustMakeDuration(5 * time.Second) performGasOverhead := uint32(150000) diff --git a/integration-tests/smoke/keeper_test.go_test_list.json b/integration-tests/smoke/keeper_test.go_test_list.json index 864dbfdb1cf..dfa2c49358c 100644 --- a/integration-tests/smoke/keeper_test.go_test_list.json +++ b/integration-tests/smoke/keeper_test.go_test_list.json @@ -1,64 +1,52 @@ { "tests": [ { - "name": "TestKeeperBasicSmoke" + "name": "TestKeeperBasicSmoke", + "label": "ubuntu20.04-32cores-128GB", + "nodes": 3 }, { "name": "TestKeeperBlockCountPerTurn", - "run": [ - { - "name": "registry_1_1" - }, - { - "name": "registry_1_2" - }, - { - "name": "registry_1_3" - } - ] + "label": "ubuntu20.04-32cores-128GB", + "nodes": 3 }, { - "name": "TestKeeperSimulation" + "name": "TestKeeperSimulation", + "label": "ubuntu20.04-16cores-64GB", + "nodes": 2 }, { "name": "TestKeeperCheckPerformGasLimit", - "run": [ - { - "name": "registry_1_2" - }, - { - "name": "registry_1_3" - } - ] + "label": "ubuntu20.04-16cores-64GB", + "nodes": 3 }, { - "name": "TestKeeperRegisterUpkeep" + "name": "TestKeeperRegisterUpkeep", + "label": "ubuntu20.04-16cores-64GB", + "nodes": 3 }, { - "name": "TestKeeperAddFunds" + "name": "TestKeeperAddFunds", + "label": "ubuntu20.04-16cores-64GB", + "nodes": 3 }, { - "name": "TestKeeperRemove" + "name": "TestKeeperRemove", + "label": "ubuntu20.04-32cores-128GB", + "nodes": 3 }, { - "name": "TestKeeperPauseRegistry" + "name": "TestKeeperPauseRegistry", + "label": "ubuntu20.04-16cores-64GB", + "nodes": 2 }, { "name": "TestKeeperMigrateRegistry" }, { "name": "TestKeeperNodeDown", - "run": [ - { - "name": "registry_1_1" - }, - { - "name": "registry_1_2" - }, - { - "name": "registry_1_3" - } - ] + "label": "ubuntu20.04-32cores-128GB", + "nodes": 3 }, { "name": "TestKeeperPauseUnPauseUpkeep" diff --git a/integration-tests/smoke/ocr2_test.go b/integration-tests/smoke/ocr2_test.go index adaaf21ba19..36d53b40676 100644 --- a/integration-tests/smoke/ocr2_test.go +++ b/integration-tests/smoke/ocr2_test.go @@ -34,7 +34,7 @@ func TestOCRv2Basic(t *testing.T) { env, err := test_env.NewCLTestEnvBuilder(). WithGeth(). WithMockServer(1). - WithCLNodeConfig(node.NewConfig(node.BaseConf, + WithCLNodeConfig(node.NewConfig(node.NewBaseConfig(), node.WithOCR2(), node.WithP2Pv2(), )). diff --git a/integration-tests/types/config/node/core.go b/integration-tests/types/config/node/core.go index 0d433daa1b4..3702d11745f 100644 --- a/integration-tests/types/config/node/core.go +++ b/integration-tests/types/config/node/core.go @@ -23,8 +23,8 @@ import ( utils2 "github.com/smartcontractkit/chainlink/integration-tests/utils" ) -var ( - BaseConf = &chainlink.Config{ +func NewBaseConfig() *chainlink.Config { + return &chainlink.Config{ Core: toml.Core{ RootDir: utils2.Ptr("/home/chainlink"), Database: toml.Database{ @@ -60,7 +60,7 @@ var ( P2P: toml.P2P{}, }, } -) +} type NodeConfigOpt = func(c *chainlink.Config)