bug 1437577 - Upload symbols from try server builds to symbols.mozilla.org instead of symbols.stage.mozaws.net. r?peterbe
The symbol server recently gained the ability to upload symbols from try
to a different prefix in the symbols bucket. If we change the token stored
in the Taskcluster secret `project/releng/gecko/build/level-1/gecko-symbol-upload`
to one that has only "upload try symbols" permissions then we can upload
symbols from try server builds directly to symbols.mo.
MozReview-Commit-ID: HjQclKKXbA3
--- a/toolkit/crashreporter/tools/upload_symbols.py
+++ b/toolkit/crashreporter/tools/upload_symbols.py
@@ -87,20 +87,16 @@ def main():
else:
log.error('You must set the SYMBOL_SECRET or SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE '
'environment variables!')
return 1
# Allow overwriting of the upload url with an environmental variable
if 'SOCORRO_SYMBOL_UPLOAD_URL' in os.environ:
url = os.environ['SOCORRO_SYMBOL_UPLOAD_URL']
- elif os.environ.get('MOZ_SCM_LEVEL', '1') == '1':
- # Use the Tecken staging server for try uploads for now.
- # This will eventually be changed in bug 1138617.
- url = 'https://symbols.stage.mozaws.net/upload/'
else:
url = DEFAULT_URL
log.info('Uploading symbol file "{0}" to "{1}"'.format(args.zip, url))
for i, _ in enumerate(redo.retrier(attempts=MAX_RETRIES), start=1):
log.info('Attempt %d of %d...' % (i, MAX_RETRIES))
try: