Project

General

Profile

Actions

Bug #3971

open

[ce, vcs] Merge requests/Pull requests failing due to rebase problem

Added by Daniel D almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Start date:
02.06.2016
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

There is a problem with pull requests that sometimes say they are okay for merging but fail once the pull request is completed and the merge/rebase actually takes place.

I can't manage to reproduce this locally, and the problem seems intermittent. Apparently after trying a few times the merge may go through, which might point to a caching problem.

It seems the real merge is failing because it tries to create a new head in the repo, or 'no rebase in progress':

https://ae.rhodecode.com/ui/report/593/17604

  File rhodecode/controllers/pullrequests.py,  line 659  in show
c.pull_request)
  File rhodecode/model/pull_request.py,  line 871  in merge_status
resp = self._try_merge(pull_request)
  File rhodecode/model/pull_request.py,  line 920  in _try_merge
pull_request, target_vcs, target_ref)
  File rhodecode/model/pull_request.py,  line 949  in _refresh_merge_state
workspace_id, dry_run=True)
  File rhodecode/lib/vcs/backends/base.py,  line 410  in merge
source_ref, message, user_name, user_email, dry_run=dry_run)
user_email  user@email.com
message sample_message
source_ref  
0   u'book'
1   u'elasticsearch-indexer'
2   u'072565c887d78ce373e6673a8568f7fe720abc4b'
shadow_repository_path  /home/rhodecode/rhodecode/repositories/.__shadow_rhodecode-tools-ce_pr-2254
user_name   user name
  File rhodecode/lib/vcs/backends/hg/repository.py,  line 686  in _merge_repo
log.exception('Failure when doing local merge on hg shadow repo')
shadow_repo <MercurialRepository at /home/rhodecode/rhodecode/repositories/.__shadow_rhodecode-tools-ce_pr-2254>
merge_failure_reason    0
e   RepositoryError('no rebase in progress',)

https://ae.rhodecode.com/ui/logs?resource=9&request_id=d40cf9ced8cb4b7ba620e2fc20f9d58a

                        Failure when doing local push on hg shadow repo
Traceback (most recent call last):
  File "/nix/store/d7nhcy7xnmmisn6ck0sh5r874g9bdq8d-python2.7-rhodecode-enterprise-ce-4.1.0+20160601x133047xebb9963becd3/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/hg/repository.py", line 711, in _merge_repo
    enable_hooks=True)
  File "/nix/store/d7nhcy7xnmmisn6ck0sh5r874g9bdq8d-python2.7-rhodecode-enterprise-ce-4.1.0+20160601x133047xebb9963becd3/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/hg/repository.py", line 578, in _local_push
    push_branches=push_branches)
  File "/nix/store/d7nhcy7xnmmisn6ck0sh5r874g9bdq8d-python2.7-rhodecode-enterprise-ce-4.1.0+20160601x133047xebb9963becd3/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py", line 102, in f
    return self._call(name, *args, **kwargs)
  File "/nix/store/d7nhcy7xnmmisn6ck0sh5r874g9bdq8d-python2.7-rhodecode-enterprise-ce-4.1.0+20160601x133047xebb9963becd3/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py", line 120, in _call_with_logging
    return RemoteRepo._call(self, name, *args, **kwargs)
  File "/nix/store/d7nhcy7xnmmisn6ck0sh5r874g9bdq8d-python2.7-rhodecode-enterprise-ce-4.1.0+20160601x133047xebb9963becd3/lib/python2.7/site-packages/rhodecode/lib/vcs/exceptions.py", line 182, in wrapper
    raise _EXCEPTION_MAP[kind](*e.args)
RepositoryError: push creates new remote head aee444655256!
Actions

Also available in: Atom PDF