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

Finalizing the configuration of GitFlow and GitHubFlow workflow and align with the Mainline version strategy #4009

Merged
merged 7 commits into from
May 7, 2024

Conversation

HHobeck
Copy link
Contributor

@HHobeck HHobeck commented Apr 17, 2024

Description

Finalizing the configuration of GitFlow and GitHubFlow workflow and align with the Mainline version strategy. See:

Close #4005
Close #2394
Close #3689

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@HHobeck
Copy link
Contributor Author

HHobeck commented Apr 18, 2024

I think conventionalcommits.org has problems with it's certficate:

image

@HHobeck
Copy link
Contributor Author

HHobeck commented Apr 18, 2024

The artefacts tests are failing... Maybe because of my changes!? Probably we need to change the assertion condition.

docs/input/docs/reference/configuration.md Show resolved Hide resolved
docs/input/docs/reference/configuration.md Outdated Show resolved Hide resolved
docs/input/docs/reference/configuration.md Show resolved Hide resolved
@@ -50,17 +51,15 @@ branches:
release:
mode: ManualDeployment
label: beta
increment: None
increment: Minor
Copy link
Member

Choose a reason for hiding this comment

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

Should release branches really increment by default?

Copy link
Contributor Author

@HHobeck HHobeck Apr 19, 2024

Choose a reason for hiding this comment

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

Actually good point. I thought it would be a good idea to have this in place to do the following:

image

What would be the argument against the usage of release/next and the behavior of incrementing by default?

Copy link
Member

Choose a reason for hiding this comment

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

I think that's fine as a possibility, but perhaps not as the default mode of operation? I think the defaults should adhere to the established norms for the supported workflows, in which release branches are named by the upcoming version number.

Copy link
Contributor Author

@HHobeck HHobeck Apr 25, 2024

Choose a reason for hiding this comment

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

I think that's fine as a possibility, but perhaps not as the default mode of operation? I think the defaults should adhere to the established norms for the supported workflows, in which release branches are named by the upcoming version number.

I'm not sure if you see my change in the right light. This change is not about changing any default behavior rather than handle the case when the users are not specifying a dedicated version like release/2.2.1. You say that we should consider the established norm. But what is the established norm in case of specifying release/next? If it is like you say: Why do we not set the regular expression to ^releases?[/-](?<BranchName>\d+\.\d+\.\d+.*) and force the user to use a version number?

Finally my motivation is not about changing the default behavior but making the behavior of git flow workflow better in this scenario no version number is present in the release branch. Is this not a valid improvement especially if it has no disadvantages (It is additiv)!?

Please see the following sequence diagram when specifying a version number which applies with this configuration as well:

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@asbjornu: Can you please answer the question or give me some arguments why we should not handle the case for release branches with no version number?

Copy link
Member

Choose a reason for hiding this comment

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

I'm not against handling the case for release branches with no version number, but won't this change make that the default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually like you see in the both sequence diagrams I provided previously it will not change the default behavior except in one case:

Let's say you have a tag 1.0.0 on main and branch from main to release/1.0.1 branch then the next version number will be 1.1.0. But in my opinion that is okay because in the gitflow workflow you have an addition IsRelease branch configuration with name hotfix. If you want the 1.0.1 as a next version you need to branch to hotfix/1.0.1 or hotfix/next and not release. In githubflow workflow it is not a problem because there the increment is set to patch for release branch.

I don't like the default behavior when using release/next because it will be resulting in 1.0.0 which is obviously wrong. Does it make sense?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that makes sense. Sounds like a reasonable compromise to me. 👍🏼

@HHobeck HHobeck force-pushed the feature/finalizing-the-configuration branch 2 times, most recently from 18a6c3b to a2344cc Compare April 19, 2024 11:04
@arturcic arturcic removed their request for review April 29, 2024 09:47
@HHobeck
Copy link
Contributor Author

HHobeck commented May 6, 2024

@asbjornu @arturcic Please proceed and merge this pull request to main.

@HHobeck HHobeck force-pushed the feature/finalizing-the-configuration branch from 58beae9 to 83203a8 Compare May 6, 2024 09:22
@HHobeck HHobeck merged commit 943fc4c into GitTools:main May 7, 2024
75 of 117 checks passed
Copy link
Contributor

mergify bot commented May 7, 2024

Thank you @HHobeck for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants