2023-05-11 17:57:49 +00:00
|
|
|
#
|
|
|
|
# Copyright 2023 The Dawn Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
#
|
|
|
|
|
2023-05-12 17:03:13 +00:00
|
|
|
def _milestone_details(*, chromium_project, ref, platforms):
|
|
|
|
"""Define the details for an active milestone.
|
2023-05-11 17:57:49 +00:00
|
|
|
|
2023-05-12 17:03:13 +00:00
|
|
|
Args:
|
|
|
|
* chromium_project - The name of the LUCI project that is configured for the
|
|
|
|
milestone.
|
|
|
|
* ref - The ref in the Dawn git repository that contains the code for the
|
|
|
|
milestone.
|
|
|
|
* platforms - A list of platform strings that the milestone is active for.
|
|
|
|
"""
|
|
|
|
return struct(
|
|
|
|
chromium_project = chromium_project,
|
|
|
|
ref = ref,
|
|
|
|
platforms = platforms,
|
|
|
|
)
|
2023-05-11 17:57:49 +00:00
|
|
|
|
|
|
|
ACTIVE_MILESTONES = {
|
|
|
|
m["name"]: _milestone_details(
|
2023-05-12 17:03:13 +00:00
|
|
|
chromium_project = m["chromium_project"],
|
|
|
|
ref = m["ref"],
|
|
|
|
platforms = m["platforms"],
|
|
|
|
)
|
|
|
|
for m in json.decode(io.read_file("./milestones.json")).values()
|
2023-05-11 17:57:49 +00:00
|
|
|
}
|