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

zakelly pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-benchmarks.git


The following commit(s) were added to refs/heads/master by this push:
     new 4ad9df0  [hotfix] Add profile to apply `--add-opens` for java17 CI 
(#103)
4ad9df0 is described below

commit 4ad9df018bbddc0564883807372de8be7dce30ca
Author: Zakelly <zakelly....@gmail.com>
AuthorDate: Thu Jan 23 16:01:31 2025 +0800

    [hotfix] Add profile to apply `--add-opens` for java17 CI (#103)
---
 .github/workflows/ci.yml |  4 ++--
 pom.xml                  | 59 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5e96427..400d9f2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -44,7 +44,7 @@ jobs:
 
       - name: Compile
         # https.protocols is a workaround for 
https://bugs.openjdk.java.net/browse/JDK-8213202
-        run: mvn install -P test -DskipTests=true -Dmaven.javadoc.skip=true 
-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -B -V
+        run: mvn install -P test-java17 -DskipTests=true 
-Dmaven.javadoc.skip=true -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -B -V
 
       - name: Test
-        run: mvn test -P test -B
+        run: mvn test -P test-java17 -B
diff --git a/pom.xml b/pom.xml
index 9a22615..66d3c16 100644
--- a/pom.xml
+++ b/pom.xml
@@ -324,6 +324,65 @@ under the License.
                        </build>
                </profile>
 
+               <profile>
+                       <id>test-java17</id>
+                       <activation>
+                               <activeByDefault>false</activeByDefault>
+                       </activation>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               
<groupId>org.codehaus.mojo</groupId>
+                                               
<artifactId>exec-maven-plugin</artifactId>
+                                               
<version>${maven.exec.version}</version>
+                                               <executions>
+                                                       <execution>
+                                                               
<id>test-benchmarks</id>
+                                                               
<phase>test</phase>
+                                                               <goals>
+                                                                       
<goal>exec</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                               <configuration>
+                                                       
<skip>${skipTests}</skip>
+                                                       
<classpathScope>test</classpathScope>
+                                                       
<executable>${basedir}/benchmark.sh</executable>
+                                                       <arguments>
+                                                               
<argument>-c</argument>
+                                                               <classpath/>
+                                                               
<argument>-b</argument>
+                                                               
<argument>${executableJava}</argument>
+                                                               
<argument>-j</argument>
+                                                               
<argument>-Xmx6g</argument>
+                                                               
<argument>-j</argument>
+                                                               
<argument>--add-opens</argument>
+                                                               
<argument>-j</argument>
+                                                               
<argument>java.base/java.util=ALL-UNNAMED</argument>
+                                                               <!--speed up 
tests-->
+                                                               
<argument>-a</argument>
+                                                               
<argument>-f</argument>
+                                                               
<argument>-a</argument>
+                                                               
<argument>1</argument>
+                                                               
<argument>-a</argument>
+                                                               
<argument>-i</argument>
+                                                               
<argument>-a</argument>
+                                                               
<argument>1</argument>
+                                                               
<argument>-a</argument>
+                                                               
<argument>-wi</argument>
+                                                               
<argument>-a</argument>
+                                                               
<argument>0</argument>
+                                                               
<argument>-e</argument>
+                                                               
<argument>${benchmarkExcludes}</argument>
+                                                               
<argument>-m</argument>
+                                                               
<argument>${benchmarks}</argument>
+                                                       </arguments>
+                                               </configuration>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+
                <profile>
                        <id>benchmark</id>
                        <activation>

Reply via email to