Skip to content

Commit

Permalink
Bug 1863769 - Try to improve diagnostics for AAB upload (#254)
Browse files Browse the repository at this point in the history
* Bug 1863769 - Try to improve diagnostics for AAB upload

* bump version
  • Loading branch information
gbrownmozilla authored Nov 8, 2023
1 parent 4ad8902 commit aba32a2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [6.3.0] - 2023-11-08

### Removed
* Amazon Store support

### Fixed
* Better diagnostics during AAB upload

## [6.2.1] - 2023-09-21

### Fixed
Expand Down
26 changes: 18 additions & 8 deletions mozapkpublisher/common/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,26 @@ def upload_apk(self, apk):
raise

def upload_aab(self, aab):
# try to get extra network diagnostics during upload
debuglevel = httplib2.debuglevel
httplib2.debuglevel = 4

aab_path = aab.name
logger.info('Uploading "{}" ...'.format(aab_path))
response = self._edit_resource.bundles().upload(
editId=self._edit_id,
packageName=self._package_name,
media_body=aab_path,
media_mime_type='application/octet-stream',
).execute()
logger.info('"{}" uploaded'.format(aab_path))
logger.debug('Upload response: {}'.format(response))
try:
response = self._edit_resource.bundles().upload(
editId=self._edit_id,
packageName=self._package_name,
media_body=aab_path,
media_mime_type='application/octet-stream',
).execute()
logger.info('"{}" uploaded'.format(aab_path))
logger.debug('Upload response: {}'.format(response))
except Exception:
logger.exception("caught exception in upload_aab:")
raise
finally:
httplib2.debuglevel = debuglevel

def _update_track(self, track, version_codes, rollout_percentage=None):
if track == 'rollout' and rollout_percentage is None:
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.1
6.3.0

0 comments on commit aba32a2

Please sign in to comment.