Skip to content

Commit

Permalink
Drop rebase for now
Browse files Browse the repository at this point in the history
  • Loading branch information
canihavesomecoffee committed Dec 15, 2016
1 parent c283ffc commit eade2d5
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions mod_ci/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,32 +262,32 @@ def kvm_processor(db, kvm_name, platform, repository, delay):
# Check out branch
test_branch.checkout(True)
# Rebase on master
try:
repo.git.rebase('master')
except GitCommandError:
progress = TestProgress(
test.id, TestStatus.preparation,
'Rebase on master'
)
db.add(progress)
progress = TestProgress(
test.id, TestStatus.canceled,
'Merge conflict, please resolve.'
)
db.add(progress)
db.commit()
# Report back
gh_commit = repository.statuses(test.commit)

with app.app_context():
target_url = url_for(
'test.by_id', test_id=test.id, _external=True)
context = "CI - %s" % test.platform.value
gh_commit.post(
state=Status.ERROR, description='Failed to rebase',
context=context, target_url=target_url)
# Return, so next one can be handled
return
# try:
# repo.git.rebase('master')
# except GitCommandError:
# progress = TestProgress(
# test.id, TestStatus.preparation,
# 'Rebase on master'
# )
# db.add(progress)
# progress = TestProgress(
# test.id, TestStatus.canceled,
# 'Merge conflict, please resolve.'
# )
# db.add(progress)
# db.commit()
# # Report back
# gh_commit = repository.statuses(test.commit)
#
# with app.app_context():
# target_url = url_for(
# 'test.by_id', test_id=test.id, _external=True)
# context = "CI - %s" % test.platform.value
# gh_commit.post(
# state=Status.ERROR, description='Failed to rebase',
# context=context, target_url=target_url)
# # Return, so next one can be handled
# return
# TODO: check what happens on merge conflicts
else:
test_branch = repo.create_head('CI_Branch', 'HEAD')
Expand Down

0 comments on commit eade2d5

Please sign in to comment.