-
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.
- Loading branch information
1 parent
ba4e951
commit 54dcf69
Showing
1 changed file
with
4 additions
and
109 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 |
---|---|---|
|
@@ -28,49 +28,11 @@ concurrency: | |
|
||
env: | ||
# for run-test variables and environment | ||
ENV_JOB_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-tests:${{ inputs.evm-ref || github.sha }} | ||
CHAINLINK_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink | ||
TEST_SUITE: smoke | ||
TEST_ARGS: -test.timeout 12m | ||
INTERNAL_DOCKER_REPO: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com | ||
MOD_CACHE_VERSION: 2 | ||
COLLECTION_ID: chainlink-integration-tests | ||
|
||
jobs: | ||
enforce-ctf-version: | ||
name: Enforce CTF Version | ||
runs-on: ubuntu-latest | ||
# We don't directly merge dependabot PRs, so let's not waste the resources | ||
if: github.actor != 'dependabot[bot]' | ||
steps: | ||
- run: echo "${{github.event_name}}" | ||
- name: Checkout the repo | ||
uses: actions/[email protected] | ||
with: | ||
repository: smartcontractkit/chainlink | ||
ref: ${{ inputs.cl_ref }} | ||
- name: Check Merge Group Condition | ||
id: condition-check | ||
run: | | ||
echo "Checking event condition..." | ||
SHOULD_ENFORCE="false" | ||
if [[ "$GITHUB_EVENT_NAME" == "merge_group" ]]; then | ||
echo "We are in a merge_group event, now check if we are on the develop branch" | ||
target_branch=$(cat $GITHUB_EVENT_PATH | jq -r .merge_group.base_ref) | ||
if [[ "$target_branch" == "refs/heads/develop" ]]; then | ||
echo "We are on the develop branch, we should enforce ctf version" | ||
SHOULD_ENFORCE="true" | ||
fi | ||
fi | ||
echo "should we enforce ctf version = $SHOULD_ENFORCE" | ||
echo "should-enforce=$SHOULD_ENFORCE" >> $GITHUB_OUTPUT | ||
- name: Enforce CTF Version | ||
if: steps.condition-check.outputs.should-enforce == 'true' | ||
uses: smartcontractkit/.github/actions/ctf-check-mod-version@21b0189c5fdca0318617d259634b1a91e6d80262 # [email protected] | ||
with: | ||
go-project-path: ./integration-tests | ||
module-name: github.com/smartcontractkit/chainlink-testing-framework/lib | ||
enforce-semantic-tag: "true" | ||
changes: | ||
environment: integration | ||
name: Check Paths That Require Tests To Run | ||
|
@@ -150,49 +112,6 @@ jobs: | |
args: --out-format colored-line-number,checkstyle:golangci-lint-report.xml | ||
working-directory: ${{ matrix.project.path }} | ||
|
||
build-chainlink: | ||
environment: integration | ||
permissions: | ||
id-token: write | ||
contents: read | ||
strategy: | ||
matrix: | ||
image: | ||
- name: "" | ||
dockerfile: core/chainlink.Dockerfile | ||
tag-suffix: "" | ||
- name: (plugins) | ||
dockerfile: plugins/chainlink.Dockerfile | ||
tag-suffix: -plugins | ||
name: Build Chainlink Image ${{ matrix.image.name }} | ||
runs-on: ubuntu22.04-8cores-32GB | ||
needs: [changes, enforce-ctf-version] | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/[email protected] | ||
with: | ||
repository: smartcontractkit/chainlink | ||
ref: ${{ inputs.cl_ref || github.event.pull_request.head.sha || github.event.merge_group.head_sha }} | ||
- name: Setup Github Token | ||
if: ${{ inputs.evm-ref }} | ||
id: get-gh-token | ||
uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f # [email protected] | ||
with: | ||
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }} | ||
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
set-git-config: "true" | ||
- name: Build Chainlink Image | ||
if: needs.changes.outputs.core_changes == 'true' || needs.changes.outputs.github_ci_changes == 'true' || github.event_name == 'workflow_dispatch' | ||
uses: ./.github/actions/build-chainlink-image | ||
with: | ||
tag_suffix: ${{ matrix.image.tag-suffix }} | ||
dockerfile: ${{ matrix.image.dockerfile }} | ||
git_commit_sha: ${{ inputs.evm-ref || github.sha }} | ||
AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
dep_evm_sha: ${{ inputs.evm-ref }} | ||
|
||
run-ccip-integration-tests-for-pr: | ||
name: Run CCIP integration Tests For PR | ||
permissions: | ||
|
@@ -201,9 +120,9 @@ jobs: | |
pull-requests: write | ||
id-token: write | ||
contents: read | ||
needs: [build-chainlink, changes] | ||
needs: changes | ||
if: github.event_name == 'pull_request' && ( needs.changes.outputs.core_changes == 'true' || needs.changes.outputs.github_ci_changes == 'true') | ||
uses: smartcontractkit/.github/.github/workflows/run-integration-tests.yml@9dcd7f8e7e4ee66de19d7077d955751f33899d0f #[email protected] | ||
uses: smartcontractkit/.github/.github/workflows/run-integration-tests.yml@e214c63ad3022f3edd667da19f796fb9489850b2 #[email protected] | ||
with: | ||
workflow_name: Run CCIP Integration Tests For PR | ||
chainlink_version: ${{ inputs.evm-ref || github.sha }} | ||
|
@@ -229,17 +148,13 @@ jobs: | |
pull-requests: write | ||
id-token: write | ||
contents: read | ||
needs: [build-chainlink, changes] | ||
needs: changes | ||
if: github.event_name == 'merge_group' && ( needs.changes.outputs.core_changes == 'true' || needs.changes.outputs.github_ci_changes == 'true') | ||
uses: smartcontractkit/.github/.github/workflows/run-integration-tests.yml@9dcd7f8e7e4ee66de19d7077d955751f33899d0f #[email protected] | ||
uses: smartcontractkit/.github/.github/workflows/run-integration-tests.yml@e214c63ad3022f3edd667da19f796fb9489850b2 #[email protected] | ||
with: | ||
workflow_name: Run CCIP Integration Tests For Merge Queue | ||
chainlink_version: ${{ inputs.evm-ref || github.sha }} | ||
test_path: .github/integration-tests.yml | ||
test_trigger: Merge Queue integration CCIP Tests | ||
upload_cl_node_coverage_artifact: true | ||
upload_cl_node_coverage_artifact_prefix: cl_node_coverage_data_ | ||
# Notify Test Tooling team in slack when merge queue tests fail | ||
slack_notification_after_tests: on_failure | ||
slack_notification_after_tests_channel_id: "#ccip-testing" | ||
slack_notification_after_tests_name: Core integration Tests In Merge Queue | ||
|
@@ -291,23 +206,3 @@ jobs: | |
environment: integration | ||
ref: ${{ github.head_ref }} # See https://github.com/github/docs/issues/15319#issuecomment-1476705663 | ||
|
||
show-chainlink-node-coverage: | ||
name: Show Chainlink Node Go Coverage | ||
if: always() | ||
needs: [run-ccip-integration-tests-for-pr, run-ccip-integration-tests-for-merge-queue] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/[email protected] | ||
with: | ||
repository: smartcontractkit/chainlink | ||
ref: ${{ inputs.cl_ref || github.event.pull_request.head.sha || github.event.merge_group.head_sha }} | ||
- name: Download All Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
path: cl_node_coverage_data | ||
pattern: cl_node_coverage_data_* | ||
merge-multiple: true | ||
- name: Show Coverage | ||
run: go run ./integration-tests/scripts/show_coverage.go "${{ github.workspace }}/cl_node_coverage_data/*/merged" | ||
|