Commit 0e4c977d authored by Joey Scarr's avatar Joey Scarr Committed by Commit Bot

Fetch trooper oncall JSON from rotation proxy.

I've also modified lint-luci-milo.py to not throw an error when we add
new fields to Milo's project config proto. Having to manually update the
generated proto here on every added field is pointless.

Bug: 1071344
Change-Id: Ia625e4b92f38034ed4aebc8f2230c5d2f87ed829
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2289333
Auto-Submit: Joey Scarr <jsca@chromium.org>
Reviewed-by: default avatarGarrett Beaty <gbeaty@chromium.org>
Commit-Queue: Joey Scarr <jsca@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800919}
parent 92e4531e
...@@ -28,7 +28,8 @@ oncalls { ...@@ -28,7 +28,8 @@ oncalls {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
......
...@@ -521,7 +521,8 @@ consoles { ...@@ -521,7 +521,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -1185,7 +1186,8 @@ consoles { ...@@ -1185,7 +1186,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -1874,7 +1876,8 @@ consoles { ...@@ -1874,7 +1876,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -2588,7 +2591,8 @@ consoles { ...@@ -2588,7 +2591,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -3252,7 +3256,8 @@ consoles { ...@@ -3252,7 +3256,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -3941,7 +3946,8 @@ consoles { ...@@ -3941,7 +3946,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -4245,7 +4251,8 @@ consoles { ...@@ -4245,7 +4251,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -5029,7 +5036,8 @@ consoles { ...@@ -5029,7 +5036,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -5368,7 +5376,8 @@ consoles { ...@@ -5368,7 +5376,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -5846,7 +5855,8 @@ consoles { ...@@ -5846,7 +5855,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -6145,7 +6155,8 @@ consoles { ...@@ -6145,7 +6155,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -6474,7 +6485,8 @@ consoles { ...@@ -6474,7 +6485,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -6952,7 +6964,8 @@ consoles { ...@@ -6952,7 +6964,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -7346,7 +7359,8 @@ consoles { ...@@ -7346,7 +7359,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -7769,7 +7783,8 @@ consoles { ...@@ -7769,7 +7783,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -8412,7 +8427,8 @@ consoles { ...@@ -8412,7 +8427,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -8770,7 +8786,8 @@ consoles { ...@@ -8770,7 +8786,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -9153,7 +9170,8 @@ consoles { ...@@ -9153,7 +9170,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -10582,7 +10600,8 @@ consoles { ...@@ -10582,7 +10600,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -10912,7 +10931,8 @@ consoles { ...@@ -10912,7 +10931,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -11601,7 +11621,8 @@ consoles { ...@@ -11601,7 +11621,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -11970,7 +11991,8 @@ consoles { ...@@ -11970,7 +11991,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -12309,7 +12331,8 @@ consoles { ...@@ -12309,7 +12331,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -12673,7 +12696,8 @@ consoles { ...@@ -12673,7 +12696,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -13017,7 +13041,8 @@ consoles { ...@@ -13017,7 +13041,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -13336,7 +13361,8 @@ consoles { ...@@ -13336,7 +13361,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -13695,7 +13721,8 @@ consoles { ...@@ -13695,7 +13721,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -14024,7 +14051,8 @@ consoles { ...@@ -14024,7 +14051,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -14428,7 +14456,8 @@ consoles { ...@@ -14428,7 +14456,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
...@@ -14753,7 +14782,8 @@ consoles { ...@@ -14753,7 +14782,8 @@ consoles {
} }
oncalls { oncalls {
name: "Trooper" name: "Trooper"
url: "https://rota-ng.appspot.com/legacy/trooper.json" url: "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra"
show_primary_secondary_labels: true
} }
links { links {
name: "Builds" name: "Builds"
......
...@@ -56,7 +56,8 @@ def compare_builders(name, main_builders, sub_builders): ...@@ -56,7 +56,8 @@ def compare_builders(name, main_builders, sub_builders):
def main(): def main():
project = project_pb2.Project() project = project_pb2.Project()
with open(os.path.join(THIS_DIR, 'generated', 'luci-milo.cfg'), 'rb') as f: with open(os.path.join(THIS_DIR, 'generated', 'luci-milo.cfg'), 'rb') as f:
google.protobuf.text_format.Parse(f.read(), project) google.protobuf.text_format.Parse(f.read(), project,
allow_unknown_field=True)
# Maps subwaterfall name to list of builders on that subwaterfall # Maps subwaterfall name to list of builders on that subwaterfall
# on the main waterfall. # on the main waterfall.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment