Bug 136125 - Fix countFailures of RunLLINTCLoopTests and Run32bitJSCTests
Summary: Fix countFailures of RunLLINTCLoopTests and Run32bitJSCTests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 136856
Blocks: 126604 131054
  Show dependency treegraph
 
Reported: 2014-08-21 01:33 PDT by Csaba Osztrogonác
Modified: 2014-09-16 07:13 PDT (History)
6 users (show)

See Also:


Attachments
Proposed patch (5.26 KB, patch)
2014-08-21 04:32 PDT, Nagy Renátó
no flags Details | Formatted Diff | Diff
Proposed patch (deleted)
2014-08-21 04:50 PDT, Nagy Renátó
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Csaba Osztrogonác 2014-08-21 01:33:41 PDT
countFailures of RunLLINTCLoopTests and Run32bitJSCTests in master.cfg 
don't work at all, they don't report the number of failing tests:
http://build.webkit.org/builders/Apple%20Mavericks%2032-bit%20JSC%20%28BuildAndTest%29/builds/3703

It's hard to determine which patch caused how many regressions
if we can't see the exact number on the waterfall.

The buggy countFailures introduced in:
https://trac.webkit.org/changeset/166608
https://trac.webkit.org/changeset/161461

Why can't we reuse the RunJavaScriptCoreTests class which 
works fine and its commandComplete covered by unittests too?
Comment 1 Csaba Osztrogonác 2014-08-21 01:40:06 PDT
I think only the 32 bit countFailures is buggy, because this bot runs the
jsc-stress tests, not the old Mozilla tests, and their output are different.

But unifying the output parsing of run-javascriptcore-tests would be great.
Comment 2 Csaba Osztrogonác 2014-08-21 03:37:30 PDT
Run32bitJSCTests buildstep runs the JSC stress tests, so its
regexp should accept "failure" and "failures", not "regressions".

RunLLINTCLoopTests buildstep runs Mozilla tests, so its
regexp should accept "regression" and "regressions" too.

The command of RunJavaScriptCoreTests, RunLLINTCLoopTests and Run32bitJSCTests
are a little bit different, so unifying them isn't trivial. So let's fix the
regexps quickly and try to unify them later.
Comment 3 Nagy Renátó 2014-08-21 04:32:17 PDT
Created attachment 236923 [details]
Proposed patch

Quick fix in regexps at RunLLINTCLoopTests and Run32bitJSCTests class.
Comment 4 WebKit Commit Bot 2014-08-21 04:33:39 PDT
Attachment 236923 [details] did not pass style-queue:


ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:148:  [RunLLINTCLoopTestsTest.assertResults] Undefined variable 'RunLLINTCLoopTests'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:157:  [RunLLINTCLoopTestsTest.test_failures] Undefined variable 'FAILURE'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:160:  [RunLLINTCLoopTestsTest.test_failure] Undefined variable 'FAILURE'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:163:  [RunLLINTCLoopTestsTest.test_no_failure] Undefined variable 'SUCCESS'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:169:  [Run32bitJSCTestsTest.assertResults] Undefined variable 'Run32bitJSCTests'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:178:  [Run32bitJSCTestsTest.test_failures] Undefined variable 'FAILURE'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:181:  [Run32bitJSCTestsTest.test_failure] Undefined variable 'FAILURE'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:184:  [Run32bitJSCTestsTest.test_no_failure] Undefined variable 'SUCCESS'  [pylint/E0602] [5]
Total errors found: 8 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Csaba Osztrogonác 2014-08-21 04:40:36 PDT
Comment on attachment 236923 [details]
Proposed patch

LGTM, just a nit: Can we use only single or double quotes?
Comment 6 Nagy Renátó 2014-08-21 04:50:39 PDT
Created attachment 236924 [details]
Proposed patch

Change all double quote to singe quote.
Comment 7 WebKit Commit Bot 2014-08-21 04:52:29 PDT
Attachment 236924 [details] did not pass style-queue:


ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:148:  [RunLLINTCLoopTestsTest.assertResults] Undefined variable 'RunLLINTCLoopTests'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:157:  [RunLLINTCLoopTestsTest.test_failures] Undefined variable 'FAILURE'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:160:  [RunLLINTCLoopTestsTest.test_failure] Undefined variable 'FAILURE'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:163:  [RunLLINTCLoopTestsTest.test_no_failure] Undefined variable 'SUCCESS'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:169:  [Run32bitJSCTestsTest.assertResults] Undefined variable 'Run32bitJSCTests'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:178:  [Run32bitJSCTestsTest.test_failures] Undefined variable 'FAILURE'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:181:  [Run32bitJSCTestsTest.test_failure] Undefined variable 'FAILURE'  [pylint/E0602] [5]
ERROR: Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:184:  [Run32bitJSCTestsTest.test_no_failure] Undefined variable 'SUCCESS'  [pylint/E0602] [5]
Total errors found: 8 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 WebKit Commit Bot 2014-08-21 05:29:49 PDT
Comment on attachment 236924 [details]
Proposed patch

Clearing flags on attachment: 236924

Committed r172829: <http://trac.webkit.org/changeset/172829>
Comment 9 WebKit Commit Bot 2014-08-21 05:29:53 PDT
All reviewed patches have been landed.  Closing bug.