1[ 2 { 3 "args": [ 4 "clone", 5 "https://github.com/google/oss-fuzz.git", 6 "--depth", 7 "1" 8 ], 9 "name": "gcr.io/cloud-builders/git" 10 }, 11 { 12 "name": "gcr.io/cloud-builders/docker", 13 "args": [ 14 "build", 15 "-t", 16 "gcr.io/oss-fuzz/test-project", 17 "." 18 ], 19 "dir": "oss-fuzz/projects/test-project" 20 }, 21 { 22 "name": "gcr.io/oss-fuzz/test-project", 23 "args": [ 24 "bash", 25 "-c", 26 "srcmap > /workspace/srcmap.json && cat /workspace/srcmap.json" 27 ], 28 "env": [ 29 "OSSFUZZ_REVISION=$REVISION_ID", 30 "FUZZING_LANGUAGE=c++" 31 ], 32 "id": "srcmap" 33 }, 34 { 35 "name": "gcr.io/oss-fuzz/test-project", 36 "env": [ 37 "ARCHITECTURE=x86_64", 38 "FUZZING_ENGINE=afl", 39 "FUZZING_LANGUAGE=c++", 40 "HOME=/root", 41 "OUT=/workspace/out/afl-address-x86_64", 42 "SANITIZER=address" 43 ], 44 "args": [ 45 "bash", 46 "-c", 47 "rm -r /out && cd /src && cd /src && mkdir -p /workspace/out/afl-address-x86_64 && 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)" 48 ], 49 "id": "compile-afl-address-x86_64" 50 }, 51 { 52 "name": "gcr.io/oss-fuzz-base/base-runner", 53 "env": [ 54 "ARCHITECTURE=x86_64", 55 "FUZZING_ENGINE=afl", 56 "FUZZING_LANGUAGE=c++", 57 "HOME=/root", 58 "OUT=/workspace/out/afl-address-x86_64", 59 "SANITIZER=address" 60 ], 61 "args": [ 62 "bash", 63 "-c", 64 "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)" 65 ], 66 "id": "build-check-afl-address-x86_64" 67 }, 68 { 69 "name": "gcr.io/oss-fuzz-base/base-runner", 70 "env": [ 71 "ARCHITECTURE=x86_64", 72 "FUZZING_ENGINE=afl", 73 "FUZZING_LANGUAGE=c++", 74 "HOME=/root", 75 "OUT=/workspace/out/afl-address-x86_64", 76 "SANITIZER=address" 77 ], 78 "args": [ 79 "bash", 80 "-c", 81 "targets_list > /workspace/targets.list.address" 82 ] 83 }, 84 { 85 "name": "gcr.io/oss-fuzz/test-project", 86 "args": [ 87 "bash", 88 "-c", 89 "cd /workspace/out/afl-address-x86_64 && zip -r test-project-address-202001010000.zip *" 90 ] 91 }, 92 { 93 "name": "gcr.io/oss-fuzz-base/uploader", 94 "args": [ 95 "/workspace/srcmap.json", 96 "test_url" 97 ] 98 }, 99 { 100 "name": "gcr.io/oss-fuzz-base/uploader", 101 "args": [ 102 "/workspace/out/afl-address-x86_64/test-project-address-202001010000.zip", 103 "test_url" 104 ] 105 }, 106 { 107 "name": "gcr.io/oss-fuzz-base/uploader", 108 "args": [ 109 "/workspace/targets.list.address", 110 "test_url" 111 ] 112 }, 113 { 114 "name": "gcr.io/cloud-builders/curl", 115 "args": [ 116 "-H", 117 "Content-Type: text/plain", 118 "-X", 119 "PUT", 120 "-d", 121 "test-project-address-202001010000.zip", 122 "test_url" 123 ] 124 }, 125 { 126 "name": "gcr.io/oss-fuzz/test-project", 127 "args": [ 128 "bash", 129 "-c", 130 "rm -r /workspace/out/afl-address-x86_64" 131 ] 132 }, 133 { 134 "name": "gcr.io/oss-fuzz/test-project", 135 "env": [ 136 "ARCHITECTURE=x86_64", 137 "FUZZING_ENGINE=honggfuzz", 138 "FUZZING_LANGUAGE=c++", 139 "HOME=/root", 140 "OUT=/workspace/out/honggfuzz-address-x86_64", 141 "SANITIZER=address" 142 ], 143 "args": [ 144 "bash", 145 "-c", 146 "rm -r /out && cd /src && cd /src && mkdir -p /workspace/out/honggfuzz-address-x86_64 && 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)" 147 ], 148 "id": "compile-honggfuzz-address-x86_64" 149 }, 150 { 151 "name": "gcr.io/oss-fuzz-base/base-runner", 152 "env": [ 153 "ARCHITECTURE=x86_64", 154 "FUZZING_ENGINE=honggfuzz", 155 "FUZZING_LANGUAGE=c++", 156 "HOME=/root", 157 "OUT=/workspace/out/honggfuzz-address-x86_64", 158 "SANITIZER=address" 159 ], 160 "args": [ 161 "bash", 162 "-c", 163 "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)" 164 ], 165 "id": "build-check-honggfuzz-address-x86_64" 166 }, 167 { 168 "name": "gcr.io/oss-fuzz-base/base-runner", 169 "env": [ 170 "ARCHITECTURE=x86_64", 171 "FUZZING_ENGINE=honggfuzz", 172 "FUZZING_LANGUAGE=c++", 173 "HOME=/root", 174 "OUT=/workspace/out/honggfuzz-address-x86_64", 175 "SANITIZER=address" 176 ], 177 "args": [ 178 "bash", 179 "-c", 180 "targets_list > /workspace/targets.list.address" 181 ] 182 }, 183 { 184 "name": "gcr.io/oss-fuzz/test-project", 185 "args": [ 186 "bash", 187 "-c", 188 "cd /workspace/out/honggfuzz-address-x86_64 && zip -r test-project-address-202001010000.zip *" 189 ] 190 }, 191 { 192 "name": "gcr.io/oss-fuzz-base/uploader", 193 "args": [ 194 "/workspace/srcmap.json", 195 "test_url" 196 ] 197 }, 198 { 199 "name": "gcr.io/oss-fuzz-base/uploader", 200 "args": [ 201 "/workspace/out/honggfuzz-address-x86_64/test-project-address-202001010000.zip", 202 "test_url" 203 ] 204 }, 205 { 206 "name": "gcr.io/oss-fuzz-base/uploader", 207 "args": [ 208 "/workspace/targets.list.address", 209 "test_url" 210 ] 211 }, 212 { 213 "name": "gcr.io/cloud-builders/curl", 214 "args": [ 215 "-H", 216 "Content-Type: text/plain", 217 "-X", 218 "PUT", 219 "-d", 220 "test-project-address-202001010000.zip", 221 "test_url" 222 ] 223 }, 224 { 225 "name": "gcr.io/oss-fuzz/test-project", 226 "args": [ 227 "bash", 228 "-c", 229 "rm -r /workspace/out/honggfuzz-address-x86_64" 230 ] 231 }, 232 { 233 "name": "gcr.io/oss-fuzz/test-project", 234 "env": [ 235 "ARCHITECTURE=x86_64", 236 "FUZZING_ENGINE=libfuzzer", 237 "FUZZING_LANGUAGE=c++", 238 "HOME=/root", 239 "OUT=/workspace/out/libfuzzer-address-x86_64", 240 "SANITIZER=address" 241 ], 242 "args": [ 243 "bash", 244 "-c", 245 "rm -r /out && cd /src && cd /src && mkdir -p /workspace/out/libfuzzer-address-x86_64 && 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)" 246 ], 247 "id": "compile-libfuzzer-address-x86_64" 248 }, 249 { 250 "name": "gcr.io/oss-fuzz-base/base-runner", 251 "env": [ 252 "ARCHITECTURE=x86_64", 253 "FUZZING_ENGINE=libfuzzer", 254 "FUZZING_LANGUAGE=c++", 255 "HOME=/root", 256 "OUT=/workspace/out/libfuzzer-address-x86_64", 257 "SANITIZER=address" 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 libfuzzer --architecture x86_64 test-project\npython infra/helper.py check_build --sanitizer address --engine libfuzzer --architecture x86_64 test-project\n********************************************************************************\" && false)" 263 ], 264 "id": "build-check-libfuzzer-address-x86_64" 265 }, 266 { 267 "name": "gcr.io/oss-fuzz-base/base-runner", 268 "env": [ 269 "ARCHITECTURE=x86_64", 270 "FUZZING_ENGINE=libfuzzer", 271 "FUZZING_LANGUAGE=c++", 272 "HOME=/root", 273 "OUT=/workspace/out/libfuzzer-address-x86_64", 274 "SANITIZER=address" 275 ], 276 "args": [ 277 "bash", 278 "-c", 279 "targets_list > /workspace/targets.list.address" 280 ] 281 }, 282 { 283 "name": "gcr.io/oss-fuzz/test-project", 284 "args": [ 285 "bash", 286 "-c", 287 "cd /workspace/out/libfuzzer-address-x86_64 && zip -r test-project-address-202001010000.zip *" 288 ] 289 }, 290 { 291 "name": "gcr.io/oss-fuzz-base/uploader", 292 "args": [ 293 "/workspace/srcmap.json", 294 "test_url" 295 ] 296 }, 297 { 298 "name": "gcr.io/oss-fuzz-base/uploader", 299 "args": [ 300 "/workspace/out/libfuzzer-address-x86_64/test-project-address-202001010000.zip", 301 "test_url" 302 ] 303 }, 304 { 305 "name": "gcr.io/oss-fuzz-base/uploader", 306 "args": [ 307 "/workspace/targets.list.address", 308 "test_url" 309 ] 310 }, 311 { 312 "name": "gcr.io/cloud-builders/curl", 313 "args": [ 314 "-H", 315 "Content-Type: text/plain", 316 "-X", 317 "PUT", 318 "-d", 319 "test-project-address-202001010000.zip", 320 "test_url" 321 ] 322 }, 323 { 324 "name": "gcr.io/oss-fuzz/test-project", 325 "args": [ 326 "bash", 327 "-c", 328 "rm -r /workspace/out/libfuzzer-address-x86_64" 329 ] 330 }, 331 { 332 "name": "gcr.io/oss-fuzz/test-project", 333 "env": [ 334 "ARCHITECTURE=i386", 335 "FUZZING_ENGINE=libfuzzer", 336 "FUZZING_LANGUAGE=c++", 337 "HOME=/root", 338 "OUT=/workspace/out/libfuzzer-address-i386", 339 "SANITIZER=address" 340 ], 341 "args": [ 342 "bash", 343 "-c", 344 "rm -r /out && cd /src && cd /src && mkdir -p /workspace/out/libfuzzer-address-i386 && 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 i386 test-project\n********************************************************************************\" && false)" 345 ], 346 "id": "compile-libfuzzer-address-i386" 347 }, 348 { 349 "name": "gcr.io/oss-fuzz-base/base-runner", 350 "env": [ 351 "ARCHITECTURE=i386", 352 "FUZZING_ENGINE=libfuzzer", 353 "FUZZING_LANGUAGE=c++", 354 "HOME=/root", 355 "OUT=/workspace/out/libfuzzer-address-i386", 356 "SANITIZER=address" 357 ], 358 "args": [ 359 "bash", 360 "-c", 361 "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 i386 test-project\npython infra/helper.py check_build --sanitizer address --engine libfuzzer --architecture i386 test-project\n********************************************************************************\" && false)" 362 ], 363 "id": "build-check-libfuzzer-address-i386" 364 }, 365 { 366 "name": "gcr.io/oss-fuzz-base/base-runner", 367 "env": [ 368 "ARCHITECTURE=i386", 369 "FUZZING_ENGINE=libfuzzer", 370 "FUZZING_LANGUAGE=c++", 371 "HOME=/root", 372 "OUT=/workspace/out/libfuzzer-address-i386", 373 "SANITIZER=address" 374 ], 375 "args": [ 376 "bash", 377 "-c", 378 "targets_list > /workspace/targets.list.address" 379 ] 380 }, 381 { 382 "name": "gcr.io/oss-fuzz/test-project", 383 "args": [ 384 "bash", 385 "-c", 386 "cd /workspace/out/libfuzzer-address-i386 && zip -r test-project-address-202001010000.zip *" 387 ] 388 }, 389 { 390 "name": "gcr.io/oss-fuzz-base/uploader", 391 "args": [ 392 "/workspace/srcmap.json", 393 "test_url" 394 ] 395 }, 396 { 397 "name": "gcr.io/oss-fuzz-base/uploader", 398 "args": [ 399 "/workspace/out/libfuzzer-address-i386/test-project-address-202001010000.zip", 400 "test_url" 401 ] 402 }, 403 { 404 "name": "gcr.io/oss-fuzz-base/uploader", 405 "args": [ 406 "/workspace/targets.list.address", 407 "test_url" 408 ] 409 }, 410 { 411 "name": "gcr.io/cloud-builders/curl", 412 "args": [ 413 "-H", 414 "Content-Type: text/plain", 415 "-X", 416 "PUT", 417 "-d", 418 "test-project-address-202001010000.zip", 419 "test_url" 420 ] 421 }, 422 { 423 "name": "gcr.io/oss-fuzz/test-project", 424 "args": [ 425 "bash", 426 "-c", 427 "rm -r /workspace/out/libfuzzer-address-i386" 428 ] 429 }, 430 { 431 "name": "gcr.io/oss-fuzz/test-project", 432 "env": [ 433 "ARCHITECTURE=x86_64", 434 "FUZZING_ENGINE=libfuzzer", 435 "FUZZING_LANGUAGE=c++", 436 "HOME=/root", 437 "OUT=/workspace/out/libfuzzer-memory-x86_64", 438 "SANITIZER=memory" 439 ], 440 "args": [ 441 "bash", 442 "-c", 443 "rm -r /out && cd /src && cd /src && mkdir -p /workspace/out/libfuzzer-memory-x86_64 && compile || (echo \"********************************************************************************\nFailed to build.\nTo reproduce, run:\npython infra/helper.py build_image test-project\npython infra/helper.py build_fuzzers --sanitizer memory --engine libfuzzer --architecture x86_64 test-project\n********************************************************************************\" && false)" 444 ], 445 "id": "compile-libfuzzer-memory-x86_64" 446 }, 447 { 448 "name": "gcr.io/oss-fuzz-base/base-runner", 449 "env": [ 450 "ARCHITECTURE=x86_64", 451 "FUZZING_ENGINE=libfuzzer", 452 "FUZZING_LANGUAGE=c++", 453 "HOME=/root", 454 "OUT=/workspace/out/libfuzzer-memory-x86_64", 455 "SANITIZER=memory" 456 ], 457 "args": [ 458 "bash", 459 "-c", 460 "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 memory --engine libfuzzer --architecture x86_64 test-project\npython infra/helper.py check_build --sanitizer memory --engine libfuzzer --architecture x86_64 test-project\n********************************************************************************\" && false)" 461 ], 462 "id": "build-check-libfuzzer-memory-x86_64" 463 }, 464 { 465 "name": "gcr.io/oss-fuzz-base/base-runner", 466 "env": [ 467 "ARCHITECTURE=x86_64", 468 "FUZZING_ENGINE=libfuzzer", 469 "FUZZING_LANGUAGE=c++", 470 "HOME=/root", 471 "OUT=/workspace/out/libfuzzer-memory-x86_64", 472 "SANITIZER=memory" 473 ], 474 "args": [ 475 "bash", 476 "-c", 477 "targets_list > /workspace/targets.list.memory" 478 ] 479 }, 480 { 481 "name": "gcr.io/oss-fuzz/test-project", 482 "args": [ 483 "bash", 484 "-c", 485 "cd /workspace/out/libfuzzer-memory-x86_64 && zip -r test-project-memory-202001010000.zip *" 486 ] 487 }, 488 { 489 "name": "gcr.io/oss-fuzz-base/uploader", 490 "args": [ 491 "/workspace/srcmap.json", 492 "test_url" 493 ] 494 }, 495 { 496 "name": "gcr.io/oss-fuzz-base/uploader", 497 "args": [ 498 "/workspace/out/libfuzzer-memory-x86_64/test-project-memory-202001010000.zip", 499 "test_url" 500 ] 501 }, 502 { 503 "name": "gcr.io/oss-fuzz-base/uploader", 504 "args": [ 505 "/workspace/targets.list.memory", 506 "test_url" 507 ] 508 }, 509 { 510 "name": "gcr.io/cloud-builders/curl", 511 "args": [ 512 "-H", 513 "Content-Type: text/plain", 514 "-X", 515 "PUT", 516 "-d", 517 "test-project-memory-202001010000.zip", 518 "test_url" 519 ] 520 }, 521 { 522 "name": "gcr.io/oss-fuzz/test-project", 523 "args": [ 524 "bash", 525 "-c", 526 "rm -r /workspace/out/libfuzzer-memory-x86_64" 527 ] 528 }, 529 { 530 "name": "gcr.io/oss-fuzz/test-project", 531 "env": [ 532 "ARCHITECTURE=x86_64", 533 "FUZZING_ENGINE=libfuzzer", 534 "FUZZING_LANGUAGE=c++", 535 "HOME=/root", 536 "OUT=/workspace/out/libfuzzer-undefined-x86_64", 537 "SANITIZER=undefined" 538 ], 539 "args": [ 540 "bash", 541 "-c", 542 "rm -r /out && cd /src && cd /src && mkdir -p /workspace/out/libfuzzer-undefined-x86_64 && compile || (echo \"********************************************************************************\nFailed to build.\nTo reproduce, run:\npython infra/helper.py build_image test-project\npython infra/helper.py build_fuzzers --sanitizer undefined --engine libfuzzer --architecture x86_64 test-project\n********************************************************************************\" && false)" 543 ], 544 "id": "compile-libfuzzer-undefined-x86_64" 545 }, 546 { 547 "name": "gcr.io/oss-fuzz-base/base-runner", 548 "env": [ 549 "ARCHITECTURE=x86_64", 550 "FUZZING_ENGINE=libfuzzer", 551 "FUZZING_LANGUAGE=c++", 552 "HOME=/root", 553 "OUT=/workspace/out/libfuzzer-undefined-x86_64", 554 "SANITIZER=undefined" 555 ], 556 "args": [ 557 "bash", 558 "-c", 559 "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 undefined --engine libfuzzer --architecture x86_64 test-project\npython infra/helper.py check_build --sanitizer undefined --engine libfuzzer --architecture x86_64 test-project\n********************************************************************************\" && false)" 560 ], 561 "id": "build-check-libfuzzer-undefined-x86_64" 562 }, 563 { 564 "name": "gcr.io/oss-fuzz-base/base-runner", 565 "env": [ 566 "ARCHITECTURE=x86_64", 567 "FUZZING_ENGINE=libfuzzer", 568 "FUZZING_LANGUAGE=c++", 569 "HOME=/root", 570 "OUT=/workspace/out/libfuzzer-undefined-x86_64", 571 "SANITIZER=undefined" 572 ], 573 "args": [ 574 "bash", 575 "-c", 576 "targets_list > /workspace/targets.list.undefined" 577 ] 578 }, 579 { 580 "name": "gcr.io/oss-fuzz/test-project", 581 "args": [ 582 "bash", 583 "-c", 584 "cd /workspace/out/libfuzzer-undefined-x86_64 && zip -r test-project-undefined-202001010000.zip *" 585 ] 586 }, 587 { 588 "name": "gcr.io/oss-fuzz-base/uploader", 589 "args": [ 590 "/workspace/srcmap.json", 591 "test_url" 592 ] 593 }, 594 { 595 "name": "gcr.io/oss-fuzz-base/uploader", 596 "args": [ 597 "/workspace/out/libfuzzer-undefined-x86_64/test-project-undefined-202001010000.zip", 598 "test_url" 599 ] 600 }, 601 { 602 "name": "gcr.io/oss-fuzz-base/uploader", 603 "args": [ 604 "/workspace/targets.list.undefined", 605 "test_url" 606 ] 607 }, 608 { 609 "name": "gcr.io/cloud-builders/curl", 610 "args": [ 611 "-H", 612 "Content-Type: text/plain", 613 "-X", 614 "PUT", 615 "-d", 616 "test-project-undefined-202001010000.zip", 617 "test_url" 618 ] 619 }, 620 { 621 "name": "gcr.io/oss-fuzz/test-project", 622 "args": [ 623 "bash", 624 "-c", 625 "rm -r /workspace/out/libfuzzer-undefined-x86_64" 626 ] 627 } 628] 629