-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (82 loc) · 2.81 KB
/
e2e.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: E2E Test Mina Delegation Program
on:
workflow_dispatch:
inputs:
mina_daemon_image:
description: 'MINA_DAEMON_IMAGE'
required: true
default: 'gcr.io/o1labs-192920/mina-daemon:2.0.0berkeley-rc1-1551e2f-bullseye-berkeley'
uptime_service_image:
description: 'UPTIME_SERVICE_IMAGE'
required: true
default: '673156464838.dkr.ecr.us-west-2.amazonaws.com/uptime-service-backend:2.0.0'
coordinator_branch:
description: 'COORDINATOR_BRANCH'
required: true
default: '2.0.0'
stateless_verifier_image:
description: 'STATELESS_VERIFIER_IMAGE'
required: true
default: '673156464838.dkr.ecr.us-west-2.amazonaws.com/delegation-verify:2.0.0-devnet-80a404f'
submission_storage:
description: 'SUBMISSION_STORAGE'
required: true
type: choice
options: ['POSTGRES', 'CASSANDRA']
default: 'POSTGRES'
no_checks:
description: 'env NO_CHECKS, set to 1 to run stateless verification with --no-checks'
required: true
default: '0'
env:
MINA_DAEMON_IMAGE: ${{ github.event.inputs.mina_daemon_image }}
NO_CHECKS: ${{ github.event.inputs.no_checks }}
UPTIME_SERVICE_IMAGE: ${{ github.event.inputs.uptime_service_image }}
COORDINATOR_BRANCH: ${{ github.event.inputs.coordinator_branch }}
STATELESS_VERIFIER_IMAGE: ${{ github.event.inputs.stateless_verifier_image }}
SUBMISSION_STORAGE: ${{ github.event.inputs.submission_storage }}
E2E_SECRET: ${{ secrets.E2E_SECRET }}
AWS_ROLE_ARN: ''
jobs:
build:
runs-on: minafoundation-xlarge-runners
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🔑 ECR Login
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: 🤌 Get Minimina
uses: MinaFoundation/install-minimina-action@v1
with:
stream: stable
- name: 🐍 Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10.12
- name: ⚙️ Install dependencies
run: |
pip install poetry
poetry install
- name: 🛠️ E2E Test Setup
run: poetry run invoke test setup
- name: 🔁 E2E Test Start
run: poetry run invoke test start
- name: ⏳ Wait for verifications
run: poetry run invoke test wait
- name: 🛑 E2E Test Stop & Dump Logs
if: always()
run: |
poetry run invoke test stop
poetry run invoke test dump-logs
- name: 🧪 E2E Test Run Checks
run: poetry run invoke test assert
- name: 📎 Upload logs
uses: actions/upload-artifact@v3
if: always()
with:
name: logs
path: runtime/logs
- name: 🔨 E2E Test Teardown
if: success()
run: poetry run invoke test teardown