Skip to content

Conversation

@juliangiebel
Copy link
Contributor

The wording wasn't consistent with the rest of the doc and the explanation wasn't clear enough

Copy link
Member

@Errant-4 Errant-4 left a 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

Copy link
Member

@PJB3005 PJB3005 left a 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.

@Jezithyr Jezithyr added Minor Changes Needed This Design/PR is almost good enough to merge but there are some minor changes that need to be done Policy/Organizational Relevant to documentation of Wizden Policy or Organizational information Guides/Onboarding Related to guide/tutorial documentation and/or onboarding/developer setup labels Oct 22, 2024
@juliangiebel
Copy link
Contributor Author

juliangiebel commented Oct 26, 2024

I assume the obvious answer is "use a cherry pick"

The whole reason for this procedure is to not have to cherry pick commits.
This doc needs to be changed to use squash merging on github when merging hotfix PRs into stable as discussed with pjb.

@benev0
Copy link

benev0 commented Oct 28, 2024

As mentioned in the maintainer meeting...
hotfix

It looks like cherry-picks are required for both hotfix schemes PR into Stable and cherry pick from Master. Red is the hot fix in the diagram. Both schemes have problems. Git does not store diffs so merge conflicts should not be created by cherry picking from master into stable. For the merge strategy, changes parallel to the hotfix can occur causing conflict when the return pr from stable to master is made requiring cherry-pick or elaborate branching and merging: branch off stable, merge master into stable, resolve conflict, create PR into master.

If a hotfix using cherry pick into stable from master has a conflict, it is a strong indicator that the cherry pick was done incorrectly. All cherry-picks should not depend on other changes in master which are not present on stable. Conflicts can also indicate that hotfixes with file overlap have been merged in a different order than originaly.

If it is the case that merges from master to stable should always fast forward, then PRs into stable break this guarantee by allowing parallel changes. Resolution of such conflicts will require cherry picking or previously mentioned elaborate branching and merging.

If it is not the case that merges from master to stable should always fast forward, then patching main then patching stable with a cherry pick will be inhibited. This is based of the assumption that patch environment should be the sable branch to avoid unnecessary pollution. Developers pull current stable (on fork) make a PR into master this commit is then cherry picked into stable. Since stable is not a guaranteed fast forward merge, conflicts with the cherry pick may occur.

I believe that these are effectively mutually exclusive strategies

@Errant-4 Errant-4 dismissed their stale review May 20, 2025 21:21

obsolete

Copy link
Member

@Errant-4 Errant-4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by vote

@Errant-4 Errant-4 merged commit 99a5eed into space-wizards:master May 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

English Guides/Onboarding Related to guide/tutorial documentation and/or onboarding/developer setup Minor Changes Needed This Design/PR is almost good enough to merge but there are some minor changes that need to be done Policy/Organizational Relevant to documentation of Wizden Policy or Organizational information

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants