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

Issue 10582031: Fix Pylint presubmit check. (Closed)

Created:
8 years, 6 months ago by M-A Ruel
Modified:
8 years, 6 months ago
Reviewers:
chrisha
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org
Visibility:
Public.

Description

Fix Pylint presubmit check. First, the environment variable for the child process was created but not specified to subprocess.call(). Second, third_party/logilab/__init__.py tried to initialize itself with pkg_resources. TBR=chrisha@chromium.org BUG= TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143111

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -7 lines) Patch
presubmit_canned_checks.py View 1 chunk +1 line, -1 line 0 comments Download
tests/presubmit_unittest.py View 1 chunk +2 lines, -1 line 0 comments Download
third_party/logilab/__init__.py View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
M-A Ruel
8 years, 6 months ago (2012-06-20 00:50:19 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10582031/1
8 years, 6 months ago (2012-06-20 00:50:27 UTC) #2
commit-bot: I haz the power
Presubmit check for 10582031-1 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-20 00:52:41 UTC) #3
chrisha
I'm unable to review this as the patch appears to be empty (Rietveld just gives ...
8 years, 6 months ago (2012-06-20 13:20:32 UTC) #4
Peter Mayo
On 2012/06/20 13:20:32, chrisha wrote: > I'm unable to review this as the patch appears ...
8 years, 6 months ago (2012-06-20 13:55:39 UTC) #5
chrisha
I looked through the diff on viewvc, and it looks fine to me. But, ditto ...
8 years, 6 months ago (2012-06-20 14:04:52 UTC) #6
M-A Ruel
8 years, 6 months ago (2012-06-20 14:28:23 UTC) #7
On 2012/06/20 14:04:52, chrisha wrote:
> I looked through the diff on viewvc, and it looks fine to me. But, ditto on
> Peter's comment regarding the pkg_resources. It appears that it's only
necessary
> so that individually packaged eggs can have overlapping namespaces? (Which is
> not an issue for us because the packages have been unzipped and dumped in a
> directory hierarchy together?)
> 
> Otherwise, lgtm.

FTR, you can see the diff with the "Download raw patch set" link;
https://chromiumcodereview.appspot.com/download/issue10582031_1.diff

The problem happens to whoever has pylint installed. The declare_namespace()
call caused the version in
/usr/local/lib/python2.7/dist-packages/pylint-0.25.1-py2.7.egg/pylint/ to be
instantiated, causing conflicts with the one in third_party.

Powered by Google App Engine
This is Rietveld 408576698