Closed
Bug 637103
Opened 14 years ago
Closed 13 years ago
automation.py.in: add a reminder when not taking new screenshots after first one
Categories
(Testing :: General, defect)
Testing
General
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla13
People
(Reporter: sgautherie, Assigned: samdgarrett)
References
Details
Attachments
(1 file, 3 obsolete files)
2.67 KB,
patch
|
karlt
:
review+
sgautherie
:
feedback+
|
Details | Diff | Splinter Review |
Bug 414049 comment 26:
{
Karl Tomlinson (:karlt) 2010-08-11 00:50:30 PDT
The screen is only dumped on the first timeout so as not to make
the logs unnecessarily large.
}
http://mxr.mozilla.org/comm-central/source/mozilla/build/automation.py.in#766
766 if self.UNIXISH and not debuggerInfo and not self.haveDumpedScreen and "TEST-UNEXPECTED-FAIL" in line and "Test timed out" in line:
767 self.dumpScreen(utilityPath)
I suggest to enhance this to something like
{
if ...:
if self.haveDumpedScreen:
self.log.info("not taking sreenshot here: see the one that was previously logged")
else:
self.dumpScreen(utilityPath)
}
so they don't wonder why there is no screenshot nor miss to check the (only) one that was taken.
Reporter | ||
Updated•14 years ago
|
Whiteboard: [good first bug]
Updated•13 years ago
|
Whiteboard: [good first bug][mentor=ctalbert] → [good first bug][mentor=ctalbert][lang=py]
Comment 1•13 years ago
|
||
Sam said he'd like to work on this.
Assignee: nobody → samdgarrett
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•13 years ago
|
||
I have changed the lines 750-754 to catch this bug and only dump one screenshot.
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #603018 -
Attachment is obsolete: true
Reporter | ||
Updated•13 years ago
|
Attachment #603028 -
Attachment is patch: true
Assignee | ||
Comment 4•13 years ago
|
||
Attachment #603028 -
Attachment is obsolete: true
Reporter | ||
Comment 5•13 years ago
|
||
Comment on attachment 603028 [details] [diff] [review]
Remind about multiple screenshots
Review of attachment 603028 [details] [diff] [review]:
-----------------------------------------------------------------
Just what I suggested in comment 0 ;-)
::: build/automation.py.in
@@ +800,5 @@
> + self.log.info("Not taking screenshot here: see the one that was previously logged")
> + else:
> + self.dumpScreen(utilityPath)
> + #if not debuggerInfo and not self.haveDumpedScreen and "TEST-UNEXPECTED-FAIL" in line and "Test timed out" in line:
> + #self.dumpScreen(utilityPath)
Remove these commented out lines.
Attachment #603028 -
Attachment is obsolete: false
Attachment #603028 -
Flags: feedback+
Reporter | ||
Updated•13 years ago
|
Attachment #603018 -
Attachment description: Handling double screenshot. → Remind about multiple screenshots
[Whole file]
Reporter | ||
Updated•13 years ago
|
Attachment #603028 -
Attachment description: Handling double screenshot. → Remind about multiple screenshots
Attachment #603028 -
Attachment is obsolete: true
Attachment #603028 -
Flags: feedback+
Reporter | ||
Updated•13 years ago
|
Attachment #603031 -
Attachment description: Handling double screenshot. → Remind about multiple screenshots
Attachment #603031 -
Flags: review?(karlt)
Attachment #603031 -
Flags: feedback+
Reporter | ||
Updated•13 years ago
|
Attachment #603031 -
Attachment is patch: true
Updated•13 years ago
|
Attachment #603031 -
Flags: review?(karlt) → review+
Reporter | ||
Comment 6•13 years ago
|
||
I hadn't noticed, but
738 def killAndGetStack(self, proc, utilityPath, debuggerInfo):
739 """Kill the process, preferrably in a way that gets us a stack trace."""
740 if not debuggerInfo and not self.haveDumpedScreen:
741 self.dumpScreen(utilityPath)
needs this too.
Flags: in-testsuite-
Hardware: x86 → All
Target Milestone: --- → mozilla13
Reporter | ||
Comment 7•13 years ago
|
||
Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Serge Gautherie (:sgautherie) from comment #6)
> I hadn't noticed, but
> 738 def killAndGetStack(self, proc, utilityPath, debuggerInfo):
> 739 """Kill the process, preferrably in a way that gets us a stack
> trace."""
> 740 if not debuggerInfo and not self.haveDumpedScreen:
> 741 self.dumpScreen(utilityPath)
> needs this too.
Do I need to add this to the patch or something?
Reporter | ||
Comment 9•13 years ago
|
||
(In reply to Sam Garrett from comment #8)
> Do I need to add this to the patch or something?
Yes please: no need to split this bug in two patches.
Assignee | ||
Comment 10•13 years ago
|
||
Including patch to killAndGetStack.
Reporter | ||
Updated•13 years ago
|
Attachment #603112 -
Flags: review?(karlt)
Attachment #603112 -
Flags: feedback+
Updated•13 years ago
|
Attachment #603112 -
Flags: review?(karlt) → review+
Reporter | ||
Updated•13 years ago
|
Attachment #603031 -
Attachment is obsolete: true
Reporter | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 11•13 years ago
|
||
Pushed to inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/3609fba2b721
Keywords: checkin-needed
Comment 12•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3609fba2b721
And fixed on trunk! Thank you :-)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•13 years ago
|
OS: Linux → All
Whiteboard: [good first bug][mentor=ctalbert][lang=py]
Reporter | ||
Comment 13•13 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1331292785.1331297387.23923.gz
WINNT 5.2 comm-central-trunk debug test mochitest-other on 2012/03/09 03:33:05
{
13144 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/suite/common/downloads/tests/test_ui_stays_open_on_alert_clickback.xul | Test timed out.
If you fixed bug 589668, you'd get a screenshot here
33466 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/toolkit/mozapps/downloads/tests/chrome/test_destinationURI_annotation.xul | Test timed out.
Not taking screenshot here: see the one that was previously logged
38214 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/widget/tests/test_bug429954.xul | Test timed out.
Not taking screenshot here: see the one that was previously logged
38245 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/widget/tests/test_bug517396.xul | Test timed out.
Not taking screenshot here: see the one that was previously logged
38246 ERROR TEST-UNEXPECTED-FAIL | (SimpleTest/TestRunner.js) | 4 test timeouts, giving up.
}
V.Fixed (for the non-kill case).
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•