Changeset 91448 in webkit


Ignore:
Timestamp:
Jul 20, 2011 11:53:59 PM (13 years ago)
Author:
rniwa@webkit.org
Message:

Buildbot marks a nrwt bot red when tests are missing results
https://bugs.webkit.org/show_bug.cgi?id=64812

Reviewed by Adam Barth.

The bug was caused by multiple expressions matching on the single output.
Fixed it by exiting the loop as soon as one expression matches.

Because the regular expression for 'failures' is most general,
moved it to the end of the list to avoid it catching other cases.

  • BuildSlaveSupport/build.webkit.org-config/master.cfg:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg

    r91413 r91448  
    234234    def _parseNewRunWebKitTestsOutput(self, logText):
    235235        incorrectLayoutLines = []
    236         expressions = {
    237             'failures': re.compile(r'Regressions: Unexpected.+:?\s*\((\d+)\)'),
    238             'flakes': re.compile(r'Unexpected flakiness.+:?\s*\((\d+)\)'),
    239             'new passes': re.compile(r'Expected to .+, but passed:\s+\((\d+)\)'),
    240             'missing results': re.compile(r'no expected results found\s*:\s+\((\d+)\)'),
    241         }
     236        expressions = [
     237            ('flakes', re.compile(r'Unexpected flakiness.+:?\s*\((\d+)\)')),
     238            ('new passes', re.compile(r'Expected to .+, but passed:\s+\((\d+)\)')),
     239            ('missing results', re.compile(r'no expected results found\s*:\s+\((\d+)\)')),
     240            ('failures', re.compile(r'Regressions: Unexpected.+:?\s*\((\d+)\)')),
     241        ]
    242242        testFailures = {}
    243243
    244244        for line in logText.splitlines():
    245             if line.find('Exiting early') >= 0:
     245            if line.find('Exiting early') >= 0 or line.find('leaks found') >= 0:
    246246                incorrectLayoutLines.append(line)
    247247                continue
    248             if line find('leaks found') >= 0:
    249                 incorrectLayoutLines.append(line)
    250                 continue
    251             for name in expressions:
    252                 match = expressions[name].search(line)
     248            for name, expression in expressions:
     249                match = expression.search(line)
     250
    253251                if match:
    254252                    testFailures[name] = testFailures.get(name, 0) + int(match.group(1))
     253                    break
    255254
    256255                # FIXME: Parse file names and put them in results
  • trunk/Tools/ChangeLog

    r91434 r91448  
     12011-07-20  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Buildbot marks a nrwt bot red when tests are missing results
     4        https://bugs.webkit.org/show_bug.cgi?id=64812
     5
     6        Reviewed by Adam Barth.
     7
     8        The bug was caused by multiple expressions matching on the single output.
     9        Fixed it by exiting the loop as soon as one expression matches.
     10
     11        Because the regular expression for 'failures' is most general,
     12        moved it to the end of the list to avoid it catching other cases.
     13
     14        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
     15
    1162011-07-20  Chang Shu  <cshu@webkit.org>
    217
Note: See TracChangeset for help on using the changeset viewer.