Sync from snapshot test, Testnet, ParityDB non-pruned #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# This workflow performs sync to Testnet from a ParityDB non-pruned snapshot using the latest | |
# main version. | |
name: Sync from snapshot test, Testnet, ParityDB non-pruned | |
on: | |
# At 21:00 on Wednesday and Saturday | |
# Time corresponds with a snapshot creation time | |
schedule: | |
- cron: '0 21 * * 3,6' | |
workflow_dispatch: | |
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 | |
build-production-aleph-node: | |
needs: [check-vars-and-secrets] | |
name: Build production aleph-node | |
uses: ./.github/workflows/_build-aleph-node.yml | |
with: | |
ref: ${{ github.ref }} | |
production: true | |
test-sync: | |
needs: [build-production-aleph-node] | |
name: Download snapshot and run | |
runs-on: [self-hosted, Linux, X64, medium-1000GB] | |
timeout-minutes: 360 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Test sync | |
uses: ./.github/actions/sync-from-snapshot | |
with: | |
# yamllint disable-line rule:line-length | |
aleph-node-artifact-name: ${{ needs.build-production-aleph-node.outputs.artifact-name-binary }} | |
args: --testnet --parity-db | |
aws-access-key-id: ${{ secrets.AWS_TESTNET_S3_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_TESTNET_S3_SECRET_ACCESS_KEY }} | |
slack-notification: | |
name: Slack notification | |
runs-on: ubuntu-20.04 | |
needs: [test-sync] | |
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 }} |