Skip to content

Conversation

@pcahyna
Copy link
Member

@pcahyna pcahyna commented Jun 22, 2020

With instructions and examples.

@pcahyna pcahyna requested a review from jharuda June 22, 2020 14:35

## Git workflow

1. Merge pull requests to master without merge commits to keep a less
Copy link
Member

Choose a reason for hiding this comment

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

There are branch protection rules in GitHub, I enabled:

"Require linear history
Prevent merge commits from being pushed to matching branches."

This should take care of this as far as I understand and also allow to use the web interface instead of git commands.

Copy link
Member

Choose a reason for hiding this comment

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

Also adjusted the setting for the merge button to only allow rebase. The branch protection rule should probably also be added for production.

Copy link
Member Author

Choose a reason for hiding this comment

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

@tyll, thanks, will it perform a fast-forward merge or do a rebase resulting in a new commit?

Copy link
Member

Choose a reason for hiding this comment

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

should be a fast-forward merge

@tyll
Copy link
Member

tyll commented Jun 22, 2020

Btw. I guess it would also make sense to rename master to staging, so there are only staging and production branches with less ambiguity for the master branch.

@richm
Copy link
Contributor

richm commented Jun 22, 2020

Btw. I guess it would also make sense to rename master to staging, so there are only staging and production branches with less ambiguity for the master branch.

The team thought it was clear that staging == development == master branch, and that disambiguation was only needed for production.

@tyll
Copy link
Member

tyll commented Jun 22, 2020

Btw. I guess it would also make sense to rename master to staging, so there are only staging and production branches with less ambiguity for the master branch.

The team thought it was clear that staging == development == master branch, and that disambiguation was only needed for production.

This describes my observation: Since this defines the meaning of "master" only by the presence of the other branch as in 'if there is another branch called "production", this means that "master" is probably not production but development' but it is not clear by looking at master by itself.

@richm
Copy link
Contributor

richm commented Jul 1, 2020

So can we merge this PR? lgtm

Copy link
Collaborator

@jharuda jharuda left a comment

Choose a reason for hiding this comment

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

LGTM

@pcahyna
Copy link
Member Author

pcahyna commented Jul 7, 2020

Btw. I guess it would also make sense to rename master to staging, so there are only staging and production branches with less ambiguity for the master branch.

The team thought it was clear that staging == development == master branch, and that disambiguation was only needed for production.

This describes my observation: Since this defines the meaning of "master" only by the presence of the other branch as in 'if there is another branch called "production", this means that "master" is probably not production but development' but it is not clear by looking at master by itself.

@jharuda @xjezda00 @ukulekek what is your usual naming of branches, are you typically using staging and production and avoid master?

@jharuda
Copy link
Collaborator

jharuda commented Jul 10, 2020

@pcahyna I usually use staging (testing) -> master (==production meaning) branches or staging (testing) -> production branches style. So at this point I agree with Tyll. But in our use-case there is no need to rename branches because Test-harness user still needs to read the documentation and after that he knows that master is staging (development) branch.

@richm
Copy link
Contributor

richm commented Jul 10, 2020

@pcahyna I usually use staging (testing) -> master (==production meaning) branches or staging (testing) -> production branches style.

Which is what we used to do until it was suggested that instead we use master branch==staging environment and production branch==production environment - #80 . . .

So at this point I agree with Tyll. But in our use-case there is no need to rename branches because Test-harness user still needs to read the documentation and after that he knows that master is staging (development) branch.

I really don't care what we use at this point - I don't think there is a "One True Way To Do It" that everyone (now, and in the future) will agree on - so we just need to pick something reasonable and move on.

@tyll
Copy link
Member

tyll commented Jul 10, 2020

So at this point I agree with Tyll. But in our use-case there is no need to rename branches because Test-harness user still needs to read the documentation and after that he knows that master is staging (development) branch.

I really don't care what we use at this point - I don't think there is a "One True Way To Do It" that everyone (now, and in the future) will agree on - so we just need to pick something reasonable and move on.

Use staging/production makes it explicit/unambiguous and does not rely on anyone needing to remember which special meaning "master" has, therefore I am in favor of this.

@richm
Copy link
Contributor

richm commented Jul 20, 2020

I think this is ready to be merged (after rebase)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants