TypeError: not all arguments converted during string formatting in post_upload.py

RESOLVED FIXED

Status

RESOLVED FIXED
4 years ago
3 years ago

People

(Reporter: nalexander, Assigned: catlee)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

There's a string conversion error at

http://hg.mozilla.org/build/tools/annotate/6f4b1a4665e2/stage/post_upload.py#l67

that's biting me at:

http://ftp.mozilla.org/pub/mozilla.org/mobile/tinderbox-builds/mozilla-central-l10n/mozilla-central-android-api-11-l10n_5-unknown-bm71-build1-build0.txt.gz

Log looks like:

05:59:11    ERROR - /builds/slave/m-cen-and-api-11-l10n_5-000000/build/mozilla-central/obj-l10n/_virtualenv/bin/python /builds/slave/m-cen-and-api-11-l10n_5-000000/build/mozilla-central/build/upload.py --base-path ../../../dist \
05:59:11    ERROR - 	'../../../dist/fennec-38.0a1.vi.android-arm.apk'              ../../../dist/gecko-unsigned-unaligned.apk           \
05:59:11    ERROR - 	'../../../dist//fennec-38.0a1.vi.android-arm.checksums' '../../../dist//fennec-38.0a1.vi.android-arm.checksums'.asc
05:59:11    ERROR - sys.argv: ['/usr/local/bin/post_upload.py', '-b', 'mozilla-central-android-api-11-l10n', '-p', 'mobile', '-i', '20150120030203', '--release-to-latest', '--release-to-dated', '/tmp/tmp.N5RstMz8aa/', '/tmp/tmp.N5RstMz8aa//fennec-38.0a1.vi.android-arm.apk', '/tmp/tmp.N5RstMz8aa//gecko-unsigned-unaligned.apk', '/tmp/tmp.N5RstMz8aa//fennec-38.0a1.vi.android-arm.checksums', '/tmp/tmp.N5RstMz8aa//fennec-38.0a1.vi.android-arm.checksums.asc']
05:59:11    ERROR - Traceback (most recent call last):
05:59:11    ERROR -   File "/usr/local/bin/post_upload.py", line 539, in <module>
05:59:11    ERROR -     func(options, upload_dir, files)
05:59:11    ERROR -   File "/usr/local/bin/post_upload.py", line 202, in ReleaseToLatest
05:59:11    ERROR -     CopyFileToDir(f, upload_dir, latestPath)
05:59:11    ERROR -   File "/usr/local/bin/post_upload.py", line 92, in CopyFileToDir
05:59:11    ERROR -     "another instance of post_upload.py" % new_file
05:59:11    ERROR - TypeError: not all arguments converted during string formatting
05:59:11    ERROR - sys.argv: ['/usr/local/bin/post_upload.py', '-b', 'mozilla-central-android-api-11-l10n', '-p', 'mobile', '-i', '20150120030203', '--release-to-latest', '--release-to-dated', '/tmp/tmp.N5RstMz8aa/', '/tmp/tmp.N5RstMz8aa//fennec-38.0a1.vi.android-arm.apk', '/tmp/tmp.N5RstMz8aa//gecko-unsigned-unaligned.apk', '/tmp/tmp.N5RstMz8aa//fennec-38.0a1.vi.android-arm.checksums', '/tmp/tmp.N5RstMz8aa//fennec-38.0a1.vi.android-arm.checksums.asc']
05:59:11    ERROR - http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/2015/01/2015-01-20-03-02-03-mozilla-central-android-api-11-l10n/fennec-38.0a1.vi.android-arm.apk
05:59:11    ERROR - http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/2015/01/2015-01-20-03-02-03-mozilla-central-android-api-11-l10n/gecko-unsigned-unaligned.apk
05:59:11    ERROR - http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/2015/01/2015-01-20-03-02-03-mozilla-central-android-api-11-l10n/fennec-38.0a1.vi.android-arm.checksums
05:59:11    ERROR - http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/2015/01/2015-01-20-03-02-03-mozilla-central-android-api-11-l10n/fennec-38.0a1.vi.android-arm.checksums.asc
05:59:11    ERROR - Uploading /builds/slave/m-cen-and-api-11-l10n_5-000000/build/mozilla-central/obj-l10n/dist/fennec-38.0a1.vi.android-arm.apk
05:59:11    ERROR - Uploading /builds/slave/m-cen-and-api-11-l10n_5-000000/build/mozilla-central/obj-l10n/dist/gecko-unsigned-unaligned.apk
05:59:11    ERROR - Uploading /builds/slave/m-cen-and-api-11-l10n_5-000000/build/mozilla-central/obj-l10n/dist/fennec-38.0a1.vi.android-arm.checksums
05:59:11    ERROR - Uploading /builds/slave/m-cen-and-api-11-l10n_5-000000/build/mozilla-central/obj-l10n/dist/fennec-38.0a1.vi.android-arm.checksums.asc
05:59:11    ERROR - Running post-upload command: post_upload.py -b mozilla-central-android-api-11-l10n -p mobile -i 20150120030203 --release-to-latest --release-to-dated
05:59:11    ERROR - Upload complete
(Assignee)

Comment 1

4 years ago
Created attachment 8553296 [details] [diff] [review]
fix string formatting
Attachment #8553296 - Flags: review?
(Assignee)

Updated

4 years ago
Assignee: nobody → catlee
Attachment #8553296 - Flags: review? → review+
(Assignee)

Updated

4 years ago
Attachment #8553296 - Flags: checked-in+
Landed in IT puppet: Committed revision 99441. Takes 30-60 mins to deploy.
(Assignee)

Updated

4 years ago
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
QA Contact: pmoore → mshal
You need to log in before you can comment on or make changes to this bug.