-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert temp gha workflow delete commit
- Loading branch information
1 parent
8e22ef7
commit 4757406
Showing
43 changed files
with
8,368 additions
and
0 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,17 @@ | ||
name: Auto Update | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
jobs: | ||
autoupdate: | ||
name: Auto Update | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: docker://chinthakagodawita/autoupdate-action:v1 | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
PR_FILTER: "labelled" | ||
PR_LABELS: "auto-update" | ||
MERGE_MSG: "Branch was auto-updated." | ||
MERGE_CONFLICT_ACTION: "ignore" |
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,101 @@ | ||
name: Automation Benchmark Test | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
testType: | ||
description: Type of test to run (benchmark, soak) | ||
required: true | ||
default: benchmark | ||
type: string | ||
base64Config: | ||
description: base64-ed config | ||
required: true | ||
type: string | ||
slackMemberID: | ||
description: Notifies test results (Not your @) | ||
required: true | ||
default: U02Q14G80TY | ||
type: string | ||
jobs: | ||
automation_benchmark: | ||
environment: integration | ||
permissions: | ||
checks: write | ||
pull-requests: write | ||
id-token: write | ||
contents: read | ||
name: Automation Benchmark Test | ||
runs-on: ubuntu22.04-16cores-64GB | ||
env: | ||
SLACK_API_KEY: ${{ secrets.QA_SLACK_API_KEY }} | ||
SLACK_CHANNEL: C03KJ5S7KEK | ||
CHAINLINK_ENV_USER: ${{ github.actor }} | ||
REF_NAME: ${{ github.head_ref || github.ref_name }} | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
with: | ||
ref: ${{ env.REF_NAME }} | ||
- name: Get Slack config and mask base64 config | ||
run: | | ||
SLACK_USER=$(jq -r '.inputs.slackMemberID' $GITHUB_EVENT_PATH) | ||
echo ::add-mask::$SLACK_USER | ||
echo SLACK_USER=$SLACK_USER >> $GITHUB_ENV | ||
BASE64_CONFIG_OVERRIDE=$(jq -r '.inputs.base64Config' $GITHUB_EVENT_PATH) | ||
echo ::add-mask::$BASE64_CONFIG_OVERRIDE | ||
echo "BASE64_CONFIG_OVERRIDE=$BASE64_CONFIG_OVERRIDE" >> $GITHUB_ENV | ||
- name: Parse base64 config | ||
uses: ./.github/actions/setup-parse-base64-config | ||
with: | ||
base64Config: ${{ env.BASE64_CONFIG_OVERRIDE }} | ||
- name: Send details to Step Summary | ||
shell: bash | ||
run: | | ||
echo "### chainlink image used for this test run :link:" >>$GITHUB_STEP_SUMMARY | ||
echo "\`${{ env.CHAINLINK_IMAGE }}\`" >>$GITHUB_STEP_SUMMARY | ||
echo "### chainlink-tests image tag for this test run :ship:" >>$GITHUB_STEP_SUMMARY | ||
echo "\`${GITHUB_SHA}\`" >>$GITHUB_STEP_SUMMARY | ||
echo "### Networks on which test was run" >>$GITHUB_STEP_SUMMARY | ||
echo "\`${{ env.NETWORKS }}\`" >>$GITHUB_STEP_SUMMARY | ||
- name: Build Test Image | ||
uses: ./.github/actions/build-test-image | ||
with: | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ACCOUNT_NUMBER: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }} | ||
suites: benchmark chaos reorg load | ||
- name: Run Tests | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@2967f2287bd3f3ddbac7b476e9568993df01796e # v2.3.27 | ||
env: | ||
DETACH_RUNNER: true | ||
TEST_SUITE: benchmark | ||
TEST_ARGS: -test.timeout 720h | ||
ENV_JOB_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-tests:${{ github.sha }} | ||
INTERNAL_DOCKER_REPO: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com | ||
TEST_TYPE: ${{ github.event.inputs.testType }} | ||
TEST_TEST_TYPE: ${{ github.event.inputs.testType }} | ||
RR_MEM: 4Gi | ||
TEST_LOG_LEVEL: info | ||
with: | ||
test_command_to_run: cd integration-tests && go test -timeout 30m -v -run ^TestAutomationBenchmark$ ./benchmark -count=1 | ||
test_download_vendor_packages_command: make gomod | ||
cl_repo: ${{ env.CHAINLINK_IMAGE }} | ||
cl_image_tag: ${{ env.CHAINLINK_VERSION }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
should_cleanup: false | ||
go_mod_path: ./integration-tests/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: Collect Metrics | ||
if: always() | ||
id: collect-gha-metrics | ||
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1 | ||
with: | ||
id: automation-benchmark-build-test-image | ||
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} | ||
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | ||
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }} | ||
this-job-name: Automation Benchmark Test | ||
continue-on-error: true |
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,122 @@ | ||
name: Automation Load Test | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
base64Config: | ||
description: base64-ed config | ||
required: true | ||
type: string | ||
slackMemberID: | ||
description: Notifies test results (Not your @) | ||
required: true | ||
default: U02Q14G80TY | ||
type: string | ||
test_secrets_override_key: | ||
description: 'Key to run tests with custom test secrets' | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
automation_load: | ||
environment: integration | ||
permissions: | ||
checks: write | ||
pull-requests: write | ||
id-token: write | ||
contents: read | ||
name: Automation Load Test | ||
runs-on: ubuntu22.04-16cores-64GB | ||
env: | ||
SLACK_API_KEY: ${{ secrets.QA_SLACK_API_KEY }} | ||
SLACK_CHANNEL: C03KJ5S7KEK | ||
CHAINLINK_ENV_USER: ${{ github.actor }} | ||
REF_NAME: ${{ github.head_ref || github.ref_name }} | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
with: | ||
ref: ${{ env.REF_NAME }} | ||
- name: Get Slack config and mask base64 config | ||
run: | | ||
SLACK_USER=$(jq -r '.inputs.slackMemberID' $GITHUB_EVENT_PATH) | ||
echo ::add-mask::$SLACK_USER | ||
echo SLACK_USER=$SLACK_USER >> $GITHUB_ENV | ||
BASE64_CONFIG_OVERRIDE=$(jq -r '.inputs.base64Config' $GITHUB_EVENT_PATH) | ||
echo ::add-mask::$BASE64_CONFIG_OVERRIDE | ||
echo "BASE64_CONFIG_OVERRIDE=$BASE64_CONFIG_OVERRIDE" >> $GITHUB_ENV | ||
- name: Merge Pyrsoscope config | ||
env: | ||
PYROSCOPE_SERVER: ${{ secrets.QA_PYROSCOPE_INSTANCE }} | ||
PYROSCOPE_ENVIRONMENT: "automation-load-test" | ||
PYROSCOPE_KEY: ${{ secrets.QA_PYROSCOPE_KEY }} | ||
run: | | ||
decoded_toml=$(echo $BASE64_CONFIG_OVERRIDE | base64 -d) | ||
# use Pyroscope config from GH secrets and merge it with base64 input | ||
cat << EOF > config.toml | ||
server_url="$PYROSCOPE_SERVER" | ||
environment="$PYROSCOPE_ENVIRONMENT" | ||
key_secret="$PYROSCOPE_KEY" | ||
EOF | ||
echo "$decoded_toml" >> final_config.toml | ||
cat config.toml >> final_config.toml | ||
BASE64_CONFIG_OVERRIDE=$(cat final_config.toml | base64 -w 0) | ||
echo ::add-mask::$BASE64_CONFIG_OVERRIDE | ||
echo "BASE64_CONFIG_OVERRIDE=$BASE64_CONFIG_OVERRIDE" >> $GITHUB_ENV | ||
- name: Parse base64 config | ||
uses: ./.github/actions/setup-parse-base64-config | ||
with: | ||
base64Config: ${{ env.BASE64_CONFIG_OVERRIDE }} | ||
- name: Send details to Step Summary | ||
shell: bash | ||
run: | | ||
echo "### chainlink image used for this test run :link:" >>$GITHUB_STEP_SUMMARY | ||
echo "\`${{ env.CHAINLINK_IMAGE }}\`" >>$GITHUB_STEP_SUMMARY | ||
echo "### chainlink-tests image tag for this test run :ship:" >>$GITHUB_STEP_SUMMARY | ||
echo "\`${GITHUB_SHA}\`" >>$GITHUB_STEP_SUMMARY | ||
echo "### Networks on which test was run" >>$GITHUB_STEP_SUMMARY | ||
echo "\`${{ env.NETWORKS }}\`" >>$GITHUB_STEP_SUMMARY | ||
- name: Build Test Image | ||
uses: ./.github/actions/build-test-image | ||
with: | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ACCOUNT_NUMBER: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }} | ||
suites: benchmark chaos reorg load | ||
- name: Run Tests | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@2967f2287bd3f3ddbac7b476e9568993df01796e # v2.3.27 | ||
env: | ||
RR_CPU: 4000m | ||
RR_MEM: 4Gi | ||
DETACH_RUNNER: true | ||
TEST_SUITE: automationv2_1 | ||
TEST_ARGS: -test.timeout 720h | ||
ENV_JOB_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-tests:${{ github.sha }} | ||
INTERNAL_DOCKER_REPO: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com | ||
PYROSCOPE_SERVER: ${{ secrets.QA_PYROSCOPE_INSTANCE }} | ||
PYROSCOPE_KEY: ${{ secrets.QA_PYROSCOPE_KEY }} | ||
with: | ||
test_command_to_run: cd integration-tests/load && go test -timeout 1h -v -run TestLogTrigger ./automationv2_1 -count=1 | ||
test_secrets_override_base64: ${{ secrets[inputs.test_secrets_override_key] }} | ||
test_download_vendor_packages_command: make gomod | ||
cl_repo: ${{ env.CHAINLINK_IMAGE }} | ||
cl_image_tag: ${{ env.CHAINLINK_VERSION }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
should_cleanup: false | ||
go_mod_path: ./integration-tests/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: Collect Metrics | ||
if: always() | ||
id: collect-gha-metrics | ||
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1 | ||
with: | ||
id: automation-load-test | ||
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} | ||
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | ||
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }} | ||
this-job-name: Automation Load Test | ||
continue-on-error: true |
Oops, something went wrong.