"Update with rebase" results in a large change set with spurious commits #51948
-
Select Topic AreaBug BodyI am a maintainer and core developer of the Spack project https://github.com/spack/spack Today, it happened on 2 different pull requests in that project to click the "Update with rebase" button and get the UI display a large changeset. For instance on this PR spack/spack#36329 ( a one line change) I obtained the following: The funny thing is that when I checked the 231 commits listed, they were all replicating our target branch - except the last one which was supposed to be the PR. To be clearer, when this happened the HEAD of the I fixed the issue in this PR by force pushing to the user branch, but was wondering if this has been reported already, or if it is an issue on my side that somehow started today. Footnotes
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
We started seeing this yesterday as well. I just went to try and reproduce to file a bug report and it seems that I can't anymore |
Beta Was this translation helpful? Give feedback.
-
I have the same issue with differents PRs, but is in a private repo. |
Beta Was this translation helpful? Give feedback.
-
We have this issue as well on private repositories. It seems to be only a graphical issue, as merging result in a correct tree in master. We found a workaround, to close and reopen the PR result in the proper list of commits being displayed. |
Beta Was this translation helpful? Give feedback.
-
Same here, fixed it by amending the most recent commit on the source-branch and force-pushing it. |
Beta Was this translation helpful? Give feedback.
-
It's not just a graphical issue - it also affects other PR sections like "Files changed" (it shows difference in commits against the... snapshot main from the time when the PR has been created... it renders this part kinda cumbersome) and - what's even worse - triggers all pipelines affected by imported commits. So - for instance - if we "rebase" commits that contain changes to specific paths it will trigger those additional pipelines. Or - for instance - we have a specific case for dependabot PRs where commit linter treats those commits differently... if we pull those commits by "rebase" it will trigger a pipeline that will fail on commitlint, just because the PR is not by dependabot. So i think it's not that minor issue and it affects us badly. Currently we are rebasing locally and pushing changes to PRs. |
Beta Was this translation helpful? Give feedback.
-
GitHub staff here. Thank you for the bug report. This was caused by a new feature we are rolling out. We have deactivated it for the moment, and a permanent fix for this issue is in the merge queue. It is safe to rebase again. If you have existing pull requests with redundant commits, it should suffice to close and then re-open the pull request. This causes the system to recompute the PR base commit and it should then display correctly. Sorry for the trouble, and thanks for letting us know. |
Beta Was this translation helpful? Give feedback.
-
We are facing an issue similar to this, but not sure. |
Beta Was this translation helpful? Give feedback.
GitHub staff here. Thank you for the bug report. This was caused by a new feature we are rolling out. We have deactivated it for the moment, and a permanent fix for this issue is in the merge queue. It is safe to rebase again.
If you have existing pull requests with redundant commits, it should suffice to close and then re-open the pull request. This causes the system to recompute the PR base commit and it should then display correctly.
Sorry for the trouble, and thanks for letting us know.