From 46403735b7eb6dc53bb36f2a62df75cfe81a0e97 Mon Sep 17 00:00:00 2001 From: anirudhwarrier <12178754+anirudhwarrier@users.noreply.github.com> Date: Tue, 14 Nov 2023 14:07:25 +0400 Subject: [PATCH] detach runner, add loglevel config --- .../workflows/automation-benchmark-tests.yml | 2 +- .../automationv2_1/automationv2_1_test.go | 23 ++++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/automation-benchmark-tests.yml b/.github/workflows/automation-benchmark-tests.yml index 0a43aa97031..69b29e98e8c 100644 --- a/.github/workflows/automation-benchmark-tests.yml +++ b/.github/workflows/automation-benchmark-tests.yml @@ -114,7 +114,7 @@ jobs: env: RR_CPU: 2000m RR_MEM: 2Gi - DETACH_RUNNER: false + DETACH_RUNNER: true TEST_SUITE: automationv2_1 TEST_ARGS: -test.timeout 720h ENV_JOB_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-tests:${{ github.sha }} diff --git a/integration-tests/load/automationv2_1/automationv2_1_test.go b/integration-tests/load/automationv2_1/automationv2_1_test.go index 2889daf9e11..3f031c38d5c 100644 --- a/integration-tests/load/automationv2_1/automationv2_1_test.go +++ b/integration-tests/load/automationv2_1/automationv2_1_test.go @@ -118,12 +118,13 @@ func getEnv(key, fallback string) string { } var ( - numberofNodes, _ = strconv.Atoi(getEnv("NUMBEROFNODES", "6")) - numberOfUpkeeps, _ = strconv.Atoi(getEnv("NUMBEROFUPKEEPS", "100")) - duration, _ = strconv.Atoi(getEnv("DURATION", "900")) - blockTime, _ = strconv.Atoi(getEnv("BLOCKTIME", "1")) - numberOfEvents, _ = strconv.Atoi(getEnv("NUMBEROFEVENTS", "1")) - specType = getEnv("SPECTYPE", "minimum") + numberofNodes, _ = strconv.Atoi(getEnv("NUMBEROFNODES", "6")) // Number of nodes in the DON + numberOfUpkeeps, _ = strconv.Atoi(getEnv("NUMBEROFUPKEEPS", "100")) // Number of log triggered upkeeps + duration, _ = strconv.Atoi(getEnv("DURATION", "900")) // Test duration in seconds + blockTime, _ = strconv.Atoi(getEnv("BLOCKTIME", "1")) // Block time in seconds for geth simulated dev network + numberOfEvents, _ = strconv.Atoi(getEnv("NUMBEROFEVENTS", "1")) // Number of events to emit per trigger + specType = getEnv("SPECTYPE", "minimum") // minimum, recommended, local specs for the test + logLevel = getEnv("LOGLEVEL", "warn") // log level for the chainlink nodes debug, _ = strconv.ParseBool(getEnv("DEBUG", "false")) ) @@ -215,16 +216,16 @@ func TestLogTrigger(t *testing.T) { case "recommended": nodeSpec = recNodeSpec dbSpec = recDbSpec + case "local": + nodeSpec = map[string]interface{}{} + dbSpec = map[string]interface{}{"stateful": true} default: // minimum: } - if debug { - nodeSpec = map[string]interface{}{} - dbSpec = map[string]interface{}{"stateful": true} - } + baseTOML = fmt.Sprintf("%s\n\n[Log]\nLevel = \"%s\"", baseTOML, logLevel) - for i := 0; i < numberofNodes; i++ { + for i := 0; i < numberofNodes+1; i++ { // +1 for the OCR boot node testEnvironment.AddHelm(chainlink.New(i, map[string]any{ "toml": client.AddNetworkDetailedConfig(baseTOML, networkDetailTOML, testNetwork), "chainlink": nodeSpec,