Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Hibernate Reactive tests for PostgreSQL, MariaDB and MySQL #1126

Conversation

michalvavrik
Copy link
Member

@michalvavrik michalvavrik commented Mar 22, 2023

Summary

quarkusio/quarkus#31454 is merged, so we should be testing Hibernate Reactive for PostgreSQL, MariaDB and MySQL, while MsSQL and Oracle will work in next release quarkusio/quarkus#32102 (comment).

Changes:

  • added cascade constraint to init scripts as previously these DROP TABLE didn't work and logged constraint violation (correct behavior)
  • migrated M:N relation between Author and Book to unidirectional @OneToMany. Previously we had some hybrid between unidirectional and bidirectional mapping that doesn't work anymore due to casting exception. In my understanding that's absolutely correct behavior - for bidirectional mapping you need entity on the other side, while we were using primitive type without @ManyToOne but still set @OneToMany#mappedBy.
  • changed MariaDB102Dialect to MariaDBDialect as former is not supported anymore and we don't use legacy database
  • Spring Web Reactive needs to use @WithSession due to recent changes in Panache Hibernate reactive panache refactoring quarkusio/quarkus#29761, @WithSession does not support Multi
  • @ReactiveTransactional has been marked for removal, so I changed one of 2 usages in Spring Web Reactive ti @WithTransaction in order to have tested preferred way

Please select the relevant options.

  • Bug fix (non-breaking change which fixes an issue)
  • Dependency update
  • Refactoring
  • Backport
  • New scenario (non-breaking change which adds functionality)
  • This change requires a documentation update
  • This change requires execution against OCP (use run tests phrase in comment)

Checklist:

  • Methods and classes used in PR scenarios are meaningful
  • Commits are well encapsulated and follow the best practices

@michalvavrik
Copy link
Member Author

run tests

@michalvavrik
Copy link
Member Author

Debugging OC failures.

@michalvavrik michalvavrik force-pushed the feature/enable-hibernate-reactive-modules branch from 4b6c1cb to 8519d14 Compare March 22, 2023 14:12
@michalvavrik
Copy link
Member Author

Opened issue as I wasted loads of time on this quarkusio/quarkus#32040.

@michalvavrik michalvavrik changed the title Enable Hibernate Reactive modules WIP Enable Hibernate Reactive modules Mar 22, 2023
@michalvavrik michalvavrik force-pushed the feature/enable-hibernate-reactive-modules branch 2 times, most recently from 85c194c to 7f74778 Compare March 24, 2023 10:51
@michalvavrik michalvavrik changed the title WIP Enable Hibernate Reactive modules Enable Hibernate Reactive tests for PostgreSQL, MariaDB and MySQL Mar 24, 2023
@michalvavrik
Copy link
Member Author

run tests

@michalvavrik michalvavrik requested a review from fedinskiy March 24, 2023 10:52
@michalvavrik
Copy link
Member Author

I'll check native (and don't do anything till it's fixed) :-/

@michalvavrik
Copy link
Member Author

It's like never ending story....

@rsvoboda
Copy link
Member

It is! You can drop like from your statement :)

@michalvavrik
Copy link
Member Author

As for OpenShift failures, they all succeeded when run from my workstation (in terms of Hibernate Reactive modules), so there must be some difference when run from CI, I am on it.

@michalvavrik
Copy link
Member Author

Created upstream issue for native failure: quarkusio/quarkus#32114

@michalvavrik michalvavrik force-pushed the feature/enable-hibernate-reactive-modules branch from 7f74778 to f0a68ae Compare March 24, 2023 14:28
@michalvavrik
Copy link
Member Author

run tests

@michalvavrik
Copy link
Member Author

There is one OpenShift JVM mode failure now - OpenShiftWebSocketsClientIT which is not related as this PR doesn't touch that module, so I'll go ahead and merge it.

@michalvavrik michalvavrik merged commit 8f0e559 into quarkus-qe:main Mar 25, 2023
@michalvavrik michalvavrik deleted the feature/enable-hibernate-reactive-modules branch March 25, 2023 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants