Bug 185163
| Summary: | Add REST API endpoint to list supported platforms for stored archives | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Lucas Forschler <lforschler> |
| Component: | Tools / Tests | Assignee: | Lucas Forschler <lforschler> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | amal, ap, lforschler, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 11 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Lucas Forschler
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']
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/39865908>
Lucas Forschler
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.
Lucas Forschler
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