-
Notifications
You must be signed in to change notification settings - Fork 175
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
Improve hotfix documentation #322
base: master
Are you sure you want to change the base?
Improve hotfix documentation #322
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, we actually did have to do a hotfix just now and this update was very useful, but we found this error
|
||
### Bug appears on staging during release cycle | ||
- Branch of off the staging branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Branch off of
|
||
### Bug appears on stable outside release cycle | ||
- Branch of off the stable branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Branch off of
|
||
### Bug appears on stable during release cycle | ||
- Branch of off the stable branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Branch off of
When a bug needs to be hotfixed on stable outside of the release phase the hotfix needs to be based on stable and then a PR needs to be made for stable and master | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add some commas to all these sentences where appropriate, to make them easier to parse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A single comma could be added after the qualifying phrase like so:
When a bug needs to be hotfixed on stable outside of the release phase, the hotfix needs to be based on stable and then a PR needs to be made for stable and master
However, I believe that the underling issue that is the sentence is too verbose. From this point on @juliangiebel, please take all this with a grain of salt as it is purely my opinion.
- Future tense is necessary here "needs to be" and should be replaced with "is."
When a bug is hotfixed on stable outside of the release phase, the hotfix is based on stable and then a PR is made for stable and master
- Provide instruction not observation. Just tell the reader what to do.
To hotfix a bug on stable outside of the release phase, base the hotfix branch on stable, and make a PR to both stable and master.
- Do not include the definition as appositives (things that have already been implied). If you are hotfixing it is implied that a bug is being resolved and that this is outside of release phase.
To hotfix stable, base the hotfix branch on stable, and make a PR to both stable and master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 19 and potentially 17 are also rather runaway
```shell | ||
git checkout staging | ||
git checkout -b "<hotfix branch name>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be "needless spoonfeeding" to also mention that one must also first pull their branch from upstream? It sounds obvious but I actually did make that mistake, working under pressure in an unfamiliar scenario is weh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still needs to explain how the commits should be made. I assume the obvious answer is "use a cherry pick" but I would like to see this written down.
The whole reason for this procedure is to not have to cherry pick commits. |
The wording wasn't consistent with the rest of the doc and the explanation wasn't clear enough