generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 176
384 lines (370 loc) · 13.8 KB
/
linux_arm_omnibus.yml
File metadata and controls
384 lines (370 loc) · 13.8 KB
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
name: linux-arm-omnibus
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
GOPROXY: https://proxy.golang.org,direct
jobs:
posix_tests:
name: posix-tests-${{ matrix.image }}-${{ matrix.build32 && 'x86' || 'x86_64' }}
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
strategy:
fail-fast: false
matrix:
image:
- amazonlinux-2_clang-7x_latest
- amazonlinux-2_gcc-7x_latest
- amazonlinux-2023_clang-15x_latest
- amazonlinux-2023_gcc-11x_latest
- ubuntu-20.04_clang-7x_latest
- ubuntu-20.04_clang-8x_latest
- ubuntu-20.04_clang-9x_latest
- ubuntu-20.04_clang-10x_latest
- ubuntu-20.04_gcc-7x_latest
- ubuntu-20.04_gcc-8x_latest
- ubuntu-22.04_gcc-11x_latest
- ubuntu-22.04_gcc-12x_latest
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container (${{ matrix.image }})
env:
AWSLC_32BIT: ${{ matrix.build32 || 0 }}
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:${{ matrix.image }}
env: |
AWSLC_32BIT
run: |
[[ "${{ matrix.cc }}z" != "z" ]] && export CC="${{ matrix.cc }}" || true
[[ "${{ matrix.cxx }}z" != "z" ]] && export CXX="${{ matrix.cxx }}" || true
./tests/ci/run_posix_tests.sh
fips_tests:
name: ${{ matrix.enableASAN && 'asan-' || '' }}fips-tests-${{ matrix.image }}
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
strategy:
fail-fast: false
matrix:
image:
- amazonlinux-2_clang-7x_latest
- amazonlinux-2_gcc-7x_latest
- amazonlinux-2023_clang-15x_latest
- amazonlinux-2023_gcc-11x_latest
- ubuntu-20.04_clang-8x_latest
- ubuntu-20.04_clang-9x_latest
- ubuntu-20.04_clang-10x_latest
- ubuntu-20.04_gcc-7x_latest
- ubuntu-20.04_gcc-8x_latest
- ubuntu-22.04_gcc-11x_latest
- ubuntu-22.04_gcc-12x_latest
include:
- image: ubuntu-20.04_clang-7x_latest
enableASAN: 1
goTestTimeout: 120m
env:
AWSLC_ENABLE_FIPS_ASAN: ${{ matrix.enableASAN || 0 }}
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container (${{ matrix.image }})
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:${{ matrix.image }}
env: |
AWSLC_ENABLE_FIPS_ASAN
run: |
[[ "${{ matrix.goTestTimeout }}z" != "z" ]] && export AWS_LC_GO_TEST_TIMEOUT="${{ matrix.goTestTimeout }}" || true
./tests/ci/run_fips_tests.sh
prefix_tests:
name: prefix-tests-${{ matrix.image }}
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
strategy:
fail-fast: false
matrix:
image:
- amazonlinux-2_gcc-7x_latest
- ubuntu-20.04_clang-10x_latest
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container (${{ matrix.image }})
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:${{ matrix.image }}
run: ./tests/ci/run_prefix_tests.sh
# BoringSSL has 7k+ ssl runner tests, and the total number of the runner tests keep increasing.
# When ASAN enabled, the tests take more than 1 hour to finish. The cause relates to https://github.com/google/sanitizers/issues/1331,
# https://github.com/google/sanitizers/issues/703, and fixed in https://reviews.llvm.org/D60243 which is pending a review.
# To reduce the total time, these tests will be executed in below CodeBuild dimensions:
# 1. amazonlinux_2023_clang_14x_ssl_asan1
# 2. amazonlinux_2023_clang_14x_ssl_asan2
# 3. amazonlinux_2023_clang_14x_ssl_asan3
# 4. amazonlinux_2023_clang_14x_ssl_asan4
# Env var |AWS_LC_SSL_RUNNER_START_INDEX| and |AWS_LC_SSL_RUNNER_END_INDEX| are used to filter the runner tests.
asan-ssl-part1:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
AWS_LC_SSL_RUNNER_END_INDEX: 3500
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:amazonlinux-2023_clang-15x_sanitizer_latest
env: |
AWS_LC_GO_TEST_TIMEOUT
AWS_LC_SSL_RUNNER_END_INDEX
run: ./tests/ci/run_ssl_asan_tests.sh
asan-ssl-part2:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
AWS_LC_SSL_RUNNER_START_INDEX: 3501
AWS_LC_SSL_RUNNER_END_INDEX: 5500
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:amazonlinux-2023_clang-15x_sanitizer_latest
env: |
AWS_LC_GO_TEST_TIMEOUT
AWS_LC_SSL_RUNNER_START_INDEX
AWS_LC_SSL_RUNNER_END_INDEX
run: ./tests/ci/run_ssl_asan_tests.sh
asan-ssl-part3:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
AWS_LC_SSL_RUNNER_START_INDEX: 5501
AWS_LC_SSL_RUNNER_END_INDEX: 7000
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:amazonlinux-2023_clang-15x_sanitizer_latest
env: |
AWS_LC_GO_TEST_TIMEOUT
AWS_LC_SSL_RUNNER_START_INDEX
AWS_LC_SSL_RUNNER_END_INDEX
run: ./tests/ci/run_ssl_asan_tests.sh
asan-ssl-part4:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
AWS_LC_SSL_RUNNER_START_INDEX: 7001
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:amazonlinux-2023_clang-15x_sanitizer_latest
env: |
AWS_LC_GO_TEST_TIMEOUT
AWS_LC_SSL_RUNNER_START_INDEX
run: ./tests/ci/run_ssl_asan_tests.sh
valgrind:
name: valgrind
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:amazonlinux-2023_gcc-11x_latest
env: |
AWS_LC_GO_TEST_TIMEOUT
run: ./tests/ci/run_valgrind_tests.sh
valgrind-ssl-runner-part1:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
AWS_LC_SSL_RUNNER_END_INDEX: 4000
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:amazonlinux-2023_gcc-11x_latest
env: |
AWS_LC_GO_TEST_TIMEOUT
AWS_LC_SSL_RUNNER_END_INDEX
run: ./tests/ci/run_ssl_runner_valgrind_tests.sh
options: --privileged
valgrind-ssl-runner-part2:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
AWS_LC_SSL_RUNNER_START_INDEX: 4001
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:amazonlinux-2023_gcc-11x_latest
env: |
AWS_LC_GO_TEST_TIMEOUT
AWS_LC_SSL_RUNNER_START_INDEX
run: ./tests/ci/run_ssl_runner_valgrind_tests.sh
options: --privileged
# Sanitizer is very slow on ARM.
# https://github.com/google/sanitizers/issues/1331
sanitizers:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
env:
AWS_LC_GO_TEST_TIMEOUT: '60m'
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:amazonlinux-2023_clang-15x_sanitizer_latest
env: |
AWS_LC_GO_TEST_TIMEOUT
options: --privileged
run: ./tests/ci/run_posix_sanitizers.sh
# Build and test aws-lc without Perl/Go.
minimal_tests:
name: minimal-${{ matrix.image }}
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
strategy:
fail-fast: false
matrix:
image:
- ubuntu-20.04_clang-7x_latest
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container (${{ matrix.image }})
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:${{ matrix.image }}
run: ./tests/ci/run_minimal_tests.sh
fips_callback:
name: fips-callback-${{ matrix.image }}
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
strategy:
fail-fast: false
matrix:
image:
- amazonlinux-2_gcc-7x_latest
- amazonlinux-2023_gcc-11x_latest
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run Container (${{ matrix.image }})
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:${{ matrix.image }}
run: ./tests/ci/run_fips_callback_tests.sh
benchmark:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
buildspec-override:true
steps:
- uses: actions/checkout@v5
- name: Get ECR Repoistory URL
id: ecr
run: echo AWS_ECR_REPO_LINUX_AARCH=${AWS_ECR_REPO_LINUX_AARCH} >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/codebuild-docker-run
name: Run POSIX tests
with:
image: ${{ steps.ecr.outputs.AWS_ECR_REPO_LINUX_AARCH }}:amazonlinux-2023_clang-15x_latest
run: ./tests/ci/run_benchmark_build_tests.sh