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

Issue 6932060: Remove presubmit warning for long lines in .grd files (Closed)

Created:
9 years, 7 months ago by sail
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Dirk Pranke
Visibility:
Public.

Description

Remove presubmit warning for long lines in .grd files The presubmit check complained about long lines in .grd files. This isn't a useful warning since .grd files aren't really source files. The problem was that callers were passing in a file filter to InputApi.AffectedFiles but it was being ignored. Fix was to use the passed in file filter. BUG=None TEST=Ran on a local change and verified that I no longer got long line warnings on .grd files. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85148

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : Fix GRD long line warning #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

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

Messages

Total messages: 16 (0 generated)
sail
9 years, 7 months ago (2011-05-06 00:06:05 UTC) #1
nsylvain
marc-antoine knows more than me here.
9 years, 7 months ago (2011-05-06 00:41:39 UTC) #2
Dirk Pranke
How was this working at all if the caller was passing in a file_filter argument, ...
9 years, 7 months ago (2011-05-06 01:03:26 UTC) #3
sail
On 2011/05/06 01:03:26, Dirk Pranke wrote: > How was this working at all if the ...
9 years, 7 months ago (2011-05-06 01:15:37 UTC) #4
Dirk Pranke
On 2011/05/06 01:15:37, sail wrote: > On 2011/05/06 01:03:26, Dirk Pranke wrote: > > How ...
9 years, 7 months ago (2011-05-06 03:21:00 UTC) #5
commit-bot: I haz the power
Presubmit check for 6932060-1 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-06 03:31:37 UTC) #6
M-A Ruel
One error is genuine, I'll take a look.
9 years, 7 months ago (2011-05-06 13:30:50 UTC) #7
M-A Ruel
On 2011/05/06 13:30:50, Marc-Antoine Ruel wrote: > One error is genuine, I'll take a look. ...
9 years, 7 months ago (2011-05-06 13:54:13 UTC) #8
sail
Fixed presubmit errors and addressed review comments. Please take another look. Thanks!
9 years, 7 months ago (2011-05-09 19:51:05 UTC) #9
M-A Ruel
It doesn't pass clean here: (test2=b1ce77) ~/src/depot_tools> git cl patch 6932060 Current branch test2 is ...
9 years, 7 months ago (2011-05-09 20:13:44 UTC) #10
sail
On 2011/05/09 20:13:44, Marc-Antoine Ruel wrote: > It doesn't pass clean here: I'm getting errors ...
9 years, 7 months ago (2011-05-09 21:01:33 UTC) #11
M-A Ruel
On 2011/05/09 21:01:33, sail wrote: > On 2011/05/09 20:13:44, Marc-Antoine Ruel wrote: > > It ...
9 years, 7 months ago (2011-05-10 13:40:31 UTC) #12
sail
Fixed presubmit test. Thanks! http://codereview.chromium.org/6932060/diff/10001/presubmit_support.py File presubmit_support.py (right): http://codereview.chromium.org/6932060/diff/10001/presubmit_support.py#newcode738 presubmit_support.py:738: affected = filter(lambda x: file_filter(x), ...
9 years, 7 months ago (2011-05-10 16:53:25 UTC) #13
M-A Ruel
Fix these and lgtm. http://codereview.chromium.org/6932060/diff/15001/tests/presubmit_unittest.py File tests/presubmit_unittest.py (right): http://codereview.chromium.org/6932060/diff/15001/tests/presubmit_unittest.py#newcode1395 tests/presubmit_unittest.py:1395: input_api1.AffectedFiles(include_deletes=False, ************* Module tests.presubmit_unittest C0301:1396: ...
9 years, 7 months ago (2011-05-10 17:18:48 UTC) #14
sail
http://codereview.chromium.org/6932060/diff/15001/tests/presubmit_unittest.py File tests/presubmit_unittest.py (right): http://codereview.chromium.org/6932060/diff/15001/tests/presubmit_unittest.py#newcode1395 tests/presubmit_unittest.py:1395: input_api1.AffectedFiles(include_deletes=False, On 2011/05/10 17:18:48, Marc-Antoine Ruel wrote: > ************* ...
9 years, 7 months ago (2011-05-10 17:25:12 UTC) #15
commit-bot: I haz the power
9 years, 7 months ago (2011-05-12 15:06:12 UTC) #16
Presubmit check for 6932060-18001 failed and returned exit status 1.

