Skip to content

Commit

Permalink
Had to revert to env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid committed Jun 7, 2024
1 parent 387aa8c commit a137f22
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/soak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
required: true
default: develop
type: string
test_runner_tag:
description: Remote runner tag that will run the tests
default: develop
required: true
type: string
env:
CL_ECR: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink
CONTRACT_ARTIFACTS_PATH: contracts/target/deploy
Expand Down Expand Up @@ -75,6 +80,9 @@ jobs:
TEST_ARGS: -test.timeout 30m
TEST_LOG_LEVEL: debug
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEST_SUITE: soak
DETACH_RUNNER: true
ENV_JOB_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-solana-tests:${{ github.event.inputs.test_runner_tag }}
steps:
- name: Collect Metrics
id: collect-gha-metrics
Expand Down
14 changes: 6 additions & 8 deletions docs/RunningE2eTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,21 @@ By default all values are pulled either from `default.toml` or if we create an `

### On demand soak test

In the .toml file under [OCR2.Soak]. Additionally, [OCR2.Smoke] needs to be disabled.

- `enabled = true`
- `remote_runner_image = <image>` - This can be fetched from the build test image job
- `detach_runner = true` - Runs the tests in the remote runner

Navigate to the [workflow](https://github.com/smartcontractkit/chainlink-solana/actions/workflows/soak.yml). The workflow takes in 2 parameters:
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:

- Base64 the config
- `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 TestSolanaOCRV2Soak -test.timeout 30m;

0 comments on commit a137f22

Please sign in to comment.