-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QA-134 Add Isomorphic Deployment ability to core smoke tests (#7951)
* testing out new test deployment build * bump to latest chainlink-env isomorphic branch * switch to compilation in docker * network connection debugging * more debugging * additional ginkgo args * add sleep retry loop to test if first connection is just problematic * wrap test in if for local vs remote * merge conflict fixes and docker image updates * Merge conflict fixes * Fix integration-tests chainlink image version * add test image publish on merge to develop * Use existing version * Remove the need to add a test cleanup specifically for remote run tests * bump chainlink-env * Add fixes for soak testing * another clenv bump * fix for benchmark test * Update ocr2vrf types * Use chainlink-env v0.3.0
- Loading branch information
Showing
30 changed files
with
456 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Integration Tests Publish | ||
# Publish the compiled integration tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
env: | ||
ECR_TAG: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-tests:develop | ||
|
||
jobs: | ||
publish-integration-test-image: | ||
environment: integration | ||
permissions: | ||
id-token: write | ||
contents: read | ||
name: Publish Integration Test Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Collect Metrics | ||
id: collect-gha-metrics | ||
uses: smartcontractkit/push-gha-metrics-action@v1 | ||
with: | ||
basic-auth: ${{ secrets.GRAFANA_CLOUD_BASIC_AUTH }} | ||
hostname: ${{ secrets.GRAFANA_CLOUD_HOST }} | ||
this-job-name: Publish Integration Test Image | ||
continue-on-error: true | ||
- name: Checkout the repo | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: build test runner | ||
uses: smartcontractkit/chainlink-github-actions/docker/build-push@e72f0a768ac934afce498a802de893d89b12802f # v2.1.1 | ||
with: | ||
tags: ${{ env.ECR_TAG }} | ||
file: ./integration-tests/test.Dockerfile | ||
build-args: | | ||
BASE_IMAGE=${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image | ||
IMAGE_VERSION=v0.3.0 | ||
SUITES="chaos migration performance reorg smoke soak benchmark" | ||
AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
golang 1.19.4 | ||
k3d 5.4.4 | ||
kubectl 1.25.3 | ||
golang 1.19.5 | ||
k3d 5.4.6 | ||
kubectl 1.25.5 | ||
nodejs 18.13.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
# build test binaries | ||
# accepts a single space separated argument of the folders to build | ||
|
||
set -ex | ||
|
||
# get this scripts directory | ||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) | ||
|
||
cd "$SCRIPT_DIR"/../../ || exit 1 | ||
|
||
TAG_VERSION="${1}" | ||
BASE_IMAGE_VERSION="${2}" | ||
SUITES=$3 | ||
DEFAULT_SUITES="smoke soak chaos" | ||
ACCOUNT=$(aws sts get-caller-identity | jq -r .Account) | ||
AWS_BASE="${ACCOUNT}".dkr.ecr.us-west-2.amazonaws.com | ||
TAG="${AWS_BASE}"/chainlink-tests:"${TAG_VERSION}" | ||
BASE_IMAGE="${AWS_BASE}"/test-base-image | ||
|
||
if [ "${TAG_VERSION}" = "" ]; then | ||
echo "Need an argument for the image tag version in argument 1" | ||
exit 1 | ||
fi | ||
|
||
if [ "${BASE_IMAGE_VERSION}" = "" ]; then | ||
echo "Need an argument for the test-base-image tag version in argument 2" | ||
exit 1 | ||
fi | ||
|
||
if [ "${SUITES}" = "" ]; then | ||
echo "SUITES not set, using defaults \"${DEFAULT_SUITES}\"" | ||
SUITES=${DEFAULT_SUITES} | ||
fi | ||
|
||
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin | ||
docker build -t "${TAG}" -f "./integration-tests/test.Dockerfile" --build-arg BASE_IMAGE="${BASE_IMAGE}" --build-arg IMAGE_VERSION="${BASE_IMAGE_VERSION}" --build-arg SUITES="${SUITES}" . | ||
if "${4}" = "true"]; then | ||
docker push "${TAG}" | ||
fi |
Oops, something went wrong.