Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-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 A216E18C8A for ; Tue, 17 Nov 2015 00:09:26 +0000 (UTC) Received: (qmail 15021 invoked by uid 500); 17 Nov 2015 00:09:26 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 14969 invoked by uid 500); 17 Nov 2015 00:09:26 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 14957 invoked by uid 99); 17 Nov 2015 00:09:26 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2015 00:09:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 912A3C2B65 for ; Tue, 17 Nov 2015 00:09:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.95 X-Spam-Level: X-Spam-Status: No, score=0.95 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id abVKKPDi6Pr2 for ; Tue, 17 Nov 2015 00:09:15 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 65D47444F3 for ; Tue, 17 Nov 2015 00:09:15 +0000 (UTC) Received: by wmvv187 with SMTP id v187so202599466wmv.1 for ; Mon, 16 Nov 2015 16:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ATDsneEtHuZHt6eOTmQiJzLlnohMWUyiewBjFGxzlhQ=; b=g63Tz/SibFdRyz4A+iWfzUIyLvu2dS0cKCmiyXAmOqWXj7SdFxVSvtz2Xm5zS74rl8 gDFE6nNr9+dVsmW8zavjZ29KbxFRfSYnP8ODj3QjvSBxMcueBcyyldgy4F7aKa3xId0H +h+KcYWhUfBMUA82XlrqYc/Qvkn4P2uMWdcXWR1pmU4XY9P3l18AFFP2mOL37iPUSdw2 Nhq22Yj8c1A5/PNn3kIkspGB0ODVkZADs52j4ybP/WDCrZ26mJbK3S2jK9gzoS3H7nbV YaV1oFmLZmmdfMa1ejwuYUd/ajSRAsZB21lxYAu3cteXmijYPS5+2PK9j8ujv5c0vAZU lzNg== MIME-Version: 1.0 X-Received: by 10.28.65.213 with SMTP id o204mr21024530wma.83.1447718954325; Mon, 16 Nov 2015 16:09:14 -0800 (PST) Received: by 10.28.100.133 with HTTP; Mon, 16 Nov 2015 16:09:14 -0800 (PST) In-Reply-To: References: Date: Mon, 16 Nov 2015 16:09:14 -0800 Message-ID: Subject: Re: maven error when running unit tests on master From: Jinfeng Ni To: dev@drill.apache.org Content-Type: text/plain; charset=UTF-8 the workaround of running in the module is successful. On Mon, Nov 16, 2015 at 3:54 PM, Jacques Nadeau wrote: > Does the workaround of running surefire:test and/or running in the module > that you're testing in solve the issue? > > -- > Jacques Nadeau > CTO and Co-Founder, Dremio > > On Mon, Nov 16, 2015 at 3:37 PM, Jinfeng Ni wrote: > >> I tried the following two (one in java-exec, another in storage-hive) >> and both failed with unpack error. >> >> mvn -Dtest=TestTpchDistributed test -DfailIfNoTests=false >> >> mvn -Dtest=TestHivePartitionPruning test -DfailIfNoTests=false >> >> [INFO] contrib/data/tpch-sample-data ...................... SUCCESS [ >> 1.293 s] >> [INFO] exec/Java Execution Engine ......................... FAILURE [ >> 1.879 s] >> [INFO] exec/JDBC Driver using dependencies ................ SKIPPED >> [INFO] JDBC JAR with all dependencies ..................... SKIPPED >> [INFO] contrib/mongo-storage-plugin ....................... SKIPPED >> [INFO] contrib/hbase-storage-plugin ....................... SKIPPED >> [INFO] contrib/jdbc-storage-plugin ........................ SKIPPED >> [INFO] contrib/hive-storage-plugin/Parent Pom ............. SKIPPED >> [INFO] contrib/hive-storage-plugin/hive-exec-shaded ....... SKIPPED >> [INFO] contrib/hive-storage-plugin/core ................... SKIPPED >> [INFO] contrib/drill-gis-plugin ........................... SKIPPED >> [INFO] Packaging and Distribution Assembly ................ SKIPPED >> [INFO] contrib/sqlline .................................... SKIPPED >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 24.018 s >> [INFO] Finished at: 2015-11-16T15:35:21-08:00 >> [INFO] Final Memory: 112M/350M >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack >> (unpack-vector-types) on project drill-java-exec: Artifact has not >> been packaged yet. When used on reactor artifact, unpack should be >> executed after packaging: see MDEP-98. -> [Help 1] >> >> >> >> On Mon, Nov 16, 2015 at 3:29 PM, Abdel Hakim Deneche >> wrote: >> > On Mon, Nov 16, 2015 at 3:04 PM, Jacques Nadeau >> wrote: >> > >> >> To clarify, you see this problem when running mvn tests across the tree >> or >> >> constrained to a particular module/test. >> >> >> > >> > In my case I was running mvn test at the root. >> > >> > >> >> >> >> Also, Hakim, your output seems incomplete (there are a bunch of missing >> >> modules). Did you abbreviate? >> >> >> > >> > yes >> > >> > >> >> Can you also try mvn surefire:test to see if that works work the >> specific >> >> test scenario? That is what I typically use if I'm just running a test. >> >> >> >> -- >> >> Jacques Nadeau >> >> CTO and Co-Founder, Dremio >> >> >> >> On Mon, Nov 16, 2015 at 2:14 PM, Jinfeng Ni >> wrote: >> >> >> >> > Second on this. I'm seeing the same unpack error if run "mvn test" >> >> > after a "mvn clean install -DskipTests" >> >> > >> >> > This means we could not run an individual unit test from mvn command >> >> line. >> >> > >> >> > Even worse, for some new unit testcase (TestJdbcPluginWithDerbyIT and >> >> > TestJdbcPluginWithMySQLIT), the only way to run is through mvn command >> >> > line, since it requires mvn to start the DB instance. >> >> > >> >> > >> >> > >> >> > On Fri, Nov 13, 2015 at 1:13 PM, Abdel Hakim Deneche >> >> > wrote: >> >> > > If I run >> >> > > >> >> > > mvn clean install -DskipTests >> >> > >> mvn test >> >> > > >> >> > > >> >> > > I get the following error when I run the tests: >> >> > > >> >> > > [INFO] >> >> > >> >> >> ------------------------------------------------------------------------ >> >> > >> [INFO] Reactor Summary: >> >> > >> [INFO] >> >> > >> [INFO] Apache Drill Root POM .............................. >> SUCCESS [ >> >> > >> 4.593 s] >> >> > >> [INFO] ... >> >> > >> [INFO] exec/Java Execution Engine ......................... >> FAILURE [ >> >> > >> 2.531 s] >> >> > >> [INFO] exec/JDBC Driver using dependencies ................ SKIPPED >> >> > >> [INFO] ... >> >> > >> [INFO] contrib/sqlline .................................... SKIPPED >> >> > >> [INFO] >> >> > >> >> >> ------------------------------------------------------------------------ >> >> > >> [INFO] BUILD FAILURE >> >> > >> [INFO] >> >> > >> >> >> ------------------------------------------------------------------------ >> >> > >> [INFO] Total time: 36.305 s >> >> > >> [INFO] Finished at: 2015-11-13T21:05:08+00:00 >> >> > >> [INFO] Final Memory: 118M/1445M >> >> > >> [INFO] >> >> > >> >> >> ------------------------------------------------------------------------ >> >> > >> [ERROR] Failed to execute goal >> >> > >> org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack >> >> > >> (unpack-vector-types) on project drill-java-exec: Artifact has not >> >> been >> >> > >> packaged yet. When used on reactor artifact, unpack should be >> executed >> >> > >> after packaging: see MDEP-98. -> [Help 1] >> >> > > >> >> > > >> >> > > I've seen this on both Mac with maven 3.3.3 and CentOS with maven >> 3.3.1 >> >> > > >> >> > > -- >> >> > > >> >> > > Abdelhakim Deneche >> >> > > >> >> > > Software Engineer >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > Now Available - Free Hadoop On-Demand Training >> >> > > < >> >> > >> >> >> http://www.mapr.com/training?utm_source=Email&utm_medium=Signature&utm_campaign=Free%20available >> >> > > >> >> > >> >> >> > >> > >> > >> > -- >> > >> > Abdelhakim Deneche >> > >> > Software Engineer >> > >> > >> > >> > >> > Now Available - Free Hadoop On-Demand Training >> > < >> http://www.mapr.com/training?utm_source=Email&utm_medium=Signature&utm_campaign=Free%20available >> > >>