xcl010 / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

gcl upload fails #429

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. gcl upload

What is the expected output? 
success

What do you see instead?

Upload server: https://webrtc-codereview.appspot.com (change with -s/--server)
Traceback (most recent call last):
  File "c:\bin\depot_tools\gcl.py", line 1523, in <module>
    sys.exit(main(sys.argv[1:]))
  File "c:\bin\depot_tools\gcl.py", line 1500, in main
    return command(argv[1:])
  File "c:\bin\depot_tools\gcl.py", line 785, in hook
    return function(change_info, args)
  File "c:\bin\depot_tools\gcl.py", line 936, in CMDupload
    issue, patchset = upload.RealMain(upload_arg, change_info.patch)
  File "c:\bin\depot_tools\third_party\upload.py", line 2497, in RealMain
    response_body = rpc_server.Send("/upload", body, content_type=ctype)
  File "c:\bin\depot_tools\third_party\upload.py", line 461, in Send
    self._Authenticate(force_refresh=True)
  File "c:\bin\depot_tools\third_party\upload.py", line 485, in _Authenticate
    access_token = self.auth_function.get_access_token(force_refresh)
  File "c:\bin\depot_tools\auth.py", line 309, in get_access_token
    self._access_token = self._create_access_token(allow_user_interaction)
  File "c:\bin\depot_tools\auth.py", line 469, in _create_access_token
    raise LoginRequiredError(self._token_cache_key)
auth.LoginRequiredError: You are not logged in. Please login first by running:
  depot-tools-auth login webrtc-codereview.appspot.com

Original issue reported on code.google.com by fbarch...@chromium.org on 20 Apr 2015 at 6:25

GoogleCodeExporter commented 9 years ago
This is due to the depot tools authentication change being deployed. 
See 
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/K9cGObPZyyk 
for details on how to authenticate from now on.

Original comment by kjellan...@google.com on 20 Apr 2015 at 7:05

GoogleCodeExporter commented 9 years ago
does it work for you?  its not working for me with gcl on windows
gcl.py: error: no such option: -o

Original comment by fbarch...@chromium.org on 20 Apr 2015 at 8:51

GoogleCodeExporter commented 9 years ago
"gcl upload" is deprecated. libyuv is switching to git: http://crbug.com/476598.

Please use "git cl upload + git cl dcommit" workflow using git mirror:
$ git clone https://chromium.googlesource.com/external/libyuv/
$ git auto-svn
$ git checkout -b feature-branch
$ ... make changes ...
$ git commit 
$ git cl upload
$ git cl dcommit

That being said, the following should work too (at least it works for me):
$ depot-tools-auth login webrtc-codereview.appspot.com
$ gcl upload <changename>

(gcl always uses default auth options, --oauth2 is now default).

Original comment by vadimsh@chromium.org on 20 Apr 2015 at 10:28

GoogleCodeExporter commented 9 years ago
fixed in r1375 
depot-tools-auth login webrtc-codereview.appspot.com

Original comment by fbarch...@google.com on 20 Apr 2015 at 11:12