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 3971F188C0 for ; Mon, 16 Nov 2015 04:02:10 +0000 (UTC) Received: (qmail 27123 invoked by uid 500); 16 Nov 2015 04:02:09 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 27067 invoked by uid 500); 16 Nov 2015 04:02:09 -0000 Mailing-List: contact reviews-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.apache.org Delivered-To: mailing list reviews@aurora.apache.org Received: (qmail 27034 invoked by uid 99); 16 Nov 2015 04:02:09 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2015 04:02:09 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 0B809290124; Mon, 16 Nov 2015 04:02:09 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3392868123078437047==" MIME-Version: 1.0 Subject: Re: Review Request 40310: Replace Twitter checkstyle with pants checkstyle. From: "John Sirois" To: "Joshua Cohen" , "Joe Smith" , "Maxim Khutornenko" , "Zameer Manji" Cc: "John Sirois" , "Aurora" , "Aurora ReviewBot" Date: Mon, 16 Nov 2015 04:02:09 -0000 Message-ID: <20151116040209.19610.74591@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "John Sirois" X-ReviewGroup: Aurora X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/40310/ X-Sender: "John Sirois" References: <20151115233431.19611.36795@reviews.apache.org> In-Reply-To: <20151115233431.19611.36795@reviews.apache.org> Reply-To: "John Sirois" X-ReviewRequest-Repository: aurora --===============3392868123078437047== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/40310/ ----------------------------------------------------------- (Updated Nov. 15, 2015, 9:02 p.m.) Review request for Aurora, Joshua Cohen, Joe Smith, Maxim Khutornenko, and Zameer Manji. Bugs: AURORA-1532 https://issues.apache.org/jira/browse/AURORA-1532 Repository: aurora Description ------- This upgrades to pants 0.0.58 to pick up the newly split off pants python checks contrib plugin. Release notes are here: https://pypi.python.org/pypi/pantsbuild.pants/0.0.58 The plugin provides both python checkstyle (`compile.pythonstyle`), and a python eval task (`compile.python-eval`). The `python-eval` is turned off since at least one of the Aurora python targets has files that have side-effects upon import (a repl is started). Now style checks run before compile (and thus before tests) and they benefit from fingerprinting; ie: if you test your changes, those tests will run style checks and when you go to commit, those checks will not be re-run by the commit hook (although files you did not test will still need to be checked). A few production files were fixed up according to style failures coming from: + no space after comment opening '#' + unused variables + mis-aligned hanging closing parens. Diffs ----- build-support/hooks/pre-commit 619fa9e245be49e4e1f21781c0908cbf744b10ea build-support/jenkins/build.sh 41a392162f62236771ccbef5c9f94bf84b899f26 build-support/python/checkstyle 61acc22613acece01580761b25afc7a3edb6b845 build-support/python/checkstyle-check b2bfc5dd71193a8056828e9af05a4c16965f32a1 pants.ini 319d38e9a7af8055cac5bbce4a6ae0cbb38dc8d0 src/main/python/apache/aurora/admin/maintenance.py 6d94c923ae37bf6b827519d3505b100af306296b src/main/python/apache/aurora/client/api/__init__.py 6f07a3073a5d422373238619d459fbd09d8adf3d src/main/python/apache/aurora/client/cli/client.py 297fb588808c1eebc32ac3374265ba986dab3436 src/main/python/apache/aurora/client/cli/cron.py 6376fd014f2a4da29442b5c2c7eb36578b503ba3 src/main/python/apache/thermos/core/process.py fe95cb3be01b47616596bd78cb9a919b2e8bd978 src/main/python/apache/thermos/monitoring/process_collector_psutil.py f1ec5a9050ac60700c4a8afa905bcf12a9bd8a44 src/test/python/apache/aurora/admin/test_admin.py 8e204ab43c6bf69867ea7c32b0a7ba7fb29c0766 src/test/python/apache/aurora/admin/util.py 3570407b51613d0a7b4fde8a4794d88b98e150b5 src/test/python/apache/aurora/client/cli/test_task.py 5432a3d5f7e150b12bd75db0dac7a9018e1c6636 Diff: https://reviews.apache.org/r/40310/diff/ Testing ------- See the discarded https://reviews.apache.org/r/40219/ for the commit-hook check. This version of that RB engages the same code and this RB commit was vetted by the same commit-hook. Thanks, John Sirois --===============3392868123078437047==--