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 3A36910D2A for ; Thu, 22 Jan 2015 21:35:00 +0000 (UTC) Received: (qmail 97647 invoked by uid 500); 22 Jan 2015 21:35:00 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 97606 invoked by uid 500); 22 Jan 2015 21:35:00 -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 97586 invoked by uid 99); 22 Jan 2015 21:34:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 21:34:59 +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; Thu, 22 Jan 2015 21:34:58 +0000 Received: (qmail 96064 invoked by uid 99); 22 Jan 2015 21:34:37 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 21:34:37 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 7960A1D5CAA; Thu, 22 Jan 2015 21:34:33 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2015412521681065832==" MIME-Version: 1.0 Subject: Re: Review Request 30187: Remove support for cluster metadata in YAML format. From: "Zameer Manji" To: "Brian Wickman" , "Zameer Manji" Cc: "Bill Farner" , "Aurora" Date: Thu, 22 Jan 2015 21:34:33 -0000 Message-ID: <20150122213433.9402.72224@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Zameer Manji" X-ReviewGroup: Aurora X-ReviewRequest-URL: https://reviews.apache.org/r/30187/ X-Sender: "Zameer Manji" References: <20150122213053.9401.27543@reviews.apache.org> In-Reply-To: <20150122213053.9401.27543@reviews.apache.org> Reply-To: "Zameer Manji" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============2015412521681065832== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Jan. 22, 2015, 1:30 p.m., Brian Wickman wrote: > > I think we should leave the yaml code but drop the PyYAML dependency from the client requirements. (And inject it into the test -- possibly one test with and one test without to make sure the try/except also functions correctly.) I feel that .yml is actually a much more natural way of defining the cluster list than json, because YAML supports basic templating in order to reduce redundancy, similar to pystachio. > > > > The way the code is currently structured, YAML will still work fine if it's available in the environmenet of your Aurora client, and gracefully fall back if not. > > > > Thoughts? If we are going to drop the PyYAML dependency then I think we should drop all of the YAML related code. I agree that YAML is a much nicer format because of the templating functionality it has but as it stands I think the cost of supporting YAML (native code, extra compelxity in loading) is greater than the benefits of a simpler config file. - Zameer ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/30187/#review69269 ----------------------------------------------------------- On Jan. 22, 2015, 1:09 p.m., Bill Farner wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/30187/ > ----------------------------------------------------------- > > (Updated Jan. 22, 2015, 1:09 p.m.) > > > Review request for Aurora, Brian Wickman and Zameer Manji. > > > Bugs: AURORA-1029 > https://issues.apache.org/jira/browse/AURORA-1029 > > > Repository: aurora > > > Description > ------- > > Remove support for cluster metadata in YAML format. > > > Diffs > ----- > > src/main/python/apache/aurora/common/clusters.py e55aa774b4b868f696a7de51bb016f950871dd1e > src/test/python/apache/aurora/common/BUILD 14165b96be99b8de418f4bb8def9f27eaf29e67d > src/test/python/apache/aurora/common/test_clusters.py 45250e609cca1149dc296b2aaf645ff2f58f8288 > > Diff: https://reviews.apache.org/r/30187/diff/ > > > Testing > ------- > > ./build-support/jenkins/build.sh > > test_end_to_end.sh is currently broken on master, i will address that and ensure it passes before committing this. > > > Thanks, > > Bill Farner > > --===============2015412521681065832==--