Skip to content
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

Fixing daily devnet workflow #737

Merged
merged 33 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1cbc319
Fixing daily devnet workflow
smickovskid Jun 5, 2024
ec1b1a8
Fixed syntax issue
smickovskid Jun 5, 2024
8de0f19
Running just embeded for the devnet runs
smickovskid Jun 5, 2024
aeb456b
Adding test image build
smickovskid Jun 5, 2024
ce0894e
Fixing issue with workflow
smickovskid Jun 5, 2024
65afec7
Testing CI
smickovskid Jun 5, 2024
c0cf089
Testing CI
smickovskid Jun 5, 2024
b46ffee
Reintroduced build test iamge
smickovskid Jun 5, 2024
14eefd4
Adding soak support
smickovskid Jun 6, 2024
7144a9c
Added soak to build image
smickovskid Jun 6, 2024
b6d6ce0
Updated testconfig
smickovskid Jun 6, 2024
5b1cc26
Changed package
smickovskid Jun 6, 2024
2e1c026
Added soak to dockerfile
smickovskid Jun 6, 2024
c41beae
Adding build tests
smickovskid Jun 6, 2024
2de1782
Trying to figure out why soak is not present in the test container
smickovskid Jun 6, 2024
86d7e95
Finally found the issue
smickovskid Jun 6, 2024
437655b
Adding soak support
smickovskid Jun 7, 2024
1327a97
Adding soak
smickovskid Jun 7, 2024
3669470
masking base64
smickovskid Jun 7, 2024
a8074f7
Changed dir to soak
smickovskid Jun 7, 2024
93fd45b
Skipping shellcheck
smickovskid Jun 7, 2024
076db4f
Shellcheck fix
smickovskid Jun 7, 2024
00576f7
Fixed linting
smickovskid Jun 7, 2024
27637fb
Linting fix
smickovskid Jun 7, 2024
4d9d54f
Fixing smoek issues
smickovskid Jun 7, 2024
778aa09
Updated readme
smickovskid Jun 7, 2024
387aa8c
Removed toml configs since they collide in the remote runner
smickovskid Jun 7, 2024
a137f22
Had to revert to env vars
smickovskid Jun 7, 2024
0a3baf5
Adding feedback
smickovskid Jun 13, 2024
9e276b6
Added image skip
smickovskid Jun 13, 2024
eac907e
Updated readme
smickovskid Jun 13, 2024
8040ae8
Merge branch 'develop' into BCI-2844
aalu1418 Jun 13, 2024
401cbd0
Merge branch 'develop' into BCI-2844
smickovskid Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/actions/build-test-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
description: The path for downloading the built artifacts
required: false
default: contracts/target/deploy
suites:
description: The test suites to build into the image
default: smoke soak
required: false
QA_AWS_ROLE_TO_ASSUME:
description: The AWS role to assume as the CD user, if any. Used in configuring the docker/login-action
required: true
Expand Down Expand Up @@ -57,7 +61,7 @@ runs:
build-args: |
BASE_IMAGE=${{ inputs.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ inputs.QA_AWS_REGION }}.amazonaws.com/test-base-image
IMAGE_VERSION=${{ steps.version.outputs.version }}
SUITES="smoke"
SUITES="${{ inputs.suites }}"
AWS_REGION: ${{ inputs.QA_AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ inputs.QA_AWS_ROLE_TO_ASSUME }}
- name: Print Image Built
Expand Down
56 changes: 51 additions & 5 deletions .github/workflows/e2e_custom_cl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,27 @@ jobs:
id: psversion
uses: ./.github/actions/projectserum_version

solana-test-image-exists:
environment: integration
permissions:
checks: write
pull-requests: write
id-token: write
contents: read
name: Check If Solana Test Image Exists
runs-on: ubuntu-latest
outputs:
exists: ${{ steps.check-image.outputs.exists }}
steps:
- name: Check if image exists
id: check-image
uses: smartcontractkit/chainlink-github-actions/docker/image-exists@fc3e0df622521019f50d772726d6bf8dc919dd38 # v2.3.19
with:
repository: chainlink-solana-tests
tag: ${{ github.sha }}
AWS_REGION: ${{ secrets.QA_AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}

e2e_custom_build_artifacts:
name: E2E Custom Build Artifacts
environment: integration
Expand All @@ -55,11 +76,6 @@ jobs:
contents: read
runs-on: ubuntu-latest-32cores-128GB
needs: [get_projectserum_version]
# container:
# image: projectserum/build:${{ needs.get_projectserum_version.outputs.projectserum_version }}
# env:
# RUSTUP_HOME: "/root/.rustup"
# FORCE_COLOR: 1
steps:
- name: Checkout the repo
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
Expand Down Expand Up @@ -108,6 +124,36 @@ jobs:
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }}
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}

build_test_image:
environment: integration
if: contains(join(github.event.pull_request.labels.*.name, ' '), 'build-test-image')
permissions:
id-token: write
contents: read
name: Build Test Image
runs-on: ubuntu-latest
needs: [e2e_custom_build_artifacts]
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: Build Test Image
continue-on-error: true
- name: Checkout the repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Build Image
uses: ./.github/actions/build-test-image
with:
artifacts_path: ${{ env.CONTRACT_ARTIFACTS_PATH }}
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 }}

e2e_custom_run_smoke_tests:
name: E2E Custom Run Smoke Tests
environment: integration
Expand Down
Loading
Loading