⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 88310 in webkit


Ignore:
Timestamp:
Jun 7, 2011, 6:37:20 PM (15 years ago)
Author:
rniwa@webkit.org
Message:

2011-06-07 Ryosuke Niwa <rniwa@webkit.org>

Reviewed by Tony Chang.

new-run-webkit-tests: Bot master should print useful information on waterfall/console for nrwt
https://bugs.webkit.org/show_bug.cgi?id=62178

Added commandComplete and evaluateCommand for NewRunWebKitTests class
to parse new-run-webkit-tests' results.

  • 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

    r87176 r88310  
    268268               WithProperties("--%(configuration)s")]
    269269
     270    def commandComplete(self, cmd):
     271        shell.Test.commandComplete(self, cmd)
     272
     273        logText = cmd.logs['stdio'].getText()
     274        incorrectLayoutLines = []
     275        expressions = {
     276            'failed': re.compile(r'Regressions: Unexpected.+:?\s*\((\d+)\)'),
     277            'were flaky': re.compile(r'Unexpected flakiness.+:?\s*\((\d+)\)'),
     278            'new passes': re.compile(r'Expected to .+, but passed:\s+\((\d+)\)'),
     279        }
     280        testFailures = {}
     281
     282        for line in logText.splitlines():
     283            if line.find('Exiting early') >= 0:
     284                incorrectLayoutLines.append(line)
     285                continue
     286            for name in expressions:
     287                match = expressions[name].search(line)
     288                if match:
     289                    testFailures[name] = testFailures.get(name, 0) + int(match.group(1))
     290
     291                # FIXME: Parse file names and put them in results
     292
     293        for name in testFailures:
     294            incorrectLayoutLines.append(str(testFailures[name]) + ' ' + name)
     295
     296        self.incorrectLayoutLines = incorrectLayoutLines
     297
     298    def evaluateCommand(self, cmd):
     299        if cmd.rc != 0:
     300            return FAILURE
     301
     302        result = SUCCESS
     303        if self.incorrectLayoutLines:
     304            for line in incorrectLayoutLines:
     305                if result != FAILURE and (line.find('were flaky') >= 0 or line.find('passed unexpectedly') >= 0):
     306                    result = WARNINGS
     307                else:
     308                    result = FAILURE
     309
     310        return result
    270311
    271312class RunPythonTests(shell.Test):
  • trunk/Tools/ChangeLog

    r88287 r88310  
     12011-06-07  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Reviewed by Tony Chang.
     4
     5        new-run-webkit-tests: Bot master should print useful information on waterfall/console for nrwt
     6        https://bugs.webkit.org/show_bug.cgi?id=62178
     7
     8        Added commandComplete and evaluateCommand for NewRunWebKitTests class
     9        to parse new-run-webkit-tests' results.
     10
     11        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
     12
    1132011-06-07  Dirk Pranke  <dpranke@chromium.org>
    214
Note: See TracChangeset for help on using the changeset viewer.