<?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>179616</bug_id>
          
          <creation_ts>2017-11-13 10:16:13 -0800</creation_ts>
          <short_desc>REGRESSION(r224658): check-webkit-style cannot construct valid iOS version without an iOS SDK</short_desc>
          <delta_ts>2017-11-13 21:55:59 -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, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>buildbot</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>glenn</cc>
    
    <cc>lforschler</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1370936</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-11-13 10:16:13 -0800</bug_when>
    <thetext>After &lt;https://trac.webkit.org/changeset/224658&gt;, when running check-webkit-style on a Mac without an iOS SDK, an exception is thrown.

This is quite related to &lt;https://bugs.webkit.org/show_bug.cgi?id=179534&gt;, but the fix for this problem is much smaller and a subset of the fixed for the larger issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370937</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-11-13 10:16:35 -0800</bug_when>
    <thetext>&lt;rdar://problem/35507018&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370938</commentid>
    <comment_count>2</comment_count>
      <attachid>326769</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-11-13 10:22:22 -0800</bug_when>
    <thetext>Created attachment 326769
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370942</commentid>
    <comment_count>3</comment_count>
      <attachid>326769</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-11-13 10:33:28 -0800</bug_when>
    <thetext>Comment on attachment 326769
Patch

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

&gt; Tools/ChangeLog:10
&gt; +        Instead of throwing an exception when we ask for an unavailable SDK on Mac,
&gt; +        we should return None.

But the problem is related to iOS SDKs, not mac.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370955</commentid>
    <comment_count>4</comment_count>
      <attachid>326769</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-11-13 11:00:25 -0800</bug_when>
    <thetext>Comment on attachment 326769
Patch

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

&gt;&gt; Tools/ChangeLog:10
&gt;&gt; +        we should return None.
&gt; 
&gt; But the problem is related to iOS SDKs, not mac.

It only happens on Mac when we ask for an SDK (which could be iOS, watchOS or tvOS, in our case, it&apos;s iOS that&apos;s causing the problem) which is unavailable.

This change has implications beyond just the iOS SDK, although at the moment, that is the only SDK that uses this codepath.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370963</commentid>
    <comment_count>5</comment_count>
      <attachid>326769</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2017-11-13 11:17:40 -0800</bug_when>
    <thetext>Comment on attachment 326769
Patch

r=me

Please check the Win EWS (it&apos;s orange) before landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370973</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2017-11-13 11:36:32 -0800</bug_when>
    <thetext>(In reply to David Kilzer (:ddkilzer) from comment #5)
&gt; Comment on attachment 326769 [details]
&gt; Patch
&gt; 
&gt; r=me
&gt; 
&gt; Please check the Win EWS (it&apos;s orange) before landing.

It was test failures for mac and a borked SVN for Windows, everything is green now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370985</commentid>
    <comment_count>7</comment_count>
      <attachid>326769</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-11-13 11:55:21 -0800</bug_when>
    <thetext>Comment on attachment 326769
Patch

Clearing flags on attachment: 326769

Committed r224765: &lt;https://trac.webkit.org/changeset/224765&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370986</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-11-13 11:55:22 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>326769</attachid>
            <date>2017-11-13 10:22:22 -0800</date>
            <delta_ts>2017-11-13 11:55:21 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-179616-20171113102221.patch</filename>
            <type>text/plain</type>
            <size>1884</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09P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XSwgcmV0dXJuX3N0ZGVycj1GYWxzZSwgZXJyb3Jf
aGFuZGxlcj1FeGVjdXRpdmUuaWdub3JlX2Vycm9yKS5yc3RyaXAoKQorICAgICAgICAgICAgaWYg
eGNydW5fb3V0cHV0OgorICAgICAgICAgICAgICAgIHJldHVybiBWZXJzaW9uKHhjcnVuX291dHB1
dCkKICAgICAgICAgcmV0dXJuIE5vbmUKIAogICAgIGRlZiB4Y29kZV9zaW1jdGxfbGlzdChzZWxm
KToK
</data>

          </attachment>
      

    </bug>

</bugzilla>