Bug 185163 - Add REST API endpoint to list supported platforms for stored archives
Summary: Add REST API endpoint to list supported platforms for stored archives
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Lucas Forschler
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-05-01 08:04 PDT by Lucas Forschler
Modified: 2018-06-29 13:00 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Forschler 2018-05-01 08:04:04 PDT
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  ['mac-elcapitan', 'mac-sierra', 'mac-highsierra', 'ios-simulator-10', 'ios-simulator-11']


def unminified_platforms():
    # FIXME: query this dynamically from API
    return ['gtk', 'ios-simulator-10', 'ios-simulator-11', 'mac-elcapitan', 'mac-sierra', 'mac-highsierra', 'win', 'wpe']
Comment 1 Radar WebKit Bug Importer 2018-05-01 08:09:45 PDT
<rdar://problem/39865908>
Comment 2 Lucas Forschler 2018-06-28 23:03:05 PDT
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.
Comment 3 Lucas Forschler 2018-06-29 12:59:37 PDT
I'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