Skip to content

Commit

Permalink
Testing workflow and added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid committed Jun 11, 2024
1 parent bd37f91 commit 5746530
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integration-tests-soak.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Integration Tests - Soak

on:
push:
workflow_dispatch:
inputs:
base64_config:
Expand Down
28 changes: 26 additions & 2 deletions integration-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,30 @@ In order to run the tests on Testnet, additional variables need to be specified

Set `inside_k8 = true` under `[Common]`.

#### Run tests
#### Run smoke tests

`cd integration-tests && go test --timeout=2h -v -count=1 -json ./smoke`


### On demand soak test

Navigate to the [workflow](https://github.com/smartcontractkit/chainlink-solana/actions/workflows/soak.yml). The workflow takes in 3 parameters:

- Base64 string of the .toml configuration
- Core image tag which defaults to develop
- Test runner tag, only tag needs to be supplied

Create an `overrides.toml` file in `integration-tests/testconfig` and run `cat overrides.toml | base64`. `inside_k8` needs to be set to true in the .toml in order to run the tests in kubernetes.

#### Local

If you want to kick off the test from local:

- `export TEST_SUITE: soak`
- `export DETACH_RUNNER: true`
- `export ENV_JOB_IMAGE: <internal_repo>/chainlink-solana-tests:<tag>`
- Base64 the .toml config
- Run `export BASE64_CONFIG_OVERRIDE="<config>"`
- `cd integration-tests/soak && go test -timeout 24h -count=1 -run TestOCRBasicSoak/embedded -test.timeout 30m;`


`cd integration-tests && go test --timeout=2h -v -count=1 -json ./smoke`
1 change: 1 addition & 0 deletions integration-tests/common/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func (m *OCRv2TestState) DeployCluster() {
m.Common.RPCDetails.RPCL2External = m.Common.Env.URLs["starknet-dev"][0]

// Checking whether we are running in a remote runner since the forwarding is not working there and we need the public IP
// In that case it is http://127.0.0.1:0 so we do a check and get the public IP
if m.Common.RPCDetails.RPCL2External == "http://127.0.0.1:0" {
m.Common.RPCDetails.RPCL2External = m.Common.Env.URLs["starknet-dev"][1]
}
Expand Down

0 comments on commit 5746530

Please sign in to comment.