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

Issue 17763004: Fixes depot_tools presubmit (Closed)

Created:
7 years, 6 months ago by hinoka
Modified:
7 years, 6 months ago
Reviewers:
cmp, Ryan Tseng, Dirk Pranke
CC:
chromium-reviews, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org
Visibility:
Public.

Description

Fixes depot_tools presubmit basic.sh expects "work: None", but "work: " is printed instead, which breaks presubmit. This fixes it. BUG= R=dpranke@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208799

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : CQ is using the wrong copy of presubmit to run tests, fix for that. #

Total comments: 4

Patch Set 4 : Review changes, added os_pathsep to input_api #

Patch Set 5 : Back to patchset 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M git_cl.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Ryan Tseng
7 years, 6 months ago (2013-06-25 22:38:54 UTC) #1
Dirk Pranke
lgtm lgtm
7 years, 6 months ago (2013-06-25 22:39:49 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hinoka@chromium.org/17763004/2001
7 years, 6 months ago (2013-06-25 22:41:18 UTC) #3
commit-bot: I haz the power
Presubmit check for 17763004-2001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 6 months ago (2013-06-25 22:44:03 UTC) #4
Ryan Tseng
I think presubmit failed again because test.sh calls "git cl <args>", which actually points to ...
7 years, 6 months ago (2013-06-26 01:12:17 UTC) #5
iannucci
https://codereview.chromium.org/17763004/diff/7002/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/17763004/diff/7002/PRESUBMIT.py#newcode64 PRESUBMIT.py:64: input_api.environ['PATH'] = '%s:%s' % (input_api.PresubmitLocalPath(), use os.pathsep instead of ...
7 years, 6 months ago (2013-06-26 01:18:23 UTC) #6
Dirk Pranke
The downside to this patch is that you could add a bad presubmit.py check that ...
7 years, 6 months ago (2013-06-26 01:18:44 UTC) #7
Ryan Tseng
Review changes made. So the issue was, 7 days ago, this CL was landed: https://chromiumcodereview.appspot.com/17379008 ...
7 years, 6 months ago (2013-06-26 01:29:06 UTC) #8
Dirk Pranke
On 2013/06/26 01:29:06, Ryan T. wrote: > Review changes made. > So the issue was, ...
7 years, 6 months ago (2013-06-26 01:34:37 UTC) #9
Ryan Tseng
I'll dcommit the original patch and move the "wrong depot_tools" issue into another CL
7 years, 6 months ago (2013-06-26 22:09:44 UTC) #10
hinoka
Committed patchset #5 manually as r208799 (presubmit successful).
7 years, 6 months ago (2013-06-26 22:13:34 UTC) #11
Dan Beam
7 years, 6 months ago (2013-06-27 03:36:39 UTC) #12
Message was sent while issue was closed.
On 2013/06/26 01:29:06, Ryan T. wrote:
> Review changes made.
> So the issue was, 7 days ago, this CL was landed:
> https://chromiumcodereview.appspot.com/17379008
> 
> And as you can tell, it actually did go through the CQ and passed presubmit
even
> though one of the files it changed broke presubmit.  Why?  Probably because
the
> CQ presubmit is called the wrong version of depot_tools/git-cl.

Sorry for the breakage, didn't know something depended on this :(.

-- Dan

> 
> https://codereview.chromium.org/17763004/diff/7002/PRESUBMIT.py
> File PRESUBMIT.py (right):
> 
> https://codereview.chromium.org/17763004/diff/7002/PRESUBMIT.py#newcode57
> PRESUBMIT.py:57: print input_api.PresubmitLocalPath()
> On 2013/06/26 01:18:44, Dirk Pranke wrote:
> > I don't think you actually want this print statement ...
> 
> Oops, fixed.
> 
> https://codereview.chromium.org/17763004/diff/7002/PRESUBMIT.py#newcode64
> PRESUBMIT.py:64: input_api.environ['PATH'] = '%s:%s' %
> (input_api.PresubmitLocalPath(),
> On 2013/06/26 01:18:23, iannucci wrote:
> > use os.pathsep instead of ':'
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698