Closed Bug 775610 Opened 12 years ago Closed 12 years ago

Talos tests should always fail if __FAIL is encountered

Categories

(Testing :: Talos, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kats, Assigned: jmaher)

References

Details

Attachments

(1 file)

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.
Do you happen to have a log handy where this occurs?
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
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
:jmaher, yeah that looks like a good fix.
patch as discussed in bug comments.
Assignee: nobody → jmaher
Status: NEW → ASSIGNED
Attachment #645354 - Flags: review?(jhammel)
Comment on attachment 645354 [details] [diff] [review]
talos should fail if we see __FAIL (1.0)

lgtm
Attachment #645354 - Flags: review?(jhammel) → review+
http://hg.mozilla.org/build/talos/rev/e5ef20b8c71d
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
We should fix bug 775614 before this goes into production, or things will start failing.
start fixing!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: