Skip to content

Commit

Permalink
[TT-1421] Adds Dot Graphs to CI Upload (#13946)
Browse files Browse the repository at this point in the history
* Adds dot graphs to CI upload

* Fix load imports

* Verified graphs properly uploaded

* Default save DOT traces

* use Seth v1.1.2, render DOT graphs for failed transactions in job summary

* try newer action

* use newer action

* run with debug

* use newer action

* try one more thing with GIthub_workspace

* newer action version

* last try with image generation

* do not try to render dot graphs anymore

* fix imports

* remove on-demand failure

* trace only reverted

* use new method in all smoke tests

---------

Co-authored-by: Bartek Tofel <bartek.tofel@smartcontract.com>
  • Loading branch information
kalverra and Tofel authored Aug 9, 2024
1 parent 4b91691 commit 14dabac
Show file tree
Hide file tree
Showing 20 changed files with 86 additions and 46 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,11 @@ jobs:
cl_repo: ${{ env.CHAINLINK_IMAGE }}
cl_image_tag: ${{ inputs.evm-ref || github.sha }}
aws_registries: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
artifacts_name: ${{ matrix.product.name }}-test-logs
artifacts_name: ${{ matrix.product.name }}-test-artifacts
artifacts_location: |
./integration-tests/smoke/logs/
./integration-tests/smoke/db_dumps/
./integration-tests/smoke/seth_artifacts/
/tmp/gotest.log
publish_check_name: ${{ matrix.product.name }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -395,7 +396,7 @@ jobs:

- name: Print failed test summary
if: always()
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/show-test-summary@75a9005952a9e905649cfb5a6971fd9429436acd # v2.3.25
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/show-test-summary@70ccaef155381025e411cf7cd1fa5ef8f668ed75 # v2.3.25

eth-smoke-tests-matrix-log-poller:
if: ${{ !(contains(join(github.event.pull_request.labels.*.name, ' '), 'skip-smoke-tests') || github.event_name == 'workflow_dispatch') || inputs.distinct_run_name != '' }}
Expand Down Expand Up @@ -470,10 +471,11 @@ jobs:
cl_repo: ${{ env.CHAINLINK_IMAGE }}
cl_image_tag: ${{ inputs.evm-ref || github.sha }}
aws_registries: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
artifacts_name: ${{ matrix.product.name }}-test-logs
artifacts_name: ${{ matrix.product.name }}-test-artifacts
artifacts_location: |
./integration-tests/smoke/logs/
./integration-tests/smoke/db_dumps/
./integration-tests/smoke/seth_artifacts/
/tmp/gotest.log
publish_check_name: ${{ matrix.product.name }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -509,8 +511,7 @@ jobs:

- name: Print failed test summary
if: always()
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/show-test-summary@75a9005952a9e905649cfb5a6971fd9429436acd # v2.3.25

uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/show-test-summary@70ccaef155381025e411cf7cd1fa5ef8f668ed75 # v2.3.25

eth-smoke-tests-matrix:
if: ${{ !contains(join(github.event.pull_request.labels.*.name, ' '), 'skip-smoke-tests') }}
Expand Down Expand Up @@ -708,10 +709,11 @@ jobs:
cl_repo: ${{ env.CHAINLINK_IMAGE }}
cl_image_tag: ${{ inputs.evm-ref || github.sha }}${{ matrix.product.tag_suffix }}
aws_registries: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
artifacts_name: ${{ matrix.product.name }}${{ matrix.product.tag_suffix }}-test-logs
artifacts_name: ${{ matrix.product.name }}${{ matrix.product.tag_suffix }}-test-artifacts
artifacts_location: |
./integration-tests/smoke/logs/
./integration-tests/smoke/db_dumps/
./integration-tests/smoke/seth_artifacts/
/tmp/gotest.log
publish_check_name: ${{ matrix.product.name }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -778,7 +780,7 @@ jobs:

- name: Print failed test summary
if: always()
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/show-test-summary@75a9005952a9e905649cfb5a6971fd9429436acd # v2.3.25
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/show-test-summary@70ccaef155381025e411cf7cd1fa5ef8f668ed75 # v2.3.25
with:
test_directories: ./integration-tests/smoke/

Expand Down Expand Up @@ -958,9 +960,11 @@ jobs:
cl_repo: ${{ env.CHAINLINK_IMAGE }}
cl_image_tag: ${{ steps.get_latest_version.outputs.latest_version }}
aws_registries: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
artifacts_name: node-migration-test-logs
artifacts_name: node-migration-test-artifacts
artifacts_location: |
./integration-tests/migration/logs
./integration-tests/migration/db_dumps
./integration-tests/migration/seth_artifacts
/tmp/gotest.log
publish_check_name: Node Migration Test Results
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -1283,9 +1287,11 @@ jobs:
cache_key_id: core-solana-e2e-${{ env.MOD_CACHE_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
aws_registries: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
artifacts_name: solana-test-logs
artifacts_name: solana-test-artifacts
artifacts_location: |
./integration-tests/smoke/logs
./integration-tests/smoke/db_dumps
./integration-tests/smoke/seth_artifacts
/tmp/gotest.log
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }}
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ MacOSX*
*report.xml
*report.json
*.out
dot_graphs/

contracts/yarn.lock

Expand All @@ -101,7 +102,7 @@ tools/flakeytests/coverage.txt
# Runtime test configuration that might contain secrets
override*.toml

# Pythin venv
# Python venv
.venv/

ocr_soak_report.csv
7 changes: 4 additions & 3 deletions integration-tests/actions/vrf/common/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"testing"
"time"

"github.com/smartcontractkit/chainlink/integration-tests/utils"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/go-resty/resty/v2"
Expand All @@ -19,7 +21,6 @@ import (

ctf_test_env "github.com/smartcontractkit/chainlink-testing-framework/docker/test_env"
"github.com/smartcontractkit/chainlink-testing-framework/utils/conversions"
seth_utils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth"
"github.com/smartcontractkit/chainlink-testing-framework/utils/testcontext"

"github.com/smartcontractkit/chainlink/integration-tests/actions"
Expand Down Expand Up @@ -367,7 +368,7 @@ func BuildNewCLEnvForVRF(l zerolog.Logger, t *testing.T, envConfig VRFEnvConfig,
if err != nil {
return nil, nil, fmt.Errorf("%s, err: %w", "error getting first evm network", err)
}
sethClient, err := seth_utils.GetChainClient(envConfig.TestConfig, *evmNetwork)
sethClient, err := utils.TestAwareSethClient(t, envConfig.TestConfig, evmNetwork)
if err != nil {
return nil, nil, fmt.Errorf("%s, err: %w", "error getting seth client", err)
}
Expand Down Expand Up @@ -403,7 +404,7 @@ func LoadExistingCLEnvForVRF(
if err != nil {
return nil, nil, err
}
sethClient, err := seth_utils.GetChainClient(envConfig.TestConfig, *evmNetwork)
sethClient, err := utils.TestAwareSethClient(t, envConfig.TestConfig, evmNetwork)
if err != nil {
return nil, nil, err
}
Expand Down
11 changes: 8 additions & 3 deletions integration-tests/docker/test_env/test_env_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@ import (

"github.com/rs/zerolog"
"github.com/rs/zerolog/log"

"go.uber.org/zap/zapcore"

"github.com/smartcontractkit/seth"

"github.com/smartcontractkit/chainlink-testing-framework/blockchain"
ctf_config "github.com/smartcontractkit/chainlink-testing-framework/config"
"github.com/smartcontractkit/chainlink-testing-framework/docker/test_env"
"github.com/smartcontractkit/chainlink-testing-framework/logging"
"github.com/smartcontractkit/chainlink-testing-framework/logstream"
"github.com/smartcontractkit/chainlink-testing-framework/networks"
"github.com/smartcontractkit/chainlink-testing-framework/testreporters"
"github.com/smartcontractkit/chainlink-testing-framework/testsummary"
"github.com/smartcontractkit/chainlink-testing-framework/utils/osutil"
"github.com/smartcontractkit/chainlink/v2/core/services/chainlink"

"github.com/smartcontractkit/chainlink/integration-tests/types/config/node"
"github.com/smartcontractkit/chainlink/v2/core/services/chainlink"
)

type CleanUpType string
Expand Down Expand Up @@ -347,6 +348,10 @@ func (b *CLTestEnvBuilder) Build() (*CLClusterTestEnv, error) {
}
b.l.Info().Msg("Finished dumping state of all Postgres DBs used by Chainlink Nodes")
}

if b.testConfig.GetSethConfig() != nil && ((b.t.Failed() && slices.Contains(b.testConfig.GetSethConfig().TraceOutputs, seth.TraceOutput_DOT) && b.testConfig.GetSethConfig().TracingLevel != seth.TracingLevel_None) || (!b.t.Failed() && slices.Contains(b.testConfig.GetSethConfig().TraceOutputs, seth.TraceOutput_DOT) && b.testConfig.GetSethConfig().TracingLevel == seth.TracingLevel_All)) {
_ = testsummary.AddEntry(b.t.Name(), "dot_graphs", "true")
}
})
} else {
b.l.Warn().Msg("LogStream won't be cleaned up, because either test instance is not set or cleanup type is set to none")
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ require (
github.com/smartcontractkit/chainlink/v2 v2.0.0-00010101000000-000000000000
github.com/smartcontractkit/havoc/k8schaos v0.0.0-20240409145249-e78d20847e37
github.com/smartcontractkit/libocr v0.0.0-20240717100443-f6226e09bee7
github.com/smartcontractkit/seth v1.1.1
github.com/smartcontractkit/seth v1.1.2
github.com/smartcontractkit/wasp v0.4.5
github.com/spf13/cobra v1.8.0
github.com/stretchr/testify v1.9.0
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1514,8 +1514,8 @@ github.com/smartcontractkit/havoc/k8schaos v0.0.0-20240409145249-e78d20847e37 h1
github.com/smartcontractkit/havoc/k8schaos v0.0.0-20240409145249-e78d20847e37/go.mod h1:/kFr0D7SI/vueXl1N03uzOun4nViGPFRyA5X6eL3jXw=
github.com/smartcontractkit/libocr v0.0.0-20240717100443-f6226e09bee7 h1:e38V5FYE7DA1JfKXeD5Buo/7lczALuVXlJ8YNTAUxcw=
github.com/smartcontractkit/libocr v0.0.0-20240717100443-f6226e09bee7/go.mod h1:fb1ZDVXACvu4frX3APHZaEBp0xi1DIm34DcA0CwTsZM=
github.com/smartcontractkit/seth v1.1.1 h1:6hvexjJD7ek8ht/CLlEwQcH21K2E/WEYwbSRdKInZmM=
github.com/smartcontractkit/seth v1.1.1/go.mod h1:cDfKHi/hJLpO9sRpVbrflrHCOV+MJPAMJHloExJnIXk=
github.com/smartcontractkit/seth v1.1.2 h1:98v9VUFUpNhU7UofeF/bGyUIVv9jnt+JlIE+I8mhX2c=
github.com/smartcontractkit/seth v1.1.2/go.mod h1:cDfKHi/hJLpO9sRpVbrflrHCOV+MJPAMJHloExJnIXk=
github.com/smartcontractkit/tdh2/go/ocr2/decryptionplugin v0.0.0-20230906073235-9e478e5e19f1 h1:yiKnypAqP8l0OX0P3klzZ7SCcBUxy5KqTAKZmQOvSQE=
github.com/smartcontractkit/tdh2/go/ocr2/decryptionplugin v0.0.0-20230906073235-9e478e5e19f1/go.mod h1:q6f4fe39oZPdsh1i57WznEZgxd8siidMaSFq3wdPmVg=
github.com/smartcontractkit/tdh2/go/tdh2 v0.0.0-20230906073235-9e478e5e19f1 h1:Dai1bn+Q5cpeGMQwRdjOdVjG8mmFFROVkSKuUgBErRQ=
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/load/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/smartcontractkit/chainlink/integration-tests v0.0.0-20240214231432-4ad5eb95178c
github.com/smartcontractkit/chainlink/v2 v2.9.0-beta0.0.20240216210048-da02459ddad8
github.com/smartcontractkit/libocr v0.0.0-20240717100443-f6226e09bee7
github.com/smartcontractkit/seth v1.1.1
github.com/smartcontractkit/seth v1.1.2
github.com/smartcontractkit/tdh2/go/tdh2 v0.0.0-20230906073235-9e478e5e19f1
github.com/smartcontractkit/wasp v0.4.7
github.com/stretchr/testify v1.9.0
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/load/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1496,8 +1496,8 @@ github.com/smartcontractkit/havoc/k8schaos v0.0.0-20240409145249-e78d20847e37 h1
github.com/smartcontractkit/havoc/k8schaos v0.0.0-20240409145249-e78d20847e37/go.mod h1:/kFr0D7SI/vueXl1N03uzOun4nViGPFRyA5X6eL3jXw=
github.com/smartcontractkit/libocr v0.0.0-20240717100443-f6226e09bee7 h1:e38V5FYE7DA1JfKXeD5Buo/7lczALuVXlJ8YNTAUxcw=
github.com/smartcontractkit/libocr v0.0.0-20240717100443-f6226e09bee7/go.mod h1:fb1ZDVXACvu4frX3APHZaEBp0xi1DIm34DcA0CwTsZM=
github.com/smartcontractkit/seth v1.1.1 h1:6hvexjJD7ek8ht/CLlEwQcH21K2E/WEYwbSRdKInZmM=
github.com/smartcontractkit/seth v1.1.1/go.mod h1:cDfKHi/hJLpO9sRpVbrflrHCOV+MJPAMJHloExJnIXk=
github.com/smartcontractkit/seth v1.1.2 h1:98v9VUFUpNhU7UofeF/bGyUIVv9jnt+JlIE+I8mhX2c=
github.com/smartcontractkit/seth v1.1.2/go.mod h1:cDfKHi/hJLpO9sRpVbrflrHCOV+MJPAMJHloExJnIXk=
github.com/smartcontractkit/tdh2/go/ocr2/decryptionplugin v0.0.0-20230906073235-9e478e5e19f1 h1:yiKnypAqP8l0OX0P3klzZ7SCcBUxy5KqTAKZmQOvSQE=
github.com/smartcontractkit/tdh2/go/ocr2/decryptionplugin v0.0.0-20230906073235-9e478e5e19f1/go.mod h1:q6f4fe39oZPdsh1i57WznEZgxd8siidMaSFq3wdPmVg=
github.com/smartcontractkit/tdh2/go/tdh2 v0.0.0-20230906073235-9e478e5e19f1 h1:Dai1bn+Q5cpeGMQwRdjOdVjG8mmFFROVkSKuUgBErRQ=
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/smoke/automation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"
"time"

seth_utils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth"
"github.com/smartcontractkit/chainlink/integration-tests/utils"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
Expand Down Expand Up @@ -1427,7 +1427,7 @@ func setupAutomationTestDocker(
evmNetwork, err := env.GetFirstEvmNetwork()
require.NoError(t, err, "Error getting first evm network")

sethClient, err := seth_utils.GetChainClient(automationTestConfig, *evmNetwork)
sethClient, err := utils.TestAwareSethClient(t, automationTestConfig, evmNetwork)
require.NoError(t, err, "Error getting seth client")

err = actions.FundChainlinkNodesFromRootAddress(l, sethClient, contracts.ChainlinkClientToChainlinkNodeWithKeysAndAddress(env.ClCluster.NodeAPIs()), big.NewFloat(*automationTestConfig.GetCommonConfig().ChainlinkNodeFunding))
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/smoke/flux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import (
"testing"
"time"

"github.com/smartcontractkit/chainlink/integration-tests/utils"

"github.com/ethereum/go-ethereum/common"
"github.com/google/uuid"
"github.com/stretchr/testify/require"

"github.com/smartcontractkit/chainlink-testing-framework/logging"
seth_utils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth"
"github.com/smartcontractkit/chainlink-testing-framework/utils/testcontext"

"github.com/smartcontractkit/chainlink/integration-tests/actions"
Expand Down Expand Up @@ -49,7 +50,7 @@ func TestFluxBasic(t *testing.T) {
evmNetwork, err := env.GetFirstEvmNetwork()
require.NoError(t, err, "Error getting first evm network")

sethClient, err := seth_utils.GetChainClient(config, *evmNetwork)
sethClient, err := utils.TestAwareSethClient(t, config, evmNetwork)
require.NoError(t, err, "Error getting seth client")

adapterUUID := uuid.NewString()
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/smoke/forwarder_ocr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

seth_utils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth"
"github.com/smartcontractkit/chainlink/integration-tests/utils"

"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -49,7 +49,7 @@ func TestForwarderOCRBasic(t *testing.T) {
evmNetwork, err := env.GetFirstEvmNetwork()
require.NoError(t, err, "Error getting first evm network")

sethClient, err := seth_utils.GetChainClient(config, *evmNetwork)
sethClient, err := utils.TestAwareSethClient(t, config, evmNetwork)
require.NoError(t, err, "Error getting seth client")

err = actions.FundChainlinkNodesFromRootAddress(l, sethClient, contracts.ChainlinkClientToChainlinkNodeWithKeysAndAddress(env.ClCluster.NodeAPIs()), big.NewFloat(*config.Common.ChainlinkNodeFunding))
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/smoke/forwarders_ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

seth_utils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth"
"github.com/smartcontractkit/chainlink/integration-tests/utils"

"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -50,7 +50,7 @@ func TestForwarderOCR2Basic(t *testing.T) {
evmNetwork, err := env.GetFirstEvmNetwork()
require.NoError(t, err, "Error getting first evm network")

sethClient, err := seth_utils.GetChainClient(config, *evmNetwork)
sethClient, err := utils.TestAwareSethClient(t, config, evmNetwork)
require.NoError(t, err, "Error getting seth client")

err = actions.FundChainlinkNodesFromRootAddress(l, sethClient, contracts.ChainlinkClientToChainlinkNodeWithKeysAndAddress(env.ClCluster.NodeAPIs()), big.NewFloat(*config.Common.ChainlinkNodeFunding))
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/smoke/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

seth_utils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth"
"github.com/smartcontractkit/chainlink/integration-tests/utils"

"github.com/ethereum/go-ethereum/common"
"github.com/onsi/gomega"
Expand Down Expand Up @@ -1243,7 +1243,7 @@ func setupKeeperTest(l zerolog.Logger, t *testing.T, config *tc.TestConfig) (
evmNetwork, err := env.GetFirstEvmNetwork()
require.NoError(t, err, "Error getting first evm network")

sethClient, err := seth_utils.GetChainClient(config, *evmNetwork)
sethClient, err := utils.TestAwareSethClient(t, config, evmNetwork)
require.NoError(t, err, "Error getting seth client")

err = actions.FundChainlinkNodesFromRootAddress(l, sethClient, contracts.ChainlinkClientToChainlinkNodeWithKeysAndAddress(env.ClCluster.NodeAPIs()), big.NewFloat(*config.Common.ChainlinkNodeFunding))
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/smoke/ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

seth_utils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth"
"github.com/smartcontractkit/chainlink/integration-tests/utils"

"github.com/ethereum/go-ethereum/common"
"github.com/rs/zerolog"
Expand Down Expand Up @@ -163,7 +163,7 @@ func prepareORCv2SmokeTestEnv(t *testing.T, testData ocr2test, l zerolog.Logger,
evmNetwork, err := testEnv.GetFirstEvmNetwork()
require.NoError(t, err, "Error getting first evm network")

sethClient, err := seth_utils.GetChainClient(config, *evmNetwork)
sethClient, err := utils.TestAwareSethClient(t, config, evmNetwork)
require.NoError(t, err, "Error getting seth client")

nodeClients := testEnv.ClCluster.NodeAPIs()
Expand Down
5 changes: 2 additions & 3 deletions integration-tests/smoke/ocr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (
"testing"
"time"

seth_utils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth"

"github.com/ethereum/go-ethereum/common"
"github.com/rs/zerolog"
"github.com/smartcontractkit/seth"
Expand All @@ -19,6 +17,7 @@ import (
"github.com/smartcontractkit/chainlink/integration-tests/contracts"
"github.com/smartcontractkit/chainlink/integration-tests/docker/test_env"
tc "github.com/smartcontractkit/chainlink/integration-tests/testconfig"
"github.com/smartcontractkit/chainlink/integration-tests/utils"
)

const (
Expand Down Expand Up @@ -99,7 +98,7 @@ func prepareORCv1SmokeTestEnv(t *testing.T, l zerolog.Logger, firstRoundResult i
evmNetwork, err := env.GetFirstEvmNetwork()
require.NoError(t, err, "Error getting first evm network")

sethClient, err := seth_utils.GetChainClient(config, *evmNetwork)
sethClient, err := utils.TestAwareSethClient(t, config, evmNetwork)
require.NoError(t, err, "Error getting seth client")

nodeClients := env.ClCluster.NodeAPIs()
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/smoke/runlog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

seth_utils "github.com/smartcontractkit/chainlink-testing-framework/utils/seth"
"github.com/smartcontractkit/chainlink/integration-tests/utils"

"github.com/google/uuid"
"github.com/onsi/gomega"
Expand Down Expand Up @@ -47,7 +47,7 @@ func TestRunLogBasic(t *testing.T) {
evmNetwork, err := env.GetFirstEvmNetwork()
require.NoError(t, err, "Error getting first evm network")

sethClient, err := seth_utils.GetChainClient(config, *evmNetwork)
sethClient, err := utils.TestAwareSethClient(t, config, evmNetwork)
require.NoError(t, err, "Error getting seth client")

err = actions.FundChainlinkNodesFromRootAddress(l, sethClient, contracts.ChainlinkClientToChainlinkNodeWithKeysAndAddress(env.ClCluster.NodeAPIs()), big.NewFloat(*config.Common.ChainlinkNodeFunding))
Expand Down
Loading

0 comments on commit 14dabac

Please sign in to comment.