-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TT-561] move chainlink-env as a package (commit-splitted) #747
Merged
Merged
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,123 @@ | ||
name: (k8s package) E2E tests | ||
on: | ||
pull_request: | ||
paths: | ||
- "k8s/**" | ||
|
||
concurrency: | ||
group: e2e-tests-chainlink-env-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
INTERNAL_DOCKER_REPO: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com | ||
ENV_JOB_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-testing-framework-tests:ci.${{ github.sha }} | ||
BASE_IMAGE_NAME: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image:ci.${{ github.sha }} | ||
CHAINLINK_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink | ||
CHAINLINK_VERSION: develop | ||
SELECTED_NETWORKS: SIMULATED | ||
CHAINLINK_COMMIT_SHA: ${{ github.sha }} | ||
CHAINLINK_ENV_USER: ${{ github.actor }} | ||
TEST_LOG_LEVEL: debug | ||
|
||
jobs: | ||
build_tests: | ||
runs-on: ubuntu-latest | ||
environment: integration | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build Base Image | ||
uses: smartcontractkit/chainlink-github-actions/docker/build-push@ce87f8986ca18336cc5015df75916c2ec0a7c4b3 # v2.1.2 | ||
with: | ||
tags: ${{ env.BASE_IMAGE_NAME }} | ||
file: k8s/Dockerfile.base | ||
AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
- name: Base Image Built | ||
run: | | ||
# shellcheck disable=SC2086 | ||
cat <<EOT >>$GITHUB_STEP_SUMMARY | ||
### chainlink image tag used for this test run :link: => \`${{ env.CHAINLINK_VERSION }}\` | ||
### test-base-image image tag for this test run :ship: => \`ci.${{ github.sha }}\` | ||
EOT | ||
- name: Build Test Runner | ||
uses: smartcontractkit/chainlink-github-actions/docker/build-push@ce87f8986ca18336cc5015df75916c2ec0a7c4b3 # v2.1.2 | ||
with: | ||
tags: ${{ env.ENV_JOB_IMAGE }} | ||
file: k8s/Dockerfile | ||
build-args: | | ||
BASE_IMAGE=${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image | ||
IMAGE_VERSION=ci.${{ github.sha }} | ||
AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
- name: Test Image Built | ||
run: | | ||
# shellcheck disable=SC2086 | ||
cat <<EOT >>$GITHUB_STEP_SUMMARY | ||
### chainlink-testing-framework-tests image tag for this test run :ship: -> \`ci.${{ github.sha }}\` | ||
EOT | ||
e2e_tests: | ||
runs-on: ubuntu-latest | ||
environment: integration | ||
permissions: | ||
id-token: write | ||
contents: read | ||
env: | ||
TEST_SUITE: local-runner | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run Tests | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@ce87f8986ca18336cc5015df75916c2ec0a7c4b3 # v2.1.2 | ||
with: | ||
cl_repo: ${{ env.CHAINLINK_IMAGE }} | ||
cl_image_tag: ${{ env.CHAINLINK_VERSION }} | ||
test_command_to_run: unset ENV_JOB_IMAGE && cd k8s && make test_e2e_ci | ||
test_download_vendor_packages_command: go mod download | ||
artifacts_location: ./e2e/logs | ||
publish_check_name: E2E Test Results | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
go_mod_path: go.mod | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }} | ||
- name: Upload test log | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: test-log | ||
path: /tmp/gotest.log | ||
|
||
e2e_remote_runner_tests: | ||
runs-on: ubuntu-latest | ||
environment: integration | ||
needs: [build_tests] | ||
permissions: | ||
id-token: write | ||
contents: read | ||
env: | ||
TEST_SUITE: remote-runner | ||
TEST_TRIGGERED_BY: chainlink-env-remote-runner-ci | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run Remote Runner Tests | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@ce87f8986ca18336cc5015df75916c2ec0a7c4b3 # v2.1.2 | ||
with: | ||
cl_repo: ${{ env.CHAINLINK_IMAGE }} | ||
cl_image_tag: ${{ env.CHAINLINK_VERSION }} | ||
test_command_to_run: cd k8s && make test_e2e_ci_remote_runner | ||
test_download_vendor_packages_command: go mod download | ||
artifacts_location: ./k8s/logs | ||
publish_check_name: E2E Remote Runner Test Results | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
go_mod_path: go.mod | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }} | ||
- name: Upload test log | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: remote-runner-test-log | ||
path: /tmp/remoterunnergotest.log |
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,24 @@ | ||
name: (k8s package) Publish Test Base Image | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
publish_test_base_image: | ||
runs-on: ubuntu-latest | ||
environment: integration | ||
permissions: | ||
id-token: write | ||
contents: read | ||
env: | ||
BASE_IMAGE_TAG: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image:${{ github.ref_name }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build Base Image | ||
uses: smartcontractkit/chainlink-github-actions/docker/build-push@cb4a8f51d77cbf77ea6a765bd1f437ffc7a18730 # v2.0.28 | ||
with: | ||
tags: ${{ env.BASE_IMAGE_TAG }} | ||
file: k8s/Dockerfile.base | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Linting and SonarQube Analysis | ||
name: (all packages) Lints | ||
on: | ||
push: | ||
branches: | ||
|
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,4 +1,4 @@ | ||
name: Static Analysis | ||
name: (all packages) Static Analysis | ||
on: | ||
push: | ||
branches: [main] | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ run: | |
timeout: 5m | ||
skip-dirs: | ||
- contracts/ethereum | ||
- examples | ||
- imports | ||
linters: | ||
enable: | ||
# defaults | ||
|
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,7 +1,10 @@ | ||
golang 1.21.3 | ||
nodejs 14.20.0 | ||
k3d 5.4.6 | ||
k3d 5.5.1 | ||
act 0.2.30 | ||
golangci-lint 1.54.2 | ||
actionlint 1.6.17 | ||
shellcheck 0.9.0 | ||
helm 3.10.3 | ||
kubectl 1.25.5 | ||
yarn 1.22.19 |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package name in comment