repo upload fails with Failed to fetch file gs://chromium-clang-format/... |
||||
Issue description
Trying to repo upload a branch with Python code:
Errors:
* clang-format.py errors/warnings
Failed to fetch file gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for /usr/local/google/home/sjg/cosarm/chromium/src/buildtools/linux64/clang-format. [Err: Traceback (most recent call last):
File "/usr/local/google/home/sjg/cosarm/chromium/tools/depot_tools/gsutil.py", line 172, in <module>
sys.exit(main())
File "/usr/local/google/home/sjg/cosarm/chromium/tools/depot_tools/gsutil.py", line 169, in main
clean=args.clean)
File "/usr/local/google/home/sjg/cosarm/chromium/tools/depot_tools/gsutil.py", line 142, in run_gsutil
return subprocess.call(cmd, shell=IS_WINDOWS)
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
]
0> Failed to fetch file gs://chromium-clang-format/5349d1954e17f6ccafb6e6663b0f13cdb2bb33c8 for /usr/local/google/home/sjg/cosarm/chromium/src/buildtools/linux64/clang-format, skipping. [Err: Traceback (most recent call last):
File "/usr/local/google/home/sjg/cosarm/chromium/tools/depot_tools/gsutil.py", line 172, in <module>
sys.exit(main())
File "/usr/local/google/home/sjg/cosarm/chromium/tools/depot_tools/gsutil.py", line 169, in main
clean=args.clean)
File "/usr/local/google/home/sjg/cosarm/chromium/tools/depot_tools/gsutil.py", line 142, in run_gsutil
return subprocess.call(cmd, shell=IS_WINDOWS)
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
]
Downloading 1 files took 0.544744 second(s)
clang-format.py: Unhandled exception:
Traceback (most recent call last):
File "/usr/local/google/home/sjg/cosarm/src/repohooks/clang-format.py", line 147, in <module>
commandline.ScriptWrapperMain(lambda _: main)
File "/usr/local/google/home/sjg/cosarm/chromite/lib/commandline.py", line 911, in ScriptWrapperMain
ret = target(argv[1:])
File "/usr/local/google/home/sjg/cosarm/src/repohooks/clang-format.py", line 75, in main
parser.add_argument('--clang-format', default=_GetDefaultClangFormatPath(),
File "/usr/local/google/home/sjg/cosarm/src/repohooks/clang-format.py", line 63, in _GetDefaultClangFormatPath
cros_build_lib.RunCommand(cmd=cmd, print_cmd=False)
File "/usr/local/google/home/sjg/cosarm/chromite/lib/cros_build_lib.py", line 654, in RunCommand
raise RunCommandError(msg, cmd_result)
chromite.lib.cros_build_lib.RunCommandError: return code: 1; command: /usr/local/google/home/sjg/cosarm/chromium/tools/depot_tools/download_from_google_storage.py -b chromium-clang-format -s /usr/local/google/home/sjg/cosarm/chromium/src/buildtools/linux64/clang-format.sha1
cmd=['/usr/local/google/home/sjg/cosarm/chromium/tools/depot_tools/download_from_google_storage.py', '-b', 'chromium-clang-format', '-s', '/usr/local/google/home/sjg/cosarm/chromium/src/buildtools/linux64/clang-format.sha1']
,
Oct 25 2017
,
May 31 2018
Hi, this bug has not been updated recently and remains untriaged. Please acknowledge the bug and provide status within two weeks (6/8/2018), or the bug will be closed. Thank you.
,
May 31 2018
I think this is irrelevant now?
,
Oct 9
I have a similar issue trying to compile R67 chrome. __main__.FileNotFoundError: ./buildtools/linux64/clang-format.sha1 not found. Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s ./buildtools/linux64/clang-format.sha1' returned non-zero exit status 1 in /home/gwendal/chrome_root But file is present at /home/gwendal/chrome_root/src/buildtools/linux64/clang-format.sha1.
,
Oct 9
Indeed, using src helps:
(cr) (release-R67-10575.B/(6885eae...)) gwendal@gwendal ~/trunk/src/scripts/chroot_version_hooks.d $ cd /home/gwendal/chrome_root ; download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -
s ./buildtools/linux64/clang-format.sha1
Traceback (most recent call last):
File "/mnt/host/depot_tools/download_from_google_storage.py", line 604, in <module>
sys.exit(main(sys.argv))
File "/mnt/host/depot_tools/download_from_google_storage.py", line 600, in main
options.extract)
File "/mnt/host/depot_tools/download_from_google_storage.py", line 388, in download_from_google_storage
auto_platform))
File "/mnt/host/depot_tools/download_from_google_storage.py", line 164, in enumerate_input
raise FileNotFoundError('%s not found.' % input_filename)
__main__.FileNotFoundError: ./buildtools/linux64/clang-format.sha1 not found.
(cr) gwendal@gwendal ~/chrome_root $ cd /home/gwendal/chrome_root/src ; download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s ./buildtools/linux64/clang-format.sha1
(cr) (67.0.3396.127) gwendal@gwendal ~/chrome_root/src $
|
||||
►
Sign in to add a comment |
||||
Comment 1 by sjg@chromium.org
, Oct 13 2017This is in the chromeos-config repo: * Hook script "../../chromite/bin/cros lint ${PRESUBMIT_FILES}" failed with code 1: