<?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>180132</bug_id>
          
          <creation_ts>2017-11-29 01:18:02 -0800</creation_ts>
          <short_desc>REGRESSION(r225199): [GTK][WPE] webkitpy.style.main_unittest is busted</short_desc>
          <delta_ts>2017-11-29 08:51:41 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>179534</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ms2ger (he/him; ⌚ UTC+1/+2)">Ms2ger</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>jbedard</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1375755</commentid>
    <comment_count>0</comment_count>
    <who name="Ms2ger (he/him; ⌚ UTC+1/+2)">Ms2ger</who>
    <bug_when>2017-11-29 01:18:02 -0800</bug_when>
    <thetext>[1301/1677] webkitpy.style.main_unittest.ExpectationLinterInStyleCheckerTest.test_linter_duplicate_line erred:
  Traceback (most recent call last):
    File &quot;/home/buildbot/wpe/wpe-linux-64-release-tests/build/Tools/Scripts/webkitpy/style/main_unittest.py&quot;, line 128, in test_linter_duplicate_line
      host = self._generate_testing_host(files)
    File &quot;/home/buildbot/wpe/wpe-linux-64-release-tests/build/Tools/Scripts/webkitpy/style/main_unittest.py&quot;, line 104, in _generate_testing_host
      all_ports = [host.port_factory.get(name, options=options) for name in host.port_factory.all_port_names()]
    File &quot;/home/buildbot/wpe/wpe-linux-64-release-tests/build/Tools/Scripts/webkitpy/port/factory.py&quot;, line 126, in get
      port_name = cls.determine_full_port_name(self._host, options, port_name)
    File &quot;/home/buildbot/wpe/wpe-linux-64-release-tests/build/Tools/Scripts/webkitpy/port/apple.py&quot;, line 76, in determine_full_port_name
      port_name = cls.port_name + &apos;-&apos; + host.platform.os_version + &apos;-wk2&apos;
  TypeError: cannot concatenate &apos;str&apos; and &apos;NoneType&apos; objects

host.platform.os_version is None.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1375806</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-11-29 08:00:37 -0800</bug_when>
    <thetext>It&apos;s broken webkit-patch as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1375808</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-11-29 08:02:47 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 179534 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1375822</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-11-29 08:27:33 -0800</bug_when>
    <thetext>What revision was this observed on?

Even when forcing os_version to None on Mac, I don&apos;t see this reproduce.  We shouldn&apos;t be hitting this codepath when checking style.  What is PortFactor.all_port_names() returning on GTK and WPE?  The mac ports returned by that function should always be of the form mac-&lt;version&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1375828</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-11-29 08:38:24 -0800</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #3)
&gt; What revision was this observed on?

I&apos;m on r225250 right now, and it prints every time I run &apos;webkit-patch upload&apos;. Looks bad that we&apos;re going into apple.py at all.

&gt; What is PortFactor.all_port_names() returning on GTK and WPE?

[&apos;gtk-wk2&apos;, &apos;ios-simulator&apos;, &apos;ios-simulator-wk2&apos;, &apos;mac-lion&apos;, &apos;mac-lion-wk2&apos;, &apos;mac-mavericks&apos;, &apos;mac-mavericks-wk2&apos;, &apos;mac-mountainlion&apos;, &apos;mac-mountainlion-wk2&apos;, &apos;mac-yosemite&apos;, &apos;mac-yosemite-wk2&apos;, &apos;win-7sp0&apos;, &apos;win-xp&apos;]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1375839</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-11-29 08:51:41 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #4)
&gt; (In reply to Jonathan Bedard from comment #3)
&gt; &gt; What revision was this observed on?
&gt; 
&gt; I&apos;m on r225250 right now, and it prints every time I run &apos;webkit-patch
&gt; upload&apos;. Looks bad that we&apos;re going into apple.py at all.
&gt; 
&gt; &gt; What is PortFactor.all_port_names() returning on GTK and WPE?
&gt; 
&gt; [&apos;gtk-wk2&apos;, &apos;ios-simulator&apos;, &apos;ios-simulator-wk2&apos;, &apos;mac-lion&apos;,
&gt; &apos;mac-lion-wk2&apos;, &apos;mac-mavericks&apos;, &apos;mac-mavericks-wk2&apos;, &apos;mac-mountainlion&apos;,
&gt; &apos;mac-mountainlion-wk2&apos;, &apos;mac-yosemite&apos;, &apos;mac-yosemite-wk2&apos;, &apos;win-7sp0&apos;,
&gt; &apos;win-xp&apos;]

The reason you&apos;re going into apple.py is because we&apos;re instantiating versions of all port objects to lint test expectations.

Was just on IRC with Ms2ger, the problem seems to be with the &apos;ios-simulator&apos; and &apos;ios-simulator-wk2&apos; ports (because those ports don&apos;t contain version information in their names, unlike the mac ports).  The patch attached to bug 179534 should address the root cause of this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>