Skip to content

Commit

Permalink
Adding test image build
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid committed Jun 5, 2024
1 parent 461b0bf commit 0b9e51b
Showing 1 changed file with 68 additions and 5 deletions.
73 changes: 68 additions & 5 deletions .github/workflows/e2e_custom_cl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,28 @@ jobs:
id: psversion
uses: ./.github/actions/projectserum_version

solana-test-image-exists:

Check failure on line 50 in .github/workflows/e2e_custom_cl.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/e2e_custom_cl.yml#L50

job "solana-test-image-exists" needs job "get_solana_sha" which does not exist in this workflow [job-needs]
Raw output
.github/workflows/e2e_custom_cl.yml:50:3: job "solana-test-image-exists" needs job "get_solana_sha" which does not exist in this workflow [job-needs]
environment: integration
permissions:
checks: write
pull-requests: write
id-token: write
contents: read
name: Check If Solana Test Image Exists
runs-on: ubuntu-latest
needs: [get_solana_sha]
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: ${{ needs.get_solana_sha.outputs.sha }}

Check failure on line 68 in .github/workflows/e2e_custom_cl.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/e2e_custom_cl.yml#L68

property "get_solana_sha" is not defined in object type {} [expression]
Raw output
.github/workflows/e2e_custom_cl.yml:68:20: property "get_solana_sha" is not defined in object type {} [expression]
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 +77,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 +125,52 @@ jobs:
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }}
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}

solana-build-test-image:
environment: integration
permissions:
checks: write
pull-requests: write
id-token: write
contents: read
name: Solana Build Test Image
runs-on: ubuntu22.04-16cores-64GB

Check failure on line 136 in .github/workflows/e2e_custom_cl.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/e2e_custom_cl.yml#L136

label "ubuntu22.04-16cores-64GB" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "macos-10.15", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows", "ubuntu-latest-4cores-16GB", "ubuntu-latest-8cores-32GB", "ubuntu-latest-16cores-64GB", "ubuntu-latest-32cores-128GB", "ubuntu-latest-64cores-256GB". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
Raw output
.github/workflows/e2e_custom_cl.yml:136:14: label "ubuntu22.04-16cores-64GB" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "macos-10.15", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows", "ubuntu-latest-4cores-16GB", "ubuntu-latest-8cores-32GB", "ubuntu-latest-16cores-64GB", "ubuntu-latest-32cores-128GB", "ubuntu-latest-64cores-256GB". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
needs:
[
e2e_custom_build_artifacts,
solana-test-image-exists,
]
env:
CONTRACT_ARTIFACTS_PATH: contracts/target/deploy
steps:
- name: Collect Metrics
if: (needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch') && needs.solana-test-image-exists.outputs.exists == 'false'

Check failure on line 146 in .github/workflows/e2e_custom_cl.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/e2e_custom_cl.yml#L146

property "changes" is not defined in object type {e2e_custom_build_artifacts: {outputs: {}; result: string}; solana-test-image-exists: {outputs: {exists: string}; result: string}} [expression]
Raw output
.github/workflows/e2e_custom_cl.yml:146:14: property "changes" is not defined in object type {e2e_custom_build_artifacts: {outputs: {}; result: string}; solana-test-image-exists: {outputs: {exists: string}; result: string}} [expression]
id: collect-gha-metrics
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1
with:
id: ${{ env.COLLECTION_ID }}-solana-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: Solana Build Test Image
continue-on-error: true
- name: Checkout the repo
if: (needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch') && needs.solana-test-image-exists.outputs.exists == 'false'

Check failure on line 157 in .github/workflows/e2e_custom_cl.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/e2e_custom_cl.yml#L157

property "changes" is not defined in object type {e2e_custom_build_artifacts: {outputs: {}; result: string}; solana-test-image-exists: {outputs: {exists: string}; result: string}} [expression]
Raw output
.github/workflows/e2e_custom_cl.yml:157:14: property "changes" is not defined in object type {e2e_custom_build_artifacts: {outputs: {}; result: string}; solana-test-image-exists: {outputs: {exists: string}; result: string}} [expression]
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
repository: smartcontractkit/chainlink-solana
ref: github.sha
- name: Build Test Image
if: (needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch') && needs.solana-test-image-exists.outputs.exists == 'false'

Check failure on line 163 in .github/workflows/e2e_custom_cl.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/e2e_custom_cl.yml#L163

property "changes" is not defined in object type {e2e_custom_build_artifacts: {outputs: {}; result: string}; solana-test-image-exists: {outputs: {exists: string}; result: string}} [expression]
Raw output
.github/workflows/e2e_custom_cl.yml:163:14: property "changes" is not defined in object type {e2e_custom_build_artifacts: {outputs: {}; result: string}; solana-test-image-exists: {outputs: {exists: string}; result: string}} [expression]
uses: ./.github/actions/build-test-image
with:
tag: github.sha
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 }}
- run: echo "this exists so we don't have to run anything else if the build is skipped"
if: needs.changes.outputs.src == 'false' || needs.solana-test-image-exists.outputs.exists == 'true'

Check failure on line 172 in .github/workflows/e2e_custom_cl.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/e2e_custom_cl.yml#L172

property "changes" is not defined in object type {e2e_custom_build_artifacts: {outputs: {}; result: string}; solana-test-image-exists: {outputs: {exists: string}; result: string}} [expression]
Raw output
.github/workflows/e2e_custom_cl.yml:172:13: property "changes" is not defined in object type {e2e_custom_build_artifacts: {outputs: {}; result: string}; solana-test-image-exists: {outputs: {exists: string}; result: string}} [expression]

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

0 comments on commit 0b9e51b

Please sign in to comment.