-
Notifications
You must be signed in to change notification settings - Fork 54
286 lines (254 loc) · 9.61 KB
/
nightly-normal-session-e2e-tests.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
---
name: Nightly pipeline normal session e2e tests
on:
workflow_dispatch:
schedule:
- cron: '00 22 * * *'
concurrency:
group: "${{ github.ref }}-${{ github.workflow }}"
cancel-in-progress: true
jobs:
check-vars-and-secrets:
name: Check vars and secrets
uses: ./.github/workflows/_check-vars-and-secrets.yml
secrets: inherit
build-aleph-e2e-client-image:
needs: [check-vars-and-secrets]
name: Build aleph-e2e-client image
uses: ./.github/workflows/_build-aleph-e2e-client-image.yml
with:
ref: ${{ inputs.ref }}
build-production-node-and-runtime:
needs: [check-vars-and-secrets]
name: Build production node and runtime
uses: ./.github/workflows/_build-production-node-and-runtime.yml
build-synthetic-node:
needs: [build-production-node-and-runtime]
name: Build synthetic node
uses: ./.github/workflows/_build-synthetic-node.yml
run-e2e-high-out-latency:
needs: [build-synthetic-node, build-aleph-e2e-client-image]
name: Run high out-latency test
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Run e2e test
uses: ./.github/actions/run-e2e-test
with:
test-case: high_out_latency_for_all
image-path: aleph-release-synthetic-docker
node-image: aleph-node:syntheticnet
compose-file: docker/docker-compose.synthetic-network.yml
timeout-minutes: 40
run-e2e-sync-test-one_node_catching_up_and_then_becoming_necessary_for_consensus:
needs: [build-synthetic-node, build-aleph-e2e-client-image]
name: Sync test using synthetic-network - one node catching up and then
becoming necessary for consensus
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Run e2e test
uses: ./.github/actions/run-e2e-test
env:
NETWORK: "synthetic-network"
NODE_URL: "ws://Node0:9944"
VALIDATOR_COUNT: 7
with:
test-case: test::sync::one_node_catching_up_and_then_becoming_necessary_for_consensus
image-path: aleph-release-synthetic-docker
node-image: aleph-node:syntheticnet
compose-file: docker/docker-compose.synthetic-network_sync-tests.yml
node-count: 7
timeout-minutes: 35
run-e2e-sync-test-one_node_catching_up:
needs: [build-synthetic-node, build-aleph-e2e-client-image]
name: Sync test using synthetic-network - one node catching up
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Run e2e test
uses: ./.github/actions/run-e2e-test
env:
NETWORK: "synthetic-network"
NODE_URL: "ws://Node0:9944"
VALIDATOR_COUNT: 7
with:
test-case: test::sync::one_node_catching_up
image-path: aleph-release-synthetic-docker
node-image: aleph-node:syntheticnet
compose-file: docker/docker-compose.synthetic-network_sync-tests.yml
node-count: 7
timeout-minutes: 35
run-e2e-sync-test-into_two_groups_and_one_quorum_and_switch_quorum_between_them:
needs: [build-synthetic-node, build-aleph-e2e-client-image]
name: Sync test using synthetic-network - into two groups and one quorum
and switch quorum between them
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Run e2e test
uses: ./.github/actions/run-e2e-test
env:
NETWORK: "synthetic-network"
NODE_URL: "ws://Node0:9944"
VALIDATOR_COUNT: 7
with:
test-case: test::sync::into_two_groups_and_one_quorum_and_switch_quorum_between_them
image-path: aleph-release-synthetic-docker
node-image: aleph-node:syntheticnet
compose-file: docker/docker-compose.synthetic-network_sync-tests.yml
node-count: 7
timeout-minutes: 35
run-e2e-sync-test-into_multiple_groups_of_two:
needs: [build-synthetic-node, build-aleph-e2e-client-image]
name: Sync test using synthetic-network - into multiple groups of two
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Run e2e test
uses: ./.github/actions/run-e2e-test
env:
NETWORK: "synthetic-network"
NODE_URL: "ws://Node0:9944"
VALIDATOR_COUNT: 7
with:
test-case: test::sync::into_multiple_groups_of_two
image-path: aleph-release-synthetic-docker
node-image: aleph-node:syntheticnet
compose-file: docker/docker-compose.synthetic-network_sync-tests.yml
node-count: 7
timeout-minutes: 35
run-e2e-sync-test-into_two_equal_size_groups_with_no_quorum:
needs: [build-synthetic-node, build-aleph-e2e-client-image]
name: Sync test using synthetic-network - into two equal size groups
with no quorum
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Run e2e test
uses: ./.github/actions/run-e2e-test
env:
NETWORK: "synthetic-network"
NODE_URL: "ws://Node0:9944"
VALIDATOR_COUNT: 7
with:
test-case: test::sync::into_two_equal_size_groups_with_no_quorum
image-path: aleph-release-synthetic-docker
node-image: aleph-node:syntheticnet
compose-file: docker/docker-compose.synthetic-network_sync-tests.yml
node-count: 7
timeout-minutes: 35
run-e2e-sync-test-into_two_groups_one_with_quorum:
needs: [build-synthetic-node, build-aleph-e2e-client-image]
name: Sync test using synthetic-network - into two groups one with
quorum
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Run e2e test
uses: ./.github/actions/run-e2e-test
env:
NETWORK: "synthetic-network"
NODE_URL: "ws://Node0:9944"
VALIDATOR_COUNT: 7
with:
test-case: test::sync::into_two_groups_one_with_quorum
image-path: aleph-release-synthetic-docker
node-image: aleph-node:syntheticnet
compose-file: docker/docker-compose.synthetic-network_sync-tests.yml
node-count: 7
timeout-minutes: 35
run-major-sync-test:
needs: [build-production-node-and-runtime]
name: Run major sync test
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Download release artifact
uses: actions/download-artifact@v3
with:
name: aleph-production-node
path: target/release/
- name: Run test
timeout-minutes: 65
run: |
./.github/scripts/test_python_general.sh \
--aleph-node ../target/release/aleph-node \
--testcase test_major_sync
run-force-reorg-test:
needs: [build-production-node-and-runtime]
name: Run force reorgs test
runs-on: [self-hosted, Linux, X64, medium]
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Download release artifact
uses: actions/download-artifact@v3
with:
name: aleph-production-node
path: target/release/
- name: Run test
timeout-minutes: 25
run: |
./.github/scripts/test_python_general.sh \
--aleph-node ../target/release/aleph-node \
--testcase test_force_reorg
run-e2e-no-quorum-without-high-out-latency:
needs: [build-synthetic-node, build-aleph-e2e-client-image]
name: Run high out-latency for every quorum
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Run e2e test
uses: ./.github/actions/run-e2e-test
with:
test-case: high_out_latency_for_each_quorum
image-path: aleph-release-synthetic-docker
node-image: aleph-node:syntheticnet
compose-file: docker/docker-compose.synthetic-network.yml
timeout-minutes: 35
check-nightly-pipeline-completion:
needs: [run-e2e-high-out-latency,
run-e2e-sync-test-one_node_catching_up_and_then_becoming_necessary_for_consensus,
run-e2e-sync-test-one_node_catching_up,
run-e2e-sync-test-into_two_groups_and_one_quorum_and_switch_quorum_between_them,
run-e2e-sync-test-into_multiple_groups_of_two,
run-e2e-sync-test-into_two_equal_size_groups_with_no_quorum,
run-e2e-sync-test-into_two_groups_one_with_quorum,
run-force-reorg-test,
run-major-sync-test,
run-e2e-no-quorum-without-high-out-latency]
name: Check nightly test suite completion
if: ${{ !cancelled() }}
runs-on: ubuntu-20.04
steps:
- name: All nightly tests completed
run: |
# due to the fact GitHub treats skipped jobs as success, and when any of dependant
# jobs fail, this check will be skipped, we need to check status manually
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
slack:
name: Slack notification
runs-on: ubuntu-20.04
needs: [check-nightly-pipeline-completion]
if: >
!cancelled() &&
github.event_name != 'workflow_dispatch'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Send Slack message
uses: ./.github/actions/slack-notification
with:
notify-on: "failure"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }}