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

Issue 924863002: Remove the Singleton<T> presubmit check from presubmit_canned_checks.py (Closed)

Created:
5 years, 10 months ago by Alexander Potapenko
Modified:
5 years, 10 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, cmp-cc_chromium.org, 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
Project:
tools
Visibility:
Public.

Description

Remove the Singleton<T> presubmit check from presubmit_canned_checks.py This check is specific to Chromium codebase, there's no point in having it in depot_tools. BUG=None R=maruel@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=294124

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed the presubmit test #

Total comments: 3

Patch Set 3 : Fixed the presubmit unittest #

Patch Set 4 : Restore CheckSingletonInHeaders() #

Total comments: 2

Patch Set 5 : Add a deprecation warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -61 lines) Patch
M presubmit_canned_checks.py View 1 2 3 4 2 chunks +5 lines, -23 lines 0 comments Download
M tests/presubmit_unittest.py View 1 2 3 2 chunks +0 lines, -38 lines 0 comments Download

Messages

Total messages: 26 (3 generated)
Alexander Potapenko
Jochen, can you please take a look? The presubmit warning I'm trying to fix prevents ...
5 years, 10 months ago (2015-02-13 13:04:40 UTC) #2
Alexander Potapenko
Jochen is OOO. Marc-Antoine, may I ask you to review this?
5 years, 10 months ago (2015-02-13 16:55:06 UTC) #4
M-A Ruel
https://codereview.chromium.org/924863002/diff/1/presubmit_canned_checks.py File presubmit_canned_checks.py (right): https://codereview.chromium.org/924863002/diff/1/presubmit_canned_checks.py#newcode973 presubmit_canned_checks.py:973: def CheckSingletonInHeaders(input_api, output_api, source_file_filter=None): I wonder why this check ...
5 years, 10 months ago (2015-02-13 17:04:18 UTC) #5
Alexander Potapenko
On 2015/02/13 17:04:18, M-A Ruel wrote: > https://codereview.chromium.org/924863002/diff/1/presubmit_canned_checks.py > File presubmit_canned_checks.py (right): > > https://codereview.chromium.org/924863002/diff/1/presubmit_canned_checks.py#newcode973 ...
5 years, 10 months ago (2015-02-13 17:10:12 UTC) #6
M-A Ruel
Yes Sent by touching glass Le 2015-02-13 12:10, <glider@chromium.org> a écrit : > On 2015/02/13 ...
5 years, 10 months ago (2015-02-13 17:27:41 UTC) #7
Alexander Potapenko
I'm adding this check to src/PRESUBMIT.py in https://codereview.chromium.org/933253002/ But I cannot cleanly remove it from ...
5 years, 10 months ago (2015-02-18 13:44:19 UTC) #8
M-A Ruel
https://codereview.chromium.org/924863002/diff/20001/tests/presubmit_unittest.py File tests/presubmit_unittest.py (right): https://codereview.chromium.org/924863002/diff/20001/tests/presubmit_unittest.py#newcode2841 tests/presubmit_unittest.py:2841: for _ in range(3): change 3 to 2. pymox ...
5 years, 10 months ago (2015-02-18 13:49:40 UTC) #9
Alexander Potapenko
You bet. diff --git a/tests/presubmit_unittest.py b/tests/presubmit_unittest.py index 1cb0119..88eda79 100755 --- a/tests/presubmit_unittest.py +++ b/tests/presubmit_unittest.py @@ -2838,7 ...
5 years, 10 months ago (2015-02-18 13:59:03 UTC) #10
M-A Ruel
https://codereview.chromium.org/924863002/diff/20001/tests/presubmit_unittest.py File tests/presubmit_unittest.py (right): https://codereview.chromium.org/924863002/diff/20001/tests/presubmit_unittest.py#newcode2854 tests/presubmit_unittest.py:2854: input_api.AffectedSourceFiles(mox.IgnoreArg()).AndReturn([affected_file]) It was this one in fact, since it's ...
5 years, 10 months ago (2015-02-18 14:06:47 UTC) #11
Alexander Potapenko
Nope: FAIL: testPanProjectChecks (__main__.CannedChecksUnittest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/google/ssd/depot_tools/third_party/pymox/mox.py", line 1618, in ...
5 years, 10 months ago (2015-02-18 16:05:49 UTC) #12
M-A Ruel
https://codereview.chromium.org/924863002/diff/20001/tests/presubmit_unittest.py File tests/presubmit_unittest.py (right): https://codereview.chromium.org/924863002/diff/20001/tests/presubmit_unittest.py#newcode2855 tests/presubmit_unittest.py:2855: input_api.ReadFile(affected_file).AndReturn('Hey!\nHo!\nHey!\nHo!\n\n') Then you need to remove this one too. ...
5 years, 10 months ago (2015-02-18 16:08:15 UTC) #13
Alexander Potapenko
PS3 seems to be the minimal patch, the test seems to pass now.
5 years, 10 months ago (2015-02-19 14:43:10 UTC) #14
M-A Ruel
lgtm
5 years, 10 months ago (2015-02-19 14:43:40 UTC) #15
M-A Ruel
On 2015/02/19 14:43:40, M-A Ruel wrote: > lgtm Oh, not lgtm
5 years, 10 months ago (2015-02-19 14:43:57 UTC) #16
M-A Ruel
On 2015/02/19 14:43:57, M-A Ruel wrote: > On 2015/02/19 14:43:40, M-A Ruel wrote: > > ...
5 years, 10 months ago (2015-02-19 14:44:27 UTC) #17
Alexander Potapenko
On 2015/02/19 14:44:27, M-A Ruel wrote: > On 2015/02/19 14:43:57, M-A Ruel wrote: > > ...
5 years, 10 months ago (2015-02-19 14:47:49 UTC) #18
M-A Ruel
On 2015/02/19 14:47:49, Alexander Potapenko wrote: > On 2015/02/19 14:44:27, M-A Ruel wrote: > > ...
5 years, 10 months ago (2015-02-19 14:50:29 UTC) #19
Alexander Potapenko
Haha, pymox tried to check that function when I restored it: FAIL: testMembersChanged (__main__.CannedChecksUnittest) ---------------------------------------------------------------------- ...
5 years, 10 months ago (2015-02-19 15:02:13 UTC) #20
M-A Ruel
https://codereview.chromium.org/924863002/diff/60001/presubmit_canned_checks.py File presubmit_canned_checks.py (right): https://codereview.chromium.org/924863002/diff/60001/presubmit_canned_checks.py#newcode975 presubmit_canned_checks.py:975: return [] return [ output_api.PresubmitNotifyResult( 'CheckSingletonInHeaders is deprecated, please ...
5 years, 10 months ago (2015-02-19 16:12:03 UTC) #21
Alexander Potapenko
https://codereview.chromium.org/924863002/diff/60001/presubmit_canned_checks.py File presubmit_canned_checks.py (right): https://codereview.chromium.org/924863002/diff/60001/presubmit_canned_checks.py#newcode975 presubmit_canned_checks.py:975: return [] On 2015/02/19 16:12:03, M-A Ruel wrote: > ...
5 years, 10 months ago (2015-02-19 16:27:21 UTC) #22
M-A Ruel
lgtm
5 years, 10 months ago (2015-02-19 16:27:59 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/924863002/80001
5 years, 10 months ago (2015-02-19 16:30:28 UTC) #25
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 16:33:36 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=294124

Powered by Google App Engine
This is Rietveld 408576698