A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://firefox-source-docs.mozilla.org/contributing/Code_Review_FAQ.html below:

Website Navigation


Code Review FAQ — Firefox Source Docs documentation

Code Review FAQ What is the purpose of code review?

Code review is our basic mechanism for validating the design and implementation of patches. It also helps us maintain a level of consistency in design and implementation practices across the many hackers and among the various modules of Mozilla.

Of course, code review doesn’t happen instantaneously, and so there is some latency built into the system. We’re always looking for ways to reduce the wait, while simultaneously allowing reviewers to do a good chunk of hacking themselves. We don’t have a perfect system, and we never will. It’s still evolving, so let us know if you have suggestions.

Mozilla used to have the concept of “super-review”, but a consensus was reached in 2018 to retire this process.

Who must review my code?

You must have an approval (“r={{ mediawiki.external(‘name’) }}”) from the module owner or designated “peer” of the module where the code will be checked in. If your code affects several modules, then generally you should have an “r={{ mediawiki.external(‘name’) }}” from the owner or designated peer of each affected module. We try to be reasonable here, so we don’t have an absolute rule on when every module owner must approve. For example, tree-wide changes such as a change to a string class or a change to text that is displayed in many modules generally doesn’t get reviewed by every module owner.

You may wish to ask others as well.

What do reviewers look for?

A review is focused on a patch’s design, implementation, usefulness in fixing a stated problem, and fit within its module. A reviewer should be someone with domain expertise in the problem area. A reviewer may also utilize other areas of his or her expertise and comment on other possible improvements. There are no inherent limitations on what comments a reviewer might make about improving the code.

Reviewers will probably look at the following areas of the code:

How can I tell the status of reviews?

When a patch has passed review you’ll see “Accepted” in green at the top of a Phabricator revision, under the title. In Bugzilla (which is deprecated in favour of Phabricator), this is indicated by “{{ mediawiki.external(‘name’) }}:review+” in the attachment table in the bug report. If it has failed review then you’ll see “Needs Revision” in red at the top of the revision, or, in Bugzilla, “{{ mediawiki.external(‘name’) }}:review-”. Most of the time that a reviewer sets a review flag, they will also add a comment to the bug explaining the review.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3