Skip to content

Commit

Permalink
Update chainlink-env and PreventPodEviction settings (#10841)
Browse files Browse the repository at this point in the history
  • Loading branch information
tateexon authored Oct 2, 2023
1 parent 0adc90c commit 16361f3
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 21 deletions.
3 changes: 2 additions & 1 deletion integration-tests/benchmark/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ func SetupAutomationBenchmarkEnv(t *testing.T) (*environment.Environment, blockc
strings.ReplaceAll(strings.ToLower(testNetwork.Name), " ", "-"),
strings.ReplaceAll(strings.ToLower(RegistryToTest), "_", "-"),
),
Test: t,
Test: t,
PreventPodEviction: true,
})
// propagate TEST_INPUTS to remote runner
if testEnvironment.WillUseRemoteRunner() {
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ require (
github.com/pkg/errors v0.9.1
github.com/rs/zerolog v1.30.0
github.com/slack-go/slack v0.12.2
github.com/smartcontractkit/chainlink-env v0.38.0
github.com/smartcontractkit/chainlink-testing-framework v1.17.0
github.com/smartcontractkit/chainlink-env v0.38.1
github.com/smartcontractkit/chainlink-testing-framework v1.17.3
github.com/smartcontractkit/chainlink/v2 v2.0.0-00010101000000-000000000000
github.com/smartcontractkit/libocr v0.0.0-20230922131214-122accb19ea6
github.com/smartcontractkit/ocr2keepers v0.7.27
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2358,16 +2358,16 @@ github.com/smartcontractkit/caigo v0.0.0-20230621050857-b29a4ca8c704 h1:T3lFWumv
github.com/smartcontractkit/caigo v0.0.0-20230621050857-b29a4ca8c704/go.mod h1:2QuJdEouTWjh5BDy5o/vgGXQtR4Gz8yH1IYB5eT7u4M=
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20230913032705-f924d753cc47 h1:vdieOW3CZGdD2R5zvCSMS+0vksyExPN3/Fa1uVfld/A=
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20230913032705-f924d753cc47/go.mod h1:xMwqRdj5vqYhCJXgKVqvyAwdcqM6ZAEhnwEQ4Khsop8=
github.com/smartcontractkit/chainlink-env v0.38.0 h1:3LaqV5wSRCVPK0haV5jC2zdZITV2Q0BPyUMUM3tyJ7o=
github.com/smartcontractkit/chainlink-env v0.38.0/go.mod h1:ICN9gOBY+NehK8mIxxM9CrWDohgkCQ1vgX9FazCbg8I=
github.com/smartcontractkit/chainlink-env v0.38.1 h1:jIn+BTtWOlQ2IInPgJEjwwuVG2eGDClybg56gsswv8o=
github.com/smartcontractkit/chainlink-env v0.38.1/go.mod h1:ICN9gOBY+NehK8mIxxM9CrWDohgkCQ1vgX9FazCbg8I=
github.com/smartcontractkit/chainlink-relay v0.1.7-0.20230926113942-a871b2976dc1 h1:Db333w+fSm2e18LMikcIQHIZqgxZruW9uCUGJLUC9mI=
github.com/smartcontractkit/chainlink-relay v0.1.7-0.20230926113942-a871b2976dc1/go.mod h1:gWclxGW7rLkbjXn7FGizYlyKhp/boekto4MEYGyiMG4=
github.com/smartcontractkit/chainlink-solana v1.0.3-0.20230831134610-680240b97aca h1:x7M0m512gtXw5Z4B1WJPZ52VgshoIv+IvHqQ8hsH4AE=
github.com/smartcontractkit/chainlink-solana v1.0.3-0.20230831134610-680240b97aca/go.mod h1:RIUJXn7EVp24TL2p4FW79dYjyno23x5mjt1nKN+5WEk=
github.com/smartcontractkit/chainlink-starknet/relayer v0.0.1-beta-test.0.20230901115736-bbabe542a918 h1:ByVauKFXphRlSNG47lNuxZ9aicu+r8AoNp933VRPpCw=
github.com/smartcontractkit/chainlink-starknet/relayer v0.0.1-beta-test.0.20230901115736-bbabe542a918/go.mod h1:/yp/sqD8Iz5GU5fcercjrw0ivJF7HDcupYg+Gjr7EPg=
github.com/smartcontractkit/chainlink-testing-framework v1.17.0 h1:JcJwfawW7jfLBG+By5hGTVcNgKQ7bJCqvN9TEF3qBis=
github.com/smartcontractkit/chainlink-testing-framework v1.17.0/go.mod h1:Ry6fRPr8TwrIsYVNEF1pguAgzE3QW1s54tbLWnFtfI4=
github.com/smartcontractkit/chainlink-testing-framework v1.17.3 h1:lX6JgzW1UuwN/Y6/ri0RcS9mHY9+qdN8lkponjr+0xM=
github.com/smartcontractkit/chainlink-testing-framework v1.17.3/go.mod h1:izzRx4cNihkVP9XY15isSCMW1QAlRK1w5eE23/MbZHM=
github.com/smartcontractkit/go-plugin v0.0.0-20230605132010-0f4d515d1472 h1:x3kNwgFlDmbE/n0gTSRMt9GBDfsfGrs4X9b9arPZtFI=
github.com/smartcontractkit/go-plugin v0.0.0-20230605132010-0f4d515d1472/go.mod h1:6/1TEzT0eQznvI/gV2CM29DLSkAK/e58mUWKVsPaph0=
github.com/smartcontractkit/grpc-proxy v0.0.0-20230731113816-f1be6620749f h1:hgJif132UCdjo8u43i7iPN1/MFnu49hv7lFGFftCHKU=
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/performance/cron_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ HTTPWriteTimout = '300s'`
})

testEnvironment = environment.New(&environment.Config{
NamespacePrefix: fmt.Sprintf("performance-cron-%s", strings.ReplaceAll(strings.ToLower(network.Name), " ", "-")),
Test: t,
NamespacePrefix: fmt.Sprintf("performance-cron-%s", strings.ReplaceAll(strings.ToLower(network.Name), " ", "-")),
Test: t,
PreventPodEviction: true,
}).
AddHelm(mockservercfg.New(nil)).
AddHelm(mockserver.New(nil)).
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/performance/directrequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ HTTPWriteTimout = '300s'`
})

