Skip to content

Update Hibernate ORM to 6.6.16 / Junit to 5.12.2 #517

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

marko-bekhta
Copy link
Member

No description provided.

marko-bekhta and others added 2 commits May 26, 2025 08:40
Bumps the test group with 1 update: [org.junit:junit-bom](https://github.com/junit-team/junit5).

Updates `org.junit:junit-bom` from 5.11.4 to 5.12.2
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](junit-team/junit5@r5.11.4...r5.12.2)

---
updated-dependencies:
- dependency-name: org.junit:junit-bom
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: test
...

Signed-off-by: dependabot[bot] <[email protected]>
@marko-bekhta
Copy link
Member Author

🥲 there was more to the junit upgrade than just the config 😄 so while that fix helps if no bytecode enhanced test are available ... it doesn't when there are such test (hibernate/hibernate-orm@e8e4678#diff-b995d5674fe0fc0a3e4d47a22144bff7e7139f077714a1cda05f6629b741cb3fL160-L166)

@yrodiere
Copy link
Member

🥲 there was more to the junit upgrade than just the config 😄 so while that fix helps if no bytecode enhanced test are available ... it doesn't when there are such test (hibernate/hibernate-orm@e8e4678#diff-b995d5674fe0fc0a3e4d47a22144bff7e7139f077714a1cda05f6629b741cb3fL160-L166)

Thanks for taking care of this.

Is the problem specific to test case templates? Why would the Hibernate ORM test suite pass and not these?

@marko-bekhta
Copy link
Member Author

oh it work fine in ORM as versions are always aligned there (for ORM builds), and when there's a misalignment it is the TCK tests that run on the older version of Junit... but since those tests (from TCK) do not have any bytecode enhanced tests (none are using this extension/engine) the code never reaches the part where it creates the test descriptors ...

@marko-bekhta
Copy link
Member Author

so no... the problem is not test case template specific 😖 ideally we'd want a new extension point in junit apis to get this working nicely without relying on any internal classes

@yrodiere
Copy link
Member

I thought Christian had suggested/merged precisely a change that would allow not relying on internal classes...?

@marko-bekhta
Copy link
Member Author

mm not really, it was essentially just using another internal class that hasn't changed yet, and since tck never reached the other code block, the error we see here didn't manifest itself.

btw a fun fact, JUnit 5.13 is out and it has more breaking changes in these internal apis, the patch is simple, but then as before we won't have backwards compatibility 🥲

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.

2 participants