Skip to content

Nightly update net test from Mainnet to Testnet #289

Nightly update net test from Mainnet to Testnet

Nightly update net test from Mainnet to Testnet #289

---
# This workflow performs from Mainnet to Testnet update.
# Test means that net starts from plain (empty) aleph-node chain, bootstraped using starting
# node image, and then performs rolling restart to target node image
# What this test validates are changes in finalization area to aleph-node binary
name: Nightly update net test from Mainnet to Testnet
on:
workflow_dispatch:
# Daily at 02:00
schedule:
- cron: '00 02 * * *'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: false
jobs:
check-vars-and-secrets:
name: Check vars and secrets
uses: ./.github/workflows/_check-vars-and-secrets.yml
secrets: inherit
create-featurenet-from-mainnet:
needs: [check-vars-and-secrets]
name: Create featurenet from mainnet
uses: ./.github/workflows/featurenet-create.yml
secrets: inherit
with:
featurenet-name: 'ops-updatenet-mainnet'
ref: 'mainnet'
expiration: '4h'
validators: '7'
internal: true
short-session: false
finality-version: '3'
update-featurenet-to-testnet:
needs: [create-featurenet-from-mainnet]
name: Update featurenet to Testnet
uses: ./.github/workflows/featurenet-update.yml
secrets: inherit
with:
featurenet-name: 'ops-updatenet-mainnet'
ref: 'testnet'
rolling-update-partition: '0'
short-session: false
delete-featurenet:
if: ${{ always() }}
needs: [update-featurenet-to-testnet]
name: Delete featurenet
uses: ./.github/workflows/featurenet-delete.yml
secrets: inherit
with:
featurenet-name: 'ops-updatenet-mainnet'
slack-notification:
name: Slack notification
runs-on: ubuntu-20.04
needs: [delete-featurenet]
if: >
!cancelled() &&
github.event_name != 'workflow_dispatch'
steps:
- name: Send Slack message
uses: Cardinal-Cryptography/github-actions/slack-notification@v7
with:
notify-on: "failure"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }}