Changeset 247428 in webkit


Ignore:
Timestamp:
Jul 15, 2019 4:58:53 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r247393.
https://bugs.webkit.org/show_bug.cgi?id=199797

broke mips and arm EWS (Requested by guijemont on #webkit).

Reverted changeset:

"run-javascriptcore-tests won't report test results for
testmasm, testair, testb3, testdfg and test api"
https://bugs.webkit.org/show_bug.cgi?id=199489
https://trac.webkit.org/changeset/247393

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/steps.py

    r247393 r247428  
    332332    def start(self):
    333333        platform = self.getProperty('platform')
    334         architecture = self.getProperty("architecture")
    335         # Currently run-javascriptcore-test doesn't support run those binaries remotely
    336         if architecture in ['mips', 'armv7', 'aarch64']:
    337             self.command += ['--no-testmasm', '--no-testair', '--no-testb3', '--no-testdfg', '--no-testapi']
    338334        # Linux bots have currently problems with JSC tests that try to use large amounts of memory.
    339335        # Check: https://bugs.webkit.org/show_bug.cgi?id=175140
     
    349345    def countFailures(self, cmd):
    350346        logText = cmd.logs['stdio'].getText()
    351         count = 0
    352347
    353348        match = re.search(r'^Results for JSC stress tests:\r?\n\s+(\d+) failure', logText, re.MULTILINE)
    354349        if match:
    355             count += int(match.group(1))
    356 
    357         match = re.search(r'Results for JSC test binaries:\r?\n\s+(\d+) failure', logText, re.MULTILINE)
    358         if match:
    359             count += int(match.group(1))
     350            return int(match.group(1))
    360351
    361352        match = re.search(r'^Results for Mozilla tests:\r?\n\s+(\d+) regression', logText, re.MULTILINE)
    362353        if match:
    363             count += int(match.group(1))
    364 
    365         return count
     354            return int(match.group(1))
     355
     356        return 0
    366357
    367358
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/steps_unittest.py

    r247393 r247428  
    123123    5 failures found.""")
    124124
    125     def test_jsc_stress_failures_with_binary_results_output(self):
    126         self.assertResults(FAILURE, ["8 JSC tests failed"], 1,  """Results for JSC stress tests:
    127     5 failures found.
    128 Results for JSC test binaries:
    129     3 failures found.""")
    130 
    131     def test_jsc_stress_failures_with_binary_result_output(self):
    132         self.assertResults(FAILURE, ["6 JSC tests failed"], 1,  """Results for JSC stress tests:
    133     5 failures found.
    134 Results for JSC test binaries:
    135     1 failure found.""")
    136 
    137125
    138126class RunTest262TestsTest(unittest.TestCase):
  • trunk/Tools/ChangeLog

    r247414 r247428  
     12019-07-15  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r247393.
     4        https://bugs.webkit.org/show_bug.cgi?id=199797
     5
     6        broke mips and arm EWS (Requested by guijemont on #webkit).
     7
     8        Reverted changeset:
     9
     10        "run-javascriptcore-tests won't report test results for
     11        testmasm, testair, testb3, testdfg and test api"
     12        https://bugs.webkit.org/show_bug.cgi?id=199489
     13        https://trac.webkit.org/changeset/247393
     14
    1152019-07-12  Andy Estes  <aestes@apple.com>
    216
  • trunk/Tools/Scripts/run-javascriptcore-tests

    r247393 r247428  
    9393my $failFast = 1;
    9494my %jsonData = ();
    95 my @testResults = ();
    96 my $isTestFailed = 0;
    9795my $remoteConfigFile;
    9896my $jsonFileName;
     
    401399    print "$testName completed with rc=$testResult ($exitStatus)\n\n";
    402400
    403     my $testStatus = ($exitStatus == 0)? JSON::PP::true: JSON::PP::false;
    404     if ($testResult) {
    405         $isTestFailed = 1;
    406         push @testResults, $testName;
    407     }
    408401    if (defined($jsonFileName)) {
     402        my $testStatus = ($exitStatus == 0)? JSON::PP::true: JSON::PP::false;
    409403        $jsonData{$jsonTestStatusName} = $testStatus;
    410404    }
    411405
    412406    if ($testResult && $failFast) {
    413         reportTestFailures();
    414407        writeJsonDataIfApplicable();
    415408        exit exitStatus($testResult);
    416409    }
    417 }
    418 
    419 sub reportTestFailures {
    420   my $numJSCtestFailures = @testResults;
    421   if ($numJSCtestFailures) {
    422       print "\n** The following JSC test binaries failures have been introduced:\n";
    423       foreach my $testFailure (@testResults) {
    424           print "\t$testFailure\n";
    425       }
    426   }
    427   print "\n";
    428 
    429   print "Results for JSC test binaries:\n";
    430   printThingsFound($numJSCtestFailures, "failure", "failures", "found");
    431   print "    OK.\n" if $numJSCtestFailures == 0;
    432 
    433   print "\n";
    434410}
    435411
     
    445421
    446422runJSCStressTests();
    447 reportTestFailures();
    448 
    449 if ($isTestFailed) {
    450   exit(1);
    451 }
    452423
    453424sub runJSCStressTests
     
    603574
    604575    if ($numJSCStressFailures) {
    605         $isTestFailed = 1;
    606576        print "\n** The following JSC stress test failures have been introduced:\n";
    607577        foreach my $testFailure (@jscStressFailList) {
     
    622592
    623593    writeJsonDataIfApplicable();
     594    exit(1) if $numJSCStressFailures;
    624595}
    625596
Note: See TracChangeset for help on using the changeset viewer.