[i386] Use different bucket for i386 builds. (#2435)

This commit is contained in:
jonathanmetzman 2019-05-17 12:47:11 -07:00 committed by GitHub
parent 9dd5af0b01
commit bdd9519f44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 13 deletions

View File

@ -76,7 +76,6 @@ DEFAULT_SANITIZERS = ['address', 'undefined']
TARGETS_LIST_BASENAME = 'targets.list'
UPLOAD_URL_FORMAT = '/{0}/{1}/{2}'
NON_X86_64_UPLOAD_URL_FORMAT = '/{0}/{1}/{2}/{3}'
def usage():
@ -218,18 +217,12 @@ def get_build_steps(project_dir):
zip_file = stamped_name + '.zip'
stamped_srcmap_file = stamped_name + '.srcmap.json'
bucket = ENGINE_INFO[fuzzing_engine].upload_bucket
if architecture == 'x86_64':
upload_url = get_signed_url(
UPLOAD_URL_FORMAT.format(bucket, name, zip_file))
srcmap_url = get_signed_url(
UPLOAD_URL_FORMAT.format(bucket, name, stamped_srcmap_file))
else:
upload_url = get_signed_url(
NON_X86_64_UPLOAD_URL_FORMAT.format(bucket, name, architecture,
zip_file))
srcmap_url = get_signed_url(
NON_X86_64_UPLOAD_URL_FORMAT.format(bucket, name, architecture,
stamped_srcmap_file))
if architecture != 'x86_64':
bucket += '-' + architecture
upload_url = get_signed_url(
UPLOAD_URL_FORMAT.format(bucket, name, zip_file))
srcmap_url = get_signed_url(
UPLOAD_URL_FORMAT.format(bucket, name, stamped_srcmap_file))
targets_list_filename = get_targets_list_filename(sanitizer)
targets_list_url = get_signed_url(