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

Issue 1135173003: Create packages client/internal/ retry and lhttp. (Closed)

Created:
5 years, 7 months ago by M-A Ruel
Modified:
5 years, 7 months ago
Reviewers:
Vadim Sh.
CC:
chromium-reviews, todd, andrew.wang, tandrii(chromium)
Base URL:
git@github.com:luci/luci-go@3_UI
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Create packages client/internal/ retry and lhttp. - Migrate HTTP related code from client/internal/common to lhttp. - Add automatic retry function on HTTP failure via package retry. The retry package has 100% test coverage and lhttp in the 90%. It will be the building block to add authentication. R=vadimsh@chromium.org BUG= Committed: https://github.com/luci/luci-go/commit/3b1e91d92068d9e76409d00484d3d47fc40ed3cf

Patch Set 1 : . #

Total comments: 12

Patch Set 2 : Create lhttp.Retriable interface #

Unified diffs Side-by-side diffs Delta from patch set Stats (+703 lines, -128 lines) Patch
M client/cmd/isolate/common.go View 2 chunks +2 lines, -1 line 0 comments Download
M client/cmd/isolated/common.go View 2 chunks +2 lines, -2 lines 0 comments Download
M client/cmd/swarming/common.go View 2 chunks +2 lines, -2 lines 0 comments Download
M client/internal/common/json.go View 1 chunk +0 lines, -60 lines 0 comments Download
M client/internal/common/utils.go View 2 chunks +0 lines, -21 lines 0 comments Download
M client/internal/common/utils_test.go View 2 chunks +0 lines, -18 lines 0 comments Download
A client/internal/lhttp/client.go View 1 1 chunk +191 lines, -0 lines 0 comments Download
A client/internal/lhttp/client_test.go View 1 1 chunk +275 lines, -0 lines 0 comments Download
A + client/internal/lhttp/doc.go View 1 1 chunk +5 lines, -2 lines 0 comments Download
A client/internal/lhttp/utils.go View 1 chunk +29 lines, -0 lines 0 comments Download
A client/internal/lhttp/utils_test.go View 1 chunk +29 lines, -0 lines 0 comments Download
A client/internal/retry/doc.go View 1 chunk +8 lines, -0 lines 0 comments Download
A client/internal/retry/retry.go View 1 chunk +66 lines, -0 lines 0 comments Download
A client/internal/retry/retry_test.go View 1 chunk +70 lines, -0 lines 0 comments Download
M client/isolatedclient/isolatedclient.go View 1 6 chunks +19 lines, -14 lines 0 comments Download
M client/swarming/swarming.go View 1 2 chunks +5 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
M-A Ruel
I expect this to be the basis of all future http client code so I ...
5 years, 7 months ago (2015-05-13 19:32:49 UTC) #5
Vadim Sh.
lgtm with nits looks neat :) https://codereview.chromium.org/1135173003/diff/60001/client/internal/lhttp/client.go File client/internal/lhttp/client.go (right): https://codereview.chromium.org/1135173003/diff/60001/client/internal/lhttp/client.go#newcode81 client/internal/lhttp/client.go:81: // Retriable. ideally ...
5 years, 7 months ago (2015-05-13 21:54:48 UTC) #6
M-A Ruel
I created a new interface lhttp.Retriable. You can diff patchset #1 and #2 to see ...
5 years, 7 months ago (2015-05-14 01:00:54 UTC) #7
Vadim Sh.
lgtm
5 years, 7 months ago (2015-05-14 01:27:59 UTC) #8
M-A Ruel
5 years, 7 months ago (2015-05-15 01:41:10 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:80001) manually as
3b1e91d92068d9e76409d00484d3d47fc40ed3cf (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698