You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/03/03 16:12:18 UTC

[jira] [Commented] (FLINK-3454) Add test dependencies on packaged jars

    [ https://issues.apache.org/jira/browse/FLINK-3454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15177929#comment-15177929 ] 

ASF GitHub Bot commented on FLINK-3454:
---------------------------------------

Github user tillrohrmann commented on the pull request:

    https://github.com/apache/flink/pull/1698#issuecomment-191806709
  
    I think, this does not solve the problem of the test. The test case `ScalaShellITCase.testSubmissionOfExternalLibrary` expects that `flink-ml` has been packaged, because it looks in `../flink-libraries/flink-ml/target/` for the jar file. However, this is not guaranteed by introducing an dependency on `flink-ml` and `flink-dist`. Adding the dependency could also mean that it is simply downloaded from maven and stored in the local maven repository from where it is referenced.
    
    What could help, though, is to find out the location of `flink-ml` and `flink-dist` from the provided classpath.


> Add test dependencies on packaged jars
> --------------------------------------
>
>                 Key: FLINK-3454
>                 URL: https://issues.apache.org/jira/browse/FLINK-3454
>             Project: Flink
>          Issue Type: Bug
>          Components: Scala Shell, YARN Client
>    Affects Versions: 1.0.0
>            Reporter: Greg Hogan
>            Assignee: Greg Hogan
>            Priority: Minor
>
> The following test from flink-scala-shell requires that the flink-ml jar be compiled.
> {noformat}
> Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 213.66 sec <<< FAILURE! - in org.apache.flink.api.scala.ScalaShellITCase
> testSubmissionOfExternalLibrary(org.apache.flink.api.scala.ScalaShellITCase)  Time elapsed: 0.028 sec  <<< FAILURE!
> java.lang.AssertionError: assertion failed
> 	at scala.Predef$.assert(Predef.scala:151)
> 	at org.apache.flink.api.scala.ScalaShellITCase.testSubmissionOfExternalLibrary(ScalaShellITCase.scala:169)
> {noformat}
> flink-yarn-tests depends on flink-dist:
> {noformat}
> Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.971 sec <<< FAILURE! - in org.apache.flink.yarn.UtilsTest
> testUberjarLocator(org.apache.flink.yarn.UtilsTest)  Time elapsed: 0.803 sec  <<< FAILURE!
> java.lang.AssertionError: null
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.junit.Assert.assertNotNull(Assert.java:621)
> 	at org.junit.Assert.assertNotNull(Assert.java:631)
> 	at org.apache.flink.yarn.UtilsTest.testUberjarLocator(UtilsTest.java:42)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)