-
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.
[TT-519] Cache Fixes To Reduce Total Cache Of Repo (#10232)
reverts changes to unit test caching
- Loading branch information
Showing
3 changed files
with
39 additions
and
17 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
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 |
---|---|---|
|
@@ -174,7 +174,7 @@ jobs: | |
## Run this step when changes that require tests to be run are made | ||
- name: Run Tests | ||
if: needs.changes.outputs.src == 'true' | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].8 | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].9 | ||
env: | ||
TESTCONTAINERS_RYUK_DISABLED: true | ||
PYROSCOPE_SERVER: ${{ matrix.product.pyroscope_env == '' && '' || !startsWith(github.ref, 'refs/tags/') && '' || secrets.QA_PYROSCOPE_INSTANCE }} # Avoid sending blank envs https://github.com/orgs/community/discussions/25725 | ||
|
@@ -190,19 +190,21 @@ jobs: | |
publish_check_name: EVM Smoke Test Results ${{ matrix.product.name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
go_mod_path: ./integration-tests/go.mod | ||
matrix_id: ${{ matrix.product.name }} | ||
cache_key_id: core-e2e | ||
cache_restore_only: 'true' | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }} | ||
|
||
## Run this step when changes that do not need the test to run are made | ||
- name: Run Setup | ||
if: needs.changes.outputs.src == 'false' | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].8 | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].9 | ||
with: | ||
test_download_vendor_packages_command: cd ./integration-tests && go mod download | ||
go_mod_path: ./integration-tests/go.mod | ||
matrix_id: ${{ matrix.product.name }} | ||
cache_key_id: core-e2e | ||
cache_restore_only: 'true' | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }} | ||
|
@@ -390,7 +392,7 @@ jobs: | |
## Run this step when changes that require tests to be run are made | ||
- name: Run Tests | ||
if: needs.changes.outputs.src == 'true' | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].8 | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].9 | ||
env: | ||
PYROSCOPE_SERVER: ${{ matrix.product.pyroscope_env == '' && '' || !startsWith(github.ref, 'refs/tags/') && '' || secrets.QA_PYROSCOPE_INSTANCE }} # Avoid sending blank envs https://github.com/orgs/community/discussions/25725 | ||
PYROSCOPE_ENVIRONMENT: ${{ matrix.product.pyroscope_env }} | ||
|
@@ -405,18 +407,20 @@ jobs: | |
publish_check_name: EVM Smoke Test Results ${{ matrix.product.name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
go_mod_path: ./integration-tests/go.mod | ||
matrix_id: ${{ matrix.product.name }} | ||
cache_key_id: core-e2e | ||
cache_restore_only: 'true' | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }} | ||
## Run this step when changes that do not need the test to run are made | ||
- name: Run Setup | ||
if: needs.changes.outputs.src == 'false' | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].8 | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].9 | ||
with: | ||
test_download_vendor_packages_command: cd ./integration-tests && go mod download | ||
go_mod_path: ./integration-tests/go.mod | ||
matrix_id: ${{ matrix.product.name }} | ||
cache_key_id: core-e2e | ||
cache_restore_only: 'true' | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }} | ||
|
@@ -459,6 +463,26 @@ jobs: | |
hostname: ${{ secrets.GRAFANA_CLOUD_HOST }} | ||
this-job-name: ETH Smoke Tests | ||
continue-on-error: true | ||
|
||
# Run the setup if the matrix finishes but this time save the cache if we have a cache hit miss | ||
# this will also only run if both of the matrix jobs pass | ||
eth-smoke-go-mod-cache: | ||
environment: integration | ||
needs: [eth-smoke-tests] | ||
runs-on: ubuntu-latest | ||
name: ETH Smoke Tests Go Mod Cache | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }} | ||
- name: Run Setup | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected] | ||
with: | ||
test_download_vendor_packages_command: cd ./integration-tests && go mod download | ||
go_mod_path: ./integration-tests/go.mod | ||
cache_key_id: core-e2e | ||
cache_restore_only: 'false' | ||
|
||
### Migration tests | ||
node-migration-tests: | ||
|
@@ -734,14 +758,15 @@ jobs: | |
ref: ${{ needs.get_solana_sha.outputs.sha }} | ||
- name: Run Tests | ||
if: needs.changes.outputs.src == 'true' | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].7 | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].9 | ||
with: | ||
test_command_to_run: export ENV_JOB_IMAGE=${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-solana-tests:${{ needs.get_solana_sha.outputs.sha }} && make test_smoke | ||
cl_repo: ${{ env.CHAINLINK_IMAGE }} | ||
cl_image_tag: ${{ github.sha }}${{ matrix.image.tag-suffix }} | ||
artifacts_location: /home/runner/work/chainlink-solana/chainlink-solana/integration-tests/logs | ||
publish_check_name: Solana Smoke Test Results | ||
go_mod_path: ./integration-tests/go.mod | ||
cache_key_id: core-e2e | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
|
@@ -796,7 +821,7 @@ jobs: | |
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }} | ||
## Only run OCR smoke test for now | ||
- name: Run Tests | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].7 | ||
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/[email protected].9 | ||
env: | ||
PYROSCOPE_SERVER: ${{ secrets.QA_PYROSCOPE_INSTANCE }} | ||
PYROSCOPE_ENVIRONMENT: ci-smoke-ocr-evm-${{ matrix.testnet }} # TODO: Only for OCR for now | ||
|
@@ -811,6 +836,8 @@ jobs: | |
publish_check_name: ${{ matrix.testnet }} OCR Smoke Test Results | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
go_mod_path: ./integration-tests/go.mod | ||
cache_key_id: core-e2e | ||
cache_restore_only: 'true' | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }} | ||
|