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

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

zentol closed pull request #6486: [FLINK-10051][tests][sql] Add missing 
depenendeices for sql client E2E test
URL: https://github.com/apache/flink/pull/6486
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/flink-end-to-end-tests/flink-sql-client-test/pom.xml 
b/flink-end-to-end-tests/flink-sql-client-test/pom.xml
index 46bc2bac50c..ec5a0e10360 100644
--- a/flink-end-to-end-tests/flink-sql-client-test/pom.xml
+++ b/flink-end-to-end-tests/flink-sql-client-test/pom.xml
@@ -42,8 +42,67 @@ under the License.
                        <artifactId>scala-compiler</artifactId>
                        <scope>provided</scope>
                </dependency>
+
+               <!-- The following dependencies are for connector/format 
sql-jars that
+                       we copy using the maven-dependency-plugin. When 
extending the test
+                       to cover more connectors/formats, add a dependency here 
and an entry
+                       to the dependency-plugin configuration below.
+                       This ensures that all modules we actually need (as 
defined by the
+                       dependency-plugin configuration) are built before this 
module. -->
+               <dependency>
+                       <!-- Used by maven-dependency-plugin -->
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-avro</artifactId>
+                       <version>${project.version}</version>
+                       <classifier>sql-jar</classifier>
+                       <scope>provided</scope>
+               </dependency>
+               <dependency>
+                       <!-- Used by maven-dependency-plugin -->
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-json</artifactId>
+                       <version>${project.version}</version>
+                       <classifier>sql-jar</classifier>
+                       <scope>provided</scope>
+               </dependency>
+               <dependency>
+                       <!-- Used by maven-dependency-plugin -->
+                       <groupId>org.apache.flink</groupId>
+                       
<artifactId>flink-connector-kafka-0.9_${scala.binary.version}</artifactId>
+                       <version>${project.version}</version>
+                       <classifier>sql-jar</classifier>
+                       <scope>provided</scope>
+               </dependency>
+               <dependency>
+                       <!-- Used by maven-dependency-plugin -->
+                       <groupId>org.apache.flink</groupId>
+                       
<artifactId>flink-connector-kafka-0.10_${scala.binary.version}</artifactId>
+                       <version>${project.version}</version>
+                       <classifier>sql-jar</classifier>
+                       <scope>provided</scope>
+               </dependency>
+               <dependency>
+                       <!-- Used by maven-dependency-plugin -->
+                       <groupId>org.apache.flink</groupId>
+                       
<artifactId>flink-connector-kafka-0.11_${scala.binary.version}</artifactId>
+                       <version>${project.version}</version>
+                       <classifier>sql-jar</classifier>
+                       <scope>provided</scope>
+               </dependency>
        </dependencies>
 
+       <dependencyManagement>
+               <dependencies>
+                       <dependency>
+                               <!-- Pick an arbitrary version here to satisfy 
the enforcer-plugin,
+                                       as we neither access nor package the 
kafka dependencies -->
+                               <groupId>org.apache.kafka</groupId>
+                               <artifactId>kafka-clients</artifactId>
+                               <version>0.11.0.2</version>
+                       </dependency>
+               </dependencies>
+       </dependencyManagement>
+
        <build>
                <plugins>
                        <!-- Build toolbox jar. -->
@@ -76,7 +135,9 @@ under the License.
                                                </goals>
                                                <configuration>
                                                        
<outputDirectory>${project.build.directory}/sql-jars</outputDirectory>
-                                                       <!-- List of currently 
provided SQL jars. -->
+                                                       <!-- List of currently 
provided SQL jars. 
+                                                               When extending 
this list please also add a dependency
+                                                               for the 
respective module. -->
                                                        <artifactItems>
                                                                <artifactItem>
                                                                        
<groupId>org.apache.flink</groupId>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> SQL client E2E test is missing dependencies
> -------------------------------------------
>
>                 Key: FLINK-10051
>                 URL: https://issues.apache.org/jira/browse/FLINK-10051
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System, Table API &amp; SQL, Tests
>    Affects Versions: 1.6.0
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.6.1, 1.7.0
>
>
> https://travis-ci.org/zentol/flink-ci/builds/411668376
> The sql-client end-to-end test uses the dependency-plugin to copy a few jars 
> into the /target directory. However since the module doesn't define 
> dependencies on these jars there's no guarantee that these jars are built 
> before the test, or even at all. This caused the tests to fail, since the 
> kafka 0.11 connector wasn't at all and also wasn't available in the SNAPSHOT 
> repository.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to