Commit e1bbf321 authored by andybons's avatar andybons Committed by Commit bot

[GN]: Fix bug in roller script with try servers

The API endpoint being used appears to be broken. There is a direct URL
to the try_server_results data, so use that.

BUG=none

Review URL: https://codereview.chromium.org/1365393002

Cr-Commit-Position: refs/heads/master@{#350906}
parent 8ca55630
...@@ -206,12 +206,11 @@ class GNRoller(object): ...@@ -206,12 +206,11 @@ class GNRoller(object):
patchset = int(props['patchsets'][-1]) patchset = int(props['patchsets'][-1])
try: try:
patchset_data = json.loads(rpc_server.Send('/api/%d/%d' % try_job_results = json.loads(rpc_server.Send(
(issue, patchset))) '/api/%d/%d/try_job_results' % (issue, patchset)))
except Exception as _e: except Exception as _e:
raise raise
try_job_results = patchset_data['try_job_results']
if not try_job_results: if not try_job_results:
print('No try jobs found on most recent patchset') print('No try jobs found on most recent patchset')
return {} return {}
...@@ -375,7 +374,7 @@ class GNRoller(object): ...@@ -375,7 +374,7 @@ class GNRoller(object):
gn_changes = self.GetGNChanges() gn_changes = self.GetGNChanges()
return ( return (
'Roll DEPS %s..%s\n' 'Roll buildtools %s..%s\n'
'\n' '\n'
' In order to roll GN %s..%s (r%s:r%s) and pick up\n' ' In order to roll GN %s..%s (r%s:r%s) and pick up\n'
' the following changes:\n' ' the following changes:\n'
......
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