<?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>185163</bug_id>
          
          <creation_ts>2018-05-01 08:04:04 -0700</creation_ts>
          <short_desc>Add REST API endpoint to list supported platforms for stored archives</short_desc>
          <delta_ts>2018-06-29 13:00:18 -0700</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>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Lucas Forschler">lforschler</reporter>
          <assigned_to name="Lucas Forschler">lforschler</assigned_to>
          <cc>amal</cc>
    
    <cc>ap</cc>
    
    <cc>lforschler</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1419294</commentid>
    <comment_count>0</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2018-05-01 08:04:04 -0700</bug_when>
    <thetext>In bisect-builds, we are currently hardcoding platform support. This should be queried dynamically, via a rest api
def minified_platforms():
    # FIXME: query this dynamically from API
    return  [&apos;mac-elcapitan&apos;, &apos;mac-sierra&apos;, &apos;mac-highsierra&apos;, &apos;ios-simulator-10&apos;, &apos;ios-simulator-11&apos;]


def unminified_platforms():
    # FIXME: query this dynamically from API
    return [&apos;gtk&apos;, &apos;ios-simulator-10&apos;, &apos;ios-simulator-11&apos;, &apos;mac-elcapitan&apos;, &apos;mac-sierra&apos;, &apos;mac-highsierra&apos;, &apos;win&apos;, &apos;wpe&apos;]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1419295</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-05-01 08:09:45 -0700</bug_when>
    <thetext>&lt;rdar://problem/39865908&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1437703</commentid>
    <comment_count>2</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2018-06-28 23:03:05 -0700</bug_when>
    <thetext>I’ve added two additional dynamoDB databases to assist with this:
platforms.webkit.org
minified-platforms.webkit.org

The lambda functions which register individual archives will now also write out the platform to these databases. They include an expirationTime (TTL) as well, and will function/expire just like the archives.

We will be able to query these tables to get a list of platforms. The platform entries will expire at the same time that the archives themselves expire… this will ensure no ongoing maintenance is required as archives hit their retention time.

note: i did not go back and create any entries for older platforms… these will be created only when new archives are built. This could be a problem for query previous releases that have not fallen outside our retention window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1437868</commentid>
    <comment_count>3</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2018-06-29 12:59:37 -0700</bug_when>
    <thetext>I&apos;ve added API endpoints for platforms, and minified-platforms.

https://q1tzqfy48e.execute-api.us-west-2.amazonaws.com/v2_2/minified-platforms

https://q1tzqfy48e.execute-api.us-west-2.amazonaws.com/v2_2/platforms</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>