-
Notifications
You must be signed in to change notification settings - Fork 5
306 lines (305 loc) · 10.8 KB
/
ci.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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
name: Continuous integration
run-name: Continuous integration run by ${{ github.actor }}
on:
# push:
# branches:
# - main
# paths-ignore:
# - "README.md"
# - ".gitignore"
# - "doc/**"
pull_request:
merge_group:
workflow_dispatch:
jobs:
fluent-verification:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Download Verus
uses: actions/checkout@v2
with:
repository: verus-lang/verus
path: verus
ref: 8e24346e9a93e25bca6b66505f4007645118df43
- name: Move Verus
run: mv verus ../verus
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Build Verus
run: |
cd ../verus/source
./tools/get-z3.sh
source ../tools/activate
vargo build --release
- name: Verify fluent controller
run: VERUS_DIR="$(dirname "${PWD}")/verus" ./build.sh fluent_controller.rs --time --rlimit 50
rabbitmq-verification:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Download Verus
uses: actions/checkout@v2
with:
repository: verus-lang/verus
path: verus
ref: 8e24346e9a93e25bca6b66505f4007645118df43
- name: Move Verus
run: mv verus ../verus
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Build Verus
run: |
cd ../verus/source
./tools/get-z3.sh
source ../tools/activate
vargo build --release
- name: Verify rabbitmq controller
run: VERUS_DIR="$(dirname "${PWD}")/verus" ./build.sh rabbitmq_controller.rs --time --rlimit 50
zookeeper-verification:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Download Verus
uses: actions/checkout@v2
with:
repository: verus-lang/verus
path: verus
ref: 8e24346e9a93e25bca6b66505f4007645118df43
- name: Move Verus
run: mv verus ../verus
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Build Verus
run: |
cd ../verus/source
./tools/get-z3.sh
source ../tools/activate
vargo build --release
- name: Verify zookeeper controller
run: VERUS_DIR="$(dirname "${PWD}")/verus" ./build.sh zookeeper_controller.rs --time --rlimit 50
replica-set-verification:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Download Verus
uses: actions/checkout@v2
with:
repository: verus-lang/verus
path: verus
ref: 8e24346e9a93e25bca6b66505f4007645118df43
- name: Move Verus
run: mv verus ../verus
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Build Verus
run: |
cd ../verus/source
./tools/get-z3.sh
source ../tools/activate
vargo build --release
- name: Verify replica set controller
run: VERUS_DIR="$(dirname "${PWD}")/verus" ./build.sh v_replica_set_controller.rs --time
unit-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Download Verus
uses: actions/checkout@v2
with:
repository: verus-lang/verus
path: verus
ref: 8e24346e9a93e25bca6b66505f4007645118df43
- name: Move Verus
run: mv verus ../verus
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Build Verus
run: |
cd ../verus/source
./tools/get-z3.sh
source ../tools/activate
vargo build --release
- name: Run unit tests
run: cargo test unit_tests
conformance-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Download Verus
uses: actions/checkout@v2
with:
repository: verus-lang/verus
path: verus
ref: 8e24346e9a93e25bca6b66505f4007645118df43
- name: Move Verus
run: mv verus ../verus
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Build Verus
run: |
cd ../verus/source
./tools/get-z3.sh
source ../tools/activate
vargo build --release
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.20"
- name: Install kind
run: go install sigs.k8s.io/[email protected]
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Set up a kind cluster
run: kind create cluster
- name: Run conformance tests
run: cargo test conformance_tests -- --nocapture
framework-verification:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Download Verus
uses: actions/checkout@v2
with:
repository: verus-lang/verus
path: verus
ref: 8e24346e9a93e25bca6b66505f4007645118df43
- name: Move Verus
run: mv verus ../verus
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Build Verus
run: |
cd ../verus/source
./tools/get-z3.sh
source ../tools/activate
vargo build --release
- name: Verify conformance of the executable model
run: VERUS_DIR="$(dirname "${PWD}")/verus" ./build.sh anvil.rs --crate-type lib --time
fluent-e2e-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.20"
- name: Install kind
run: go install sigs.k8s.io/[email protected]
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Deploy fluent controller
run: ./local-test.sh fluent
- name: Run fluent e2e tests
run: cd e2e && cargo run -- fluent
rabbitmq-e2e-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.20"
- name: Install kind
run: go install sigs.k8s.io/[email protected]
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Deploy rabbitmq controller
run: ./local-test.sh rabbitmq
- name: Run rabbitmq e2e tests
run: cd e2e && cargo run -- rabbitmq
rabbitmq-scaling-e2e-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.20"
- name: Install kind
run: go install sigs.k8s.io/[email protected]
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Deploy rabbitmq controller
run: ./local-test.sh rabbitmq
- name: Run rabbitmq e2e tests for scaling
run: cd e2e && cargo run -- rabbitmq-scaling
rabbitmq-ephemeral-e2e-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.20"
- name: Install kind
run: go install sigs.k8s.io/[email protected]
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Deploy rabbitmq controller
run: ./local-test.sh rabbitmq
- name: Run rabbitmq e2e tests for ephemeral
run: cd e2e && cargo run -- rabbitmq-ephemeral
zookeeper-e2e-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.20"
- name: Install kind
run: go install sigs.k8s.io/[email protected]
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Deploy zookeeper controller
run: ./local-test.sh zookeeper
- name: Run zookeeper e2e tests
run: cd e2e && cargo run -- zookeeper
zookeeper-scaling-e2e-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.20"
- name: Install kind
run: go install sigs.k8s.io/[email protected]
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Deploy zookeeper controller
run: ./local-test.sh zookeeper
- name: Run zookeeper e2e tests for scaling
run: cd e2e && cargo run -- zookeeper-scaling
zookeeper-ephemeral-e2e-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.20"
- name: Install kind
run: go install sigs.k8s.io/[email protected]
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
- name: Deploy zookeeper controller
run: ./local-test.sh zookeeper
- name: Run zookeeper e2e tests for ephemeral storage
run: cd e2e && cargo run -- zookeeper-ephemeral