-
Notifications
You must be signed in to change notification settings - Fork 209
245 lines (194 loc) · 7.82 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
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
name: Lava E2E Tests
on: [pull_request]
jobs:
test-protocol-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "0"
- uses: actions/setup-go@v3
with:
go-version: 1.20.5
######################################################
### Run Lava Protocol E2E Tests
######################################################
- name: Run Lava E2E Tests -timeout 1200s
run: go test ./testutil/e2e/ -run ^TestLavaProtocol$ -v -timeout 1200s # 20mins
- name: tail -n 1000 Lavad Logs
if: always()
run: tail -n 1000 testutil/e2e/protocolLogs/00_StartLava.log
- name: Print all warnings and errors from lavad
continue-on-error: true
if: always()
run: cat testutil/e2e/protocolLogs/00_StartLava.log | grep 'WRN |ERR '
- name: Stake Lava All Logs
if: always()
run: cat testutil/e2e/protocolLogs/01_stakeLava.log
- name: Stake Lava Error Only Logs
if: always()
continue-on-error: true
run: cat testutil/e2e/protocolLogs/01_stakeLava_errors.log
- name: head -n 300 JSON Proxy Logs
if: always()
run: head -n 300 testutil/e2e/protocolLogs/02_jsonProxy.log
- name: tail -n 300 JSON Proxy Logs
if: always()
run: tail -n 300 testutil/e2e/protocolLogs/02_jsonProxy.log
- name: JSON Proxy Error Only Logs
if: always()
continue-on-error: true
run: cat testutil/e2e/protocolLogs/02_jsonProxy_errors.log
- name: JSON Provider All Logs
if: always()
run: grep "" testutil/e2e/protocolLogs/03_EthProvider* --exclude="*errors*"
- name: JSON Provider Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/protocolLogs/03_EthProvider* --include="*errors*"
- name: JSON Consumer All Logs
if: always()
run: grep "" testutil/e2e/protocolLogs/04_jsonConsumer* --exclude="*errors*"
- name: JSON Consumer Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/protocolLogs/04_jsonConsumer* --include="*errors*"
- name: Lava Provider All Logs
if: always()
run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --exclude="*errors*"
- name: Lava Provider Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --include="*errors*"
- name: Lava over Lava All Logs
if: always()
run: cat testutil/e2e/protocolLogs/07_lavaOverLava.log
- name: Lava over Lava Error Only Logs
if: always()
continue-on-error: true
run: cat testutil/e2e/protocolLogs/07_lavaOverLava_errors.log
- name: RPCConsumer Consumer All Logs
if: always()
run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --exclude="*errors*"
- name: RPCConsumer Consumer Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*"
test-sdk-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "0"
- uses: actions/setup-go@v3
with:
go-version: "1.20.5"
# Install Node.js
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "21.2.0"
- name: Init the SDK
run: GOPATH=~/go ./scripts/init_sdk.sh -s
working-directory: ./ecosystem/lava-sdk
- name: Build
run: yarn build
working-directory: ./ecosystem/lava-sdk
- name: Install ts-node
run: npm install -g ts-node
- name: Install telescope dependencies
run: yarn; yarn e2e-setup
working-directory: ./ecosystem/lavajs
- name: Setup test environment
run: npm init --yes; npm install --save-dev @types/node
######################################################
### Run Lava SDK E2E Tests
######################################################
- name: Run Lava E2E Tests -timeout 1200s
run: go test ./testutil/e2e/ -run ^TestLavaSDK -v -timeout 1200s # 20mins
- name: tail -n 300 Lavad Logs
if: always()
run: tail -n 300 testutil/e2e/sdkLogs/00_StartLava.log
- name: Stake Lava All Logs
if: always()
run: cat testutil/e2e/sdkLogs/01_stakeLava.log
- name: Stake Lava Error Only Logs
if: always()
continue-on-error: true
run: cat testutil/e2e/sdkLogs/01_stakeLava_errors.log
- name: head -n 300 JSON Proxy Logs
if: always()
run: head -n 300 testutil/e2e/sdkLogs/02_jsonProxy.log
- name: tail -n 300 JSON Proxy Logs
if: always()
run: tail -n 300 testutil/e2e/sdkLogs/02_jsonProxy.log
- name: JSON Proxy Error Only Logs
if: always()
continue-on-error: true
run: cat testutil/e2e/sdkLogs/02_jsonProxy_errors.log
- name: JSON Provider All Logs
if: always()
run: grep "" testutil/e2e/sdkLogs/03_EthProvider* --exclude="*errors*"
- name: JSON Provider Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/sdkLogs/03_EthProvider* --include="*errors*"
- name: Lava Provider All Logs
if: always()
run: grep "" testutil/e2e/sdkLogs/05_LavaProvider* --exclude="*errors*"
- name: Lava Provider Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/sdkLogs/05_LavaProvider* --include="*errors*"
- name: Badge Server All Logs
if: always()
run: grep "" testutil/e2e/sdkLogs/01_BadgeServer* --exclude="*errors*"
- name: Badge Server Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/sdkLogs/01_BadgeServer* --include="*errors*"
- name: Lava SDK All Logs
if: always()
run: grep "" testutil/e2e/sdkLogs/01_sdkTest* --exclude="*errors*"
- name: Lava SDK Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/sdkLogs/01_sdkTest* --include="*errors*"
test-payment-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "0"
- uses: actions/setup-go@v3
with:
go-version: 1.20.5
######################################################
### Run Lava Protocol Payment E2E Tests
######################################################
- name: Run Lava Payment E2E Tests -timeout 1200s
run: go test ./testutil/e2e/ -run ^TestLavaProtocolPayment$ -v -timeout 1200s # 20mins
- name: tail -n 300 Lavad Logs
if: always()
run: tail -n 300 testutil/e2e/protocolLogs/00_StartLava.log
- name: Stake Lava All Logs
if: always()
run: cat testutil/e2e/protocolLogs/01_stakeLavaForPayment.log
- name: Stake Lava Error Only Logs
if: always()
continue-on-error: true
run: cat testutil/e2e/protocolLogs/01_stakeLava_errors.log
- name: Lava Provider All Logs
if: always()
run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --exclude="*errors*"
- name: Lava Provider Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --include="*errors*"
- name: RPCConsumer Consumer All Logs
if: always()
run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --exclude="*errors*"
- name: RPCConsumer Consumer Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*"