From d3643d2b6e4df2c18c0afadea7126fad8e89bfa2 Mon Sep 17 00:00:00 2001 From: lukaszcl <120112546+lukaszcl@users.noreply.github.com> Date: Mon, 9 Sep 2024 16:50:57 +0200 Subject: [PATCH] Allow custom docker test artifacts --- .github/e2e-tests.yml | 10 ++++++++ .../run-e2e-tests-reusable-workflow.yml | 23 ++++++++++++++----- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/e2e-tests.yml b/.github/e2e-tests.yml index 4eb7180b15d..ee3f75db760 100644 --- a/.github/e2e-tests.yml +++ b/.github/e2e-tests.yml @@ -983,6 +983,16 @@ runner-test-matrix: test_env_vars: E2E_TEST_SELECTED_NETWORK: SIMULATED_1,SIMULATED_2 + - id: integration-tests/ccip-tests/load/ccip_test.go:TestLoadCCIPStableRPS + path: integration-tests/ccip-tests/load/ccip_test.go + test_env_type: docker + runs_on: ubuntu-latest + test_cmd: cd integration-tests/ccip-tests/load && go test -test.run TestLoadCCIPStableRPS -timeout 70m -count=1 -test.parallel=1 -json + test_env_vars: + E2E_TEST_GRAFANA_DASHBOARD_URL: "/d/6vjVx-1V8/ccip-long-running-tests" + artifact_paths: + - ./integration-tests/load/logs/payload_ccip.json + - id: ccip-tests/chaos/ccip_test.go path: integration-tests/ccip-tests/chaos/ccip_test.go test_env_type: k8s-remote-runner diff --git a/.github/workflows/run-e2e-tests-reusable-workflow.yml b/.github/workflows/run-e2e-tests-reusable-workflow.yml index bdee8814dc7..6093ebd5e04 100644 --- a/.github/workflows/run-e2e-tests-reusable-workflow.yml +++ b/.github/workflows/run-e2e-tests-reusable-workflow.yml @@ -240,7 +240,7 @@ jobs: path: core - name: Install citool shell: bash - run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/citool@a5fa738dad7dfca70322d44877bdb1bc8eb8659d # v1.34.4 + run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/citool@7deba4b43ab4f70d8b6446286bd4ea25377b44d2 # v1.34.4 - name: Run Check Tests Command run: | if ! citool check-tests ${{ github.workspace }}/integration-tests ${{ github.workspace }}/.github/e2e-tests.yml; then @@ -287,7 +287,7 @@ jobs: check-latest: true - name: Install citool shell: bash - run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/citool@a5fa738dad7dfca70322d44877bdb1bc8eb8659d # v1.34.4 + run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/citool@7deba4b43ab4f70d8b6446286bd4ea25377b44d2 # v1.34.4 - name: Install jq run: sudo apt-get install jq @@ -534,6 +534,20 @@ jobs: --user "$(id -u):$(id -g)" \ -p 4317:4317 otel/opentelemetry-collector:0.88.0 --config=/etc/otel-collector.yaml + - name: Get test artifact paths + id: get_artifact_paths + run: | + DEFAULT_PATHS=( + "./integration-tests/smoke/logs/" + "./integration-tests/smoke/db_dumps/" + "/tmp/gotest.log" + "${{ matrix.tests.artifact_paths }}" + ) + # Convert array to newline-separated string for output + printf -v PATHS_STR '%s\n' "${DEFAULT_PATHS[@]}" + echo "Test artifact paths: $PATHS_STR" # Echoing the PATHS_STR to the logs + echo "paths=$PATHS_STR" >> $GITHUB_OUTPUT + - name: Run tests id: run_tests uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@4f377a6b1cc07f0eca82745782736b4908a1da30 # v2.3.32 @@ -567,10 +581,7 @@ jobs: default_e2e_test_chainlink_upgrade_image: ${{ matrix.tests.test_env_vars.E2E_TEST_CHAINLINK_UPGRADE_IMAGE }} aws_registries: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }} artifacts_name: ${{ matrix.tests.id_sanitized }}-test-logs - artifacts_location: | - ./integration-tests/smoke/logs/ - ./integration-tests/smoke/db_dumps/ - /tmp/gotest.log + artifacts_location: ${{ steps.get_artifact_paths.outputs.paths }} publish_check_name: ${{ matrix.tests.id_sanitized }} token: ${{ secrets.GH_TOKEN }} cache_key_id: e2e-tests