Skip to content

Commit

Permalink
Add alpha chain to bootstrap options
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreat committed Apr 4, 2024
1 parent dcca2a2 commit c4b819c
Show file tree
Hide file tree
Showing 15 changed files with 69 additions and 49 deletions.
2 changes: 2 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ self-hosted-runner:
- small
- large
- large-cd
- mcf-dev-small-x64
- mcf-dev-large-x64
2 changes: 1 addition & 1 deletion .github/workflows/android-bindings-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
build_publish:
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
container: gcr.io/mobilenode-211420/android-bindings-builder:1_4

steps:
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ permissions:

jobs:
build-dev:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

steps:
Expand All @@ -41,7 +41,7 @@ jobs:
uses: ./.github/actions/check-dirty-git

build-prod:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

steps:
Expand All @@ -62,7 +62,7 @@ jobs:
uses: ./.github/actions/check-dirty-git

build-and-test-wasm:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

steps:
Expand All @@ -77,7 +77,7 @@ jobs:
run: wasm-pack test --node wasm-test

lint-rust:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

steps:
Expand All @@ -94,7 +94,7 @@ jobs:


build-and-test-go:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

steps:
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
uses: ./.github/actions/check-dirty-git

docs:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

steps:
Expand All @@ -147,7 +147,7 @@ jobs:
uses: ./.github/actions/check-dirty-git

mc-tests:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

strategy:
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:


consensus-tests:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

strategy:
Expand Down Expand Up @@ -223,7 +223,7 @@ jobs:


fog-tests:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

strategy:
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:


fog-ingest-tests:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

steps:
Expand All @@ -297,7 +297,7 @@ jobs:


fog-conformance-tests:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

steps:
Expand Down Expand Up @@ -337,7 +337,7 @@ jobs:


fog-local-network-tests:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

steps:
Expand Down Expand Up @@ -524,7 +524,7 @@ jobs:
uses: ./.github/actions/check-dirty-git

minting-and-burning-tests:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

steps:
Expand Down Expand Up @@ -661,7 +661,7 @@ jobs:
uses: ./.github/actions/check-dirty-git

publish-test-results:
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
if: success() || failure()
needs:
- mc-tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependent-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
android-bindings:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

permissions:
Expand All @@ -29,7 +29,7 @@ jobs:
buildCmd: cargo build

full-service:
runs-on: [self-hosted, Linux, large]
runs-on: mcf-dev-large-x64
container: mobilecoin/builder-install:v0.0.25

permissions:
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/mobilecoin-dev-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
CHART_REPO: https://harbor.mobilecoin.com/chartrepo/mobilecoinfoundation-public
DOCKER_ORG: mobilecoin
RELEASE_5X_TAG: v5.1.1-dev
BOOTSTRAP_VERSION: v5.1.1-dev.alpha.6317
GH_SHORT_SHA: placeholder

on:
Expand Down Expand Up @@ -38,14 +39,15 @@ jobs:
generate-metadata:
if: ${{ ! startsWith(github.head_ref, 'dependabot/') }}
name: 👾 Environment Info 👾
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
outputs:
namespace: ${{ steps.meta.outputs.namespace }}
tag: ${{ steps.meta.outputs.tag }}
docker_tag: ${{ steps.meta.outputs.docker_tag }}
docker_org: ${{ env.DOCKER_ORG }}
chart_repo: ${{ env.CHART_REPO }}
release_5x_tag: ${{ env.RELEASE_5X_TAG }}
bootstrap_version: ${{ env.BOOTSTRAP_VERSION }}

steps:
- name: Checkout
Expand All @@ -72,7 +74,7 @@ jobs:
build-rust-hardware-projects:
needs:
- generate-metadata
runs-on: [self-hosted, Linux, large-cd]
runs-on: mcf-dev-large-x64
container:
image: mobilecoin/rust-sgx-base:v0.0.25

Expand Down Expand Up @@ -187,7 +189,7 @@ jobs:
path: rust_build_artifacts/

build-go-projects:
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
needs:
- generate-metadata
container:
Expand Down Expand Up @@ -237,7 +239,7 @@ jobs:
# Create/Refresh base runtime image
########################################
docker-base:
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
needs:
- generate-metadata
steps:
Expand Down Expand Up @@ -279,7 +281,7 @@ jobs:
# Build/Publish public artifacts
#########################################
docker:
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
needs:
- build-go-projects
- build-rust-hardware-projects
Expand Down Expand Up @@ -351,7 +353,7 @@ jobs:
tags: ${{ steps.docker_meta.outputs.tags }}

charts:
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
needs:
- docker
- generate-metadata
Expand Down Expand Up @@ -398,6 +400,7 @@ jobs:
chart_repo: ${{ needs.generate-metadata.outputs.chart_repo }}
namespace: ${{ needs.generate-metadata.outputs.namespace }}
version: ${{ needs.generate-metadata.outputs.release_5x_tag }}
bootstrap_version: ${{ needs.generate-metadata.outputs.bootstrap_version }}
secrets: inherit

###############################################
Expand Down Expand Up @@ -466,7 +469,7 @@ jobs:

mobilecoin-cd-complete:
# Dummy step for a standard GHA Check that won't change when we update the tests.
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
needs:
- test-current-bv3-release
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mobilecoin-dev-delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on: delete
jobs:
metadata:
if: startsWith(github.event.ref, 'feature/')
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
outputs:
namespace: ${{ steps.meta.outputs.namespace }}

Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/mobilecoin-dispatch-dev-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ on:
- none
- v5.0.3-dev
- v5.1.1-dev
- v5.1.1-dev.alpha.6317
minimum_block:
description: "Minimum block to wait for"
type: choice
required: false
default: '500'
options:
- '500'
- '5946'
- '6317'
ingest_color:
description: "Fog Ingest blue/green"
type: choice
Expand All @@ -53,7 +63,7 @@ on:
jobs:
list-values:
name: 👾 Environment Info - ${{ inputs.namespace }} - ${{ inputs.version }} 👾
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -75,7 +85,8 @@ jobs:
block_version: '3'
chart_repo: ${{ inputs.chart_repo }}
namespace: ${{ inputs.namespace }}
version: ${{ inputs.bootstrap_version }}
version: ${{ inputs.version }}
bootstrap_version: ${{ inputs.bootstrap_version }}
secrets: inherit

deploy:
Expand All @@ -90,5 +101,5 @@ jobs:
ingest_color: ${{ inputs.ingest_color }}
namespace: ${{ inputs.namespace }}
version: ${{ inputs.version }}
minimum_block: ${{ inputs.bootstrap_version == 'v5.1.1-dev' && '5946' || '500' }}
minimum_block: ${{ inputs.minimum_block }}
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/mobilecoin-dispatch-mainnet-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
list-values:
runs-on: [self-hosted, small, Linux]
runs-on: mcf-dev-small-x64
steps:
- name: values
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mobilecoin-dispatch-testnet-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
list-values:
runs-on: [self-hosted, small, Linux]
runs-on: mcf-dev-small-x64
steps:
- name: values
run: |
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/mobilecoin-workflow-dev-bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
description: "Chart Version"
type: string
required: true
bootstrap_version:
description: "Bootstrap Blockchain from selected version"
type: string
required: true
secrets:
DEV_LEDGER_AWS_ACCESS_KEY_ID:
description: "Ledger AWS S3 access"
Expand All @@ -44,7 +48,7 @@ jobs:
secrets: inherit

restore-s3-archive:
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
needs:
- reset
container:
Expand All @@ -57,7 +61,7 @@ jobs:
AWS_DEFAULT_REGION: eu-central-1
BUCKET: mobilecoin.eu.development.chain
NAMESPACE: ${{ inputs.namespace }}
VERSION: ${{ inputs.version }}
VERSION: ${{ inputs.bootstrap_version }}
shell: bash
run: |
for i in 1 2 3
Expand Down Expand Up @@ -89,7 +93,7 @@ jobs:
# We now have a db with setup-environment
# Note this only works if we are in the same cluster as the dev env.
restore-db-from-archive:
runs-on: [self-hosted, Linux, small]
runs-on: mcf-dev-small-x64
needs:
- setup-environment
container:
Expand All @@ -105,7 +109,7 @@ jobs:
PGHOST: fog-recovery-postgresql-primary.${{ inputs.namespace }}
PGPASSWORD: ${{ secrets.DEV_POSTGRESQL_FOG_RECOVERY_PASSWORD }}
PGUSER: postgres
VERSION: ${{ inputs.version }}
VERSION: ${{ inputs.bootstrap_version }}
run: |
# Copy sql from S3
aws s3 cp --only-show-errors \
Expand Down
Loading

0 comments on commit c4b819c

Please sign in to comment.