Closed
Bug 648749
Opened 14 years ago
Closed 14 years ago
Talos should capture error console output in the logs
Categories
(Testing :: Talos, defect)
Testing
Talos
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ecfbugzilla, Assigned: ecfbugzilla)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
anodelman
:
review+
|
Details | Diff | Splinter Review |
I can see that Download Statusbar performance testing results on OS X are unrealistically low - around 20ms slowdown both on March 26th and April 2nd. On other platforms the same extension adds 70-80ms to the startup time. The suspicion is that the extension was broken during testing and didn't actually do anything. Yet the log looks perfectly normal. To help investigate such cases (and also the cases where an extension is abnormally slow on some platform) Talos needs to capture error console output in addition to dump() calls.
Updated•14 years ago
|
Blocks: AddonSlowStartup
Comment 1•14 years ago
|
||
Talos captures all console output - the basic command for running the browser is something like 'firefox.exe > log.txt'. We are already capturing everything that there is to see.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Assignee | ||
Comment 2•14 years ago
|
||
Reopening - I was talking about Error Console (formerly JavaScript Console). In other words, JavaScript errors and various browser warnings need to be captured, this would in particular help verify that the test is valid.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 3•14 years ago
|
||
Asked around, and this is how mozmill handles the problem:
https://github.com/ahal/mozmill/blob/consoleReporting/mozmill/mozmill/extension/resource/modules/frame.js#L449
Assignee | ||
Comment 4•14 years ago
|
||
Yes, registering an nsIConsoleListener instance and calling dump() for all the messages reported should be the way to go. Unfortunately, this won't be possible without having some minimal extension installed to do the job.
Assignee | ||
Comment 5•14 years ago
|
||
Obviously, installing an extension to capture the errors isn't the ideal course of action - this extension itself might skew the results. Then again, only the messages during startup are interesting. So getting the list of messages from the console service in startup_test.html and tspaint_test.html should be sufficient.
Assignee: nobody → trev.moz
Status: REOPENED → ASSIGNED
Attachment #526852 -
Flags: review?(anodelman)
Comment 6•14 years ago
|
||
I'll get this into talos staging and see how it goes.
Comment 7•14 years ago
|
||
I believe that the placement of the extra dump lines will affect our reported ts_shutdown numbers, as the the browser will have to complete the dump before it can continue shutting down. We'll want to dump this info before we collect our pre-shutdown timestamp and close the browser.
Assignee | ||
Comment 8•14 years ago
|
||
New patch, this time without skewing ts_shutdown results. Making window closing asynchronous isn't strictly necessary but I noticed that closing the browser synchronously in the load event skews the results considerably - for a synchronous close I see 200ms for ts_shutdown, with an asynchronous close I get only 175ms. I guess that this is because the browser isn't quite finished starting up when the load event fires so ts_shutdown right now ends up measuring some of the delayed startup overhead.
I had to get rid of document.write() - in the load event it will replace the current document which will clear the window's scope and break code executing asynchronously. Changing document.body.textContent will show the text without causing further reaching effects.
Attachment #526852 -
Attachment is obsolete: true
Attachment #526852 -
Flags: review?(anodelman)
Attachment #527230 -
Flags: review?(anodelman)
Comment 9•14 years ago
|
||
Will be testing new patch on staging this week.
Comment 10•14 years ago
|
||
The patch is green on all platforms. I'm confident that it will not break the ts/tpaint tests. It should be rolled out in an appropriate downtime as there could be number wobble.
Updated•14 years ago
|
Attachment #527230 -
Flags: review?(anodelman) → review+
Comment 11•14 years ago
|
||
Comment on attachment 527230 [details] [diff] [review]
[checked in]Patch v2
changeset: 233:025a27bd2cd8
Attachment #527230 -
Attachment description: Patch v2 → [checked in]Patch v2
Comment 12•14 years ago
|
||
Deployed.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•