Skip to content

Commit

Permalink
Fix CCIP Load Test (#14525)
Browse files Browse the repository at this point in the history
* Add ccip-load to default suites

* DEBUG

* Add docker image debugging

* Build test debugging

* Add TEST_SUITE

* Remove debug
  • Loading branch information
kalverra authored Sep 24, 2024
1 parent d9894d1 commit 295f8c7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,7 @@ runner-test-matrix:
runs_on: ubuntu-latest
test_cmd: cd integration-tests/ccip-tests/load && DETACH_RUNNER=false go test -test.run ^TestLoadCCIPStableRPS$ -timeout 70m -count=1 -test.parallel=1 -json
test_env_vars:
TEST_SUITE: ccip-load
E2E_TEST_GRAFANA_DASHBOARD_URL: "/d/6vjVx-1V8/ccip-long-running-tests"
workflows:
- E2E CCIP Load Tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-e2e-tests-reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ on:
description: 'Suites to build in the test image. Space separated'
required: false
type: string
default: chaos migration reorg smoke soak benchmark load
default: chaos migration reorg smoke soak benchmark load ccip-load
require_chainlink_image_versions_in_qa_ecr:
description: 'Check Chainlink image versions to be present in QA ECR. If not, build and push the image to QA ECR. Takes comma separated list of Chainlink image versions. Example: "5733cdcda9a9fc6da6343798b119b2ae136146cd,0b7d2c497a508efa5a827714780d908b7b8eda19"'
required: false
Expand Down
1 change: 1 addition & 0 deletions integration-tests/scripts/buildTests
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ do
else
go test -c -tags embed ./"${x}"
fi
echo "Built ${x}.test"
done
IFS=$OIFS
5 changes: 5 additions & 0 deletions integration-tests/scripts/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ cd "$SCRIPT_DIR"/../ || exit 1
# SUITE=${SUITE:=} the suite of tests you want to run
# TEST_NAME=${TEST_NAME:=} The specific test to run

if [ -z "${SUITE}" ]; then
echo "SUITE is not set. You likely need to set the TEST_SUITE env var in your workflow. Exiting."
exit 1
fi

# run the tests
./${SUITE}.test -test.v -test.count 1 ${ARGS} -test.run ^${TEST_NAME}$

Expand Down
4 changes: 3 additions & 1 deletion integration-tests/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE
ARG IMAGE_VERSION=latest
FROM ${BASE_IMAGE}:${IMAGE_VERSION} AS build-env

ARG SUITES=chaos migration performance reorg smoke soak benchmark
ARG SUITES=chaos migration performance reorg smoke soak benchmark load ccip-load

COPY . testdir/
WORKDIR /go/testdir
Expand All @@ -15,5 +15,7 @@ COPY --from=build-env /go/pkg /go/pkg
COPY --from=build-env /go/testdir/integration-tests/*.test /go/testdir/integration-tests/
COPY --from=build-env /go/testdir/integration-tests/ccip-tests/*.test /go/testdir/integration-tests/
COPY --from=build-env /go/testdir/integration-tests/scripts /go/testdir/integration-tests/scripts/
RUN echo "All tests"
RUN ls -l /go/testdir/integration-tests/*.test

ENTRYPOINT ["/go/testdir/integration-tests/scripts/entrypoint"]

0 comments on commit 295f8c7

Please sign in to comment.