Skip to content

Commit

Permalink
CI runners changes & synpress pre-flight check
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-code committed Apr 8, 2024
1 parent 1dad5ac commit 41e9bea
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 23 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/ci-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
needs:
- deploy-e2e-env
runs-on:
- metal
- e2e
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/octant/synpress-arch:71c6cbc5
credentials:
Expand Down Expand Up @@ -105,6 +105,9 @@ jobs:
source /usr/bin/entrypoint.sh
curl --retry-connrefused --retry 100 --retry-delay 3 \
-s -X GET $OCTANT_BASE_URL
yarn synpress:run
shell: bash

Expand All @@ -122,7 +125,7 @@ jobs:
needs:
- deploy-apitest-env
runs-on:
- metal
- general
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/octant/python-poetry-ext:ad1d9179
credentials:
Expand Down Expand Up @@ -262,7 +265,7 @@ jobs:
needs:
- lint-and-typecheck-yarn
runs-on:
- metal
- general
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/octant/node-extended:bdda411c
credentials:
Expand Down Expand Up @@ -308,7 +311,7 @@ jobs:
needs:
- lint-and-typecheck-poetry
runs-on:
- metal
- general
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/octant/python-poetry-ext:ad1d9179
credentials:
Expand All @@ -334,7 +337,7 @@ jobs:
needs:
- build-backend
runs-on:
- metal
- general
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/octant/python-poetry-ext:ad1d9179
credentials:
Expand Down Expand Up @@ -362,7 +365,7 @@ jobs:
- build-contracts
- build-services
runs-on:
- metal
- general
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/octant/node-extended:bdda411c
credentials:
Expand Down Expand Up @@ -413,7 +416,7 @@ jobs:
needs:
- build-contracts
runs-on:
- metal
- general
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/octant/node-extended:bdda411c
credentials:
Expand Down Expand Up @@ -447,7 +450,7 @@ jobs:
build-backend:
name: Build Services
runs-on:
- metal
- general
needs:
- permissions-check
container:
Expand All @@ -469,7 +472,7 @@ jobs:
build-contracts:
name: Build Contracts
runs-on:
- metal
- general
needs:
- permissions-check
container:
Expand Down Expand Up @@ -503,7 +506,7 @@ jobs:
permissions-check:
name: Permissions check
runs-on:
- metal
- general
steps:
- name: Check if user is an org member
uses: actions/github-script@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
name: Run
if: github.event.issue.pull_request && contains(github.event.comment.body, '/deploy')
runs-on:
- metal
- general
outputs:
sha: ${{ steps.comment-branch.outputs.head_sha }}
ref: ${{ steps.comment-branch.outputs.head_ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
run-deployment:
name: Run Deployment
runs-on:
- metal
- general
steps:
- name: Sanitise variables
id: sanitise-vars
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
needs:
- build
runs-on:
- metal
- general
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/gitops-builder:2ea6d57c
credentials:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/tpl-deploy-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jobs:
name: Start Anvil
if: ${{ inputs.deploy-contracts }}
runs-on:
- metal
- general
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/gitops-builder:2ea6d57c
credentials:
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:
- start-anvil
if: ${{ inputs.deploy-contracts }}
runs-on:
- metal
- general
outputs:
anvil_rpc_url: ${{ steps.deploy.outputs.LOCAL_RPC_URL }}
container:
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:
# BUG: For some reason this cache is a problem for this job to pass
# https://linear.app/golemfoundation/issue/OCT-1382/error-during-ci-contracts-deployment
rm -r $HOME/.cache/hardhat-nodejs/
rm -r $HOME/.cache/hardhat-nodejs/ || true
/app/entrypoint.sh $NETWORK ${CI_PROJECT_DIR}/contracts.env
Expand All @@ -264,7 +264,7 @@ jobs:
needs:
- deploy-contracts
runs-on:
- metal
- general
if: always()
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/gitops-builder:2ea6d57c
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:
needs:
- start-application-stack
runs-on:
- metal
- general
if: always() && (needs.start-application-stack.result == 'success')
outputs:
octant_web_url: ${{ steps.app.outputs.OCTANT_WEB_URL }}
Expand Down Expand Up @@ -345,7 +345,7 @@ jobs:
- wait-for-app
if: ${{ success() && inputs.deploy-contracts && (inputs.env-type == 'uat' || inputs.env-type == 'master') }}
runs-on:
- metal
- general
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/gitops-builder:2ea6d57c
credentials:
Expand Down Expand Up @@ -392,7 +392,7 @@ jobs:
- start-application-stack
- wait-for-app
runs-on:
- metal
- general
if: always()
steps:
- name: Compute workflow status
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tpl-destroy-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
destroy:
name: Destroy Environment
runs-on:
- metal
- general
if: (github.event_name == 'issue_comment' && contains(github.event.comment.body, '/destroy')) || github.event_name != 'issue_comment'
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/gitops-builder:2ea6d57c
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tpl-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
build-images:
name: Build Docker Image
runs-on:
- metal
- general
strategy:
matrix:
SERVICE:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tpl-start-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
start:
name: Start GitHub Environment
runs-on:
- metal
- general
outputs:
env: ${{ steps.start-deployment.outputs.env }}
deployment: ${{ steps.start-deployment.outputs.deployment_id }}
Expand Down

0 comments on commit 41e9bea

Please sign in to comment.