PR can't be merged after manual conflict resolution #88

Closed
opened 2025-11-02 03:08:10 -06:00 by GiteaMirror · 33 comments
Owner

Originally created by @JetpackDuba on GitHub (Nov 27, 2016).

  • Gitea version (or commit ref): Commit: e6da2cf2cb
  • Git version: 2.7.4
  • Operating system: Linux Mint 18
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite

Description

If I do a PR with conflicts, gitea says that I have to merge branch manually ( This pull request can't be merged automatically because there are conflicts. ). I've done it but the message does not disappear. I closed the PR, then reopened it and now if I go to the merge request I get the following message everytime:

The conflict checking is still in progress, please refresh page in few moments.

seleccion_009

Steps to reproduce

  • Create new PR with a conflict between the 2 branches
  • Merge manually the branch fixing the conflicts
  • Close the PR
  • Reopen it
Originally created by @JetpackDuba on GitHub (Nov 27, 2016). - Gitea version (or commit ref): Commit: e6da2cf2cbff4d550cf938548233a59ceef6528e - Git version: 2.7.4 - Operating system: Linux Mint 18 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] SQLite ## Description If I do a PR with conflicts, gitea says that I have to merge branch manually ( `This pull request can't be merged automatically because there are conflicts.` ). I've done it but the message does not disappear. I closed the PR, then reopened it and now if I go to the merge request I get the following message everytime: > The conflict checking is still in progress, please refresh page in few moments. ![seleccion_009](https://cloud.githubusercontent.com/assets/16917468/20649966/b1af09b4-b4cb-11e6-8c82-e316660bb864.png) ## Steps to reproduce - Create new PR with a conflict between the 2 branches - Merge manually the branch fixing the conflicts - Close the PR - Reopen it
GiteaMirror added the type/bug label 2025-11-02 03:08:10 -06:00
Author
Owner

@Bwko commented on GitHub (Nov 29, 2016):

I'm able to semi reproduce this bug. My Gitea keeps nagging about:

This pull request can't be merged automatically because there are conflicts.

I'll look into this.

@Bwko commented on GitHub (Nov 29, 2016): I'm able to semi reproduce this bug. My Gitea keeps nagging about: > This pull request can't be merged automatically because there are conflicts. I'll look into this.
Author
Owner

@JetpackDuba commented on GitHub (Nov 30, 2016):

If you don't close it, you'll get this message. If you close it and then reopen it, The conflict checking is still in progress, please refresh page in few moments. will appear

@JetpackDuba commented on GitHub (Nov 30, 2016): If you don't close it, you'll get this message. If you close it and then reopen it, `The conflict checking is still in progress, please refresh page in few moments.` will appear
Author
Owner

@Bwko commented on GitHub (Nov 30, 2016):

I've opened & closed the PR multiple times:
conflict

Was you PR relatively large?

@Bwko commented on GitHub (Nov 30, 2016): I've opened & closed the PR multiple times: ![conflict](https://cloud.githubusercontent.com/assets/23573579/20745763/fdb71fd6-b6e2-11e6-94f4-db0db2afc585.png) Was you PR relatively large?
Author
Owner

@lunny commented on GitHub (Nov 30, 2016):

I can't reproduce it. Any more clues?

@lunny commented on GitHub (Nov 30, 2016): I can't reproduce it. Any more clues?
Author
Owner

@strk commented on GitHub (Nov 30, 2016):

Check the logs, I bet you got a panic in a goroutine (saw that happening) so some parts of the code are just waiting for something that will never happen (hearing back from the goroutine). It would help if panic messages were included in the logs but they only go to either stdout or stderr (I'm not sure which one).

So my suggestion is:

  • restart Gitea (or Gogs) redirecting stdout and stderr somewhere
  • check all logs if it still happens
@strk commented on GitHub (Nov 30, 2016): Check the logs, I bet you got a panic in a goroutine (saw that happening) so some parts of the code are just waiting for something that will never happen (hearing back from the goroutine). It would help if panic messages were included in the logs but they only go to either stdout or stderr (I'm not sure which one). So my suggestion is: - restart Gitea (or Gogs) redirecting stdout and stderr somewhere - check all logs if it still happens
Author
Owner

@strk commented on GitHub (Nov 30, 2016):

See #210 for the missing stderr/stdout redirection

@strk commented on GitHub (Nov 30, 2016): See #210 for the missing stderr/stdout redirection
Author
Owner

@JetpackDuba commented on GitHub (Nov 30, 2016):

I've tried it again in a windows pc and I get the same behavior as @Bwko

This pull request can't be merged automatically because there are conflicts.

I'm testing this with small PR

@JetpackDuba commented on GitHub (Nov 30, 2016): I've tried it again in a windows pc and I get the same behavior as @Bwko > This pull request can't be merged automatically because there are conflicts. I'm testing this with small PR
Author
Owner

@Bwko commented on GitHub (Nov 30, 2016):

So the behavior is the same on Linux (I'm on Linux) & Windows.
At least we need to show a message that this PR has been merged.

@Bwko commented on GitHub (Nov 30, 2016): So the behavior is the same on Linux (I'm on Linux) & Windows. At least we need to show a message that this PR has been merged.
Author
Owner

@JetpackDuba commented on GitHub (Nov 30, 2016):

@strk I'm getting an error when restarting Gitea in my Linux Mint:
imagen

Entrada desconocida (Spanish) -> Unknown input

gogs.log.zip

I can share with you my Database and repos (They are just test repos) if it's necessary to debug it

@JetpackDuba commented on GitHub (Nov 30, 2016): @strk I'm getting an error when restarting Gitea in my Linux Mint: ![imagen](https://cloud.githubusercontent.com/assets/16917468/20771654/9707f0b8-b74a-11e6-8c77-2eb18be014a6.png) Entrada desconocida (Spanish) -> Unknown input [gogs.log.zip](https://github.com/go-gitea/gitea/files/623017/gogs.log.zip) I can share with you my Database and repos (They are just test repos) if it's necessary to debug it
Author
Owner

@Bwko commented on GitHub (Nov 30, 2016):

If you could share your repo it would help us a lot. Googling the git apply error points me to a whitespace error. Are there any whitespace 'like' characters in your reppo/PR?

@Bwko commented on GitHub (Nov 30, 2016): If you could share your repo it would help us a lot. Googling the git apply error points me to a whitespace error. Are there any [whitespace 'like' ](https://en.wikipedia.org/wiki/Whitespace_character)characters in your reppo/PR?
Author
Owner

@JetpackDuba commented on GitHub (Dec 1, 2016):

@Bwko oke! Tonight I will attach my repo, I'm not at home atm

@JetpackDuba commented on GitHub (Dec 1, 2016): @Bwko oke! Tonight I will attach my repo, I'm not at home atm
Author
Owner

@JetpackDuba commented on GitHub (Dec 1, 2016):

DB SQL backup and my repo:
Gitea.zip
User: test@gmail.com
Password: TestTest
If you need something else I'll try to help!

@JetpackDuba commented on GitHub (Dec 1, 2016): DB SQL backup and my repo: [Gitea.zip](https://github.com/go-gitea/gitea/files/625632/Gitea.zip) User: test@gmail.com Password: TestTest If you need something else I'll try to help!
Author
Owner

@Bwko commented on GitHub (Dec 1, 2016):

@aeab13 Thanks for your help 👍
The bug somehow only exists in your repo (on my machine it sometimes shows the same error). But when I switch back to my own installation I'm not able to reproduce this bug.

  • I think the easiest solution is to prevent the execution of the .testPatch method (which produces the error). I'ts pretty useless to test a patch with 0 commits and 0 files changed.

  • A better solution would be to automatically mark this PR as merged. And thus avoiding the all the pre merge checks. But I don't know if this solution is possible.

@Bwko commented on GitHub (Dec 1, 2016): @aeab13 Thanks for your help :+1: The bug somehow only exists in your repo (on my machine it sometimes shows the same error). But when I switch back to my own installation I'm not able to reproduce this bug. - I think the easiest solution is to prevent the execution of the .testPatch method (which produces the error). I'ts pretty useless to test a patch with 0 commits and 0 files changed. - A better solution would be to automatically mark this PR as merged. And thus avoiding the all the pre merge checks. But I don't know if this solution is possible.
Author
Owner

@bkcsoft commented on GitHub (Dec 2, 2016):

Title changed to clarity

@bkcsoft commented on GitHub (Dec 2, 2016): Title changed to clarity
Author
Owner

@JetpackDuba commented on GitHub (Dec 6, 2016):

@bkcsoft thanks for changing the title!
@Bwko thanks to you!
I've reinstalled my OS and I'll try again to create a PR with conflicts to try to reproduce it again.

PD: Does this issue still need more feedback? (I'm talking about the label)

@JetpackDuba commented on GitHub (Dec 6, 2016): @bkcsoft thanks for changing the title! @Bwko thanks to you! I've reinstalled my OS and I'll try again to create a PR with conflicts to try to reproduce it again. PD: Does this issue still need more feedback? (I'm talking about the label)
Author
Owner

@Bwko commented on GitHub (Dec 8, 2016):

@aeab13 Could you check if #368 fixes your issue?

@Bwko commented on GitHub (Dec 8, 2016): @aeab13 Could you check if #368 fixes your issue?
Author
Owner

@JetpackDuba commented on GitHub (Dec 9, 2016):

@Bwko I'll test it tonight!

@JetpackDuba commented on GitHub (Dec 9, 2016): @Bwko I'll test it tonight!
Author
Owner

@JetpackDuba commented on GitHub (Dec 9, 2016):

I'm having some problems with mysql in my machine.
I'll test tomorrow the changes :s Sorry!

@JetpackDuba commented on GitHub (Dec 9, 2016): I'm having some problems with mysql in my machine. I'll test tomorrow the changes :s Sorry!
Author
Owner

@JetpackDuba commented on GitHub (Dec 11, 2016):

I've tested changes in #368
The message The conflict checking is still in progress, please refresh page in few moments. has disappeared but I'm still getting This pull request can't be merged automatically because there are conflicts. after manual merge and I can't see commits and changed files. So the problem is still the same with different message :p
EDIT: I can't see commits and changed file in the selected pull request only if I close it and reopen it.
spectacle bz3630

EDIT2: I've checked the PR again and now I can see commit and files changed but still getting the same message

@JetpackDuba commented on GitHub (Dec 11, 2016): I've tested changes in #368 The message `The conflict checking is still in progress, please refresh page in few moments.` has disappeared but I'm still getting `This pull request can't be merged automatically because there are conflicts.` after manual merge and I can't see commits and changed files. So the problem is still the same with different message :p EDIT: I can't see commits and changed file in the selected pull request only if I close it and reopen it. ![spectacle bz3630](https://cloud.githubusercontent.com/assets/16917468/21082953/be9a1b84-bfe6-11e6-9f3c-8420440a5acc.png) EDIT2: I've checked the PR again and now I can see commit and files changed but still getting the same message
Author
Owner

@Bwko commented on GitHub (Dec 13, 2016):

@aeab13 Thanks for testing.
My PR fixed the bug that was causing the The conflict checking is still in progress, please refresh page in few moments. error.

I haven't found a good solution on how to mark the conflicting PR as merged. So for now I don't know how to solve this issue 😟
Maybe someone else has any idea?

@Bwko commented on GitHub (Dec 13, 2016): @aeab13 Thanks for testing. My PR fixed the bug that was causing the `The conflict checking is still in progress, please refresh page in few moments.` error. I haven't found a good solution on how to mark the conflicting PR as merged. So for now I don't know how to solve this issue :worried: Maybe someone else has any idea?
Author
Owner

@JetpackDuba commented on GitHub (Dec 22, 2016):

I would like to try to fix it but I haven't got time to do that right now :s
If it is not fixed in a month or so, I'll try.
Thanks for trying it @Bwko ! :D

@JetpackDuba commented on GitHub (Dec 22, 2016): I would like to try to fix it but I haven't got time to do that right now :s If it is not fixed in a month or so, I'll try. Thanks for trying it @Bwko ! :D
Author
Owner

@lunny commented on GitHub (Dec 22, 2016):

@aeab13, if you have no time, could you give some idea about where the problem is?

@lunny commented on GitHub (Dec 22, 2016): @aeab13, if you have no time, could you give some idea about where the problem is?
Author
Owner

@lunny commented on GitHub (Dec 22, 2016):

move this to 1.1 and feel free to change it back if someone has good idea.

@lunny commented on GitHub (Dec 22, 2016): move this to 1.1 and feel free to change it back if someone has good idea.
Author
Owner

@grissiom commented on GitHub (Jan 9, 2017):

@lunny I think git merge-base --is-ancestor will help you to detect whether a PR has been merged manually or not. I a PR has already been merged, git merge-base --is-ancestor pull/x/head HEAD will return 0. If the PR has not been merged, it will return 1.

@grissiom commented on GitHub (Jan 9, 2017): @lunny I think `git merge-base --is-ancestor` will help you to detect whether a PR has been merged manually or not. I a PR has already been merged, `git merge-base --is-ancestor pull/x/head HEAD` will return 0. If the PR has not been merged, it will return 1.
Author
Owner

@lunny commented on GitHub (Jan 9, 2017):

@Bwko could you try to send another PR followed @grissiom 's advice?

@lunny commented on GitHub (Jan 9, 2017): @Bwko could you try to send another PR followed @grissiom 's advice?
Author
Owner

@Bwko commented on GitHub (Jan 9, 2017):

@lunny & @grissiom I'll take a look at that

@Bwko commented on GitHub (Jan 9, 2017): @lunny & @grissiom I'll take a look at that
Author
Owner

@Bwko commented on GitHub (Jan 20, 2017):

I'm almost done with this 😄
Do we want to automatically set a PR to merged or do we want to show a message that this PR was manually merged?

@Bwko commented on GitHub (Jan 20, 2017): I'm almost done with this :smile: Do we want to automatically set a PR to merged or do we want to show a message that this PR was manually merged?
Author
Owner

@lunny commented on GitHub (Jan 20, 2017):

How github do that?

@lunny commented on GitHub (Jan 20, 2017): How github do that?
Author
Owner

@andreynering commented on GitHub (Jan 20, 2017):

I think GitHub marks as merged.

@andreynering commented on GitHub (Jan 20, 2017): I think GitHub marks as merged.
Author
Owner

@Bwko commented on GitHub (Jan 24, 2017):

@aeab13 Could you test #719?

@Bwko commented on GitHub (Jan 24, 2017): @aeab13 Could you test #719?
Author
Owner

@JetpackDuba commented on GitHub (Jan 24, 2017):

I'll do it tomorrow!

@JetpackDuba commented on GitHub (Jan 24, 2017): I'll do it tomorrow!
Author
Owner

@Bwko commented on GitHub (Jan 31, 2017):

@aeab13 Any updates on this issue? 🙄

@Bwko commented on GitHub (Jan 31, 2017): @aeab13 Any updates on this issue? :roll_eyes:
Author
Owner

@JetpackDuba commented on GitHub (Feb 2, 2017):

Sorry, I am having some issues with my computer and I can't test it right now. I am sorry :/

@JetpackDuba commented on GitHub (Feb 2, 2017): Sorry, I am having some issues with my computer and I can't test it right now. I am sorry :/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#88