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

Aljoscha Krettek edited comment on FLINK-9429 at 4/8/20, 10:58 AM:
-------------------------------------------------------------------

The reason the test doesn't work locally is that {{run-single-test.sh}} has the 
order of "imports" wrong. i.e. we have:
{code:java}
source "${END_TO_END_DIR}/test-scripts/test-runner-common.sh"
source "${END_TO_END_DIR}/../tools/ci/maven-utils.sh"
{code}
while {{run-nightly-tests.sh}} has:
{code:java}
source "${END_TO_END_DIR}/../tools/ci/maven-utils.sh"
source "${END_TO_END_DIR}/test-scripts/test-runner-common.sh"
{code}
This leads to this line failing in {{test-runner-common.sh because 
}}{{mvn_run}} is not available:
{code:java}
export FLINK_VERSION=$(MVN_RUN_VERBOSE=false run_mvn --file 
${END_TO_END_DIR}/pom.xml 
org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate 
-Dexpression=project.version -q -DforceStdout) {code}

(edited to fix "import" ordering)


was (Author: aljoscha):
The reason the test doesn't work locally is that {{run-single-test.sh}} has the 
order of "imports" wrong. i.e. we have:
{code:java}
source "${END_TO_END_DIR}/test-scripts/test-runner-common.sh"
source "${END_TO_END_DIR}/../tools/ci/maven-utils.sh" {code}
while {{run-nightly-tests.sh}} has:
{code:java}
source "${END_TO_END_DIR}/../tools/ci/maven-utils.sh" {code}
source "${END_TO_END_DIR}/test-scripts/test-runner-common.sh"
This leads to this line failing in {{test-runner-common.sh because 
}}{{mvn_run}} is not available:
{code:java}
export FLINK_VERSION=$(MVN_RUN_VERBOSE=false run_mvn --file 
${END_TO_END_DIR}/pom.xml 
org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate 
-Dexpression=project.version -q -DforceStdout) {code}

(edited to fix "import" ordering)

> Quickstart E2E not working locally
> ----------------------------------
>
>                 Key: FLINK-9429
>                 URL: https://issues.apache.org/jira/browse/FLINK-9429
>             Project: Flink
>          Issue Type: Bug
>          Components: Quickstarts, Tests
>    Affects Versions: 1.5.0, 1.6.0
>            Reporter: Till Rohrmann
>            Assignee: Aljoscha Krettek
>            Priority: Critical
>              Labels: pull-request-available, test-stability
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The quickstart e2e test is not working locally. It seems as if the job does 
> not produce anything into Elasticsearch. Furthermore, the test does not 
> terminate with control-C.



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

Reply via email to