[infra] Remove builds status hack to work around container build bug

This commit is contained in:
Oliver Chang 2017-10-30 11:15:51 +11:00 committed by GitHub
parent 3f96f6841f
commit 4670c7424d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 14 deletions

View File

@ -64,20 +64,7 @@ def upload_status(successes, failures):
def is_build_successful(build):
if build['status'] == 'SUCCESS':
return True
build_id = build['id']
logging_client = logging.Client(project='oss-fuzz')
entries = logging_client.list_entries(
order_by=logging.DESCENDING,
page_size=4,
filter_=(
'resource.type="build" AND '
'resource.labels.build_id="{0}"'.format(build_id)))
entries = next(entries.pages)
return any(entry.payload == 'DONE' for entry in entries)
return build['status'] == 'SUCCESS'
def find_last_build(builds):