Skip to content

Commit

Permalink
[infra] Skip code coverage job for gofuzz projects (#2714).
Browse files Browse the repository at this point in the history
  • Loading branch information
Dor1s committed Sep 9, 2019
1 parent 8b7ac94 commit 4eb45a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions infra/gcb/build_and_run_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
# Link where to upload code coverage report files to.
UPLOAD_URL_FORMAT = 'gs://' + COVERAGE_BUCKET_NAME + '/{project}/{type}/{date}'

# TODO(#2817): gofuzz projects to skip code coverage job for.
GO_FUZZ_PROJECTS = ['golang', 'syzkaller']


def skip_build(message):
"""Exit with 0 code not to mark code coverage job as failed."""
Expand All @@ -66,6 +69,10 @@ def get_build_steps(project_dir):
if project_yaml['disabled']:
skip_build('Project "%s" is disabled.' % project_name)

if project_name in GO_FUZZ_PROJECTS:
skip_build('Project "%s" uses gofuzz, coverage is not supported yet.' %
project_name)

fuzz_targets = get_targets_list(project_name)
if not fuzz_targets:
skip_build('No fuzz targets found for project "%s".' % project_name)
Expand Down

0 comments on commit 4eb45a8

Please sign in to comment.