New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 633922 link

Starred by 9 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: 2016-11-04
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

git drover cherry-pick reports and error, but looks cherry-picked.

Project Member Reported by hidehiko@chromium.org, Aug 3 2016

Issue description

Today, when I tried to cherry pick CLs for crbug.com/630624, then
"git drover" reported an error to cherry-pick, but it looks actually done.

git drover --branch 2785 --cherry-pick 61a81ea6bcccee7cd6392f9f286ae0df99cd1054

About to land on 2785. Continue (y/n)? y
Using 50% similarity for rename/copy detection. Override with --similarity.
Description:
Update histgrams.xml for ArcProvisioningResult.

The ArcProvisioningResult was extended
https://codereview.chromium.org/2173103002/diff/140001/chrome/browser/chromeos/arc/arc_optin_uma.h
but histgrams.xml was not updated in the CL.
This CL updates to adapt the new values.

BUG=630624
TEST=Ran trybots.

Review-Url: https://codereview.chromium.org/2191403002
Cr-Commit-Position: refs/heads/master@{#409146}
(cherry picked from commit 61a81ea6bcccee7cd6392f9f286ae0df99cd1054)

Review URL: https://codereview.chromium.org/2206873003 .
 tools/metrics/histograms/histograms.xml | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)
Fetching pending ref refs/pending/branch-heads/2785...
Cherry-picking commit on top of pending ref...
Pushing commit to refs/pending/branch-heads/2785... It can take a while.
Push failed with exit code 1.
To https://chromium.googlesource.com/chromium/src.git
!       HEAD:refs/pending/branch-heads/2785     [remote rejected] (error in Gerrit backend)
Done
Retrying, 1 attempts left...
Fetching pending ref refs/pending/branch-heads/2785...
Cherry-picking commit on top of pending ref...
Pushing commit to refs/pending/branch-heads/2785... It can take a while.
Push failed with exit code 1.
To https://chromium.googlesource.com/chromium/src.git
!       HEAD:refs/pending/branch-heads/2785     [remote rejected] (error in Gerrit backend)
Done
Retrying, 0 attempts left...
Fetching pending ref refs/pending/branch-heads/2785...
Cherry-picking commit on top of pending ref...
Pushing commit to refs/pending/branch-heads/2785... It can take a while.
Push failed with exit code 1.
To https://chromium.googlesource.com/chromium/src.git
!       HEAD:refs/pending/branch-heads/2785     [rejected] (non-fast-forward)
Done
All attempts to push to pending ref failed.
Failed to push. If this persists, please file a bug.
Error: Command 'cl land --bypass-hooks' failed: Command '['git', 'cl', 'land', '--bypass-hooks']' returned non-zero exit status 1

But,
https://chromium.googlesource.com/chromium/src.git/+log/refs/pending/branch-heads/2785
has the commit.

 
Cc: gov...@chromium.org
+govind as I am not terribly familiar with the usage of drover

If the CL is already in place, it may be that this behavior is expected, it is strange that it throws errors with 'Gerrit' in there, the browser side does not seem to be using Gerrit. 

This looks like it might be a duplicate of https://bugs.chromium.org/p/chromium/issues/detail?id=633988 as well, perhaps there was an infra problem?
Cc: pho...@chromium.org
+phobbs whom is on another similar sounding bug.
Cc: dimu@chromium.org
+ dimu@

Comment 4 by dimu@google.com, Aug 3 2016

Components: Infra>Git>Admin
+ git admin
Status: Assigned (was: Untriaged)

Comment 6 by iannu...@google.com, Aug 15 2016

Components: -Infra>Git>Admin Infra>SDK
Owner: ----
Status: Available (was: Assigned)
Yes, this was successfully picked as https://chromium.googlesource.com/chromium/src/+/3b634e681fa646a84ef38ebe7d5aee3608ce8309

All git commits in chromium/src go through gerrit (though we do no use gerrit for code review, we do use it for access-control), which is the reason that appears in the error message.

I believe the original error was caused by a flake in the backend where even though it accepted the change, it failed to terminate the network connection properly.

Relabeling this bug as DX to clean up the messaging in the tool.
Cc: tandrii@chromium.org iannucci@chromium.org
Hm, I think this similar to another report at the same time, for which I filed internal bug b/30924463.

Robbie, can you clarify what messaging change you had in mind? To me the only fix would actually require determining that a change has *just* landed onto destination branch before retrying git push, which is more of a logic change than messaging.
 Issue 633988  has been merged into this issue.
Cc: x...@chromium.org
 Issue 618084  has been merged into this issue.
that's what I meant :) Basically instead of terminating with `[rejected] (non-fast-forward)` it would actually look for the commit.

