-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
improve PR reviews #5616
improve PR reviews #5616
Conversation
I know it's a lot of work for you doing all those reviews, but I think it has served us well, so far. You have made sure the architectural integrity has been preserved. I fear the "design validation" could start to suffer. It's always hard to tell someone to start over when they've invested 2 weeks on the implementation. I think doing threads like this one https://spectrum.chat/theia/dev/how-should-we-go-about-register-monaco-commands-used-by-vs-code-extensions~2c74f56c-2d24-4f21-9db6-8041f0e861c9 will help with validating a design before we get too invested in them. |
9aaf72e
to
37db60a
Compare
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.
Very nice initiative 👍 , I have added a few remarks on typos.
c482258
to
62301da
Compare
Please have a look again. I've tried to address all comments and did following changes:
|
Agree that contributors should start discussions and open PRs early even if they are incomplete in order to verify the design first. |
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
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.
Thank you for putting all this together! 👍
it would be great to use https://www.conventionalcommits.org as well |
@benoitf let's discuss it next dev meeting? The goal of this PR to make existing review expectations clear. Also @benoitf had some good points in #5622 (comment). I try to summarise here:
Regarding the last point. It looks already long to me as well. I still think we should have it to make it clear about expectations in order to help new contributors to know what to look for. Maybe we better to add Review checklist
|
@akosyakov sure I don't want to hijack the thread, let's discuss it on dev meeting |
e44228a
to
73229b2
Compare
I've extracted a new document on how to collaborate and review PRs. The PR template is short now and references this document. |
a2bdb69
to
5414a3b
Compare
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 changes look good to me :)
I'm glad we took steps in order to improve the review process and make it easier
for authors as well as reviewers and document our process.
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.
Looks good, I've suggested a bunch of minor grammar amendments
doc/pull-requests.md
Outdated
|
||
<a name="reverting-pr"></a> | ||
- [1.](#reverting-pr) If a PR causes regressions after landing | ||
then an author has 2 days to resolve them after that a PR has to be reverted. |
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.
has 2 days
How will this be managed?
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.
We will ask an author to look into a fix if there is no response and we don't have time to fix it ourself then we revert it. As it was done here: #5770
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.
Also if an author is responsive and trying to fix, but we keep receiving bug reports from users as it was the case with SCM PR, then we will revert everything and wait for the better 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.
Do you think we need to rephrase it somehow to make it more clear?
5414a3b
to
adab776
Compare
@thegecko thank for looking at it, I've applied your suggestions |
@marcdumais-work @svenefftinge please have a look whether you happy with the current state |
## Reviewing | ||
|
||
<a name="reviewing-template"></a> | ||
- [1.](#eviewing-template) Reviewers should check that a PR has a [proper description](#pr-template). |
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.
Suggestion: also make it clear that the commit(s) should have a proper description (at minimum equivalent to What it does
from the PR template. Other info from filled-in template could be nice-to-have as well). This is missed sometimes and makes it harder to understand what a commit does without digging-in the code.
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.
Maybe this (requirement to have meaningful commit message) would fit better in the "review checklist" section, around points number 8 / 9
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.
@marcdumais-work i think it should go to review checklist, could you suggest wording.
Also @benoitf suggested to use conventional commits. I think it is a good idea in the sense that we should automate as much as possible from this checklist. With conventional commits we will need only ask to provide proper commit messages and then we can generate changelogs from them. I know that electon follow such approach. It could be worth to look into after landing this 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.
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.
Added a suggestion about meaningful commit message for consideration.
Very nice, thanks for putting this together @akosyakov
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
adab776
to
4b0b4b4
Compare
pinged Sven offline, he said that he is fine to follow it, merging |
What it does
I want to start working on improving our review process. We have many PRs and I feel being a bottleneck in the process when many things can be checked without me. This PR proposes:
Rendered PR guidelines
How to test
Review whether something missing, too strict or unnecessary in the proposed review checklist
Review checklist
Reminder for reviewers