Bug 179616 - REGRESSION(r224658): check-webkit-style cannot construct valid iOS version without an iOS SDK
Summary: REGRESSION(r224658): check-webkit-style cannot construct valid iOS version wi...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2017-11-13 10:16 PST by Jonathan Bedard
Modified: 2017-11-13 21:55 PST (History)
10 users (show)

See Also:


Attachments
Patch (1.84 KB, patch)
2017-11-13 10:22 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2017-11-13 10:16:13 PST
After <https://trac.webkit.org/changeset/224658>, when running check-webkit-style on a Mac without an iOS SDK, an exception is thrown.

This is quite related to <https://bugs.webkit.org/show_bug.cgi?id=179534>, but the fix for this problem is much smaller and a subset of the fixed for the larger issue.
Comment 1 Radar WebKit Bug Importer 2017-11-13 10:16:35 PST
<rdar://problem/35507018>
Comment 2 Jonathan Bedard 2017-11-13 10:22:22 PST
Created attachment 326769 [details]
Patch
Comment 3 Simon Fraser (smfr) 2017-11-13 10:33:28 PST
Comment on attachment 326769 [details]
Patch

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

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

But the problem is related to iOS SDKs, not mac.
Comment 4 Jonathan Bedard 2017-11-13 11:00:25 PST
Comment on attachment 326769 [details]
Patch

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

>> Tools/ChangeLog:10
>> +        we should return None.
> 
> 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's iOS that'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.
Comment 5 David Kilzer (:ddkilzer) 2017-11-13 11:17:40 PST
Comment on attachment 326769 [details]
Patch

r=me

Please check the Win EWS (it's orange) before landing.
Comment 6 Jonathan Bedard 2017-11-13 11:36:32 PST
(In reply to David Kilzer (:ddkilzer) from comment #5)
> Comment on attachment 326769 [details]
> Patch
> 
> r=me
> 
> Please check the Win EWS (it's orange) before landing.

It was test failures for mac and a borked SVN for Windows, everything is green now.
Comment 7 WebKit Commit Bot 2017-11-13 11:55:21 PST
Comment on attachment 326769 [details]
Patch

Clearing flags on attachment: 326769

Committed r224765: <https://trac.webkit.org/changeset/224765>
Comment 8 WebKit Commit Bot 2017-11-13 11:55:22 PST
All reviewed patches have been landed.  Closing bug.