Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 094E018D00 for ; Thu, 24 Mar 2016 22:24:33 +0000 (UTC) Received: (qmail 44567 invoked by uid 500); 24 Mar 2016 22:24:32 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 44535 invoked by uid 500); 24 Mar 2016 22:24:32 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 44519 invoked by uid 99); 24 Mar 2016 22:24:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2016 22:24:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 34DEF180112 for ; Thu, 24 Mar 2016 22:24:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.798 X-Spam-Level: ** X-Spam-Status: No, score=2.798 tagged_above=-999 required=6.31 tests=[FSL_HELO_BARE_IP_2=1.499, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id P85HJ2ARGHTQ for ; Thu, 24 Mar 2016 22:24:30 +0000 (UTC) Received: from relayvx12c.securemail.intermedia.net (relayvx12c.securemail.intermedia.net [64.78.52.187]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 3A6445F234 for ; Thu, 24 Mar 2016 22:24:29 +0000 (UTC) Received: from securemail.intermedia.net (localhost [127.0.0.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by emg-ca-1-2.localdomain (Postfix) with ESMTPS id 6E60D53E69 for ; Thu, 24 Mar 2016 15:24:27 -0700 (PDT) Subject: Design & Code Review Guidelines MIME-Version: 1.0 x-echoworx-msg-id: d850c494-507f-4f05-a5bb-c767ab359c58 x-echoworx-emg-received: Thu, 24 Mar 2016 15:24:27.349 -0700 x-echoworx-message-code-hashed: e12b0bacf04af4fadb89235f72b884dc72017834e512659b3be1d0efe2ee208d x-echoworx-action: delivered Received: from 10.254.155.17 ([10.254.155.17]) by emg-ca-1-2 (JAMES SMTP Server 2.3.2) with SMTP ID 185 for ; Thu, 24 Mar 2016 15:24:27 -0700 (PDT) Received: from MBX080-W3-CO-1.exch080.serverpod.net (unknown [10.224.117.52]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by emg-ca-1-2.localdomain (Postfix) with ESMTPS id 2855553E69 for ; Thu, 24 Mar 2016 15:24:27 -0700 (PDT) Received: from MBX080-W3-CO-1.exch080.serverpod.net (10.224.117.52) by MBX080-W3-CO-1.exch080.serverpod.net (10.224.117.52) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Thu, 24 Mar 2016 15:24:26 -0700 Received: from MBX080-W3-CO-1.exch080.serverpod.net ([10.224.117.52]) by MBX080-W3-CO-1.exch080.serverpod.net ([169.254.1.106]) with mapi id 15.00.1130.005; Thu, 24 Mar 2016 15:24:26 -0700 From: Alejandro Fernandez To: "dev@ambari.apache.org" Thread-Topic: Design & Code Review Guidelines Thread-Index: AQHRhhvsfbjFMUDZBE2FLnagL/1Drw== Date: Thu, 24 Mar 2016 22:24:26 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.4.140807 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.175.27.10] x-source-routing-agent: Processed Content-Type: multipart/alternative; boundary="_000_D319B72762D72afernandezhortonworkscom_" --_000_D319B72762D72afernandezhortonworkscom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, I wanted to send a refresher on good design and code review guidelines. Creating Jiras: If you want your Jira to get attention and be resolved, please provide suff= icient details: version found on, ambari-server --hash, database dump, repr= o steps, stack trace, etc. This can also help someone determine if an issue has already been fixed on = a newer version. Further, make sure that the Jira title addresses the root cause and not an = implementation proposal. At times, we have a tendency to identify a solutio= n, and in doing so the original problem and root cause get lost; by the tim= e someone works on the Jira, they may end up adding superfluous code if the= underlying code base has changed or provides a better way to solve the pro= blem. Design Reviews: For large features, we must circulate design reviews in the community. This= gives others a chance to comment and provide insight into how a feature ca= n reuse existing designs or improve upon it. Sometimes the best design is actually really simple. For extremely large fe= atures, it's ok to make a feature branch, write the code and stabilize it, = and then integrate to trunk. Code Reviews: https://smartbear.com/learn/code-review/best-practices-for-pe= er-code-review/ 1. Authors should annotate source code before the review. This makes it = easier for devs reviewing your code and may even help you spot bugs before = they do. 2. Send small code-reviews if possible. Reviewing more than 400 lines pe= r hour diminishes our ability to find defects. 3. Reviewing code for more than one hour also reduces our ability to fin= d bugs. 4. If possible, try to break up large reviews into separate but function= al stages. If you need to temporarily comment out unit tests, do so. Sendin= g gigantic patches means your review will take longer since reviewers need = to block out more time to go through it, and you may spend more time revvin= g iterations and rebasing. We have a global community of committers, so please be mindful that you sho= uld wait at least 24 hours before pushing your patch even though you may al= ready have the necessary +1. This encourages others to take an interest in your review and helps us find= more bugs (it's ok to slow down in order to speed up). If you have any suggestions, feel free to share. Thank you, Alejandro Fernandez --_000_D319B72762D72afernandezhortonworkscom_--