You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by er...@apache.org on 2022/06/23 02:11:31 UTC

[iotdb] 01/01: [IOTDB-3622] Use symlink of shared libs to decrease the copied file size in IT test

This is an automated email from the ASF dual-hosted git repository.

ericpai pushed a commit to branch improve/iotdb-3622
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 6697c3eab2bca4995b0672bdcb9b14c076dcf512
Author: ericpai <er...@hotmail.com>
AuthorDate: Thu Jun 23 10:11:14 2022 +0800

    [IOTDB-3622] Use symlink of shared libs to decrease the copied file size in IT test
---
 integration-test/pom.xml                    | 35 +++++++++++++++++++++++++++++
 integration-test/src/assembly/mpp-share.xml | 33 +++++++++++++++++++++++++++
 integration-test/src/assembly/mpp-test.xml  |  7 +-----
 3 files changed, 69 insertions(+), 6 deletions(-)

diff --git a/integration-test/pom.xml b/integration-test/pom.xml
index 4bd7f56894..e7cfd9116e 100644
--- a/integration-test/pom.xml
+++ b/integration-test/pom.xml
@@ -126,6 +126,41 @@
                             <appendAssemblyId>false</appendAssemblyId>
                         </configuration>
                     </execution>
+                    <execution>
+                        <id>cluster-test-assembly-share</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>single</goal>
+                        </goals>
+                        <configuration>
+                            <descriptors>
+                                <descriptor>src/assembly/mpp-share.xml</descriptor>
+                            </descriptors>
+                            <finalName>template-node-share</finalName>
+                            <appendAssemblyId>false</appendAssemblyId>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>3.1.0</version>
+                <configuration>
+                    <skip>${integrationTest.launchNodeInSameJVM}</skip>
+                </configuration>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <configuration>
+                            <target>
+                                <symlink link="${project.build.directory}/template-node/lib" resource="${project.build.directory}/template-node-share/lib"/>
+                            </target>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
                 </executions>
             </plugin>
             <!-- If the test starts separate processes, we can set maximum-heap and new-heap size -->
diff --git a/integration-test/src/assembly/mpp-share.xml b/integration-test/src/assembly/mpp-share.xml
new file mode 100644
index 0000000000..01fce3555d
--- /dev/null
+++ b/integration-test/src/assembly/mpp-share.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+<assembly>
+    <id>mpp-share</id>
+    <formats>
+        <format>dir</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <dependencySets>
+        <dependencySet>
+            <outputDirectory>lib</outputDirectory>
+        </dependencySet>
+    </dependencySets>
+</assembly>
diff --git a/integration-test/src/assembly/mpp-test.xml b/integration-test/src/assembly/mpp-test.xml
index d73c45de4b..4e0f21cefc 100644
--- a/integration-test/src/assembly/mpp-test.xml
+++ b/integration-test/src/assembly/mpp-test.xml
@@ -20,16 +20,11 @@
 
 -->
 <assembly>
-    <id>cluster-test</id>
+    <id>mpp-test</id>
     <formats>
         <format>dir</format>
     </formats>
     <includeBaseDirectory>false</includeBaseDirectory>
-    <dependencySets>
-        <dependencySet>
-            <outputDirectory>lib</outputDirectory>
-        </dependencySet>
-    </dependencySets>
     <fileSets>
         <fileSet>
             <outputDirectory>datanode/conf</outputDirectory>