[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260127104406.200505-8-vignesh.raman@collabora.com>
Date: Tue, 27 Jan 2026 16:14:02 +0530
From: Vignesh Raman <vignesh.raman@...labora.com>
To: dri-devel@...ts.freedesktop.org
Cc: daniels@...labora.com,
helen.fornazier@...il.com,
airlied@...il.com,
simona.vetter@...ll.ch,
dmitry.baryshkov@....qualcomm.com,
lumag@...nel.org,
robdclark@...il.com,
robin.clark@....qualcomm.com,
guilherme.gallo@...labora.com,
sergi.blanch.torne@...labora.com,
valentine.burley@...labora.com,
linux-mediatek@...ts.infradead.org,
linux-amlogic@...ts.infradead.org,
linux-rockchip@...ts.infradead.org,
amd-gfx@...ts.freedesktop.org,
linux-arm-msm@...r.kernel.org,
intel-gfx@...ts.freedesktop.org,
virtualization@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH v1 7/7] drm/ci: disable rebase when pulling *-external-fixes
CI jobs were rebasing the branch-under-test onto *-external-fixes,
causing conflicts.
Remove the global pull.rebase setting and disable rebase when pulling
*-external-fixes so they are merged instead.
Signed-off-by: Vignesh Raman <vignesh.raman@...labora.com>
---
drivers/gpu/drm/ci/build.sh | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/ci/build.sh b/drivers/gpu/drm/ci/build.sh
index 5485ea756382..d00d549cbd9c 100644
--- a/drivers/gpu/drm/ci/build.sh
+++ b/drivers/gpu/drm/ci/build.sh
@@ -3,9 +3,6 @@
set -ex
-# Clean up stale rebases that GitLab might not have removed when reusing a checkout dir
-rm -rf .git/rebase-apply
-
. .gitlab-ci/container/container_pre_build.sh
# libssl-dev was uninstalled because it was considered an ephemeral package
@@ -62,25 +59,24 @@ export PATH=$NEWPATH:$PATH
git config --global user.email "fdo@...mple.com"
git config --global user.name "freedesktop.org CI"
-git config --global pull.rebase true
# cleanup git state on the worker
-rm -rf .git/rebase-merge
+rm -rf .git/rebase-merge .git/rebase-apply
# Try to merge fixes from target repo
if [ "$(git ls-remote --exit-code --heads ${UPSTREAM_REPO} ${TARGET_BRANCH}-external-fixes)" ]; then
- git pull ${UPSTREAM_REPO} ${TARGET_BRANCH}-external-fixes
+ git pull --no-rebase ${UPSTREAM_REPO} ${TARGET_BRANCH}-external-fixes
fi
# Try to merge fixes from local repo if this isn't a merge request
# otherwise try merging the fixes from the merge target
if [ -z "$CI_MERGE_REQUEST_PROJECT_PATH" ]; then
if [ "$(git ls-remote --exit-code --heads origin ${TARGET_BRANCH}-external-fixes)" ]; then
- git pull origin ${TARGET_BRANCH}-external-fixes
+ git pull --no-rebase origin ${TARGET_BRANCH}-external-fixes
fi
else
if [ "$(git ls-remote --exit-code --heads ${CI_MERGE_REQUEST_PROJECT_URL} ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}-external-fixes)" ]; then
- git pull ${CI_MERGE_REQUEST_PROJECT_URL} ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}-external-fixes
+ git pull --no-rebase ${CI_MERGE_REQUEST_PROJECT_URL} ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}-external-fixes
fi
fi
--
2.47.3
Powered by blists - more mailing lists