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

Robert Metzger commented on FLINK-15982:
----------------------------------------

I ran into the issue as well. I believe the problem is this change: 
https://github.com/apache/flink/commit/2b28169646c75327b05108198ea27af009d40a29#diff-aa05a351945a1297c1a64f9809632a3a
 combined with this line in the {{common.sh}} script:

{code:java}
FLINK_VERSION=$(cat ${END_TO_END_DIR}/pom.xml | sed -n 
's/.*<version>\(.*\)<\/version>/\1/p')
{code}

In the quickstart test, {{FLINK_VERSION}} is set to:
{code:java}
2020-02-11T23:04:18.3614598Z ++ FLINK_VERSION='1.11-SNAPSHOT
2020-02-11T23:04:18.3615067Z 1.8.1
2020-02-11T23:04:18.3615489Z 2.5.9'
{code}

So above {{sed}} is extracting all versions in the end to end pom. I'll assign 
myself to this ticket & will provide a fix.


> 'Quickstarts Java nightly end-to-end test' is failed on travis
> --------------------------------------------------------------
>
>                 Key: FLINK-15982
>                 URL: https://issues.apache.org/jira/browse/FLINK-15982
>             Project: Flink
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Jark Wu
>            Priority: Major
>
> {code:java}
> ==============================================================================
> Running 'Quickstarts Java nightly end-to-end test'
> ==============================================================================
> TEST_DATA_DIR: 
> /home/travis/build/apache/flink/flink-end-to-end-tests/test-scripts/temp-test-directory-42718423491
> Flink dist directory: 
> /home/travis/build/apache/flink/flink-dist/target/flink-1.11-SNAPSHOT-bin/flink-1.11-SNAPSHOT
> 22:16:44.021 [INFO] Scanning for projects...
> 22:16:44.095 [INFO] 
> ------------------------------------------------------------------------
> 22:16:44.095 [INFO] BUILD FAILURE
> 22:16:44.095 [INFO] 
> ------------------------------------------------------------------------
> 22:16:44.098 [INFO] Total time: 0.095 s
> 22:16:44.099 [INFO] Finished at: 2020-02-10T22:16:44+00:00
> 22:16:44.143 [INFO] Final Memory: 5M/153M
> 22:16:44.143 [INFO] 
> ------------------------------------------------------------------------
> 22:16:44.144 [ERROR] The goal you specified requires a project to execute but 
> there is no POM in this directory 
> (/home/travis/build/apache/flink/flink-end-to-end-tests/test-scripts/temp-test-directory-42718423491).
>  Please verify you invoked Maven from the correct directory. -> [Help 1]
> 22:16:44.144 [ERROR] 
> 22:16:44.145 [ERROR] To see the full stack trace of the errors, re-run Maven 
> with the -e switch.
> 22:16:44.145 [ERROR] Re-run Maven using the -X switch to enable full debug 
> logging.
> 22:16:44.145 [ERROR] 
> 22:16:44.145 [ERROR] For more information about the errors and possible 
> solutions, please read the following articles:
> 22:16:44.145 [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
> /home/travis/build/apache/flink/flink-end-to-end-tests/test-scripts/test_quickstarts.sh:
>  line 57: cd: flink-quickstart-java: No such file or directory
> cp: cannot create regular file 
> '/home/travis/build/apache/flink/flink-end-to-end-tests/test-scripts/temp-test-directory-42718423491/flink-quickstart-java/src/main/java/org/apache/flink/quickstart/Elasticsearch5SinkExample.java':
>  No such file or directory
> sed: can't read 
> /home/travis/build/apache/flink/flink-end-to-end-tests/test-scripts/temp-test-directory-42718423491/flink-quickstart-java/src/main/java/org/apache/flink/quickstart/Elasticsearch5SinkExample.java:
>  No such file or directory
> awk: fatal: cannot open file `pom.xml' for reading (No such file or directory)
> sed: can't read pom.xml: No such file or directory
> sed: can't read pom.xml: No such file or directory
> 22:16:45.312 [INFO] Scanning for projects...
> 22:16:45.386 [INFO] 
> ------------------------------------------------------------------------
> 22:16:45.386 [INFO] BUILD FAILURE
> 22:16:45.386 [INFO] 
> ------------------------------------------------------------------------
> 22:16:45.391 [INFO] Total time: 0.097 s
> 22:16:45.391 [INFO] Finished at: 2020-02-10T22:16:45+00:00
> 22:16:45.438 [INFO] Final Memory: 5M/153M
> 22:16:45.438 [INFO] 
> ------------------------------------------------------------------------
> 22:16:45.440 [ERROR] The goal you specified requires a project to execute but 
> there is no POM in this directory 
> (/home/travis/build/apache/flink/flink-end-to-end-tests/test-scripts/temp-test-directory-42718423491).
>  Please verify you invoked Maven from the correct directory. -> [Help 1]
> 22:16:45.440 [ERROR] 
> 22:16:45.440 [ERROR] To see the full stack trace of the errors, re-run Maven 
> with the -e switch.
> 22:16:45.440 [ERROR] Re-run Maven using the -X switch to enable full debug 
> logging.
> 22:16:45.440 [ERROR] 
> 22:16:45.440 [ERROR] For more information about the errors and possible 
> solutions, please read the following articles:
> 22:16:45.440 [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
> /home/travis/build/apache/flink/flink-end-to-end-tests/test-scripts/test_quickstarts.sh:
>  line 73: cd: target: No such file or directory
> java.io.FileNotFoundException: flink-quickstart-java-0.1.jar (No such file or 
> directory)
>       at java.util.zip.ZipFile.open(Native Method)
>       at java.util.zip.ZipFile.<init>(ZipFile.java:225)
>       at java.util.zip.ZipFile.<init>(ZipFile.java:155)
>       at java.util.zip.ZipFile.<init>(ZipFile.java:126)
>       at sun.tools.jar.Main.list(Main.java:1115)
>       at sun.tools.jar.Main.run(Main.java:293)
>       at sun.tools.jar.Main.main(Main.java:1288)
> Success: There are no flink core classes are contained in the jar.
> Failure: Since Elasticsearch5SinkExample.class and other user classes are not 
> included in the jar. 
> [FAIL] Test script contains errors.
> {code}
> Here are some instances:
> - https://api.travis-ci.org/v3/job/648404584/log.txt
> - https://api.travis-ci.org/v3/job/648404591/log.txt
> - https://api.travis-ci.org/v3/job/648404598/log.txt



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to