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

Issue 2868333004: Add URL recipe module from "depot_tools". (Closed)

Created:
3 years, 7 months ago by dnj
Modified:
3 years, 7 months ago
CC:
chromium-reviews, infra-reviews+recipes-py_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add "url" recipe module to base. Add the "url" recipe module, originally from "depot_tools", to the base recipe modules. This module has a shiny new API, stronger tests, and a more efficient and correct backend "pycurl.py" resource. This also uses "vpython" to run URL commands in a VirtualEnv containing all of the prerequisites for "requests" to perform secure HTTPS transactions. BUG=None TEST=local Review-Url: https://codereview.chromium.org/2868333004 Committed: https://github.com/luci/recipes-py/commit/c6560f3627af81c9004024079525ef63a223d33a

Patch Set 1 #

Patch Set 2 : Better API? #

Patch Set 3 : response api object #

Total comments: 16

Patch Set 4 : comments, improvements, awesomeness #

Patch Set 5 : fix/texst urllib methods, remove non_step #

Total comments: 2

Patch Set 6 : bug fixes, live tests via "run". #

Patch Set 7 : updated w/ comment #

Patch Set 8 : Update comments with exceptions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+878 lines, -0 lines) Patch
A recipe_modules/url/__init__.py View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A recipe_modules/url/api.py View 1 2 3 4 5 6 7 1 chunk +256 lines, -0 lines 0 comments Download
A recipe_modules/url/example.py View 1 2 3 4 5 1 chunk +98 lines, -0 lines 0 comments Download
A recipe_modules/url/example.expected/basic.json View 1 2 3 4 5 1 chunk +128 lines, -0 lines 0 comments Download
A recipe_modules/url/resources/pycurl.py View 1 2 3 4 5 6 7 1 chunk +222 lines, -0 lines 0 comments Download
A recipe_modules/url/test_api.py View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A recipe_modules/url/tests/join.py View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
A recipe_modules/url/tests/join.expected/basic.json View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A recipe_modules/url/tests/validate_url.py View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A recipe_modules/url/tests/validate_url.expected/basic.json View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A recipe_modules/url/tests/validate_url.expected/invalid_scheme.json View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A recipe_modules/url/tests/validate_url.expected/no_host.json View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A recipe_modules/url/tests/validate_url.expected/no_scheme.json View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (16 generated)
dnj (Google)
PTAL
3 years, 7 months ago (2017-05-10 22:38:05 UTC) #2
iannucci
yay! lgtm +phosek fyi https://codereview.chromium.org/2868333004/diff/40001/recipe_modules/url/api.py File recipe_modules/url/api.py (right): https://codereview.chromium.org/2868333004/diff/40001/recipe_modules/url/api.py#newcode10 recipe_modules/url/api.py:10: quote = staticmethod(urllib.quote) buh? staticmethod ...
3 years, 7 months ago (2017-05-12 00:53:52 UTC) #4
dnj
https://codereview.chromium.org/2868333004/diff/40001/recipe_modules/url/api.py File recipe_modules/url/api.py (right): https://codereview.chromium.org/2868333004/diff/40001/recipe_modules/url/api.py#newcode10 recipe_modules/url/api.py:10: quote = staticmethod(urllib.quote) On 2017/05/12 00:53:52, iannucci wrote: > ...
3 years, 7 months ago (2017-05-12 02:15:05 UTC) #5
phosek
lgtm! awesome, waiting impatiently for this to land
3 years, 7 months ago (2017-05-12 02:40:29 UTC) #11
dnj
On 2017/05/12 02:40:29, phosek wrote: > lgtm! awesome, waiting impatiently for this to land Sorry ...
3 years, 7 months ago (2017-05-12 02:57:41 UTC) #12
iannucci
lgtm w/ nit https://codereview.chromium.org/2868333004/diff/80001/recipe_modules/url/api.py File recipe_modules/url/api.py (right): https://codereview.chromium.org/2868333004/diff/80001/recipe_modules/url/api.py#newcode189 recipe_modules/url/api.py:189: headers = headers or {} not ...
3 years, 7 months ago (2017-05-12 07:52:59 UTC) #13
dnj
https://codereview.chromium.org/2868333004/diff/80001/recipe_modules/url/api.py File recipe_modules/url/api.py (right): https://codereview.chromium.org/2868333004/diff/80001/recipe_modules/url/api.py#newcode189 recipe_modules/url/api.py:189: headers = headers or {} On 2017/05/12 07:52:58, iannucci ...
3 years, 7 months ago (2017-05-12 15:50:26 UTC) #14
dnj
Update comments with exceptions
3 years, 7 months ago (2017-05-12 15:54:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2868333004/140001
3 years, 7 months ago (2017-05-12 16:04:40 UTC) #23
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 16:07:37 UTC) #26
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://github.com/luci/recipes-py/commit/c6560f3627af81c9004024079525ef63a22...

Powered by Google App Engine
This is Rietveld 408576698