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

Issue 562953002: Rough verification code to ensure deps hosts \in allowed_hosts. (Closed)

Created:
6 years, 3 months ago by tandrii(chromium)
Modified:
6 years, 3 months ago
Reviewers:
iannucci
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Project:
tools
Visibility:
Public.

Description

Rough verification code to ensure deps hosts \in allowed_hosts. BUG=371012 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=292088

Patch Set 1 #

Patch Set 2 : Refactoring CMDverify + Tests #

Patch Set 3 : cleaning1 #

Total comments: 10

Patch Set 4 : Switched to set(), Warning for defined but empty allowed_host. #

Patch Set 5 : cleanup of TODOs, better docs #

Patch Set 6 : final #

Total comments: 10

Patch Set 7 : Frozenset everywhere, test for non-iterable. #

Patch Set 8 : TypeError for non-iterables, fixed test for correct exception testing. #

Total comments: 4

Patch Set 9 : Fixed docs + iannucci suggestions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -1 line) Patch
M gclient.py View 1 2 3 4 5 6 7 8 6 chunks +60 lines, -1 line 0 comments Download
M tests/gclient_test.py View 1 2 3 4 5 6 7 1 chunk +118 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
tandrii(chromium)
iannucci@ please have a look at my rough idea. I'm waiting for your feedback.
6 years, 3 months ago (2014-09-11 16:05:15 UTC) #2
tandrii(chromium)
PTAL CMDverify now works non-recursively checking allowed_hosts in 1-st level DEPS only. Also added tests. ...
6 years, 3 months ago (2014-09-15 15:53:03 UTC) #3
iannucci
looks pretty good. I think for now we should just add it as a PRESUBMIT ...
6 years, 3 months ago (2014-09-16 20:34:08 UTC) #4
tandrii(chromium)
Just one comment; more to follow with code. https://codereview.chromium.org/562953002/diff/40001/gclient.py File gclient.py (right): https://codereview.chromium.org/562953002/diff/40001/gclient.py#newcode696 gclient.py:696: if ...
6 years, 3 months ago (2014-09-16 21:03:20 UTC) #5
tandrii(chromium)
https://codereview.chromium.org/562953002/diff/40001/gclient.py File gclient.py (right): https://codereview.chromium.org/562953002/diff/40001/gclient.py#newcode782 gclient.py:782: # TODO(tandrii): what about other possible URL types? On ...
6 years, 3 months ago (2014-09-17 15:16:00 UTC) #6
tandrii(chromium)
PTAL And the follow up CLs for the same bug in chromium repo: https://codereview.chromium.org/578423002/ https://codereview.chromium.org/575283005/ ...
6 years, 3 months ago (2014-09-18 19:59:59 UTC) #7
iannucci
lgtm sorry for the delay https://codereview.chromium.org/562953002/diff/100001/gclient.py File gclient.py (right): https://codereview.chromium.org/562953002/diff/100001/gclient.py#newcode349 gclient.py:349: self._allowed_hosts = set() make ...
6 years, 3 months ago (2014-09-18 20:54:41 UTC) #8
tandrii(chromium)
Thanks, you've helped find bugs in testing code as well (missing '\n' at the end ...
6 years, 3 months ago (2014-09-18 21:45:58 UTC) #9
iannucci
still lgtm https://codereview.chromium.org/562953002/diff/140001/gclient.py File gclient.py (right): https://codereview.chromium.org/562953002/diff/140001/gclient.py#newcode699 gclient.py:699: self._allowed_hosts = frozenset() should be able to ...
6 years, 3 months ago (2014-09-22 18:44:45 UTC) #10
tandrii(chromium)
https://codereview.chromium.org/562953002/diff/140001/gclient.py File gclient.py (right): https://codereview.chromium.org/562953002/diff/140001/gclient.py#newcode699 gclient.py:699: self._allowed_hosts = frozenset() On 2014/09/22 18:44:45, iannucci wrote: > ...
6 years, 3 months ago (2014-09-23 11:46:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/562953002/160001
6 years, 3 months ago (2014-09-23 11:47:42 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 11:49:55 UTC) #14
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as 292088

Powered by Google App Engine
This is Rietveld 408576698