You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by so...@apache.org on 2026/10/12 01:49:28 UTC

(openjpa) 01/02: [OPENJPA-3001] investigating test failures

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

solomax pushed a commit to branch tck-mysql
in repository https://gitbox.apache.org/repos/asf/openjpa.git

commit 4819f5a2879a00bb0083c78715242269922fc9fd
Author: Maxim Solodovnik <so...@apache.org>
AuthorDate: Wed Oct 7 13:09:58 2026 +0700

    [OPENJPA-3001] investigating test failures
---
 openjpa-integration/tck/run-tck32.sh              | 12 +++++++++---
 openjpa-integration/tck/tck32-openjpa-profile.xml |  1 +
 pom.xml                                           | 10 ++++++++++
 3 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/openjpa-integration/tck/run-tck32.sh b/openjpa-integration/tck/run-tck32.sh
index 3e7e44fbd..751026ade 100755
--- a/openjpa-integration/tck/run-tck32.sh
+++ b/openjpa-integration/tck/run-tck32.sh
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 #
-
+#set -x
 TCK_VERSION="${TCK_VERSION:-3.2.0}"
 TCK_BASE="${TCK_VERSION:0:3}"
 
@@ -79,13 +79,19 @@ stopAll() {
     done
 }
 
+declare -a EXTRA_ARGS=()
 while [[ $# -gt 0 ]]; do
     case ${1} in
         --stop-all)
             shift
             stopAll
             ;;
-	esac
+        *)
+            echo "GOT extra arg: ${1}"
+            EXTRA_ARGS+=("${1}")
+            shift
+            ;;
+    esac
 done
 
 TCK_URL="https://download.eclipse.org/jakartaee/persistence/${TCK_BASE}/jakarta-persistence-tck-${TCK_VERSION}.zip"
@@ -224,4 +230,4 @@ mvn -e -f "${TCK_POM}" -P "openjpa,${TCK_DB_TYPE}" verify \
     "-Djakarta.persistence.jdbc.user=${DB_USER}" \
     "-Djakarta.persistence.jdbc.password=${DB_PASSWORD}" \
     "-Djakarta.persistence.jdbc.url=${DB_URL}" \
-    "$@"
+    "${EXTRA_ARGS[@]}"
diff --git a/openjpa-integration/tck/tck32-openjpa-profile.xml b/openjpa-integration/tck/tck32-openjpa-profile.xml
index 25a773051..500b5398b 100644
--- a/openjpa-integration/tck/tck32-openjpa-profile.xml
+++ b/openjpa-integration/tck/tck32-openjpa-profile.xml
@@ -29,6 +29,7 @@
         <!-- NOTE: [IMPORTANT] version should be kept in-sync with current OpenJPA version -->
         <openjpa.version>4.2.0-SNAPSHOT</openjpa.version>
         <jakarta.persistence.provider>org.apache.openjpa.persistence.PersistenceProviderImpl</jakarta.persistence.provider>
+        <!-- :jakarta.persistence.schema-generation.database.action=drop-and-create:jakarta.persistence.schema-generation.scripts.action=drop-and-create -->
         <jpa.provider.implementation.specific.properties>openjpa.jdbc.SynchronizeMappings=buildSchema:openjpa.jdbc.SyncMappingsExcludeTypes=ee.jakarta.tck.persistence.core.entityManager2.DoesNotExist:openjpa.DynamicEnhancementAgent=false:openjpa.RuntimeUnenhancedClasses=supported:openjpa.Compatibility=StrictIdentityValues=true:openjpa.SpecCompliantSchemaGeneration=true:openjpa.Sequence=time${jpa.provider.implementation.specific.additional.properties}</jpa.provider.implementation.specific [...]
     </properties>
     <dependencies>
diff --git a/pom.xml b/pom.xml
index aab5e4fc3..b803f4529 100644
--- a/pom.xml
+++ b/pom.xml
@@ -652,6 +652,8 @@
                         <groupId>io.fabric8</groupId>
                         <artifactId>docker-maven-plugin</artifactId>
                         <configuration>
+                            <keepContainer>false</keepContainer>
+                            <removeVolumes>true</removeVolumes>
                             <images>
                                 <image>
                                     <name>mysql:${mysql.server.version}</name>
@@ -748,6 +750,8 @@
                         <groupId>io.fabric8</groupId>
                         <artifactId>docker-maven-plugin</artifactId>
                         <configuration>
+                            <keepContainer>false</keepContainer>
+                            <removeVolumes>true</removeVolumes>
                             <images>
                                 <image>
                                     <name>mariadb:${mariadb.server.version}</name>
@@ -849,6 +853,8 @@
                         <groupId>io.fabric8</groupId>
                         <artifactId>docker-maven-plugin</artifactId>
                         <configuration>
+                            <keepContainer>false</keepContainer>
+                            <removeVolumes>true</removeVolumes>
                             <images>
                                 <image>
                                     <name>postgres:${postgresql.server.version}</name>
@@ -993,6 +999,8 @@
                         <groupId>io.fabric8</groupId>
                         <artifactId>docker-maven-plugin</artifactId>
                         <configuration>
+                            <keepContainer>false</keepContainer>
+                            <removeVolumes>true</removeVolumes>
                             <images>
                                 <image>
                                     <name>mcr.microsoft.com/mssql/server:${mssql.server.version}</name>
@@ -1156,6 +1164,8 @@
                         <groupId>io.fabric8</groupId>
                         <artifactId>docker-maven-plugin</artifactId>
                         <configuration>
+                            <keepContainer>false</keepContainer>
+                            <removeVolumes>true</removeVolumes>
                             <images>
                                 <image>
                                     <name>herddb/herddb:${herddb.server.version}</name>