Skip to content

Conversation

@srowen
Copy link
Member

@srowen srowen commented Jul 30, 2014

The Maven-based builds in the build matrix have been failing for a few days:

https://amplab.cs.berkeley.edu/jenkins/view/Spark/

On inspection, it looks like the Spark SQL Java tests don't compile:

https://amplab.cs.berkeley.edu/jenkins/view/Spark/job/Spark-Master-Maven-pre-YARN/hadoop.version=1.0.4,label=centos/244/consoleFull

I confirmed it by repeating the command vs master:

mvn -Dhadoop.version=1.0.4 -Dlabel=centos -DskipTests clean package

The problem is that this module doesn't depend on JUnit. In fact, none of the modules do, but com.novocode:junit-interface (the SBT-JUnit bridge) pulls it in, in most places. However this module doesn't depend on com.novocode:junit-interface

Adding the junit:junit dependency fixes the compile problem. In fact, the other modules with Java tests should probably depend on it explicitly instead of happening to get it via com.novocode:junit-interface, since that is a bit SBT/Scala-specific (and I am not even sure it's needed).

@SparkQA
Copy link

SparkQA commented Jul 30, 2014

QA tests have started for PR 1660. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17447/consoleFull

@SparkQA
Copy link

SparkQA commented Jul 30, 2014

QA results for PR 1660:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17447/consoleFull

@srowen
Copy link
Member Author

srowen commented Jul 30, 2014

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Jul 30, 2014

QA tests have started for PR 1660. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17452/consoleFull

@SparkQA
Copy link

SparkQA commented Jul 30, 2014

QA results for PR 1660:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17452/consoleFull

@srowen
Copy link
Member Author

srowen commented Jul 30, 2014

I'm pretty sure the test failure is spurious, as it's the same java.net.BindException: Address already in use that made other PRs today fail and then pass. It's not a test compilation problem, which should be about the only thing this could cause. I'll give Jenkins another chance.

@srowen
Copy link
Member Author

srowen commented Jul 30, 2014

Jenkins, retest this please.

@srowen srowen mentioned this pull request Jul 30, 2014
@yhuai
Copy link
Contributor

yhuai commented Jul 30, 2014

Do we need to include com.novocode:junit-interface in SQL? Based on https://spark-project.atlassian.net/browse/SPARK-66, seems SBT needs it to execute Java tests. But, after checking our SBT build (https://amplab.cs.berkeley.edu/jenkins/job/Spark-Master-SBT-with-YARN/SPARK_HADOOP_VERSION=2.3.0,label=centos/234/consoleFull), seems those SQL java test were actually executed.

@marmbrus
Copy link
Contributor

test this please

@SparkQA
Copy link

SparkQA commented Jul 30, 2014

QA tests have started for PR 1660. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17479/consoleFull

@SparkQA
Copy link

SparkQA commented Jul 30, 2014

QA results for PR 1660:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17479/consoleFull

@rxin
Copy link
Contributor

rxin commented Jul 30, 2014

Ok I'm merging this. Thanks.

@asfgit asfgit closed this in 6ab96a6 Jul 30, 2014
@srowen srowen deleted the SPARK-2749 branch July 31, 2014 08:52
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
… Maven builds; missing junit:junit dep

The Maven-based builds in the build matrix have been failing for a few days:

https://amplab.cs.berkeley.edu/jenkins/view/Spark/

On inspection, it looks like the Spark SQL Java tests don't compile:

https://amplab.cs.berkeley.edu/jenkins/view/Spark/job/Spark-Master-Maven-pre-YARN/hadoop.version=1.0.4,label=centos/244/consoleFull

I confirmed it by repeating the command vs master:

`mvn -Dhadoop.version=1.0.4 -Dlabel=centos -DskipTests clean package`

The problem is that this module doesn't depend on JUnit. In fact, none of the modules do, but `com.novocode:junit-interface` (the SBT-JUnit bridge) pulls it in, in most places. However this module doesn't depend on `com.novocode:junit-interface`

Adding the `junit:junit` dependency fixes the compile problem. In fact, the other modules with Java tests should probably depend on it explicitly instead of happening to get it via `com.novocode:junit-interface`, since that is a bit SBT/Scala-specific (and I am not even sure it's needed).

Author: Sean Owen <[email protected]>

Closes apache#1660 from srowen/SPARK-2749 and squashes the following commits:

858ff7c [Sean Owen] Add explicit junit dep to other modules with Java tests for robustness
9636794 [Sean Owen] Add junit dep so that Spark SQL Java tests compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants