Skip to content

Commit

Permalink
detach runner, add loglevel config
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Nov 14, 2023
1 parent ac4275f commit 4640373
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/automation-benchmark-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
23 changes: 12 additions & 11 deletions integration-tests/load/automationv2_1/automationv2_1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
)

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4640373

Please sign in to comment.