Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • seco-ne/yocto/infrastructure/gitlab-ci
1 result
Show changes
Commits on Source (2)
......@@ -96,10 +96,10 @@ yamllint:
${PROJECT_ROOT}/tools/xconfig
${PROJECT_ROOT}/tools/qt-multi-screen-compositor
${PROJECT_ROOT}/yocto/config
${PROJECT_ROOT}/yocto/custom/dual-espresso/meta-seconorth-dual-espresso
${PROJECT_ROOT}/yocto/layers/meta-seconorth-distro
${PROJECT_ROOT}/yocto/layers/meta-seconorth-machine
${PROJECT_ROOT}/yocto/layers/meta-seconorth-nogplv3
${PROJECT_ROOT}/yocto/layers/meta-seconorth-dual-espresso
.integrate:
stage: integrate
......
......@@ -56,6 +56,17 @@ def accept_merge_request(project, mr, rebase=False, should_remove_source_branch=
if e.response_code == 405:
# Not allowed (draft, closed, pipeline pending or failed)
# Contrary to the documentation, this response is also issued when the
# merge failed due to a merge conflict. See GitLab issue:
# https://gitlab.com/gitlab-org/gitlab/-/issues/364102
if mr.has_conflicts:
# Merge conflict, automatic rebase not possible
if pipeline_pending:
print("")
print("Merge not possible, has to be rebased manually")
return False, mr.sha
# If pipeline is running, wait for completion
if not mr.head_pipeline:
# No pipeline created yet
......@@ -69,10 +80,10 @@ def accept_merge_request(project, mr, rebase=False, should_remove_source_branch=
print(".", end="", flush=True)
time.sleep(1)
else:
# Merge conflict, automatic rebase not possible
# Merge failed due to some other reason
if pipeline_pending:
print("")
print("Merge not possible, has to be rebased manually")
print("Merge not possible for unkown reason")
return False, mr.sha
elif e.response_code == 406:
......