Make sure that Telemetry console warnings/errors triggers automation failures
Categories
(Toolkit :: Telemetry, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox53 | --- | affected |
People
(Reporter: Dexter, Unassigned)
References
Details
(Whiteboard: [measurement:client])
Reporter | ||
Updated•8 years ago
|
Reporter | ||
Comment 1•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment 4•3 years ago
|
||
I was about to file a dupe of this, specifically:
When looking at bug 1659193 I noticed it had some JS errors in the console that looked unrelated to the thing we're investigating there, specifically: "Not a string" - without a stack or any other information.
It so happens I just got a pernosco recording of that intermittent and so it was rather easy to work out what was triggering those errors. It turned out they come from https://searchfox.org/mozilla-central/rev/8d108a59d067ce37671090b0b1972ee8adfb7196/toolkit/components/telemetry/core/TelemetryHistogram.cpp#2189 where adding a keyed histogram with a non-string key throws an error. But the error has no meaningful information and the console error object created doesn't include stack info, so from just logs it's impossible to know what is causing the error.
I think on debug builds and/or when running automated tests (ie using xpc::IsInAutomation()), these things should assert. Then we'll get stacks and it'll be much easier to work out what is going wrong, and we can ensure we don't hit these error conditions in automated tests, which will help ensure our telemetry etc. works the way it's expected to.
Alessio, I don't suppose you have time to work on this...? (I'd set a needinfo but you've got them blocked...)
Reporter | ||
Comment 5•3 years ago
|
||
Redirecting to Chris, as sadly I can't work on this right now :(
Comment 6•3 years ago
|
||
Hooooo, okay.
I suppose we could, in LogToBrowserConsole
add a quick
if (aLogLevel == nsIScriptError::Error && xpc::IsInAutomation()) {
MOZ_ASSERT(false, aMsg);
}
But I don't know what the ramifications would be at this point in Telemetry's maturity. I guess we could pick a day a little ways from a merge day and see what previously-successful tests intermittently or perma fail on CI. I don't think I'll have the time to work on this in a helpful timeframe, though.
Updated•2 years ago
|
Description
•