forked from openwall/john
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
251 lines (222 loc) · 7.4 KB
/
azure-pipelines.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
###############################################################################
# _ _ _ _ _____ _
# | | | | | | | | | __ \(_)
# | | ___ | |__ _ __ | |_| |__ ___ | |__) |_ _ __ _ __ ___ _ __
# _ | |/ _ \| '_ \| '_ \ | __| '_ \ / _ \ | _ /| | '_ \| '_ \ / _ \ '__|
# | |__| | (_) | | | | | | | | |_| | | | __/ | | \ \| | |_) | |_) | __/ |
# \____/ \___/|_| |_|_| |_| \__|_| |_|\___| |_| \_\_| .__/| .__/ \___|_|
# | | | |
# |_| |_|
#
# Copyright (c) 2019-2022 Claudio André <claudioandre.br at gmail.com>
#
# This program comes with ABSOLUTELY NO WARRANTY; express or implied.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, as expressed in version 2, seen at
# http://www.gnu.org/licenses/gpl-2.0.html
###############################################################################
# Azure DevOps CI configuration
# More info at https://github.com/openwall/john-packages
stages:
- stage: basic
displayName: Acceptance Test
jobs:
- job: Windows_2019
displayName: Windows 2019
pool:
vmImage: 'windows-2019'
variables:
- template: .azure/windows-variables.yml
steps:
- template: .azure/windows-ci.yml
- job: Windows_2022
displayName: Windows 2022
pool:
vmImage: 'windows-2022'
variables:
- template: .azure/windows-variables.yml
steps:
- template: .azure/windows-ci.yml
- job: Pocl
displayName: Ubuntu 24 w/ OpenCL POCL
pool:
vmImage: 'ubuntu-latest'
container:
image: ghcr.io/openwall/john-ci:ubuntu.opencl
variables:
TARGET_ARCH: "NIX"
EXTRA: "full;extra;crack;"
steps:
- template: .azure/linux-ci.yml
- job: UBI_8
displayName: Red Hat Ubi 8
pool:
vmImage: 'ubuntu-latest'
container:
image: ghcr.io/openwall/john-ci:redhat.ubi8
variables:
TARGET_ARCH: "NIX"
EXTRA: "full;extra;crack;"
steps:
- template: .azure/linux-ci.yml
- stage: functional
displayName: 'Functional Test'
dependsOn: basic
jobs:
- job: cracking
pool:
vmImage: 'ubuntu-latest'
container:
image: ghcr.io/openwall/john-ci:fedora.latest
options: --user=root
variables:
TARGET_ARCH: "NIX"
EXTRA: "full;extra;crack;"
BUILD_OPTS: "" # Can't use --enable-werror, gcc emits warnings
steps:
- template: .azure/linux-ci.yml
# Intel OpenCL CPU testing ###################################################
# Tests run on top of:
# - ubuntu:16.04
# - Intel driver 18.1.0.013
##############################################################################
- job: intel_opencl
displayName: Intel OpenCL CPU
timeoutInMinutes: "0"
pool:
vmImage: 'ubuntu-latest'
container:
image: claudioandre/john:opencl
variables:
TARGET_ARCH: "NIX"
EXTRA: "MY_FULL;OpenCL-full;OpenCL-crack;"
BUILD_OPTS: "--enable-werror"
steps:
- template: .azure/linux-ci.yml
# Known issues ###############################################################
# - Can't use '--enable-asan' in intel_opencl Job
#
# #16 0x7f36513fefa0 in dlopen (/lib/x86_64-linux-gnu/libdl.so.2+0xfa0)
# #17 0x7f365242b20f in dlopen (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x3720f)
# #18 0x7f3651b27862 in khrIcdVendorAdd (/usr/lib/x86_64-linux-gnu/libOpenCL.so.1+0x2862)
# #19 0x7f3651b2bcc2 in khrIcdOsVendorsEnumerate (/usr/lib/x86_64-linux-gnu/libOpenCL.so.1+0x6cc2)
# #20 0x7f3650b85a98 in __pthread_once_slow (/lib/x86_64-linux-gnu/libpthread.so.0+0xea98)
# #21 0x7f3651b28325 in clGetPlatformIDs (/usr/lib/x86_64-linux-gnu/libOpenCL.so.1+0x3325)
# #22 0x8f3112 in load_opencl_environment /__w/1/s/src/opencl_common.c:463
# #23 0x8fade2 in opencl_load_environment /__w/1/s/src/opencl_common.c:879
# #24 0x8fb637 in opencl_prepare_dev /__w/1/s/src/opencl_common.c:2362
# #25 0xa0c234 in init /__w/1/s/src/opencl_rawsha256_fmt_plug.c:550
# #26 0x840956 in fmt_init /__w/1/s/src/formats.c:80
# #27 0x824526 in benchmark_all /__w/1/s/src/bench.c:782
# #28 0x851f08 in john_run /__w/1/s/src/john.c:1697
##############################################################################
- stage: fuzz
displayName: 'Fuzzing'
dependsOn: functional
jobs:
- job: zzuf
pool:
vmImage: 'ubuntu-latest'
container:
image: ghcr.io/openwall/john-ci:ubuntu.opencl
variables:
TARGET_ARCH: "NIX"
EXTRA: "ZZUF_FUZZ"
BUILD_OPTS: "--enable-fuzz"
steps:
- template: .azure/linux-ci.yml
# There is a 60 minutes job limit (so, I need the timeoutInMinutes)
# - job: afl
# timeoutInMinutes: 0
# container:
# image: ghcr.io/openwall/john-ci:ubuntu.opencl
# variables:
# TARGET_ARCH: "NIX"
# EXTRA: "AFL_FUZZ"
# BUILD_OPTS: "--enable-fuzz --disable-native-tests"
# CC: "afl-clang-fast"
# steps:
# - template: .azure/linux-ci.yml
# Runs "--fuzz"
- job: internal
pool:
vmImage: 'ubuntu-latest'
container:
image: ghcr.io/openwall/john-ci:ubuntu.opencl
variables:
TARGET_ARCH: "NIX"
EXTRA: "MY_INTERNAL"
BUILD_OPTS: "--enable-fuzz"
steps:
- template: .azure/linux-ci.yml
# Runs "--test-full=1"
- job: full
pool:
vmImage: 'ubuntu-latest'
container:
image: ghcr.io/openwall/john-ci:ubuntu.opencl
variables:
TARGET_ARCH: "NIX"
EXTRA: "MY_FULL;full"
BUILD_OPTS: "--enable-fuzz"
steps:
- template: .azure/linux-ci.yml
- stage: delivery
displayName: Delivery
dependsOn: basic
jobs:
- job: Build
displayName: Build Package
timeoutInMinutes: "0"
pool:
vmImage: 'windows-2022'
variables:
- template: .azure/windows-variables.yml
steps:
- template: .azure/checkout.yml
- template: .azure/windows-system-info.yml
- ${{ if false }}:
- template: .azure/windows-build-to-delivery.yml
- template: .azure/windows-push-artifacts.yml
- template: .azure/windows-pull-artifacts.yml
- template: .azure/windows-testing.yml
parameters:
fullTest: 'no'
johnBinary: 'john'
johnDirectory: $(System.ArtifactsDirectory)\JtR\run
- stage: deploy
displayName: Check Deploy
dependsOn: delivery
jobs:
- job: Validate_19
displayName: Validate 2019
pool:
vmImage: 'windows-2019'
variables:
- template: .azure/windows-variables.yml
steps:
- checkout: none
- ${{ if false }}:
- template: .azure/windows-pull-artifacts.yml
- template: .azure/windows-testing.yml
parameters:
fullTest: 'yes'
johnBinary: 'john'
johnDirectory: $(System.ArtifactsDirectory)\JtR\run
- job: Validate_22
displayName: Validate 2022
pool:
vmImage: 'windows-2022'
variables:
- template: .azure/windows-variables.yml
steps:
- checkout: none
- ${{ if false }}:
- template: .azure/windows-pull-artifacts.yml
- template: .azure/windows-testing.yml
parameters:
fullTest: 'yes'
johnBinary: 'john'
johnDirectory: $(System.ArtifactsDirectory)\JtR\run