Closed
Bug 775610
Opened 12 years ago
Closed 12 years ago
Talos tests should always fail if __FAIL is encountered
Categories
(Testing :: Talos, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kats, Assigned: jmaher)
References
Details
Attachments
(1 file)
913 bytes,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
See bug 775102. If the log for a talos test has both of the tokens __FAIL and __start_report, the test is considered to pass. I think this behaviour should be modified so that anytime the __FAIL token is found in the log, the test is automatically flagged as failing. This makes it easier to catch failures which might otherwise be ignored.
Comment 1•12 years ago
|
||
Do you happen to have a log handy where this occurs?
Comment 2•12 years ago
|
||
Most (all?) of the robocop-based Talos tests currently report: NOISE: __FAILchecking that painted surface loaded: painted surface loaded__FAIL yet most of those are green. One example: https://tbpl.mozilla.org/php/getParsedLog.php?id=13780257&tree=Mozilla-Inbound&full=1
Assignee | ||
Comment 3•12 years ago
|
||
interesting, we parse the results and only in the case of an exception do we look for fail. :jhammel, would you have any reservations to change this to look for fail first, then parse the results? i.e. change results.py: # parse the results try: self.parse() except utils.talosError: # see we can find a reason for the failure match = self.RESULTS_REGEX_FAIL.search(self.results_raw) if match: self.error(match.group(1)) raise utils.talosError(match.group(1)) raise # reraise failing exception to look more like: # parse the results try: match = self.RESULTS_REGEX_FAIL.search(self.results_raw) if match: self.error(match.group(1)) raise utils.talosError(match.group(1)) self.parse() except utils.talosError: raise # reraise failing exception
Comment 4•12 years ago
|
||
:jmaher, yeah that looks like a good fix.
Assignee | ||
Comment 5•12 years ago
|
||
patch as discussed in bug comments.
Comment 6•12 years ago
|
||
Comment on attachment 645354 [details] [diff] [review] talos should fail if we see __FAIL (1.0) lgtm
Attachment #645354 -
Flags: review?(jhammel) → review+
Assignee | ||
Comment 7•12 years ago
|
||
http://hg.mozilla.org/build/talos/rev/e5ef20b8c71d
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 8•12 years ago
|
||
We should fix bug 775614 before this goes into production, or things will start failing.
Assignee | ||
Comment 9•12 years ago
|
||
start fixing!
You need to log in
before you can comment on or make changes to this bug.
Description
•