-
Notifications
You must be signed in to change notification settings - Fork 49
65 lines (58 loc) · 2 KB
/
sync-from-snapshot-mainnet-paritydb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
# This workflow performs sync to Mainnet from a ParityDB non-pruned snapshot using the latest
# main version.
#
# For now, this test not quite correctly tests sync Mainnet from latest aleph-node binary,
# for which we don't guarantee it will always happen to work.
name: Sync from snapshot test, Mainnet, 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: --mainnet --parity-db
aws-access-key-id: ${{ secrets.AWS_MAINNET_S3_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_MAINNET_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 }}