Return-Path: X-Original-To: apmail-aurora-dev-archive@minotaur.apache.org Delivered-To: apmail-aurora-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68E46108B5 for ; Fri, 3 Jan 2014 21:47:42 +0000 (UTC) Received: (qmail 55520 invoked by uid 500); 3 Jan 2014 21:47:42 -0000 Delivered-To: apmail-aurora-dev-archive@aurora.apache.org Received: (qmail 55498 invoked by uid 500); 3 Jan 2014 21:47:42 -0000 Mailing-List: contact dev-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.incubator.apache.org Delivered-To: mailing list dev@aurora.incubator.apache.org Received: (qmail 55490 invoked by uid 99); 3 Jan 2014 21:47:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jan 2014 21:47:42 +0000 X-ASF-Spam-Status: No, hits=-1998.2 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,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; Fri, 03 Jan 2014 21:47:41 +0000 Received: (qmail 55414 invoked by uid 99); 3 Jan 2014 21:47:21 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jan 2014 21:47:21 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 836C71D412B; Fri, 3 Jan 2014 21:47:18 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0215897175240326227==" MIME-Version: 1.0 Subject: Re: Review Request 16306: "job status" command, with wildcard support. From: "Brian Wickman" To: "Brian Wickman" , "Jonathan Boulle" Cc: "Aurora" , "Mark Chu-Carroll" Date: Fri, 03 Jan 2014 21:47:18 -0000 Message-ID: <20140103214718.29218.62901@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Brian Wickman" X-ReviewGroup: Aurora X-ReviewRequest-URL: https://reviews.apache.org/r/16306/ X-Sender: "Brian Wickman" References: <20131218212727.2160.77595@reviews.apache.org> In-Reply-To: <20131218212727.2160.77595@reviews.apache.org> Reply-To: "Brian Wickman" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============0215897175240326227== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16306/#review31166 ----------------------------------------------------------- src/main/python/twitter/aurora/client/cli/context.py I think this check is not quite right. It should be more like: return not any('*' in component for component in (key.cluster, key.role, key.env, key.name)) src/main/python/twitter/aurora/client/cli/jobs.py strip off all the \n\t's and do '\n\t'.join(...) ? src/main/python/twitter/aurora/client/cli/jobs.py use list(filter(...)) or []-comprehension here since filter() is lazy in python3, so len() won't work on it. (render_tasks_pretty calls len() on the iterable) - Brian Wickman On Dec. 18, 2013, 9:27 p.m., Mark Chu-Carroll wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/16306/ > ----------------------------------------------------------- > > (Updated Dec. 18, 2013, 9:27 p.m.) > > > Review request for Aurora, Jonathan Boulle and Brian Wickman. > > > Repository: aurora > > > Description > ------- > > Added an implementation of the "status" verb for jobs. This is the first command to use the new job wildcards, so there's a bunch of infrastructure added to the Context to support it. > > This also includes unit tests of the new command. > > > Diffs > ----- > > src/main/python/twitter/aurora/client/api/__init__.py 60f4011dda0db17ed57d3499637270d466c1b0b8 > src/main/python/twitter/aurora/client/cli/BUILD aaeede4ac0b1239c1cb9354d15365658e1650ec8 > src/main/python/twitter/aurora/client/cli/__init__.py 4b771d61464cfa2256d48f0a71ddd5829dd27266 > src/main/python/twitter/aurora/client/cli/context.py 2ae92ecce8ec3ee2bf66b727e19bc90d1c171eb9 > src/main/python/twitter/aurora/client/cli/jobs.py 58a723fbc5591565fd51311e0dcfa9567282dbb3 > src/test/python/twitter/aurora/client/cli/BUILD 89184b649f8c7807a6f599d6f0026902eed11a6c > src/test/python/twitter/aurora/client/cli/test_create.py da2828f73d32e3d3305fddd4224014a9b847ad2a > src/test/python/twitter/aurora/client/cli/test_kill.py 8f8095cd2d1dac9d6d2a9891db16cce1d4227eaf > src/test/python/twitter/aurora/client/cli/test_status.py PRE-CREATION > src/test/python/twitter/aurora/client/cli/util.py 46883ecd696b0f6b691831b65bb5e71367cd652a > > Diff: https://reviews.apache.org/r/16306/diff/ > > > Testing > ------- > > > Thanks, > > Mark Chu-Carroll > > --===============0215897175240326227==--