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

Merged
merged 1 commit into from
Dec 16, 2024

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]>
@mertekren mertekren marked this pull request as ready for review November 28, 2024 13:54
@zephyrbot zephyrbot added platform: nRF BSIM Nordic Semiconductors, nRF BabbleSim area: Continuous Integration labels Nov 28, 2024
@mertekren
Copy link
Contributor Author

Is there anything needed for this PR? I think this is merge-ready.

Thanks

@kartben kartben merged commit c96c143 into zephyrproject-rtos:main Dec 16, 2024
34 checks passed
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.

7 participants