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

12691: Improve the PR checklist. #7140

Merged
merged 3 commits into from
Nov 17, 2020
Merged

12691: Improve the PR checklist. #7140

merged 3 commits into from
Nov 17, 2020

Conversation

iefremov
Copy link
Contributor

@iefremov iefremov commented Nov 13, 2020

Resolves brave/brave-browser#12691

The idea is to clean up the checklist and leave only relevant
and important entries. Also populate the reviewers section with
frequently overlooked issues.

Resolves

Submitter Checklist:

Test Plan:

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

Resolves brave/brave-browser#12691

The idea is to clean up the checklist and leave only relevant
and important entries. Also populate the reviewers section with
frequently overlooked issues.
@iefremov iefremov self-assigned this Nov 13, 2020
@iefremov iefremov added the CI/skip Do not run CI builds (except noplatform) label Nov 13, 2020
- [ ] Used Github [auto-closing keywords](https://help.github.com/articles/closing-issues-via-commit-messages/) in the commit message.
- [ ] Added/updated tests for this change (for new code or code which already has tests).
- Verified that these changes build without errors on
- [ ] Android
Copy link
Collaborator

Choose a reason for hiding this comment

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

might still be useful to have this when mixing local test runs + CI

- [ ] Windows
- [ ] Verified that all lint errors/warnings are resolved (`npm run lint`, `npm run gn_check`)
- [ ] Wrote a good [PR/commit description](https://google.github.io/eng-practices/review/developer/cl-descriptions.html)
- [ ] Checked the PR locally: `npm run test -- brave_browser_tests`, `npm run test -- brave_unit_tests`, `npm run lint`, `npm run gn_check`
- [ ] Ran `git rebase master` (if needed).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we do something similar to the first checkbox - describing the state of the PR rather than an "if needed" action? I'm thinking something along the lines of:

  • The PR is rebased/up to date with the most recent master branch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this state is nearly impossible - master is frequently updated, so in a minute after rebase you are not up-to-date anymore. So the current sentence just reminds that it's useful to rebase once in a while.

And if your RP is seriously outdated, CI wouldn't merge it anyway

.github/PULL_REQUEST_TEMPLATE.md Outdated Show resolved Hide resolved
.github/PULL_REQUEST_TEMPLATE.md Outdated Show resolved Hide resolved
Copy link
Member

@diracdeltas diracdeltas left a comment

Choose a reason for hiding this comment

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

- [ ] Windows
- [ ] Verified that all lint errors/warnings are resolved (`npm run lint`, `npm run gn_check`)
- [ ] Wrote a good [PR/commit description](https://google.github.io/eng-practices/review/developer/cl-descriptions.html)
- [ ] Checked the PR locally: `npm run test -- brave_browser_tests`, `npm run test -- brave_unit_tests`, `npm run lint`, `npm run gn_check`
Copy link
Member

Choose a reason for hiding this comment

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

One problem I commonly have is that I almost never have the browser tests working locally and it's never because of my changes. Maybe we should split that one into a separate item (or just leave it for CI)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same here! But I reckon it is still useful to run tests locally just in case you catch an error and save some CI cycles


- [ ] The associated issue milestone is set to the smallest version that the
changes has landed on.
- [ ] All relevant documentation has been updated, for instance:
Copy link
Member

Choose a reason for hiding this comment

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

💯 This is never appropriate to do until after the merge :)


## Reviewer Checklist:

- [ ] New files have MPL-2.0 license header.
Copy link
Member

Choose a reason for hiding this comment

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

This is a frequently forgotten one. Might be worth keeping until we have it automated in the linter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

linter checks it, at least for C++ files

Copy link
Member

Choose a reason for hiding this comment

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

That explains why I haven't seen it missing from C++ files lately, though I have seen it missing from other file types.

Copy link
Member

Choose a reason for hiding this comment

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

We can have ts files checked with tslint brave/brave-browser#12724

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, let's keep it until we can lint more file types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip Do not run CI builds (except noplatform)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve brave-core pull-request checklist
7 participants