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

Always set the merge base used to merge the commit #15352

Merged

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Apr 8, 2021

The issue is that the TestPatch will reset the PR MergeBase - and it is possible for TestPatch to update the MergeBase whilst a merge is ongoing. The ensuing merge will then complete but it doesn't re-set the MergeBase it used to merge the PR.

Fixes the intermittent error in git test.

Signed-off-by: Andrew Thornton art27@cantab.net

@zeripath zeripath added type/testing pr/wip This PR is not ready for review labels Apr 8, 2021
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 9, 2021
@zeripath zeripath force-pushed the attempt-to-fix-intermittent-error-2 branch from d9eb234 to 4f6ae72 Compare April 9, 2021 13:24
@zeripath

This comment has been minimized.

@zeripath

This comment has been minimized.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath force-pushed the attempt-to-fix-intermittent-error-2 branch from d1947b8 to 1488f79 Compare April 9, 2021 19:15
@zeripath
Copy link
Contributor Author

zeripath commented Apr 9, 2021

OK I think I have it!

It's a genuine bug so this PR will need to be backported.

The issue is that the TestPatch will reset the PR MergeBase - and it is possible for TestPatch to update the MergeBase whilst a merge is ongoing. The ensuing merge will then complete but it doesn't re-set the MergeBase it used to merge the PR.

So assuming the latest push works I think it's done!

@zeripath zeripath changed the title Attempt to fix intermittent error in git test Always set the merge base used to merge the commit Apr 9, 2021
@zeripath zeripath added backport/v1.14 type/bug and removed pr/wip This PR is not ready for review labels Apr 9, 2021
@zeripath
Copy link
Contributor Author

zeripath commented Apr 9, 2021

If this is merged overnight please could someone send the back port

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 9, 2021
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 10, 2021
models/pull.go Show resolved Hide resolved
@zeripath
Copy link
Contributor Author

make lgtm work

@zeripath zeripath merged commit 84f5a0b into go-gitea:master Apr 10, 2021
@zeripath zeripath deleted the attempt-to-fix-intermittent-error-2 branch April 10, 2021 08:27
zeripath added a commit to zeripath/gitea that referenced this pull request Apr 10, 2021
Backport go-gitea#15352

The issue is that the TestPatch will reset the PR MergeBase - and it is possible for TestPatch to update the MergeBase whilst a merge is ongoing. The ensuing merge will then complete but it doesn't re-set the MergeBase it used to merge the PR.

Fixes the intermittent error in git test.

Signed-off-by: Andrew Thornton art27@cantab.net
@zeripath zeripath added the backport/done All backports for this PR have been created label Apr 10, 2021
6543 pushed a commit that referenced this pull request Apr 10, 2021
Backport #15352

The issue is that the TestPatch will reset the PR MergeBase - and it is possible for TestPatch to update the MergeBase whilst a merge is ongoing. The ensuing merge will then complete but it doesn't re-set the MergeBase it used to merge the PR.

Fixes the intermittent error in git test.

Signed-off-by: Andrew Thornton art27@cantab.net
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug type/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants