Hit the Pre-CQ git failure twice today, should retry the git operation ?
https://chromium-review.googlesource.com/c/chromiumos/chromite/+/737519/6
https://luci-milo.appspot.com/buildbot/chromiumos.tryserver/no_vmtest_pre_cq/161468
21:59:52: INFO: Skip: Determined that none of the ebuild chromeos-config-bsp rev_subdirs was touched []
cros_mark_as_stable: Unhandled exception:
Traceback (most recent call last):
File "/b/c/cbuild/repository/chromite/bin/cros_mark_as_stable", line 169, in <module>
DoMain()
File "/b/c/cbuild/repository/chromite/bin/cros_mark_as_stable", line 165, in DoMain
commandline.ScriptWrapperMain(FindTarget)
File "/b/c/cbuild/repository/chromite/lib/commandline.py", line 911, in ScriptWrapperMain
ret = target(argv[1:])
File "/b/c/cbuild/repository/chromite/scripts/cros_mark_as_stable.py", line 304, in main
git.RunGit(overlay, ['rebase', existing_commit])
File "/b/c/cbuild/repository/chromite/lib/git.py", line 821, in RunGit
['git'] + cmd, **kwargs)
File "/b/c/cbuild/repository/chromite/lib/retry_util.py", line 244, in GenericRetry
return _run()
File "/b/c/cbuild/repository/chromite/lib/retry_util.py", line 177, in _Wrapper
ret = func(*args, **kwargs)
File "/b/c/cbuild/repository/chromite/lib/retry_util.py", line 243, in _run
return functor(*args, **kwargs)
File "/b/c/cbuild/repository/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: git rebase 58e115b44f5c2f3c9d792651762131decaef152b
fatal: update_ref failed for ref 'refs/heads/stabilizing_branch': cannot lock ref 'refs/heads/stabilizing_branch': Unable to create '/b/c/cbuild/repository/src/private-overlays/chipset-kbl-private/.git/refs/heads/stabilizing_branch.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
Could not move back to refs/heads/stabilizing_branch
First, rewinding head to replay your work on top of it...
Fast-forwarded stabilizing_branch to 58e115b44f5c2f3c9d792651762131decaef152b.
Comment 1 by ayatane@chromium.org
, May 17 2018