• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "args": [
4      "clone",
5      "https://github.com/google/oss-fuzz.git"
6    ],
7    "name": "gcr.io/cloud-builders/git"
8  },
9  {
10    "name": "gcr.io/cloud-builders/docker",
11    "args": [
12      "build",
13      "-t",
14      "gcr.io/oss-fuzz/test-project",
15      "."
16    ],
17    "dir": "oss-fuzz/projects/test-project"
18  },
19  {
20    "name": "gcr.io/oss-fuzz/test-project",
21    "args": [
22      "bash",
23      "-c",
24      "srcmap > /workspace/srcmap.json && cat /workspace/srcmap.json"
25    ],
26    "env": [
27      "OSSFUZZ_REVISION=$REVISION_ID",
28      "FUZZING_LANGUAGE=c++"
29    ]
30  },
31  {
32    "name": "gcr.io/oss-fuzz-base/msan-libs-builder",
33    "args": [
34      "bash",
35      "-c",
36      "cp -r /msan /workspace"
37    ]
38  },
39  {
40    "name": "gcr.io/oss-fuzz/test-project",
41    "env": [
42      "FUZZING_ENGINE=libfuzzer",
43      "SANITIZER=address",
44      "OUT=/workspace/out/address",
45      "MSAN_LIBS_PATH=/workspace/msan",
46      "ARCHITECTURE=x86_64",
47      "FUZZING_LANGUAGE=c++"
48    ],
49    "args": [
50      "bash",
51      "-c",
52      "rm -r /out && cd /src && cd /src && mkdir -p /workspace/out/address && compile || (echo \"********************************************************************************\nFailed to build.\nTo reproduce, run:\npython infra/helper.py build_image test-project\npython infra/helper.py build_fuzzers --sanitizer address --engine libfuzzer --architecture x86_64 test-project\n********************************************************************************\" && false)"
53    ]
54  },
55  {
56    "name": "gcr.io/oss-fuzz-base/base-runner",
57    "env": [
58      "FUZZING_ENGINE=libfuzzer",
59      "SANITIZER=address",
60      "OUT=/workspace/out/address",
61      "MSAN_LIBS_PATH=/workspace/msan",
62      "ARCHITECTURE=x86_64",
63      "FUZZING_LANGUAGE=c++"
64    ],
65    "args": [
66      "bash",
67      "-c",
68      "test_all.py || (echo \"********************************************************************************\nBuild checks failed.\nTo reproduce, run:\npython infra/helper.py build_image test-project\npython infra/helper.py build_fuzzers --sanitizer address --engine libfuzzer --architecture x86_64 test-project\npython infra/helper.py check_build --sanitizer address --engine libfuzzer --architecture x86_64 test-project\n********************************************************************************\" && false)"
69    ]
70  },
71  {
72    "name": "gcr.io/oss-fuzz-base/base-runner",
73    "env": [
74      "FUZZING_ENGINE=libfuzzer",
75      "SANITIZER=address",
76      "OUT=/workspace/out/address",
77      "MSAN_LIBS_PATH=/workspace/msan",
78      "ARCHITECTURE=x86_64",
79      "FUZZING_LANGUAGE=c++"
80    ],
81    "args": [
82      "bash",
83      "-c",
84      "targets_list > /workspace/targets.list.address"
85    ]
86  },
87  {
88    "name": "gcr.io/oss-fuzz/test-project",
89    "args": [
90      "bash",
91      "-c",
92      "cd /workspace/out/address && zip -r test-project-address-202001010000.zip *"
93    ]
94  },
95  {
96    "name": "gcr.io/oss-fuzz-base/uploader",
97    "args": [
98      "/workspace/srcmap.json",
99      "test_url"
100    ]
101  },
102  {
103    "name": "gcr.io/oss-fuzz-base/uploader",
104    "args": [
105      "/workspace/out/address/test-project-address-202001010000.zip",
106      "test_url"
107    ]
108  },
109  {
110    "name": "gcr.io/oss-fuzz-base/uploader",
111    "args": [
112      "/workspace/targets.list.address",
113      "test_url"
114    ]
115  },
116  {
117    "name": "gcr.io/cloud-builders/curl",
118    "args": [
119      "-H",
120      "Content-Type: text/plain",
121      "-X",
122      "PUT",
123      "-d",
124      "test-project-address-202001010000.zip",
125      "test_url"
126    ]
127  },
128  {
129    "name": "gcr.io/oss-fuzz/test-project",
130    "args": [
131      "bash",
132      "-c",
133      "rm -r /workspace/out/address"
134    ]
135  },
136  {
137    "name": "gcr.io/oss-fuzz/test-project",
138    "env": [
139      "FUZZING_ENGINE=afl",
140      "SANITIZER=address",
141      "OUT=/workspace/out/address",
142      "MSAN_LIBS_PATH=/workspace/msan",
143      "ARCHITECTURE=x86_64",
144      "FUZZING_LANGUAGE=c++"
145    ],
146    "args": [
147      "bash",
148      "-c",
149      "rm -r /out && cd /src && cd /src && mkdir -p /workspace/out/address && compile || (echo \"********************************************************************************\nFailed to build.\nTo reproduce, run:\npython infra/helper.py build_image test-project\npython infra/helper.py build_fuzzers --sanitizer address --engine afl --architecture x86_64 test-project\n********************************************************************************\" && false)"
150    ]
151  },
152  {
153    "name": "gcr.io/oss-fuzz-base/base-runner",
154    "env": [
155      "FUZZING_ENGINE=afl",
156      "SANITIZER=address",
157      "OUT=/workspace/out/address",
158      "MSAN_LIBS_PATH=/workspace/msan",
159      "ARCHITECTURE=x86_64",
160      "FUZZING_LANGUAGE=c++"
161    ],
162    "args": [
163      "bash",
164      "-c",
165      "test_all.py || (echo \"********************************************************************************\nBuild checks failed.\nTo reproduce, run:\npython infra/helper.py build_image test-project\npython infra/helper.py build_fuzzers --sanitizer address --engine afl --architecture x86_64 test-project\npython infra/helper.py check_build --sanitizer address --engine afl --architecture x86_64 test-project\n********************************************************************************\" && false)"
166    ]
167  },
168  {
169    "name": "gcr.io/oss-fuzz-base/base-runner",
170    "env": [
171      "FUZZING_ENGINE=afl",
172      "SANITIZER=address",
173      "OUT=/workspace/out/address",
174      "MSAN_LIBS_PATH=/workspace/msan",
175      "ARCHITECTURE=x86_64",
176      "FUZZING_LANGUAGE=c++"
177    ],
178    "args": [
179      "bash",
180      "-c",
181      "targets_list > /workspace/targets.list.address"
182    ]
183  },
184  {
185    "name": "gcr.io/oss-fuzz/test-project",
186    "args": [
187      "bash",
188      "-c",
189      "cd /workspace/out/address && zip -r test-project-address-202001010000.zip *"
190    ]
191  },
192  {
193    "name": "gcr.io/oss-fuzz-base/uploader",
194    "args": [
195      "/workspace/srcmap.json",
196      "test_url"
197    ]
198  },
199  {
200    "name": "gcr.io/oss-fuzz-base/uploader",
201    "args": [
202      "/workspace/out/address/test-project-address-202001010000.zip",
203      "test_url"
204    ]
205  },
206  {
207    "name": "gcr.io/oss-fuzz-base/uploader",
208    "args": [
209      "/workspace/targets.list.address",
210      "test_url"
211    ]
212  },
213  {
214    "name": "gcr.io/cloud-builders/curl",
215    "args": [
216      "-H",
217      "Content-Type: text/plain",
218      "-X",
219      "PUT",
220      "-d",
221      "test-project-address-202001010000.zip",
222      "test_url"
223    ]
224  },
225  {
226    "name": "gcr.io/oss-fuzz/test-project",
227    "args": [
228      "bash",
229      "-c",
230      "rm -r /workspace/out/address"
231    ]
232  },
233  {
234    "name": "gcr.io/oss-fuzz/test-project",
235    "env": [
236      "FUZZING_ENGINE=honggfuzz",
237      "SANITIZER=address",
238      "OUT=/workspace/out/address",
239      "MSAN_LIBS_PATH=/workspace/msan",
240      "ARCHITECTURE=x86_64",
241      "FUZZING_LANGUAGE=c++"
242    ],
243    "args": [
244      "bash",
245      "-c",
246      "rm -r /out && cd /src && cd /src && mkdir -p /workspace/out/address && compile || (echo \"********************************************************************************\nFailed to build.\nTo reproduce, run:\npython infra/helper.py build_image test-project\npython infra/helper.py build_fuzzers --sanitizer address --engine honggfuzz --architecture x86_64 test-project\n********************************************************************************\" && false)"
247    ]
248  },
249  {
250    "name": "gcr.io/oss-fuzz-base/base-runner",
251    "env": [
252      "FUZZING_ENGINE=honggfuzz",
253      "SANITIZER=address",
254      "OUT=/workspace/out/address",
255      "MSAN_LIBS_PATH=/workspace/msan",
256      "ARCHITECTURE=x86_64",
257      "FUZZING_LANGUAGE=c++"
258    ],
259    "args": [
260      "bash",
261      "-c",
262      "test_all.py || (echo \"********************************************************************************\nBuild checks failed.\nTo reproduce, run:\npython infra/helper.py build_image test-project\npython infra/helper.py build_fuzzers --sanitizer address --engine honggfuzz --architecture x86_64 test-project\npython infra/helper.py check_build --sanitizer address --engine honggfuzz --architecture x86_64 test-project\n********************************************************************************\" && false)"
263    ]
264  },
265  {
266    "name": "gcr.io/oss-fuzz-base/base-runner",
267    "env": [
268      "FUZZING_ENGINE=honggfuzz",
269      "SANITIZER=address",
270      "OUT=/workspace/out/address",
271      "MSAN_LIBS_PATH=/workspace/msan",
272      "ARCHITECTURE=x86_64",
273      "FUZZING_LANGUAGE=c++"
274    ],
275    "args": [
276      "bash",
277      "-c",
278      "targets_list > /workspace/targets.list.address"
279    ]
280  },
281  {
282    "name": "gcr.io/oss-fuzz/test-project",
283    "args": [
284      "bash",
285      "-c",
286      "cd /workspace/out/address && zip -r test-project-address-202001010000.zip *"
287    ]
288  },
289  {
290    "name": "gcr.io/oss-fuzz-base/uploader",
291    "args": [
292      "/workspace/srcmap.json",
293      "test_url"
294    ]
295  },
296  {
297    "name": "gcr.io/oss-fuzz-base/uploader",
298    "args": [
299      "/workspace/out/address/test-project-address-202001010000.zip",
300      "test_url"
301    ]
302  },
303  {
304    "name": "gcr.io/oss-fuzz-base/uploader",
305    "args": [
306      "/workspace/targets.list.address",
307      "test_url"
308    ]
309  },
310  {
311    "name": "gcr.io/cloud-builders/curl",
312    "args": [
313      "-H",
314      "Content-Type: text/plain",
315      "-X",
316      "PUT",
317      "-d",
318      "test-project-address-202001010000.zip",
319      "test_url"
320    ]
321  },
322  {
323    "name": "gcr.io/oss-fuzz/test-project",
324    "args": [
325      "bash",
326      "-c",
327      "rm -r /workspace/out/address"
328    ]
329  }
330]
331