mirror of https://github.com/google/oss-fuzz.git
[infra] Remove builds status hack to work around container build bug
This commit is contained in:
parent
3f96f6841f
commit
4670c7424d
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue