<?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>179522</bug_id>
          
          <creation_ts>2017-11-09 22:28:02 -0800</creation_ts>
          <short_desc>check-webkit-style: AttributeError: &apos;NoneType&apos; object has no attribute &apos;major&apos;</short_desc>
          <delta_ts>2017-11-15 09:37:31 -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>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=179534</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>buildbot</cc>
    
    <cc>commit-queue</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>lforschler</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1370231</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-11-09 22:28:02 -0800</bug_when>
    <thetext>check-webkit-style is broken since Bug 179426.

&gt; $ ./Tools/Scripts/check-webkit-style
&gt; Traceback (most recent call last):
&gt;   File &quot;./Tools/Scripts/check-webkit-style&quot;, line 48, in &lt;module&gt;
&gt;     sys.exit(CheckWebKitStyle().main())
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/style/main.py&quot;, line 155, in main
&gt;     patch_checker.check(patch)
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/style/patchreader.py&quot;, line 84, in check
&gt;     self._text_file_reader.do_association_check(fs.getcwd())
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/style/filereader.py&quot;, line 152, in do_association_check
&gt;     self._processor.do_association_check(self._files, cwd, host=host)
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/style/checker.py&quot;, line 963, in do_association_check
&gt;     TestExpectationsChecker.lint_test_expectations(files, self._configuration, cwd, self._increment_error_count, host=host)
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/style/checkers/test_expectations.py&quot;, line 129, in lint_test_expectations
&gt;     for expectations_file in port.expectations_dict().keys():
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/port/base.py&quot;, line 1124, in expectations_dict
&gt;     for path in self.expectations_files():
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/port/base.py&quot;, line 1156, in expectations_files
&gt;     return [self.path_to_generic_test_expectations_file()] + self._port_specific_expectations_files()
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/port/darwin.py&quot;, line 56, in _port_specific_expectations_files
&gt;     return list(reversed([self._filesystem.join(self._webkit_baseline_path(p), &apos;TestExpectations&apos;) for p in self.baseline_search_path()]))
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/port/base.py&quot;, line 204, in baseline_search_path
&gt;     return self.get_option(&apos;additional_platform_directory&apos;, []) + self._compare_baseline() + self.default_baseline_search_path()
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/common/memoized.py&quot;, line 45, in __call__
&gt;     result = self._function(*args)
&gt;   File &quot;/home/fujii/work/webkit/ga/Tools/Scripts/webkitpy/port/ios.py&quot;, line 113, in default_baseline_search_path
&gt;     &apos;{}-{}-{}&apos;.format(self.port_name, self.ios_version().major, wk_string),
&gt; AttributeError: &apos;NoneType&apos; object has no attribute &apos;major&apos;
&gt; $</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370236</commentid>
    <comment_count>1</comment_count>
      <attachid>326558</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-11-09 22:37:21 -0800</bug_when>
    <thetext>Created attachment 326558
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370297</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-11-10 07:24:50 -0800</bug_when>
    <thetext>I suspect this is on a machine without an iOS SDK installed, correct?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370347</commentid>
    <comment_count>3</comment_count>
      <attachid>326558</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2017-11-10 08:53:23 -0800</bug_when>
    <thetext>Comment on attachment 326558
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=326558&amp;action=review

&gt; Tools/Scripts/webkitpy/port/ios_simulator.py:118
&gt; +        return Version(self.host.platform.xcode_sdk_version(&apos;iphonesimulator&apos;))

This might pass None to Version(). We should have a log statement at https://trac.webkit.org/browser/webkit/trunk/Tools/Scripts/webkitpy/common/version.py#L44

That can be done either in this patch or separate patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370363</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-11-10 09:20:35 -0800</bug_when>
    <thetext>(In reply to Aakash Jain from comment #3)
&gt; Comment on attachment 326558 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=326558&amp;action=review
&gt; 
&gt; &gt; Tools/Scripts/webkitpy/port/ios_simulator.py:118
&gt; &gt; +        return Version(self.host.platform.xcode_sdk_version(&apos;iphonesimulator&apos;))
&gt; 
&gt; This might pass None to Version(). We should have a log statement at
&gt; https://trac.webkit.org/browser/webkit/trunk/Tools/Scripts/webkitpy/common/
&gt; version.py#L44
&gt; 
&gt; That can be done either in this patch or separate patch.

I am of the opinion this should be done in another patch.

This is also a side-effect of a long-standing issue which I&apos;ve just filed a bug for &lt;https://bugs.webkit.org/show_bug.cgi?id=179534&gt;.  Maybe just a FIXME and ultimately, we address the root cause?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370643</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-11-10 20:13:04 -0800</bug_when>
    <thetext>I&apos;m going to land this patch so that our trees don&apos;t spend the weekend red.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370646</commentid>
    <comment_count>6</comment_count>
      <attachid>326558</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-11-10 20:32:45 -0800</bug_when>
    <thetext>Comment on attachment 326558
Patch

Clearing flags on attachment: 326558

Committed r224722: &lt;https://trac.webkit.org/changeset/224722&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370647</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-11-10 20:32:46 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1371916</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-11-15 09:37:31 -0800</bug_when>
    <thetext>&lt;rdar://problem/35562086&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>326558</attachid>
            <date>2017-11-09 22:37:21 -0800</date>
            <delta_ts>2017-11-10 20:32:45 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-179522-20171109223718.patch</filename>
            <type>text/plain</type>
            <size>1684</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjI0NjYyCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggYzFjZDdmODdlMGZjMzQ1NzUyZGQ1OWE1ZGQ2NWQwMmZl
Y2Y4YWM4Ni4uZjM2NGZhZTgwOGYzY2QyNTZmZGY1NjlkNWE5ZDhjY2I4OTI5ZTU1ZSAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1
IEBACisyMDE3LTExLTA5ICBGdWppaSBIaXJvbm9yaSAgPEhpcm9ub3JpLkZ1amlpQHNvbnkuY29t
PgorCisgICAgICAgIGNoZWNrLXdlYmtpdC1zdHlsZTogQXR0cmlidXRlRXJyb3I6ICdOb25lVHlw
ZScgb2JqZWN0IGhhcyBubyBhdHRyaWJ1dGUgJ21ham9yJworICAgICAgICBodHRwczovL2J1Z3Mu
d2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTc5NTIyCisKKyAgICAgICAgUmV2aWV3ZWQgYnkg
Tk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgSU9TU2ltdWxhdG9yUG9ydC5pb3NfdmVyc2lvbiBz
aG91bGQgcmV0dXJuIGEgVmVyc2lvbiBvYmplY3QuCisKKyAgICAgICAgKiBTY3JpcHRzL3dlYmtp
dHB5L3BvcnQvaW9zX3NpbXVsYXRvci5weToKKyAgICAgICAgKElPU1NpbXVsYXRvclBvcnQuaW9z
X3ZlcnNpb24pOiBSZXR1cm4gYSBWZXJzaW9uIG9iamVjdC4KKwogMjAxNy0xMS0wOSAgSm9uYXRo
YW4gQmVkYXJkICA8amJl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pCisgICAgICAgIHJldHVybiBWZXJzaW9uKHNlbGYuaG9zdC5wbGF0Zm9y
bS54Y29kZV9zZGtfdmVyc2lvbignaXBob25lc2ltdWxhdG9yJykpCiAKICAgICBkZWYgc2ltdWxh
dG9yX2RldmljZV90eXBlKHNlbGYpOgogICAgICAgICBkZXZpY2VfdHlwZV9pZGVudGlmaWVyID0g
c2VsZi5nZXRfb3B0aW9uKCdkZXZpY2VfdHlwZScpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>