Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-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 466C517DBF for ; Mon, 8 Feb 2016 08:56:14 +0000 (UTC) Received: (qmail 74839 invoked by uid 500); 8 Feb 2016 08:56:09 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 74773 invoked by uid 500); 8 Feb 2016 08:56:09 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 74761 invoked by uid 99); 8 Feb 2016 08:56:08 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2016 08:56:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6BF981A0452 for ; Mon, 8 Feb 2016 08:56:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=radicalbit-io.20150623.gappssmtp.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 3cvvLb2E--Av for ; Mon, 8 Feb 2016 08:56:06 +0000 (UTC) Received: from mail-vk0-f53.google.com (mail-vk0-f53.google.com [209.85.213.53]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 4082920657 for ; Mon, 8 Feb 2016 08:56:06 +0000 (UTC) Received: by mail-vk0-f53.google.com with SMTP id e6so90745641vkh.2 for ; Mon, 08 Feb 2016 00:56:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=radicalbit-io.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1YH/UfNP6x9ZsiXiXPihW82AHIBDllk4DJhx9fSYKBk=; b=GLfxx0Y6E607VQIeBn8jrw7IdkMWTpVfgCbXoIKybbURQZRg2LttXMmM4rMPvFxE17 otABFbbQHwQrb0N1JTMehm2CRZW3LejUG2io4n0vlH3RcBMG0NyyzaZQfyHclpp9nncK DDjrbiOua4XalyoWbZRpUZ6XlGdk6UdqSuFxEQk7kJ9HejYnWSkFY25gVE0z5mKqlB5o GR1/PsI44LpS8TdW6Dd5mOv+t7NMfjcHHrE8C2K9Fp9F1MkUU/LhXQQw2XMY63cAIPfs qPOYOv3atiR1g9L+vBiMOMU0PRJMNJzLdNwv4/eiMWJd2yQc+SzaH0ye+I9Yl+IzyA7m 8qJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=1YH/UfNP6x9ZsiXiXPihW82AHIBDllk4DJhx9fSYKBk=; b=kG2c2mugnGJFJWax9abQaYUhjHzKLWGsoAROERtKGIAgA0Z9111Ec/Rvh4pr9dsjJa KvN30fUUKiEQ62/gfBCkZBUpGw0Dk/6A9AvWb+YnTF/3bC7T14UXYd7Dnxm+evivSgGO iCcOriefvE9jrGXA0Y0KQ+aIHnLnCL92xajSu7q+59yaiKHDeTtx3dx2E17Y2XOM5Ds8 /onsUz6hBM8HcFoAf/bIEyvITk9aHRonioM5JKVZB8kJu8v6evewoggN+vOlga0cCE77 EI8tmxV8Dsdcbt65E7dOvWW4I11SqggwqVuE1H3PyzpvFEFvSIxzo95WUCvhKwiGj1dM Wh+w== X-Gm-Message-State: AG10YOS3ind4uhmCo3AGHzcGKS8G2JAYuqMR7cH/2apx69Hcl+38KjFzk6rFnw5FDixkO3mMbnvisB2Rv4pRdg== MIME-Version: 1.0 X-Received: by 10.31.180.85 with SMTP id d82mr17208268vkf.83.1454921759091; Mon, 08 Feb 2016 00:55:59 -0800 (PST) Received: by 10.31.209.6 with HTTP; Mon, 8 Feb 2016 00:55:59 -0800 (PST) In-Reply-To: References: Date: Mon, 8 Feb 2016 09:55:59 +0100 Message-ID: Subject: Re: Tips for testing From: Stefano Baghino To: dev@flink.apache.org Content-Type: multipart/alternative; boundary=001a114382cea0b32c052b3e5e4f --001a114382cea0b32c052b3e5e4f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Maximilian, thanks for the tips. I've already opened a PR (here ). Is there a way from the command line to do what can be done with IntelliJ? I mean build only what's needed and run a specific test? I've tried `mvn test` but it skips the build phase and I don't know how to perform an incremental build on Maven. Thank you again! On Mon, Feb 8, 2016 at 9:49 AM, Maximilian Michels wrote: > Hi Stefano, > > 1) Please open a pull request. If the String depends on the locale, > this looks like a bug. > > 2) "mvn clean install" is the way to go for the complete check. If you > only want to run certain tests, selecting and running them from > IntelliJ works pretty well. In addition, it is nice to push a version > of your changes to Travis which builds it for you in the background. > It takes longer to build then on a fast machine though. > > Cheers, > Max > > On Sun, Feb 7, 2016 at 7:12 PM, Stephan Ewen wrote: > > Hi! > > > > I basically test with "mvn clean install" as well. > > > > Greetings, > > Stephan > > > > > > On Sat, Feb 6, 2016 at 10:31 PM, Stefano Baghino < > > stefano.baghino@radicalbit.io> wrote: > > > >> Hi everybody, > >> > >> as I've recently started contributing to Flink, I'd like to ask you a > few > >> tips on how you normally run the tests to ensure that everything runs > >> smoothly before pushing the code to CI. > >> > >> First, I'd like to point out two issues in particular I had: > >> > >> 1. some test suites (KMeansWithBroadcastSetITCase.java, > >> ScalaCsvReaderWithPOJOITCase.scala and CsvReaderITCase.java) kept > >> failing > >> because the expected results (string literals) were matched against > an > >> object rendered as a string using the String.format method, a metho= d > >> whose > >> result depends on the default Locale; as my Locale (Italian) render= s > >> doubles with a comma instead of a dot as the decimal separator, the > >> representation of doubles diverged from the expected one, thus > making my > >> tests fail; I've solved it locally by explicitly using the US local= e > for > >> those calls =E2=80=94 I'm thinking about opening an issue and submi= tting my > >> solution as a PR; > >> 2. I had another problem with WebFrontendITCase.java: the test suit= e > >> starts a mini cluster with the web server on port 8081; not knowing > this > >> and (unknowingly) having another process listening on that port, th= e > >> test > >> suite kept failing at initialization (line 59); however, the messag= e > >> regarding the port being busy was not displayed, despite being > logged at > >> ERROR level (WebMonitorUtils.startWebRuntimeMonitor, line 138); wha= t > >> configuration file should I edit in order for these issues to come = up > >> instantly without having to dig into the code to understand what's > >> happening? > >> > >> Apart from these issues in particular, I'd like to ask if you have any > >> particular routine when it comes to building and testing Flink locally= . > I'm > >> not particularly knowledgable regarding Maven, so right now I'm > basically > >> running `mvn [clean] install [-rf :]` each time to > make > >> sure I have a fresh build to test. Would this be the right path or is > there > >> a quicker way to have a fresh build and running the tests on them? Fee= l > >> free to point me to any relevant documentation, if you wish. > >> > >> Thank you in advance for any tip. :) > >> > >> -- > >> BR, > >> Stefano Baghino > >> > >> Software Engineer @ Radicalbit > >> > --=20 BR, Stefano Baghino Software Engineer @ Radicalbit --001a114382cea0b32c052b3e5e4f--