Skip to content

Commit 5d0ed75

Browse files
authored
Merge pull request #2657 from hongwei1/develop
feature/update the run_all_test script
2 parents 38ffc46 + 3c9ecdf commit 5d0ed75

6 files changed

Lines changed: 522 additions & 70 deletions

File tree

.github/workflows/build_container_non_develop_branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and publish container non develop
33
on:
44
push:
55
branches:
6-
- '*'
6+
- '**'
77
- '!develop'
88

99
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ project/project
4444
coursier
4545
metals.sbt
4646
obp-http4s-runner/src/main/resources/git.properties
47+
test-results

obp-api/pom.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,9 +586,15 @@
586586
<forkMode>once</forkMode>
587587
<junitxml>.</junitxml>
588588
<filereports>WDF TestSuite.txt</filereports>
589-
<argLine>-Drun.mode=test -XX:MaxMetaspaceSize=512m -Xms512m -Xmx512m --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.jar=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED</argLine>
589+
<!-- Increased memory for faster test execution -->
590+
<argLine>-Drun.mode=test -XX:MaxMetaspaceSize=1G -Xms2G -Xmx4G -XX:+UseG1GC -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+UseStringDeduplication --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.jar=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED</argLine>
590591
<tagsToExclude>code.external</tagsToExclude>
591592
<testFailureIgnore>${maven.test.failure.ignore}</testFailureIgnore>
593+
<!-- Disable parallel test execution to avoid shared database state issues -->
594+
<!-- Tests share an in-memory H2 database which causes conflicts when run in parallel -->
595+
<!-- <parallel>true</parallel>-->
596+
<!-- <threadCount>4</threadCount>-->
597+
<parallel>false</parallel>
592598
</configuration>
593599
<executions>
594600
<execution>
@@ -667,15 +673,26 @@
667673
<version>4.8.1</version>
668674
<configuration>
669675
<fork>true</fork>
676+
<recompileMode>incremental</recompileMode>
677+
<useZincServer>true</useZincServer>
670678
<jvmArgs>
671679
<jvmArg>-Xms4G</jvmArg>
672680
<jvmArg>-Xmx12G</jvmArg>
681+
<jvmArg>-Xss4m</jvmArg>
673682
<jvmArg>-XX:MaxMetaspaceSize=4G</jvmArg>
674683
<jvmArg>-XX:+UseG1GC</jvmArg>
684+
<jvmArg>-XX:+TieredCompilation</jvmArg>
685+
<jvmArg>-XX:TieredStopAtLevel=1</jvmArg>
675686
</jvmArgs>
676687
<args>
677688
<arg>-deprecation</arg>
678689
<arg>-feature</arg>
690+
<!-- Enable language features to suppress warnings -->
691+
<arg>-language:implicitConversions</arg>
692+
<arg>-language:reflectiveCalls</arg>
693+
<arg>-language:postfixOps</arg>
694+
<!-- Suppress auto-application deprecation warning -->
695+
<arg>-Wconf:cat=deprecation&amp;msg=auto-application:s</arg>
679696
</args>
680697
</configuration>
681698
</plugin>

obp-commons/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,14 @@
113113
<forkMode>once</forkMode>
114114
<junitxml>.</junitxml>
115115
<filereports>WDF TestSuite.txt</filereports>
116-
<argLine>-Drun.mode=test -XX:MaxMetaspaceSize=512m -Xms512m -Xmx512m</argLine>
116+
<!-- Increased memory for faster test execution -->
117+
<argLine>-Drun.mode=test -XX:MaxMetaspaceSize=1G -Xms2G -Xmx4G -XX:+UseG1GC -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+UseStringDeduplication</argLine>
117118
<tagsToExclude>code.external</tagsToExclude>
118119
<testFailureIgnore>${maven.test.failure.ignore}</testFailureIgnore>
120+
<!-- Disable parallel test execution to avoid shared state issues -->
121+
<!-- <parallel>true</parallel>-->
122+
<!-- <threadCount>4</threadCount>-->
123+
<parallel>false</parallel>
119124
</configuration>
120125
<executions>
121126
<execution>

pom.xml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<!-- Common plugin settings -->
2222
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2323
<project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding>
24-
<maven.test.failure.ignore>true</maven.test.failure.ignore>
24+
<maven.test.failure.ignore>false</maven.test.failure.ignore>
2525
<!-- vscaladoc settings -->
2626
<maven.scaladoc.vscaladocVersion>1.2-m1</maven.scaladoc.vscaladocVersion>
2727
<vscaladoc.links.liftweb.pathsufix>scaladocs/</vscaladoc.links.liftweb.pathsufix>
@@ -134,10 +134,14 @@
134134
<scalaVersion>${scala.compiler}</scalaVersion>
135135
<charset>${project.build.sourceEncoding}</charset>
136136
<displayCmd>true</displayCmd>
137+
<recompileMode>incremental</recompileMode>
138+
<useZincServer>true</useZincServer>
137139
<jvmArgs>
138140
<jvmArg>-DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties</jvmArg>
139-
<jvmArg>-Xms64m</jvmArg>
140-
<jvmArg>-Xmx1024m</jvmArg>
141+
<jvmArg>-Xms512m</jvmArg>
142+
<jvmArg>-Xmx2G</jvmArg>
143+
<jvmArg>-XX:+TieredCompilation</jvmArg>
144+
<jvmArg>-XX:TieredStopAtLevel=1</jvmArg>
141145
</jvmArgs>
142146
<args>
143147
<arg>-unchecked</arg>
@@ -147,6 +151,12 @@
147151
<arg>-deprecation</arg>
148152
-->
149153
<arg>-Ypartial-unification</arg>
154+
<!-- Enable language features to suppress warnings -->
155+
<arg>-language:implicitConversions</arg>
156+
<arg>-language:reflectiveCalls</arg>
157+
<arg>-language:postfixOps</arg>
158+
<!-- Suppress auto-application deprecation warning -->
159+
<arg>-Wconf:cat=deprecation&amp;msg=auto-application:s</arg>
150160
</args>
151161
</configuration>
152162
<executions>

0 commit comments

Comments
 (0)