New issue
Advanced search Search tips

Issue 786468 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

"git cl upload" fails with unuseful error message/stack trace

Project Member Reported by rdsmith@chromium.org, Nov 17 2017

Issue description

In attempting to upload a new PS to https://chromium-review.googlesource.com/773635 (base PS 1) I got the following error:

rdsmith-macbookpro:../2.chrome/src [SSLInfoServiceMove] $ git cl upload
git cl upload
Running presubmit upload checks ...
Traceback (most recent call last):
  File "/Users/rdsmith/Sandboxen/depot_tools/git_cl.py", line 6126, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/Users/rdsmith/Sandboxen/depot_tools/git_cl.py", line 6108, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/Users/rdsmith/Sandboxen/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/Users/rdsmith/Sandboxen/depot_tools/git_cl.py", line 4969, in CMDupload
    return cl.CMDUpload(options, args, orig_args)
  File "/Users/rdsmith/Sandboxen/depot_tools/git_cl.py", line 1644, in CMDUpload
    change=change)
  File "/Users/rdsmith/Sandboxen/depot_tools/git_cl.py", line 1576, in RunHook
    gerrit_obj=self._codereview_impl.GetGerritObjForPresubmit())
  File "/Users/rdsmith/Sandboxen/depot_tools/presubmit_support.py", line 1403, in DoPresubmitChecks
    results += executer.ExecPresubmitScript(presubmit_script, filename)
  File "/Users/rdsmith/Sandboxen/depot_tools/presubmit_support.py", line 1311, in ExecPresubmitScript
    result = eval(function_name + '(*__args)', context)
  File "<string>", line 1, in <module>
  File "<string>", line 2721, in CheckChangeOnUpload
  File "<string>", line 2450, in _CommonChecks
  File "<string>", line 899, in _CheckUnwantedDependencies
TypeError: CheckAddedJavaImports() takes exactly 2 arguments (3 given)

I have effectively no idea how to figure out this problem and fix it--a more informative error message (at least pointing me at the DEPS file I'm having problems with) would be very useful.

(I'm going to do printf debugging in the python, but that's not ideal.)

I've attached the patch I was trying to upload.  It was based on r517494 == 635dc26920b95551f670fc4f3434396b70e3c92c.

 
SSLInfoServiceMove.patch
20.8 KB Download
This is almost certainly due to my not having done a "gclient sync" along with the git pull equivalent.  So mea culpa, but it's not a completely broken workflow and it wouldn't hurt to have better error messages.

Having said that, feel free to close this WontFix.

Comment 2 by aga...@chromium.org, Nov 29 2017

Status: WontFix (was: Untriaged)
Yeah, this is inside PRESUBMIT, not part of git-cl itself, so I'm going to mark this wontfix.

Sign in to add a comment