From a137f22757e9a6d97b1260f1eb0147fc555f9bc6 Mon Sep 17 00:00:00 2001 From: Damjan Smickovski Date: Fri, 7 Jun 2024 13:07:41 +0200 Subject: [PATCH] Had to revert to env vars --- .github/workflows/soak.yml | 8 ++++++++ docs/RunningE2eTests.md | 14 ++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/soak.yml b/.github/workflows/soak.yml index 7967932b1..ba5d6116e 100644 --- a/.github/workflows/soak.yml +++ b/.github/workflows/soak.yml @@ -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 @@ -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 diff --git a/docs/RunningE2eTests.md b/docs/RunningE2eTests.md index 78665a8e7..7db93a008 100644 --- a/docs/RunningE2eTests.md +++ b/docs/RunningE2eTests.md @@ -36,16 +36,11 @@ 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 = ` - 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. @@ -53,6 +48,9 @@ Create an `overrides.toml` file in `integration-tests/testconfig` and run `cat o 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: /chainlink-solana-tests:` +- Base64 the .toml config - Run `export BASE64_CONFIG_OVERRIDE=""` - cd integration-tests/soak && go test -timeout 24h -count=1 -run TestSolanaOCRV2Soak -test.timeout 30m;