Running presubmit commit checks ...
Syncing rietveld...
Running push-basic.sh
Running save-description-on-failure.sh
Running basic.sh
Running upload-stale.sh
Running upload-local-tracking-branch.sh
Running patch.sh
Running submit-from-new-dir.sh
Running post-dcommit-hook-test.sh
Running hooks.sh
Running abandon.sh
Running tbr.sh
Running upstream.sh

** Presubmit Messages **
You should install python 2.5 and run ln -s $(which python2.5) python.
A great place to put this symlink is in depot_tools.
Otherwise, you break depot_tools on python 2.5, you get to keep the pieces.

** Presubmit ERRORS **
tests/gclient_smoketest.py failed!
Command tests/gclient_smoketest.py returned non-zero exit status 1 in
/mnt/data/b/commit-queue/workdir/depot_tools
.......F...............................
======================================================================
FAIL: testMultiSolutionsJobs (__main__.GClientSmokeBoth)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gclient_smoketest.py", line 1009, in testMultiSolutionsJobs
    untangle=True)
  File "tests/gclient_smoketest.py", line 77, in parseGclient
    return self.checkBlock(stdout, items)
  File "tests/gclient_smoketest.py", line 137, in checkBlock
    self.checkString(results[i][0][2], path, (i, results[i][0][2], path))
  File "/mnt/data/b/commit-queue/workdir/depot_tools/tests/fake_repos.py", line
672, in checkString
    self.assertEquals(expected, result, msg)
AssertionError: (3,
'/tmp/trialrOBfqj/__main__.GClientSmokeBoth.testMultiSolutionsJobs',
'/tmp/trialrOBfqj/__main__.GClientSmokeBoth.testMultiSolutionsJobs/src/file/other')

----------------------------------------------------------------------
Ran 39 tests in 193.958s

FAILED (failures=1)


tests/gclient_scm_test.py failed!
Command tests/gclient_scm_test.py returned non-zero exit status 1 in
/mnt/data/b/commit-queue/workdir/depot_tools
...........EE...................
======================================================================
ERROR: testUpdateUnstagedConflict (__main__.GitWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gclient_scm_test.py", line 757, in testUpdateUnstagedConflict
    scm.update(options, (), [])
  File "/mnt/data/b/commit-queue/workdir/depot_tools/gclient_scm.py", line 395,
in update
    raise gclient_utils.Error(e.stderr)
Error: error: Your local changes to 'b' would be overwritten by merge. 
Aborting.
Please, commit your changes or stash them before you can merge.


======================================================================
ERROR: testUpdateUnstagedConflict (__main__.GitWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gclient_scm_test.py", line 539, in tearDown
    StdoutCheck.tearDown(self)
  File "/mnt/data/b/commit-queue/workdir/depot_tools/tests/super_mox.py", line
100, in tearDown
    self.assertEquals('', sys.stdout.getvalue())
AssertionError: '' != '\n_____ . at refs/heads/master\n'

----------------------------------------------------------------------
Ran 31 tests in 1.116s

FAILED (errors=2)


upstream.sh failed
Command /mnt/data/b/commit-queue/workdir/depot_tools/tests/upstream.sh returned
non-zero exit status 1 in /mnt/data/b/commit-queue/workdir/depot_tools/tests
Setting up test SVN repo...
Setting up test git-svn repo...
error: unknown switch `B'
usage: git checkout [options] <branch>
   or: git checkout [options] [<branch>] -- <file>...

    -q, --quiet           be quiet
    -b <new branch>       branch
    -l                    log for new branch
    -t, --track           track
    -2, --ours            stage
    -3, --theirs          stage
    -f, --force           force
    -m, --merge           merge
    --conflict <style>    conflict style (merge or diff3)
    -p, --patch           select hunks interactively



Presubmit checks took 357.0s to calculate.

Powered by Google App Engine
This is Rietveld 408576698