Return-Path: X-Original-To: apmail-aurora-reviews-archive@minotaur.apache.org Delivered-To: apmail-aurora-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06D8810D35 for ; Wed, 15 Oct 2014 16:47:13 +0000 (UTC) Received: (qmail 50320 invoked by uid 500); 15 Oct 2014 16:47:12 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 50282 invoked by uid 500); 15 Oct 2014 16:47:12 -0000 Mailing-List: contact reviews-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.incubator.apache.org Delivered-To: mailing list reviews@aurora.incubator.apache.org Received: (qmail 50271 invoked by uid 99); 15 Oct 2014 16:47:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2014 16:47:12 +0000 X-ASF-Spam-Status: No, hits=-1997.8 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 15 Oct 2014 16:47:08 +0000 Received: (qmail 45950 invoked by uid 99); 15 Oct 2014 16:46:48 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2014 16:46:48 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 97D511DDFB0; Wed, 15 Oct 2014 16:46:43 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0317713075365978206==" MIME-Version: 1.0 Subject: Re: Review Request 26688: Fix errors in help rendering: From: "Mark Chu-Carroll" To: "Zameer Manji" , "Joshua Cohen" Cc: "Mark Chu-Carroll" , "Aurora" Date: Wed, 15 Oct 2014 16:46:43 -0000 Message-ID: <20141015164643.24413.50046@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Mark Chu-Carroll" X-ReviewGroup: Aurora X-ReviewRequest-URL: https://reviews.apache.org/r/26688/ X-Sender: "Mark Chu-Carroll" References: <20141014164654.24426.19762@reviews.apache.org> In-Reply-To: <20141014164654.24426.19762@reviews.apache.org> Reply-To: "Mark Chu-Carroll" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============0317713075365978206== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Oct. 14, 2014, 12:46 p.m., Joshua Cohen wrote: > > src/test/python/apache/aurora/client/cli/test_help.py, line 75 > > > > > > Are option names guaranteed to be unique? If not this test could potentially pass if any help output contains a plugin option name, not necessarily the help output for the command to which the plugin was registered. > > > > It's also possible for a plugin option name to appear in the help for another option, and not on its own, which would cause this test to succeed even if the plugin options themselves are not properly displayed? > > > > I guess what I'm getting at is would it be better to test for more than just the appearance of a string at any point in the output? > > > > (This may be based on incomplete understanding of how the client registers commands/options). I'm trying to keep the test from being overly sensitive to changes. The problem with a lot of output testing is that it's incredibly brittle - even tiny changes to the output require the test to get rewritten. So when possible, I'd prefer to have tightly focused tests, which look for specific problems. We know that we had a rendering bug that was causing plugin options to get omitted from usage strings - so this test tries to specifically check that that's not happening anymore. If it fails, we know exactly what the problem is. - Mark ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/26688/#review56541 ----------------------------------------------------------- On Oct. 15, 2014, 12:41 p.m., Mark Chu-Carroll wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/26688/ > ----------------------------------------------------------- > > (Updated Oct. 15, 2014, 12:41 p.m.) > > > Review request for Aurora, Joshua Cohen and Zameer Manji. > > > Bugs: aurora-831 > https://issues.apache.org/jira/browse/aurora-831 > > > Repository: aurora > > > Description > ------- > > - Put plugin-generated options into the correct order. > - Include the option-name in the detailed help list. > - Add missing metavars. > > > Diffs > ----- > > src/main/python/apache/aurora/client/cli/__init__.py da9d5b6ba4d22ba1f444341b97bbcfaf7889a4a8 > src/main/python/apache/aurora/client/cli/options.py dc76c25b90acb9610e40b939e65c3cabf032649f > src/main/python/apache/aurora/client/cli/standalone_client.py 20f4d7ef43ba336a2b6d02cbf5656c97bdfa2ea1 > src/test/python/apache/aurora/client/cli/test_help.py f73c8a3778b7d118ea2865f213b442a607fb4a7d > > Diff: https://reviews.apache.org/r/26688/diff/ > > > Testing > ------- > > > Thanks, > > Mark Chu-Carroll > > --===============0317713075365978206==--