-
Notifications
You must be signed in to change notification settings - Fork 66
[ML] PR guidelines #105
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
[ML] PR guidelines #105
Conversation
tveasey
left a comment
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.
I think this looks pretty good; I'm basically happy with the content. All my comments are related to typos.
CONTRIBUTING.md
Outdated
|
|
||
| Every change made to ml-cpp must be held to a high standard, Pull Requests are equally important as they document changes and decissions that have been made. `You Know, for Search` - a descriptive and relevant summary of the change helps people to find your PR later on. | ||
|
|
||
| The followings lists some guide lines when authoring pull requests. Note: Try to follow this guideline as close as possible but do not feel bad if you are unsure, team members can help you. |
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.
"guide lines" |-> "guidelines" and "Note: Try to follow this guideline as close" |-> "Note, try to follow this guideline as closely"
CONTRIBUTING.md
Outdated
|
|
||
| 1. PR title summarizes the change, short and descriptive. | ||
| 1. Use prefixes for quick categorization: | ||
| 1. [X.Y] Branch label if backport PR, if ommited the PR only applies to master. Note: Backport PR's are done after master PR, further explaination can be found below [#backport] |
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.
ommited |-> omitted. Plus I'd change "Note: Backport" to "Note, backport" either way no need to capitalise backport here. Also, explaination |-> explanation.
| 1. Use prefixes for quick categorization: | ||
| 1. [X.Y] Branch label if backport PR, if ommited the PR only applies to master. Note: Backport PR's are done after master PR, further explaination can be found below [#backport] | ||
| 1. [ML] mandatory prefix, to be consistent with other repositories | ||
| 1. [FEATURE] If your pull requests targets a feature branch, this prefix helps as a filter |
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.
++
CONTRIBUTING.md
Outdated
| 1. `>type` Type of the PR, e.g. `>bug`, `>refactoring`, `>enhancement`, `>test`. | ||
| 1. `vX.Y` Versions that PR should be applied to, a PR on master should always contain all backport versions as well, a backport PR should only have one corresponding version. | ||
| 1. `non-issue` if the PR is not important for the changelog, e.g. a bugfix for an unreleased feature | ||
| 1. `affects-results` If the PR is expected to have an affect on our QA test suite, that is any change that affects scoring but can also be any change that affects memory consumption. |
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.
I've tended to use this for changes which are expected to have a significant impact on results (otherwise, it will likely apply to nearly all PRs). That said, this is difficult to quantify so wouldn't be against repurposing.
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.
No, I am fine with the current rules, no intent to change it. I am re-phrasing 'any' to 'significant'
CONTRIBUTING.md
Outdated
| 1. `vX.Y` Versions that PR should be applied to, a PR on master should always contain all backport versions as well, a backport PR should only have one corresponding version. | ||
| 1. `non-issue` if the PR is not important for the changelog, e.g. a bugfix for an unreleased feature | ||
| 1. `affects-results` If the PR is expected to have an affect on our QA test suite, that is any change that affects scoring but can also be any change that affects memory consumption. | ||
| 1. `discuss` If your PR suggests a change which you first like to discuss regarding it's functional changes before going deep into actual implementation details (e.g. you change a default) |
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.
"If your PR suggests a change which you first like to discuss regarding it's" it's |-> "If your PR suggests a change for which you'd first like to discuss regarding its"
CONTRIBUTING.md
Outdated
| 1. `non-issue` if the PR is not important for the changelog, e.g. a bugfix for an unreleased feature | ||
| 1. `affects-results` If the PR is expected to have an affect on our QA test suite, that is any change that affects scoring but can also be any change that affects memory consumption. | ||
| 1. `discuss` If your PR suggests a change which you first like to discuss regarding it's functional changes before going deep into actual implementation details (e.g. you change a default) | ||
| 1. `WIP` let's potential reviewers know, that you haven't completed the PR yet and you are still working on further changes, lets reviewers know to maybe wait a bit until you finalized the PR. |
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.
let's |-> lets
CONTRIBUTING.md
Outdated
|
|
||
| ### Backport | ||
|
|
||
| Any development usually starts with an implementation on `master`, therefore any PR starts with a PR against `master`. Depending on the type we then decide about backport branches, features usually get backported to the active release branch, e.g. `6.x`, bugfixes might get backported to concrete release branches e.g. `6.1`. If unsure about the versions to backport to, it can be discussed on the master PR. |
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.
, e.g. 6.1
CONTRIBUTING.md
Outdated
|
|
||
| Any development usually starts with an implementation on `master`, therefore any PR starts with a PR against `master`. Depending on the type we then decide about backport branches, features usually get backported to the active release branch, e.g. `6.x`, bugfixes might get backported to concrete release branches e.g. `6.1`. If unsure about the versions to backport to, it can be discussed on the master PR. | ||
|
|
||
| A backport starts right after merging the PR on `master`, please open backport PR's immediatly after merging to `master`, even if you intend to merge backports a little later (e.g. to wait/analyse QA results). This helps to ensure that backports do not get lost. Rules for Backport PR's: |
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.
immediatly |-> immediately
|
Actually, I've just encountered another issue: if the original PR was marked as a non-issue it won't have a change log entry and if the backport PR doesn't have a |
address review comments
Improve affects-results description
|
Thanks @tveasey, I made some changes based on your review. |
CONTRIBUTING.md
Outdated
| 1. `:ml` mandatory label, to be consistent with other repositories. | ||
| 1. `>type` Type of the PR, e.g. `>bug`, `>refactoring`, `>enhancement`, `>test`. | ||
| 1. `vX.Y` Versions that PR should be applied to, a PR on master should always contain all backport versions as well, a backport PR should only have one corresponding version. | ||
| 1. `non-issue` if the PR is not important for the changelog, e.g. a bugfix for an unreleased feature |
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.
nit: non-issue should be >non-issue.
Same in two places on line 103
tveasey
left a comment
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.
Aside from Dave's catch regarding label naming, I'm happy with this now. I don't think I need to review again so I'll approve in advance.
fix the non-issue label
Add guidelines about PR's as well as backport PR's.
Adding guidelines about PR's as well as discussed backport PR's.
A readable version can be found at: https://github.com/hendrikmuhs/ml-cpp/blob/PR-guidelines/CONTRIBUTING.md#pull-requests