<?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>93789</bug_id>
          
          <creation_ts>2012-08-12 16:18:03 -0700</creation_ts>
          <short_desc>REGRESSION(r125153): It broke the &apos;Unexpected no expected results&apos; case</short_desc>
          <delta_ts>2012-11-07 07:01:27 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>93537</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>galpeter</cc>
    
    <cc>lforschler</cc>
    
    <cc>ossy</cc>
    
    <cc>rniwa</cc>
    
    <cc>wsiegrist</cc>
    
    <cc>zherczeg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>693338</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-08-12 16:18:03 -0700</bug_when>
    <thetext>After this change if there is &apos;Unexpected no expected results&apos;,
_parseNewRunWebKitTestsOutput dies with exception:


 (view as text)

Traceback (most recent call last):
  File &quot;/var/python/lib/python2.6/site-packages/twisted/internet/defer.py&quot;, line 290, in addCallbacks
    self._runCallbacks()
  File &quot;/var/python/lib/python2.6/site-packages/twisted/internet/defer.py&quot;, line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File &quot;/var/python/lib/python2.6/site-packages/twisted/internet/defer.py&quot;, line 368, in callback
    self._startRunCallbacks(result)
  File &quot;/var/python/lib/python2.6/site-packages/twisted/internet/defer.py&quot;, line 464, in _startRunCallbacks
    self._runCallbacks()
--- &lt;exception caught here&gt; ---
  File &quot;/var/python/lib/python2.6/site-packages/twisted/internet/defer.py&quot;, line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File &quot;/var/python/lib/python2.6/site-packages/buildbot/process/buildstep.py&quot;, line 800, in &lt;lambda&gt;
    d.addCallback(lambda res: self.commandComplete(cmd))
  File &quot;/var/buildbot/master.cfg&quot;, line 382, in commandComplete
    self._parseNewRunWebKitTestsOutput(logText)
  File &quot;/var/buildbot/master.cfg&quot;, line 367, in _parseNewRunWebKitTestsOutput
    testFailures[name] = testFailures.get(name, 0) + int(match.group(1))
exceptions.ValueError: invalid literal for int() with base 10: &apos;no expected results found&apos;


It seems the regexp is broken. Could you check it, please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>693417</commentid>
    <comment_count>1</comment_count>
    <who name="Peter Gal">galpeter</who>
    <bug_when>2012-08-13 00:07:06 -0700</bug_when>
    <thetext>This regex is the culprit

re.compile(r&apos;(no expected results found|missing results)\s*:\s+\((\d+)\)&apos;)

Because of the new parentheses the text is the first matching group. The text should be a non-capturing group, like this:

re.compile(r&apos;(?:no expected results found|missing results)\s*:\s+\((\d+)\)&apos;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>693420</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-08-13 00:18:17 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; This regex is the culprit
&gt; 
&gt; re.compile(r&apos;(no expected results found|missing results)\s*:\s+\((\d+)\)&apos;)
&gt; 
&gt; Because of the new parentheses the text is the first matching group. The text should be a non-capturing group, like this:
&gt; 
&gt; re.compile(r&apos;(?:no expected results found|missing results)\s*:\s+\((\d+)\)&apos;)

Could you upload a patch for it? ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>693427</commentid>
    <comment_count>3</comment_count>
      <attachid>157932</attachid>
    <who name="Peter Gal">galpeter</who>
    <bug_when>2012-08-13 00:31:40 -0700</bug_when>
    <thetext>Created attachment 157932
regex fix

Should fix it (TM) :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>693435</commentid>
    <comment_count>4</comment_count>
      <attachid>157932</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-08-13 01:09:27 -0700</bug_when>
    <thetext>Comment on attachment 157932
regex fix

LGTM,r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>693436</commentid>
    <comment_count>5</comment_count>
      <attachid>157932</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-08-13 01:11:58 -0700</bug_when>
    <thetext>Comment on attachment 157932
regex fix

Clearing flags on attachment: 157932

Committed r125396: &lt;http://trac.webkit.org/changeset/125396&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>693437</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-08-13 01:12:04 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>693442</commentid>
    <comment_count>7</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-08-13 01:23:59 -0700</bug_when>
    <thetext>Lucas or Bill, could you restart the buildmaster again, please?
(It seems automatic restart still doesn&apos;t work.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>694703</commentid>
    <comment_count>8</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-08-14 02:09:50 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Lucas or Bill, could you restart the buildmaster again, please?
&gt; (It seems automatic restart still doesn&apos;t work.)

ping? 

It is very important to restart the master, because now all bots 
throw exception when somebody lands a new test without expected file.

And are you planning to enable automatic master 
restarting after a master.cfg change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>695192</commentid>
    <comment_count>9</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2012-08-14 11:29:20 -0700</bug_when>
    <thetext>Restarted master but ran into this issue:

2012-08-14 11:27:16-0700 [-] Unhandled Error
	Traceback (most recent call last):
	  File &quot;/var/python/lib/python2.6/site-packages/twisted/internet/defer.py&quot;, line 551, in _runCallbacks
	    current.result = callback(current.result, *args, **kw)
	  File &quot;/var/python/lib/python2.6/site-packages/twisted/internet/defer.py&quot;, line 916, in gotResult
	    _deferGenerator(g, deferred)
	  File &quot;/var/python/lib/python2.6/site-packages/twisted/internet/defer.py&quot;, line 891, in _deferGenerator
	    result = g.next()
	  File &quot;/var/python/lib/python2.6/site-packages/buildbot/master.py&quot;, line 166, in startService
	    self.configFileName)
	--- &lt;exception caught here&gt; ---
	  File &quot;/var/python/lib/python2.6/site-packages/buildbot/config.py&quot;, line 144, in loadConfig
	    exec f in localDict
	  File &quot;/var/buildbot/master.cfg&quot;, line 921, in &lt;module&gt;
	    loadBuilderConfig(c)
	  File &quot;/var/buildbot/master.cfg&quot;, line 847, in loadBuilderConfig
	    c[&apos;slaves&apos;] = [BuildSlave(slave[&apos;name&apos;], passwords[slave[&apos;name&apos;]], max_builds=1) for slave in config[&apos;slaves&apos;]]
	exceptions.KeyError: u&apos;indt-mountainlion&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>695193</commentid>
    <comment_count>10</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2012-08-14 11:30:22 -0700</bug_when>
    <thetext>I&apos;ve rolled back until we can investigate the below.
I&apos;m not sure why the build master isn&apos;t auto-restarting... maybe because it failed to start.  Hopefully Bill can investigate then when he returns from vacation.  I will also look into it as time allows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>695202</commentid>
    <comment_count>11</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2012-08-14 11:39:36 -0700</bug_when>
    <thetext>it looks like we needed a passwords update.  I&apos;ve fixed that and restarted the master.
Things appear to be running now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>760663</commentid>
    <comment_count>12</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-11-07 07:01:27 -0800</bug_when>
    <thetext>It is fixed long time ago.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>157932</attachid>
            <date>2012-08-13 00:31:40 -0700</date>
            <delta_ts>2012-08-13 01:11:58 -0700</delta_ts>
            <desc>regex fix</desc>
            <filename>bug_93789.patch</filename>
            <type>text/plain</type>
            <size>1576</size>
            <attacher name="Peter Gal">galpeter</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0J1aWxkU2xhdmVTdXBwb3J0L2J1aWxkLndlYmtpdC5vcmctY29u
ZmlnL21hc3Rlci5jZmcgYi9Ub29scy9CdWlsZFNsYXZlU3VwcG9ydC9idWlsZC53ZWJraXQub3Jn
LWNvbmZpZy9tYXN0ZXIuY2ZnCmluZGV4IDU0Njg0NGIuLmVjNzllZDQgMTAwNjQ0Ci0tLSBhL1Rv
b2xzL0J1aWxkU2xhdmVTdXBwb3J0L2J1aWxkLndlYmtpdC5vcmctY29uZmlnL21hc3Rlci5jZmcK
KysrIGIvVG9vbHMvQnVpbGRTbGF2ZVN1cHBvcnQvYnVpbGQud2Via2l0Lm9yZy1jb25maWcvbWFz
dGVyLmNmZwpAQCAtMzUxLDcgKzM1MSw3IEBAIGNsYXNzIFJ1bldlYktpdFRlc3RzKHNoZWxsLlRl
c3QpOgogICAgICAgICBleHByZXNzaW9ucyA9IFsKICAgICAgICAgICAgICgnZmxha2VzJywgcmUu
Y29tcGlsZShyJ1tVdV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