You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Thomas Friedrich <tf...@yahoo.com.INVALID> on 2015/07/10 02:07:00 UTC

Only a small subset of Hive UTs are executed when running mvn test

Hi, I am trying to run all the UTs on the master branch using the hadoop-2 profilemvn test -Phadoop-2
but it only runs 272 tests:
org.apache.hive:hive-accumulo-handler 23 org.apache.hive:hive-common  73 org.apache.hive:hive-contrib 6 org.apache.hive:hive-exec  168 org.apache.hive:hive-serde  2
All other tests are skipped. This seems to be related to HIVE-10941 where an additional option to skip the Spark UTs was added. When I take out <exclude>%regex[${skip.spark.files}]</exclude>from the exclude list of tests, all tests are executed again. 
Did anyone else run into this as well or am I missing something in my test command? This seems like a bug to me because HIVE-10477 mentions that by default the Spark tests should be included and no additional spark profile needs to be set. 
In addition, HIVE-10941 should also update the documentation to explain the use of the spark-test profile. https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ#HiveDeveloperFAQ-Testing

RE: Only a small subset of Hive UTs are executed when running mvn test

Posted by "Xu, Cheng A" <ch...@intel.com>.
The regexp is not correct. I have attached a patch to fix it. Please help me review it. Thank you!

-----Original Message-----
From: Thomas Friedrich [mailto:tfriedr26@yahoo.com.INVALID] 
Sent: Friday, July 10, 2015 12:55 PM
To: Sergey Shelukhin; dev@hive.apache.org
Subject: Re: Only a small subset of Hive UTs are executed when running mvn test

Thanks for confirming that this is a real issue. I opened HIVE-11225 to track it. 


     On Thursday, July 9, 2015 6:16 PM, Sergey Shelukhin <se...@hortonworks.com> wrote:
   

 Can you file a bug? I noticed this too under itests when trying to run q file tests locally when HiveQA was down.
On 15/7/9, 17:59, "Eugene Koifman" <ek...@hortonworks.com> wrote:

>I¹ve noticed that not all test are run.
>
>For example ³mvn test -Phadoop-2² from ql/ only runs 30-40 Test*.java 
>files while there are 245 such files under ql/.
>Something similar happens under itests/
>
>On 7/9/15, 5:07 PM, "Thomas Friedrich" <tf...@yahoo.com.INVALID>
>wrote:
>
>>Hi, I am trying to run all the UTs on the master branch using the
>>hadoop-2 profilemvn test -Phadoop-2
>>but it only runs 272 tests:
>>org.apache.hive:hive-accumulo-handler 23 org.apache.hive:hive-common  
>>73 org.apache.hive:hive-contrib 6 org.apache.hive:hive-exec  168 
>>org.apache.hive:hive-serde  2 All other tests are skipped. This seems 
>>to be related to HIVE-10941 where an additional option to skip the 
>>Spark UTs was added. When I take out 
>><exclude>%regex[${skip.spark.files}]</exclude>from the exclude list of 
>>tests, all tests are executed again.
>>Did anyone else run into this as well or am I missing something in my 
>>test command? This seems like a bug to me because HIVE-10477 mentions 
>>that by default the Spark tests should be included and no additional 
>>spark profile needs to be set.
>>In addition, HIVE-10941 should also update the documentation to 
>>explain the use of the spark-test profile.
>>https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ#Hive
>>Dev
>>e
>>loperFAQ-Testing
>
>



  

Re: Only a small subset of Hive UTs are executed when running mvn test

Posted by Thomas Friedrich <tf...@yahoo.com.INVALID>.
Thanks for confirming that this is a real issue. I opened HIVE-11225 to track it. 


     On Thursday, July 9, 2015 6:16 PM, Sergey Shelukhin <se...@hortonworks.com> wrote:
   

 Can you file a bug? I noticed this too under itests when trying to run q
file tests locally when HiveQA was down.
On 15/7/9, 17:59, "Eugene Koifman" <ek...@hortonworks.com> wrote:

