DevTools/Code Review Checklist: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(First draft)
 
m (typo)
Line 39: Line 39:
* User facing changes
* User facing changes
** If a new piece of UI or new user interaction is added/modified, then Helen is ui-review? on the bug
** If a new piece of UI or new user interaction is added/modified, then Helen is ui-review? on the bug
** If a user facing string has been added, it is localized and follows the localization guideslines at : https://wiki.mozilla.org/DevTools/Hacking#Guidelines
** If a user facing string has been added, it is localized and follows the localization guidelines at : https://wiki.mozilla.org/DevTools/Hacking#Guidelines
** If a user-facing string has changed meaning, the key has been updated : https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_content_best_practices#Changing_existing_strings
** If a user-facing string has changed meaning, the key has been updated : https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_content_best_practices#Changing_existing_strings
** If a new image is added, it is a SVG image or there is a reason for not using a SVG
** If a new image is added, it is a SVG image or there is a reason for not using a SVG

Revision as of 14:09, 10 March 2016

This checklist is primarily useful for DevTools reviewers as it lists all points potentially important to check while reviewing code, but it can serve as a set of guidelines for patch authors too.

Bug status and patch file

Manual testing

  • Verify the feature or fix
  • Report problems in the global review comment
  • Decide which bugs need to block landing the change, and which can be fixed as follow-ups instead

Automated testing

  • Run new/modified tests, with and without e10s
  • Watch out for tests that pass but log exceptions or end before protocol requests are handled
  • Watch out for slow/long tests: suggest many small tests rather than single long tests

Code review

Finalize the review

  • R+ : the code should land as soon as possible
  • R+ with comments: there are some comments, but they are minor enough, or don't require a new review once addressed, trust the author
  • R cancel / R- / F+: there is something wrong with the code, and a new review is required