buildbucket_lib should 'raise' on an API error result. |
|||||||
Issue descriptionbuildbucket_lib currently assumes that a return code of 200 means that the API request was successful. This is not true (see crbug.com/720119 ). There are currently cases where we ignore error responses from the API (such as when scheduling builds). There are other places where the users of buildbot_lib examine the API response to see if there was an error. To be more straight forward and more consistent, we should raise an exception whenever we get a 200 response code, and the json response contains an 'error' key. We can attach the details of that json response to the exception for clients that need it.
,
May 16 2017
,
Jun 19 2017
,
Aug 3 2017
,
Sep 8 2017
This turned out to be a lot more complicated than I originally thought for a variety of reasons around how the API works. https://chromium-review.googlesource.com/#/c/chromiumos/chromite/+/655760/
,
Sep 26 2017
,
Jan 22 2018
,
Jan 23 2018
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by dgarr...@chromium.org
, May 11 2017