-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Revisit PR template [ci skip] #6104
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
Conversation
- make it clear that the text should be deleted, which is often not the case - resulting in handling it as incomplete TODOs - clarify targetting master/features and make it a single actionable item. Ref: pytest-dev#6064 (comment) - fix punctuation
!! Please delete this text from the final description, this is just a guideline) !! | ||
|
||
- [ ] Target the `master` branch for bug fixes, documentation updates and | ||
trivial changes. But please use `features` for changes touching many |
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.
isn't the opposite slightly better (since we frequently merge master into features but rarely the other way)
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.
The point here is that it should go to the leading branch, and not the stable/release branch (for bugfixes).
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.
@asottile
Can't you see / understand that?
May I ask how the How about scheme like the following?
This eliminates the frequent merging and the This is similar to what Django uses for example, described here. |
Hi @bluetech, Not sure, it seems the approach you propose would mean more work on the maintainers side, wouldn't it? I mean, in practice, it might mean we would make more feature releases than patch releases, because of the work involved. |
I agree with @bluetech here - this is a more common workflow in general, where master is just for development basically.
It's basically what we have with 4.6-maintenance already.
Wouldn't really be bad, is it? Keep in mind that we currently have to merge master into features all the time already (to get fixes into "features" etc). |
if we where using a scm that uses sound patch theory, say darcs or pijul, then i wouldnt mind such a workflow, as patch exchange would be much more sane. however git makes things a pain, so i'd rather avoid that id rather like to see a flow without feature branches and all releases coming off master often and early |
FWIW what @bluetech describes in #6104 (comment) is what I did in qutebrowser for the past 5 years. It works quite well for me - I have a feature release around all 2 months, and typically something like 2 patch releases after each. For qutebrowser, I do all the cherry-picking myself for any changes where I feel like it's appropriate to do so. It's definitely some work though. Indeed it could be automated, but someone needs to do so first 😉 @RonnyPfannschmidt Not sure what you mean. Do you have some more details other than "git makes things a pain, other things are more sane" which doesn't really say anything? |
@The-Compiler |
Anyway, while we can continue the discussion here I think the change itself might make sense already for now, no? |
I agree, I don't see a problem with having two different commits for bugfixes. I do see a problem with bugfix PRs being based on merge bases - I don't think this will work out, and it requires a lot of additional work for both maintainers and contributors. |
Yeah, it is a bit unnecessary, but could be used if that's the only reason @RonnyPfannschmidt does not approve this workflow. |
no separate branches and no cherry picks (except backports) is definitely the simplest workflow -- if there's features make a feature release, if there's bugfixes make a bugfix release (this is, afaict how hypothesis does things -- perhaps @Zac-HD can weigh in) |
Personally I don't find the features/master workflow that complicated TBH, but if we are to change things, I would vote for this workflow then, although I think in practice this will mean most likely every release will be a minor release, given that we add improvements all the time (new features not so much). |
Me neither. Therefore it makes sense to me to change the flow to something more common, i.e. master + release branches. The latter would then also not be necessary until a hotfix is required really, and releases could just be made from master instead. If it is a major, minor, or patch release can be decided then. Anyway, this PR seems to not get taken as-is anyway, closing. |
Thanks for submitting a PR, your contribution is really appreciated! | ||
|
||
Here is a quick checklist that should be present in PRs. | ||
(please delete this text from the final description, this is just a guideline) | ||
--> |
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.
As per #6159 (comment) removing the comments might be good already.
Happy to create a PR, but please approve it here already, so that it does not get talked down again.
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 the "(please delete...)" could be removed from here, but I'd leave the other instructions inside comments, otherwise you'll see them on many PRs.
|
||
- [ ] Create a new changelog file in the `changelog` folder, with a name like `<ISSUE NUMBER>.<TYPE>.rst`. See [changelog/README.rst](https://github.com/pytest-dev/pytest/blob/master/changelog/README.rst) for details. | ||
- [ ] Add yourself to `AUTHORS` in alphabetical order; | ||
- [ ] Add yourself to `AUTHORS` in alphabetical order |
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.
Big +1 for removing this semicolon!
It's not necessary here, you don't use them at the end of a sentence; they would only go in the middle of a sentence, a bit like a comma.
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.
@hugovk
Please consider creating a PR with that and your other suggestion.
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.
Please see PR #6188.
case - resulting in handling it as incomplete TODOs
item. Ref: Replace py.io.TextIO with io.StringIO #6064 (comment)