Skip to content

Commit

Permalink
Restored surefire failsafe distinction
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astachowski committed Nov 21, 2024
1 parent 120bb33 commit 200f5e7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
6 changes: 3 additions & 3 deletions ci/container/test_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if [[ "$is_old_driver" == "true" ]]; then
$MVNW_EXE -DjenkinsIT \
-Djava.io.tmpdir=$WORKSPACE \
-Djacoco.skip.instrument=false \
-Dtest="$JDBC_TEST_CATEGORY" \
-DintegrationTestSuites="$JDBC_TEST_CATEGORY" \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
verify \
--batch-mode --show-version
Expand All @@ -94,7 +94,7 @@ elif [[ "$JDBC_TEST_CATEGORY" == "FipsTestSuite" ]]; then
$MVNW_EXE -DjenkinsIT \
-Djava.io.tmpdir=$WORKSPACE \
-Djacoco.skip.instrument=false \
-Dtest=UnitTestSuite,FipsTestSuite \
-DintegrationTestSuites=FipsTestSuite \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-Dnot-self-contained-jar \
verify \
Expand All @@ -105,7 +105,7 @@ else
$MVNW_EXE -DjenkinsIT \
-Djava.io.tmpdir=$WORKSPACE \
-Djacoco.skip.instrument=false \
-Dtest=UnitTestSuite,"$JDBC_TEST_CATEGORY" \
-DintegrationTestSuites="$JDBC_TEST_CATEGORY" \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-Dnot-self-contained-jar $ADDITIONAL_MAVEN_PROFILE \
verify \
Expand Down
3 changes: 2 additions & 1 deletion ci/test_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ if "%JDBC_TEST_CATEGORY%"=="FipsTestSuite" (
cmd /c %MVNW_EXE% -B -DjenkinsIT ^
-Djava.io.tmpdir=%GITHUB_WORKSPACE% ^
-Djacoco.skip.instrument=false ^
-DintegrationTestSuites=FipsTestSuite ^
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn ^
-Dnot-self-contained-jar ^
verify ^
Expand All @@ -136,7 +137,7 @@ if "%JDBC_TEST_CATEGORY%"=="FipsTestSuite" (
cmd /c %MVNW_EXE% -B -DjenkinsIT ^
-Djava.io.tmpdir=%GITHUB_WORKSPACE% ^
-Djacoco.skip.instrument=false ^
-Dtest=UnitTestSuite,"%JDBC_TEST_CATEGORY%" ^
-DintegrationTestSuites="%JDBC_TEST_CATEGORY%" ^
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn ^
-Dnot-self-contained-jar %ADDITIONAL_MAVEN_PROFILE% ^
verify ^
Expand Down
1 change: 1 addition & 0 deletions parent-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<shadeBase>net.snowflake.client.jdbc.internal</shadeBase>
<slf4j.version>2.0.13</slf4j.version>
<snowflake.common.version>5.1.4</snowflake.common.version>
<integrationTestSuites>UnitTestSuite</integrationTestSuites>
<tika.version>2.4.1</tika.version>
<tukaani.version>1.9</tukaani.version>
<version.maven>3.6.3</version.maven>
Expand Down
25 changes: 16 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1180,10 +1180,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<net.snowflake.jdbc.loggerImpl>net.snowflake.client.log.JDK14Logger</net.snowflake.jdbc.loggerImpl>
<java.util.logging.config.file>${basedir}/src/test/resources/logging.properties</java.util.logging.config.file>
</systemPropertyVariables>
<test>UnitTestSuite</test>
</configuration>
<dependencies>
<dependency>
Expand All @@ -1198,23 +1195,33 @@
<goal>test</goal>
</goals>
</execution>
<!--
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<argLine>--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</argLine>
</configuration>
<executions>
<execution>
<goals>
<goal>verify</goal>
</goals>
</execution>
<execution>
<id>DefaultIT</id>
<goals>
<goal>integration-test</goal>
</goals>
<configuration>
<excludes>
<exclude>**/DellBoomiCloudIT.java</exclude>
</excludes>
<systemPropertyVariables>
<net.snowflake.jdbc.loggerImpl>net.snowflake.client.log.JDK14Logger</net.snowflake.jdbc.loggerImpl>
<java.util.logging.config.file>${basedir}/src/test/resources/logging.properties</java.util.logging.config.file>
</systemPropertyVariables>
<test>${integrationTestSuites}</test>
</configuration>
</execution>
-->
</executions>
</plugin>
<plugin>
Expand Down

0 comments on commit 200f5e7

Please sign in to comment.