However, I think once you move gnumbd -> gerrit, this issue is moot, since there's no more pending/regular refs, so no need to wait; just rebase w/ number and push. If push succeeds, you're done.
Yep, agree.

Comment 12 by rob@robwu.nl, Aug 21 2016

I got a similar error 13 hours ago. git-cl complains about a merge conflict in (blank spot).
The CL is open: https://codereview.chromium.org/2261043002
But the patch seems to have landed at branch-heads/2785: https://chromium.googlesource.com/chromium/src.git/+log/branch-heads/2785 (at a58871cac6284a5167c1cf039127d270c8a6fb8b), and bugdroid visited the issue: https://bugs.chromium.org/p/chromium/issues/detail?id=633963#c22


Fetching pending ref refs/pending/branch-heads/2785...
Cherry-picking commit on top of pending ref...
Pushing commit to refs/pending/branch-heads/2785... It can take a while.
Push failed with exit code 1.
To https://chromium.googlesource.com/chromium/src.git
!       HEAD:refs/pending/branch-heads/2785     [remote rejected] (error in Gerrit backend)
Done
Retrying, 1 attempts left...
Fetching pending ref refs/pending/branch-heads/2785...
Cherry-picking commit on top of pending ref...
Pushing commit to refs/pending/branch-heads/2785... It can take a while.
Push failed with exit code 1.
To https://chromium.googlesource.com/chromium/src.git
!       HEAD:refs/pending/branch-heads/2785     [rejected] (non-fast-forward)
Done
Retrying, 0 attempts left...
Fetching pending ref refs/pending/branch-heads/2785...
Cherry-picking commit on top of pending ref...
Your patch doesn't apply cleanly to ref 'refs/pending/branch-heads/2785', the following files have merge conflicts:

Please rebase your patch and try again.
Failed to push. If this persists, please file a bug.
Error: Command 'cl land --bypass-hooks' failed: Command '['git', 'cl', 'land', '--bypass-hooks']' returned non-zero exit status 1

Comment 13 by x...@chromium.org, Oct 24 2016

Still got error today:
error: failed to push some refs to 'https://chromium.googlesource.com/chromium/src.git'
ERROR:git-retry:Process failure was not known to be transient; terminating with return code 1
Push failed with exit code 1.
To https://chromium.googlesource.com/chromium/src.git
!	HEAD:refs/pending/branch-heads/2883	[remote rejected] (prohibited by Gerrit)
Done

Comment 14 by x...@chromium.org, Oct 24 2016

Labels: -Pri-3 Pri-1
I don't know about other developers. But my merging failed completely. This has been a problem for a quarter, and needs to be fixed immediately.

Comment 15 by x...@chromium.org, Oct 24 2016

Components: Infra>Git

Comment 16 by m...@chromium.org, Oct 31 2016

NextAction: 2016-11-04
Owner: gov...@chromium.org
Status: Assigned (was: Available)
I've just had to do a merge for a colleague that cannot merge themselves. This is now the 5th (!) time. As this is affecting multiple (hundreds?) of developers, this is really a P0 issue. Please start work ASAP.

govind: Would you happen to know of an appropriate owner for this issue?

Cc: amineer@chromium.org
Owner: amineer@chromium.org
+ amineer@, may be he can help to assign this bug to right owner.
Owner: ----
Status: Untriaged (was: Assigned)
Infra needs to make an assignment, not me.
Cc: -tandrii@chromium.org js...@chromium.org
I came across the same issue. The end of an error message I got is exactly like that in comment 12. That is, it complains about 'files with merge conflicts', but there's no file actually list.  It happened with my git drover run for 
 bug 673971  comment 27 (https://bugs.chromium.org/p/chromium/issues/detail?id=673971#c27 ). Cherry-pick was successful nonetheless. 

-----------
Your patch doesn't apply cleanly to ref 'refs/pending/branch-heads/2924', the following files have merge conflicts:

Please rebase your patch and try again.
Failed to push. If this persists, please file a bug.
Error: Command 'cl land --bypass-hooks' failed: Command '['git', 'cl', 'land', '--bypass-hooks']' returned non-zero exit status 1
--------------


Labels: Pri-2
Status: Available (was: Untriaged)
This has been listed as untriaged for over two weeks. Marking available.

Since the priority is P-1, dropping it.

If you disagree with either of these actions (bulk edit), please fix.
Project Member

Comment 21 by sheriffbot@chromium.org, Mar 9 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: -amineer@chromium.org
No longer on the Chrome team, e-mail me @google.com if any attention still required from me here, otherwise good luck!
Cc: -iannucci@chromium.org iannu...@google.com
Labels: -Pri-2 -Hotlist-Recharge-Cold Pri-3
Status: Available (was: Untriaged)

Sign in to add a comment