Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: workflows: remove rebase-merge folder before rebase #82227

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mertekren
Copy link
Contributor

We've seen that some workflows can create phantom rebase-merge folder that doesn't get cleaned. This commit removes possible rebase-merge folder pre-rebase. This is from ADI self hosted-runner:

image

We've seen that with this commit deletes the folder pre-rebase

More info:
with git v2.26, there's a change that : "Previously git rebase used the “apply” backend. In 2.26, both git rebase and git rebase -i now both use the “merge” backend. " from: https://github.blog/open-source/git/highlights-from-git-2-26/
Runners use newer git versions (v2.30+). In these versions, rebase conflicts create "rebase-merge" folder to fix option, not "rebase-apply".

With gitv2.26, git rebase uses "git merge" mechanism instead of "git
apply". This creates a rebase-merge folder in .git, in case of rebase
conflict. This caused problems in self hosted runners due to old
rebase-merge folder. This commit deletes this folder before git rebase
action.

Signed-off-by: Mert Ekren <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Continuous Integration platform: nRF BSIM Nordic Semiconductors, nRF BabbleSim
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants