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

Issue 143013004: Fix _CheckFilePermissions to actually flag presubmit errors (Closed)

Created:
6 years, 10 months ago by adamk
Modified:
6 years, 10 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Nico, Lei Zhang
Visibility:
Public.

Description

Fix _CheckFilePermissions to actually flag presubmit errors Previously it was misusing subprocess.Popen such that no output was ever captured from checkperms.py. Also, changed the check to use input_api.subprocess instead of importing subprocess. R=maruel@chromium.org NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247805

Patch Set 1 : Again #

Total comments: 10

Patch Set 2 : use input_api.subprocess #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -8 lines) Patch
M PRESUBMIT.py View 1 2 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
adamk
6 years, 10 months ago (2014-01-29 19:57:57 UTC) #1
adamk
6 years, 10 months ago (2014-01-29 19:57:58 UTC) #2
adamk
6 years, 10 months ago (2014-01-29 19:57:59 UTC) #3
adamk
6 years, 10 months ago (2014-01-29 19:58:00 UTC) #4
M-A Ruel
https://codereview.chromium.org/143013004/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/143013004/diff/20001/PRESUBMIT.py#newcode12 PRESUBMIT.py:12: import re Remove https://codereview.chromium.org/143013004/diff/20001/PRESUBMIT.py#newcode13 PRESUBMIT.py:13: import subprocess Remove https://codereview.chromium.org/143013004/diff/20001/PRESUBMIT.py#newcode529 ...
6 years, 10 months ago (2014-01-29 21:28:19 UTC) #5
adamk
https://codereview.chromium.org/143013004/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/143013004/diff/20001/PRESUBMIT.py#newcode12 PRESUBMIT.py:12: import re On 2014/01/29 21:28:19, M-A Ruel wrote: > ...
6 years, 10 months ago (2014-01-29 21:39:54 UTC) #6
M-A Ruel
https://codereview.chromium.org/143013004/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/143013004/diff/20001/PRESUBMIT.py#newcode529 PRESUBMIT.py:529: checkperms = subprocess.Popen(args, stdout=subprocess.PIPE) On 2014/01/29 21:39:54, adamk wrote: ...
6 years, 10 months ago (2014-01-29 21:47:04 UTC) #7
adamk
Now using input_api.subprocess. https://codereview.chromium.org/143013004/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/143013004/diff/20001/PRESUBMIT.py#newcode529 PRESUBMIT.py:529: checkperms = subprocess.Popen(args, stdout=subprocess.PIPE) On 2014/01/29 ...
6 years, 10 months ago (2014-01-29 21:52:54 UTC) #8
M-A Ruel
lgtm
6 years, 10 months ago (2014-01-30 01:36:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adamk@chromium.org/143013004/30001
6 years, 10 months ago (2014-01-30 01:40:17 UTC) #10
commit-bot: I haz the power
Change committed as 247805
6 years, 10 months ago (2014-01-30 01:44:35 UTC) #11
scottmg
This makes it impossible to upload .py files from Windows: ... ** Presubmit ERRORS ** ...
6 years, 10 months ago (2014-02-03 20:05:48 UTC) #12
adamk
On 2014/02/03 20:05:48, scottmg wrote: > This makes it impossible to upload .py files from ...
6 years, 10 months ago (2014-02-03 20:34:45 UTC) #13
Nico
On Mon, Feb 3, 2014 at 12:34 PM, <adamk@chromium.org> wrote: > On 2014/02/03 20:05:48, scottmg ...
6 years, 10 months ago (2014-02-03 20:47:51 UTC) #14
adamk
6 years, 10 months ago (2014-02-04 00:24:52 UTC) #15
Message was sent while issue was closed.
For those following along at home,
https://src.chromium.org/viewvc/chrome?revision=248605&view=revision skips the
check on Windows.

Powered by Google App Engine
This is Rietveld 408576698