>I¹ve noticed that not all test are run.
>
>For example ³mvn test -Phadoop-2² from ql/ only runs 30-40 Test*.java
>files while there are 245 such files under ql/.
>Something similar happens under itests/
>
>On 7/9/15, 5:07 PM, "Thomas Friedrich" <tf...@yahoo.com.INVALID>
>wrote:
>
>>Hi, I am trying to run all the UTs on the master branch using the
>>hadoop-2 profilemvn test -Phadoop-2
>>but it only runs 272 tests:
>>org.apache.hive:hive-accumulo-handler 23 org.apache.hive:hive-common  73
>>org.apache.hive:hive-contrib 6 org.apache.hive:hive-exec  168
>>org.apache.hive:hive-serde  2
>>All other tests are skipped. This seems to be related to HIVE-10941 where
>>an additional option to skip the Spark UTs was added. When I take out
>><exclude>%regex[${skip.spark.files}]</exclude>from the exclude list of
>>tests, all tests are executed again.
>>Did anyone else run into this as well or am I missing something in my
>>test command? This seems like a bug to me because HIVE-10477 mentions
>>that by default the Spark tests should be included and no additional
>>spark profile needs to be set.
>>In addition, HIVE-10941 should also update the documentation to explain
>>the use of the spark-test profile.
>>https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ#HiveDev
>>e
>>loperFAQ-Testing
>
>



  

Re: Only a small subset of Hive UTs are executed when running mvn test

Posted by Sergey Shelukhin <se...@hortonworks.com>.
Can you file a bug? I noticed this too under itests when trying to run q
file tests locally when HiveQA was down.
On 15/7/9, 17:59, "Eugene Koifman" <ek...@hortonworks.com> wrote:

>I¹ve noticed that not all test are run.
>
>For example ³mvn test -Phadoop-2² from ql/ only runs 30-40 Test*.java
>files while there are 245 such files under ql/.
>Something similar happens under itests/
>
>On 7/9/15, 5:07 PM, "Thomas Friedrich" <tf...@yahoo.com.INVALID>
>wrote:
>
>>Hi, I am trying to run all the UTs on the master branch using the
>>hadoop-2 profilemvn test -Phadoop-2
>>but it only runs 272 tests:
>>org.apache.hive:hive-accumulo-handler 23 org.apache.hive:hive-common  73
>>org.apache.hive:hive-contrib 6 org.apache.hive:hive-exec  168
>>org.apache.hive:hive-serde  2
>>All other tests are skipped. This seems to be related to HIVE-10941 where
>>an additional option to skip the Spark UTs was added. When I take out
>><exclude>%regex[${skip.spark.files}]</exclude>from the exclude list of
>>tests, all tests are executed again.
>>Did anyone else run into this as well or am I missing something in my
>>test command? This seems like a bug to me because HIVE-10477 mentions
>>that by default the Spark tests should be included and no additional
>>spark profile needs to be set.
>>In addition, HIVE-10941 should also update the documentation to explain
>>the use of the spark-test profile.
>>https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ#HiveDev
>>e
>>loperFAQ-Testing
>
>


Re: Only a small subset of Hive UTs are executed when running mvn test

Posted by Eugene Koifman <ek...@hortonworks.com>.
I¹ve noticed that not all test are run.

For example ³mvn test -Phadoop-2² from ql/ only runs 30-40 Test*.java
files while there are 245 such files under ql/.
Something similar happens under itests/

On 7/9/15, 5:07 PM, "Thomas Friedrich" <tf...@yahoo.com.INVALID> wrote:

>Hi, I am trying to run all the UTs on the master branch using the
>hadoop-2 profilemvn test -Phadoop-2
>but it only runs 272 tests:
>org.apache.hive:hive-accumulo-handler 23 org.apache.hive:hive-common  73
>org.apache.hive:hive-contrib 6 org.apache.hive:hive-exec  168
>org.apache.hive:hive-serde  2
>All other tests are skipped. This seems to be related to HIVE-10941 where
>an additional option to skip the Spark UTs was added. When I take out
><exclude>%regex[${skip.spark.files}]</exclude>from the exclude list of
>tests, all tests are executed again.
>Did anyone else run into this as well or am I missing something in my
>test command? This seems like a bug to me because HIVE-10477 mentions
>that by default the Spark tests should be included and no additional
>spark profile needs to be set.
>In addition, HIVE-10941 should also update the documentation to explain
>the use of the spark-test profile.
>https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ#HiveDeve
>loperFAQ-Testing