update some TCK dependencies, Add sql scripts, add LASTNAMEEMPLOYEES_KEY column to table EMP_MAPKEYCOL2 for https://github.com/jakartaee/persistence/issues/1010#1017
Conversation
…e#1010 Signed-off-by: Scott Marlow <scott.marlow@ibm.com>
Signed-off-by: Scott Marlow <scott.marlow@ibm.com>
|
Apparently the check failure is due to the SQL script files not including the project copyright license: |
| run: | | ||
| mvn -B -U -C -V clean install -Poss-release -Dgpg.skip=true -DskipTests ${{ matrix.java-version.extra_args }} | ||
| mvn org.glassfish.copyright:glassfish-copyright-maven-plugin:check -Poss-release -Dgpg.skip=true -Dcopyright.ignoreyear=true ${{ matrix.java-version.extra_args }} | ||
| mvn org.glassfish.copyright:glassfish-copyright-maven-plugin:check -Poss-release -Dgpg.skip=true -Dcopyright.ignoreyear=true ${{ matrix.java-version.extra_args }} -Dcopyright.exclude=persistence/tck/sql/oracle/oracle.ddl.persistence.sprocs.sql,persistence/tck/sql/oracle/oracle.ddl.persistence.sql,persistence/tck/sql/mssqlserver/mssqlserver.ddl.persistence.sql,persistence/tck/sql/mssqlserver/mssqlserver.ddl.persistence.sprocs.sql,persistence/tck/sql/postgresql/postgresql.ddl.persistence.sql,persistence/tck/sql/postgresql/postgresql.ddl.persistence.sprocs.sql,persistence/tck/sql/sybase/sybase.ddl.persistence.sql,persistence/tck/sql/sybase/sybase.ddl.persistence.sprocs.sql,persistence/tck/sql/mysql/mysql.ddl.persistence.sql,persistence/tck/sql/mysql/mysql.ddl.persistence.sprocs.sql,persistence/tck/sql/derby/derby.ddl.persistence.sql,persistence/tck/sql/derby/derby.ddl.persistence.sprocs.sql,persistence/tck/sql/db2/db2.ddl.persistence.sql,persistence/tck/sql/db2/db2.ddl.persistence.sprocs.sql |
There was a problem hiding this comment.
consider updating and/or reusing project-widecopyright-exclude, see https://github.com/jakartaee/persistence/blob/main/copyright-exclude and/or https://github.com/eclipse-ee4j/glassfish-copyright-plugin/blob/master/src/main/java/org/glassfish/copyright/AbstractCopyrightMojo.java#L44
There was a problem hiding this comment.
Thanks @lukasj! Will reuse the project-wide copyright-exclude!
Signed-off-by: Scott Marlow <scott.marlow@ibm.com>
19f6601 to
1ea5d83
Compare
Signed-off-by: Scott Marlow <scott.marlow@ibm.com>
|
Derby? Isn't that project dead now? |
Yes but users could still use it for a while until it stops working. @kuuku123 mentioned he is using Derby still. |
|
yes we are still using it |
| @@ -0,0 +1,918 @@ | |||
|
|
|||
| DROP TABLE ADDRESS! | |||
There was a problem hiding this comment.
What would be the expectations on these DDLs within the standalone TCK ?
Note that currently the TCK tests are using the drop-and-create unless the test does not require the schema or if the schema has to be created "manually" by the test itself:
So wouldn't these scripts cause confusion as to how they are supposed to be used ?
| @@ -0,0 +1,23 @@ | |||
| DROP PROCEDURE GetEmpOneFirstNameFromOut ! | |||
| CREATE PROCEDURE GetEmpOneFirstNameFromOut (out OUT_PARAM VARCHAR(255)) LANGUAGE SQL BEGIN SELECT FIRSTNAME into OUT_PARAM FROM EMPLOYEE WHERE ID=1; END ! | |||
There was a problem hiding this comment.
ah if we have procedure scripts for DBs other than Postgres then we should feed that to:
how about we package them as resources in the tck/common jar and then read them in the test depending on the input parameter passed to surefiure/failsafe and default to use Postgres if no property was passed ?
| <!-- | ||
| No idea why, but it seems these two dependencies are required to make it work, | ||
| even though they are a transitive dependency of persistence-tck-common?! | ||
| --> | ||
| <dependency> | ||
| <groupId>jakarta.tck</groupId> | ||
| <artifactId>signaturetest</artifactId> | ||
| <version>${jakarta.tck.sigtest.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>jakarta.tck</groupId> | ||
| <artifactId>sigtest-maven-plugin</artifactId> | ||
| <version>2.6</version> | ||
| </dependency> | ||
|
|
There was a problem hiding this comment.
just to link to the related issue: #897
if we make the sigtest work then maybe we close that on ^ or we just remove the sigtest 🙈 🙂 ?
|
I wonder if we should add a way to specify platform-specific DDL in the XML descriptor. We do already have such a thing in Hibernate, IIRC. |
|
See #1023 |
Add SQL scripts and table change for #1010