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

Changeset 215599 in webkit


Ignore:
Timestamp:
Apr 20, 2017, 6:49:59 PM (9 years ago)
Author:
Joseph Pecoraro
Message:

Test262 bot does not go red with failures
https://bugs.webkit.org/show_bug.cgi?id=171044

Reviewed by Aakash Jain.

The piped output of run-jsc-stress-tests is different from
its non-piped output. Switch to parsing the correct output.

  • BuildSlaveSupport/build.webkit.org-config/master.cfg:

(RunTest262Tests.countFailures):
Just count the number of lines that start with "FAIL:".

  • BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:

(RunTest262TestsTest.test_no_regressions_output):
(test_failure_output):
(test_failures_output):
Updated tests with new sample output produced partially from bots and
locally. In cases of failure the return code of run-jsc-stress-tests
is still 0 so update the expected return code in the tests.

Location:
trunk/Tools
Files:
3 edited

Legend:

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

    r215108 r215599  
    336336    def countFailures(self, cmd):
    337337        logText = cmd.logs['stdio'].getText()
    338         matches = re.findall(r'\(failed (\d+)\)', logText)
     338        matches = re.findall(r'^FAIL:', logText, flags=re.MULTILINE)
    339339        if matches:
    340             return int(matches[-1])
     340            return len(matches)
    341341        return 0
    342342
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py

    r215108 r215599  
    154154    def test_no_regressions_output(self):
    155155        self.assertResults(SUCCESS, ["test262-test"], 0, """Using the following jsc path: /WebKitBuild/Release/jsc
    156 168/168         """)
     156
     157Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default
     158Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict
     159""")
    157160
    158161    def test_failure_output(self):
    159         self.assertResults(FAILURE, ["1 Test262 test failed"], 1, """Using the following jsc path: /WebKitBuild/Release/jsc
    160 test262.yaml/test262/test/built-ins/Array/from/iter-set-elem-prop-err.js.default: ERROR: Unexpected exit code: 0
    161 test262.yaml/test262/test/built-ins/Array/from/iter-set-elem-prop-err.js.default-strict: ERROR: Unexpected exit code: 0
    162 ...
    163 43768/43768 (failed 1)         """)
     162        self.assertResults(FAILURE, ["1 Test262 test failed"], 0, """Using the following jsc path: /WebKitBuild/Release/jsc
     163
     164Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default
     165Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict
     166test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict: ERROR: Unexpected exit code: 0
     167FAIL: test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict
     168""")
    164169
    165170    def test_failures_output(self):
    166         self.assertResults(FAILURE, ["75 Test262 tests failed"], 75, """Using the following jsc path: /WebKitBuild/Release/jsc
    167 ...
    168 43768/43768 (failed 75)         """)
     171        self.assertResults(FAILURE, ["2 Test262 tests failed"], 0, """Using the following jsc path: /WebKitBuild/Release/jsc
     172
     173Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default
     174test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default: ERROR: Unexpected exit code: 0
     175FAIL: test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default
     176Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict
     177test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict: ERROR: Unexpected exit code: 0
     178FAIL: test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict
     179""")
    169180
    170181
  • trunk/Tools/ChangeLog

    r215598 r215599  
     12017-04-20  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Test262 bot does not go red with failures
     4        https://bugs.webkit.org/show_bug.cgi?id=171044
     5
     6        Reviewed by Aakash Jain.
     7
     8        The piped output of run-jsc-stress-tests is different from
     9        its non-piped output. Switch to parsing the correct output.
     10
     11        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
     12        (RunTest262Tests.countFailures):
     13        Just count the number of lines that start with "FAIL:".
     14
     15        * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
     16        (RunTest262TestsTest.test_no_regressions_output):
     17        (test_failure_output):
     18        (test_failures_output):
     19        Updated tests with new sample output produced partially from bots and
     20        locally. In cases of failure the return code of run-jsc-stress-tests
     21        is still 0 so update the expected return code in the tests.
     22
    1232017-04-20  Brady Eidson  <beidson@apple.com>
    224
Note: See TracChangeset for help on using the changeset viewer.