Closed
Bug 996037
Opened 11 years ago
Closed 10 years ago
Telemetry experiments: Improve error messages for addon install failures
Categories
(Firefox Health Report Graveyard :: Client: Desktop, defect, P5)
Firefox Health Report Graveyard
Client: Desktop
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: gfritzsche, Unassigned)
Details
Addon install failures are too cryptic in our logging, e.g.:
> ExperimentEntry #0::_installAddon() - AddonInstall onDownloadFailed for tile-switcher@experiments.mozilla.org, state=4, error=-2
We should at least give that one (STATE_DOWNLOAD_FAILED, ERROR_INCORRECT_HASH) a more descriptive message, if not all.
Otherwise QA and experiment writers can lose a lot of time on this.
Reporter | ||
Comment 1•11 years ago
|
||
Blair, do we have functionality anywhere to stringify those error codes? Or am i overlooking some error message property?
I'd love to not re-list them for more descript error messages than "state=4, error-2".
Flags: firefox-backlog?
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(bmcbride)
Updated•11 years ago
|
Flags: firefox-backlog? → firefox-backlog-
Comment 2•11 years ago
|
||
Hmm, no, there isn't. Good point. Best way forward is probably to just change the constants on the AddonManager object from numericals to more useful strings.
Only obvious downside of that is any add-on doing the obviously bad thing of hard-coding the constant value instead of using the constant name.... I don't specifically remember seeing any add-on doing that though (I've looked through the code of add-ons using AddonManager APIs numerous times before).
This should cover it:
http://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/AddonManager.jsm#2360,2362,2364,2366,2368,2370,2372,2374,2376,2381,2383,2385,2387,2391,2393,2395,2397,2399,2401,2403
Bonus points if, instead of updating the values in AddonUpdateChecker.jsm, you update that file to directly use the constants from the AddonManager object.
Flags: needinfo?(bmcbride)
Comment 3•11 years ago
|
||
I'm not sure that the risk associated with changing the API constants is worth the reward here. Also, low-priority in general. Make it a mentored bug if you can describe in some detail what should actually be changed here.
Priority: -- → P5
Reporter | ||
Comment 4•10 years ago
|
||
This doesn't seem very important and nothing happened here in a while, lets be realistic and close it.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Comment 5•10 years ago
|
||
> This doesn't seem very important and nothing happened here in a while, lets
> be realistic and close it.
Is this the correct piece of code [1] that defines the state and error codes? I'll just add these definitions into the telemetry experiment wiki to help out the SV team that's taking over QAing.
[1] https://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/AddonManager.jsm#2930
Flags: needinfo?(gfritzsche)
Reporter | ||
Comment 6•10 years ago
|
||
Yes, that looks right. Might be enough to link it for future reference to avoid outdating.
Flags: needinfo?(gfritzsche)
Comment 7•10 years ago
|
||
Thanks! Created a quick document [1] and also linked it to the main page [2].
[1] https://wiki.mozilla.org/QA/Telemetry/State%26ErrorCodes#State_and_Error_Codes
[2] https://wiki.mozilla.org/QA/Telemetry#Telemetry_Experiments.2FFHR_Documentation
Updated•7 years ago
|
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•