-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fix broken commit history and dangerous project settings #732
Comments
Yes. I merged the PR w/o noticing that it was failing. That is my fault. I'm not sure we will be able to fix the commit history. |
@wdduncan it is technically possible and I know how to do it, but will require some trickery and getting everyone on board with the idea that we should try and keep the commit history clean and meaningful |
We’re mixing three different problems here:
Option 3) is more work, more pain, for (in my opinion) no justifiable reason. I am all in favour of a “clean, meaningful history“ (hell, I am the one on record saying that people who write meaningless commit messages should be hung, drawn, and quartered), but history re-writing should only ever happen in private branches. Once the mess reaches a public branch, we must own it instead of going to great lengths to pretend it didn’t happen. That being said, I don’t have any kind of authority in RO, so if that’s really what we want, then go ahead. But if we do that, we must do it ASAP (like, right now!) – the more time passes, the more likely it is that other people update their local repository with the current master branch. |
I personally think we should protect the master branch now, merge the fix, and leave the git history in whatever state it is in; this is not really like a software project where a broken master can break downstream code (if it was, I would agree that fixing the git history would make some sense). |
alright, I guess I am outvoted. let's just get this stuff fixed ASAP |
Anyone, please go ahead and merge the fixed PR. |
This issue can be closed once branch protections are set up on this repo |
@cthoyt do you have permissions to do that? If so that would be great, or else I can do it later once I get to my office. |
I have updated it now, no more merging, not even by maintainers. |
For the record: no, it would not make any more sense. Whether it is a software project or anything else, if what you care about is “not breaking anything downstream“, then what is important is always the current state of the master branch. Whether the history of the branch contains broken commits is of no consequence – unless some people downstream decide to fork the branch at an arbitrary commit rather than at the tip, but if they do that, frankly it’s up to them to deal with the possibility that the commit they have chosen to fork off may be broken. |
All settings are set to prevent merging a branch when there's an issue. |
I ran a new RO release and PR #722 was reverted. Need to redo it. |
The problem was only partially solved. The only PR that would solve is the one that was never merged, PR #730. |
Here's what happened:
has roost
#730 was created to revert the commit, but never actually applied. @wdduncan you noted in the PR that you applied the revert, but this never changed the main branchThis leaves us in a place where there are huge, spurious diffs mixed up in bad changes that break CI. It makes it hard to figure out what changes happened and why.
What I suggest we do immediately:
has roost
#730 (sorry @anitacaron)The text was updated successfully, but these errors were encountered: