Closed Bug 1206954 Opened 9 years ago Closed 9 years ago

Autophone - better handle failures to submit results to PhoneDash

Categories

(Testing Graveyard :: Autophone, defect)

defect
Not set
normal

Tracking

(firefox44 affected)

RESOLVED FIXED
Tracking Status
firefox44 --- affected

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(3 files, 1 obsolete file)

https://treeherder.mozilla.org/#/jobs?filter-searchStr=autophone&exclusion_profile=false&repo=mozilla-beta&revision=62eace42cee0 caused the nexus 5 device to submit requests to phonedash for webappstartup which failed due to 400 Bad Request and it appears the s1s2 tests may have been failing due to unable to run fennec exceptions but it is not clear if they would have given up or just continued retrying.

Not sure what is up, but filing this for later investigation.
print has no effect in webpy handlers. We need to use print >> web.webapi.debug.

Before:

192.168.1.50:33165 - - [22/Sep/2015 16:08:40] "HTTP/1.1 POST /api/s1s2/add/" - 400 Bad Request

After:

Request {u'productversion': u'', u'throbberstop': 5365.0, u'machineid': u'SCH-I535', u'testname': u'webappstartup', u'rejected': False, u'productname': u'org.mozilla.firefox_beta', u'cached': True, u'osver': u'4.0.4', u'throbberstart': 4064.0, u'starttime': 440.0, u'blddate': 1442860778, u'phoneid': u'samsung-gs3-3', u'bldtype': u'opt', u'revision': u'http://hg.mozilla.org/releases/mozilla-beta/rev/651a0b2fc204'}: productversion  is not clean
192.168.1.50:33165 - - [22/Sep/2015 16:08:40] "HTTP/1.1 POST /api/s1s2/add/" - 400 Bad Request
Attachment #8664542 - Flags: review?(mcote)
Yesterday the versioning of beta was fouled up which resulted in no version being reported. This totally broke Autophone. The problem was that the is clean check in the Phonedash handler considered an empty field to be unclean. While it isn't great that productversion was reported as empty, it should not have been rejected.
Attachment #8664545 - Flags: review?(mcote)
Attachment #8664545 - Attachment is obsolete: true
Attachment #8664545 - Flags: review?(mcote)
Attachment #8664547 - Flags: review?(mcote)
Don't raise an exception if we can't submit results to Phonedash.
Attachment #8664551 - Flags: review?(jmaher)
Comment on attachment 8664551 [details] [diff] [review]
bug-1206954-autophone.patch

Review of attachment 8664551 [details] [diff] [review]:
-----------------------------------------------------------------

how can we monitor these errors?  I assume the status would be emailed out or placed on a dashboard in the future?
Attachment #8664551 - Flags: review?(jmaher) → review+
They are currently mailed to the admins:

https://github.com/mozilla/autophone/blob/master/tests/perftest.py#L190

 I'll place you on the distribution list on the next deployment.
Comment on attachment 8664542 [details] [diff] [review]
Phonedash - bug-1206954-webapi.debug.patch

mcote is on pto.
Attachment #8664542 - Flags: review?(mcote) → review?(jmaher)
Attachment #8664547 - Flags: review?(mcote) → review?(jmaher)
Summary: Autophone - investigate Autophone failure to gracefully deal with Fennec build which could not run. → Autophone - better handle failures to submit results to PhoneDash
Attachment #8664542 - Flags: review?(jmaher) → review+
Comment on attachment 8664547 [details] [diff] [review]
Phonedash - bug-1206954-empty-is-clean.patch

Review of attachment 8664547 [details] [diff] [review]:
-----------------------------------------------------------------

cool!
Attachment #8664547 - Flags: review?(jmaher) → review+
https://github.com/mozilla/autophone/commit/8932b011e95e850c0cbf98f4e712399adfd50261
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Blocks: 1207836
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: