<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>50263</bug_id>
          
          <creation_ts>2010-11-30 13:00:54 -0800</creation_ts>
          <short_desc>Exception in flaky test reporting code in commit-queue</short_desc>
          <delta_ts>2010-12-20 20:35:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>51272</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>51272</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>315254</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-11-30 13:00:54 -0800</bug_when>
    <thetext>Exception in flaky test reporting code in commit-queue

From the log:

=== BUILD AGGREGATE TARGET All OF PROJECT DumpRenderTree WITH CONFIGURATION Release ===
Check dependencies
** BUILD SUCCEEDED **

Compiling Java tests
make: Nothing to be done for `default&apos;.
Running tests from /Projects/CommitQueue/LayoutTests
Testing 22075 test cases.
accessibility .....................................................................................
animations ...........................................................
animations/stop-animation-on-suspend.html -&gt; failed

Exiting early after 1 failures. 144 tests run.
44.81s total testing time

143 test cases (99%) succeeded
1 test case (&lt;1%) had incorrect layout
1 test case (&lt;1%) had stderr output
Patch does not pass tests
Traceback (most recent call last):
  File &quot;/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/tool/bot/queueengine.py&quot;, line 108, in run
    if not self._delegate.process_work_item(work_item):
  File &quot;/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/tool/commands/queues.py&quot;, line 265, in process_work_item
    if task.run():
  File &quot;/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/tool/bot/commitqueuetask.py&quot;, line 188, in run
    if not self._test_patch():
  File &quot;/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/tool/bot/commitqueuetask.py&quot;, line 172, in _test_patch
    self._report_flaky_tests(first_failing_tests + second_failing_tests)
TypeError: unsupported operand type(s) for +: &apos;NoneType&apos; and &apos;list&apos;
Exception while preparing queue Sleeping until 2010-11-30 12:57:20 (2 mins).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315336</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-11-30 15:04:28 -0800</bug_when>
    <thetext>This would happen any time the tests fail on the first run, but we fail to get results from that failure.

The code in question:

    def _test_patch(self):
        if self._patch.is_rollout():
            return True
        if self._test():
            return True

        first_failing_tests = self._failing_tests_from_last_run()
        if self._test():
            self._report_flaky_tests(first_failing_tests)
            return True

        second_failing_tests = self._failing_tests_from_last_run()
        if first_failing_tests != second_failing_tests:
            self._report_flaky_tests(first_failing_tests + second_failing_tests)
            return False

The fix is straightforward.  We just make &quot;first_failing_tests != second_failing_tests&quot; into &quot;first_failing_tests and (first_failing_tests != second_failing_tests)&quot;.  However we might also want to add some special logging to track this case, as the layout tests shoudl not fail w/o us being able to get the results from the run!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324750</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-20 20:35:00 -0800</bug_when>
    <thetext>I expect this to be fixed by bug 51272.

*** This bug has been marked as a duplicate of bug 51272 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>