Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Issue 1683603002: Raise exceptions properly on HTTP errors from OAuthRpcServer (which is only used on bots) (Closed)

Created:
4 years, 10 months ago by dsansome
Modified:
4 years, 10 months ago
Reviewers:
Vadim Sh., agable
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Raise exceptions properly on HTTP errors from OAuthRpcServer (which is only used on bots) This will hopefully make Rietveld._send retry 500s like it promises to BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298688

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -5 lines) Patch
M rietveld.py View 4 chunks +10 lines, -5 lines 0 comments Download
M tests/rietveld_test.py View 2 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
dsansome
4 years, 10 months ago (2016-02-09 05:09:22 UTC) #2
agable
lgtm
4 years, 10 months ago (2016-02-09 19:13:04 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1683603002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683603002/1
4 years, 10 months ago (2016-02-09 23:15:02 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as http://src.chromium.org/viewvc/chrome?view=rev&revision=298688
4 years, 10 months ago (2016-02-09 23:17:18 UTC) #7
Vadim Sh.
This probable broke how depot_tools interacts with internal Rietveld. See https://code.google.com/p/chromium/issues/detail?id=585632 and https://uberchromegw.corp.google.com/i/internal.infra.try/builders/chrome-golo-presubmit/builds/411/steps/bot_update/logs/stdio for instances ...
4 years, 10 months ago (2016-02-09 23:56:41 UTC) #9
dsansome
4 years, 10 months ago (2016-02-10 00:00:03 UTC) #10
Message was sent while issue was closed.
On 2016/02/09 23:56:41, Vadim Sh. wrote:
> This probable broke how depot_tools interacts with internal Rietveld. See
> https://code.google.com/p/chromium/issues/detail?id=585632 and
>
https://uberchromegw.corp.google.com/i/internal.infra.try/builders/chrome-gol...
> for instances I saw:
> 
> DEBUG    rietveld( 418): /356847013/patchset/1/get_depends_on_patchset
> Traceback (most recent call last):
>   File "/mnt/data/b/depot_tools/apply_issue.py", line 323, in <module>
>     sys.exit(main())
>   File "/mnt/data/b/depot_tools/apply_issue.py", line 194, in main
>     options.issue, options.patchset)
>   File "/mnt/data/b/depot_tools/rietveld.py", line 95, in
> get_depends_on_patchset
>     resp = json.loads(self.post(url, []))
>   File "/mnt/data/b/depot_tools/rietveld.py", line 394, in post
>     return self._send(request_path, payload=body, content_type=ctype,
**kwargs)
>   File "/mnt/data/b/depot_tools/rietveld.py", line 457, in _send
>     print 'Request to %s failed: %s' % (e.geturl(), e.read())
>   File "/usr/lib/python2.7/urllib.py", line 1019, in geturl
>     return self.url
> AttributeError: 'HTTPError' object has no attribute 'url'

Uh oh, I'll roll it back and investigate

Powered by Google App Engine
This is Rietveld 408576698