testEnvironment = environment.New(&environment.Config{
NamespacePrefix: fmt.Sprintf("performance-cron-%s", strings.ReplaceAll(strings.ToLower(network.Name), " ", "-")),
Test: t,
NamespacePrefix: fmt.Sprintf("performance-cron-%s", strings.ReplaceAll(strings.ToLower(network.Name), " ", "-")),
Test: t,
PreventPodEviction: true,
}).
AddHelm(mockservercfg.New(nil)).
AddHelm(mockserver.New(nil)).
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/performance/flux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,9 @@ Enabled = true`
})

testEnvironment = environment.New(&environment.Config{
NamespacePrefix: fmt.Sprintf("performance-flux-%s", strings.ReplaceAll(strings.ToLower(testNetwork.Name), " ", "-")),
Test: t,
NamespacePrefix: fmt.Sprintf("performance-flux-%s", strings.ReplaceAll(strings.ToLower(testNetwork.Name), " ", "-")),
Test: t,
PreventPodEviction: true,
}).
AddHelm(mockservercfg.New(nil)).
AddHelm(mockserver.New(nil)).
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/performance/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ PerformGasOverhead = 150_000`

testEnvironment := environment.New(
&environment.Config{
NamespacePrefix: fmt.Sprintf("performance-keeper-%s-%s", testName, networkName),
Test: t,
NamespacePrefix: fmt.Sprintf("performance-keeper-%s-%s", testName, networkName),
Test: t,
PreventPodEviction: true,
},
).
AddHelm(mockservercfg.New(nil)).
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/performance/ocr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ ListenPort = 6690`
})

testEnvironment = environment.New(&environment.Config{
NamespacePrefix: fmt.Sprintf("performance-ocr-%s", strings.ReplaceAll(strings.ToLower(testNetwork.Name), " ", "-")),
Test: t,
NamespacePrefix: fmt.Sprintf("performance-ocr-%s", strings.ReplaceAll(strings.ToLower(testNetwork.Name), " ", "-")),
Test: t,
PreventPodEviction: true,
}).
AddHelm(mockservercfg.New(nil)).
AddHelm(mockserver.New(nil)).
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/performance/vrf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ HTTPWriteTimout = '300s'`
})

testEnvironment = environment.New(&environment.Config{
NamespacePrefix: fmt.Sprintf("smoke-vrf-%s", strings.ReplaceAll(strings.ToLower(testNetwork.Name), " ", "-")),
Test: t,
NamespacePrefix: fmt.Sprintf("smoke-vrf-%s", strings.ReplaceAll(strings.ToLower(testNetwork.Name), " ", "-")),
Test: t,
PreventPodEviction: true,
}).
AddHelm(evmConfig).
AddHelm(cd)
Expand Down
3 changes: 1 addition & 2 deletions integration-tests/testsetups/ocr.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package testsetups
import (
"context"
"fmt"
"io/ioutil"
"math/big"
"math/rand"
"os"
Expand Down Expand Up @@ -359,7 +358,7 @@ func (o *OCRSoakTest) LoadState() error {
}

testState := &OCRSoakTestState{}
saveData, err := ioutil.ReadFile(saveFileLocation)
saveData, err := os.ReadFile(saveFileLocation)
if err != nil {
return err
}
Expand Down

0 comments on commit 16361f3

Please sign in to comment.