Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A2F02200C25 for ; Fri, 10 Feb 2017 01:34:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 96277160B6B; Fri, 10 Feb 2017 00:34:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B8842160B50 for ; Fri, 10 Feb 2017 01:34:42 +0100 (CET) Received: (qmail 17495 invoked by uid 500); 10 Feb 2017 00:34:41 -0000 Mailing-List: contact dev-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list dev@nifi.apache.org Received: (qmail 17483 invoked by uid 99); 10 Feb 2017 00:34:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2017 00:34:41 +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 29D811A051B for ; Fri, 10 Feb 2017 00:34:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id A8ssjRZ5fmAq for ; Fri, 10 Feb 2017 00:34:39 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 95E495FB9D for ; Fri, 10 Feb 2017 00:34:38 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id r141so35081022wmg.1 for ; Thu, 09 Feb 2017 16:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=JXQ4QofJkJCBpZQcge761pYeN3bYn9MxxXQqwoy3xBw=; b=kWT/JZccC4dZRlUFAATFR4y6qOJaYczUr8sfr8fdtqYivZUR7F8QU3NTKkTLzQcV3X BxDrmLM5WFqfzdArvV9/JYJJz502Ffpyq7grFX0SdwFyHFZ1bA/QWGzOp0fN4vFvYF2N rSI1CgPHdTWMkul068JV4PLilx1lY/iSGoBurlnZfm0OjXU/HoQur/z7XpCPZNZ2HU/m 129sYgF2ZfZRwY5/V3j6sWu8/Myg+uJxqyTR/asK5q3jbWT43lD5U+MxtvyYGkeKhTxZ TaB9uadiJkmW5bf9e56dortk5x2Mj/DEC/KFs+i4DhB73DXH3Z/lSHcrHTq0LLtrvTC3 rmTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=JXQ4QofJkJCBpZQcge761pYeN3bYn9MxxXQqwoy3xBw=; b=GinCNKKFqDP9eOxGubolfF9mJmdrqKkc+5pb2dk6y10wFSrrILlakCw1Xm8+U2Xavk I6LmfhZst+ai1hMniYVvfVnX2FqVIjYwYE5pAplDEzZbWaKDXv/4lCEclmybGIvKtUTr ujf+N4J0PZQOpT/SV4swRhSBsR67opti013IG3N4++QvFtaLIuvT6NuoWHAYl+DfzTfP Oy0b015GUbRIIWJz/cwafEDaELXoe+ofyGnopW5AjPP0h3CU4fsWHisB5/rGKLTS0OTr 7BCnKnJkXMEXYHT+bjQ6ZUMSKTU4hOfkN8vWz5yFOUPoqrmqFmZodNAhkM9S9eGuGKY7 wArQ== X-Gm-Message-State: AMke39mw474O8WQf5SJRd2hdqywqhFlH7E8tHQtGT+BfSdu2DuCF9MrpC/ae4fr8eeDieF6zqwJKsmDQZuhafw== X-Received: by 10.28.57.131 with SMTP id g125mr4957720wma.33.1486686872318; Thu, 09 Feb 2017 16:34:32 -0800 (PST) Received: from 1058052472880 named unknown by gmailapi.google.com with HTTPREST; Fri, 10 Feb 2017 01:34:31 +0100 From: Otto Fowler In-Reply-To: References: X-Mailer: Airmail (397) MIME-Version: 1.0 Date: Fri, 10 Feb 2017 01:34:31 +0100 Message-ID: Subject: Re: Build failure on Mac OS X with DS_STORE files To: dev@nifi.apache.org, Koji Kawamura Cc: Joe Skora Content-Type: multipart/alternative; boundary=001a114a421ceab97d05482242c1 archived-at: Fri, 10 Feb 2017 00:34:43 -0000 --001a114a421ceab97d05482242c1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I am using 1.8.0_31 I have been able to get a complete good build, but I had to make a few changes. On February 9, 2017 at 18:34:48, Koji Kawamura (ijokarumawak@gmail.com) wrote: Hi Otto, Which version of Java are you using? I remember early version of Java 8 fails to pass the test. Would you try to update JDK version and build it again? Thanks, Koji On Fri, Feb 10, 2017 at 3:43 AM, Otto Fowler wrote: > OK, that is good. There very well could be something =E2=80=98special=E2= =80=99 about what > I am seeing. > I am fixing things as I find them. The things that are not working make > sense to me, in other words I=E2=80=99m not sure how they are not broken = for > everyone. > > Maybe if I get to the end of it, I=E2=80=99ll post what the patch *would*= be? > > > On February 9, 2017 at 11:11:55, Joe Skora (jskora@gmail.com) wrote: > > Otto, > > I regularly build on a Mac without problems, and I believe a lot of > contributors do as well. > > I haven't run into the .DS_Store issues with NiFi, probably because I > rarely use Finder to access my build folders. > > I don't recall any issues with ScriptingProcessor, but it's been a week or > more since I built on the Mac, I can check it tonight. > > Regards, > Joe > > On Thu, Feb 9, 2017 at 10:59 AM, Otto Fowler > wrote: > >> So, >> >> I could have a pr that fixes that problem, but I=E2=80=99m seeing new pr= oblems >> now. I can submit the pr then keep looking at the other problems ( > meaning >> I can submit a pr without having a working complete build, just fixing > that >> test ), but I=E2=80=99m not sure how you all handle things like this. >> >> I have to ask, does anyone working on NiFi use a mac? The next problems I >> have are not with .DS_Store files or anything =E2=80=98mac centric=E2=80= =99, they are > with >> Nashorn Java script types in the ScriptingProcessor tests=E2=80=A6.. >> >> On February 9, 2017 at 09:19:21, Koji Kawamura (ijokarumawak@gmail.com) >> wrote: >> >> Thanks! Please ping me when the PR is ready. >> >> On Thu, Feb 9, 2017 at 11:15 PM, Otto Fowler >> wrote: >> > Sure - I see what you mean, that is a much better approach. >> > I will certainly do that. >> > >> > >> > >> > On February 9, 2017 at 09:02:05, Koji Kawamura (ijokarumawak@gmail.com= ) >> > wrote: >> > >> > Hi Otto, >> > >> > Thanks for reporting this. I personally haven't encountered this >> > issue, but as described here [1], when I opened the directory that the >> > test uses by Mac Finder application, and changed view as icon and move >> > the icon position, then a .DS_Store file was created. >> > >> > I agree with your workaround and I think we should resolve the issue. >> > By looking at the usage of that method, such as DBCPConnectionPool, or >> > JoltTransformJSON, those uses file name filter like this: >> > >> > (dir, name) -> name !=3D null && name.endsWith(".jar") >> > >> > While filtering out specific .DS_Store works, targeting only name >> > ending with .jar looks more generic work around. >> > >> > Would you mind open a JIRA and send a PR? I'd happy to review! >> > >> > Thanks, >> > Koji >> > >> > On Thu, Feb 9, 2017 at 1:20 PM, Otto Fowler >> wrote: >> >> If it turns out that this *is* something you would like addressed, I > can >> >> do >> >> the jira and the PR >> >> >> >> >> >> On February 8, 2017 at 23:13:16, Otto Fowler (ottobackwards@gmail.com= ) >> >> wrote: >> >> >> >> @Test >> >> public void testGetURLsForClasspathWithDirectory() throws >> >> MalformedURLException { >> >> final String jarFilePath =3D "src/test/resources/TestClassLoaderUtils= "; >> >> URL[] urls =3D ClassLoaderUtils.getURLsForClasspath(jarFilePath, >> >> (dir,name)->name.compareTo(".DS_Store") =3D=3D 0, false); >> >> assertEquals(2, urls.length); >> >> } >> >> >> >> >> >> resolves the issue, and I am able to build everything. >> >> >> >> >> >> On February 8, 2017 at 22:39:53, Otto Fowler (ottobackwards@gmail.com= ) >> >> wrote: >> >> >> >> Hi, >> >> >> >> I=E2=80=99m trying to build master on Mac OS X, following the instruc= tions > from >> >> the >> >> site linked in the README.md. >> >> >> >> My build is failing because the unit test: >> >> testGetURLsForClasspathWithDirectory >> >> in TestClassLoaderUtils. >> >> >> >> It is trying to URLs from a directory, and is expecting 2, but gets 3, >> >> because the DS_STORE is detected and has an url built and returned for >> it. >> >> >> >> The test does not pass in a FileNamesFilter, which could be used to >> filter >> >> these files out I suppose. >> >> >> >> I am wondering if anyone is building successfully on Mac OS X? >> --001a114a421ceab97d05482242c1--