Skip to content

Fix 5.2.x CI after the dependency upgrades - #4061

Merged
sdelamo merged 2 commits into
5.2.xfrom
fix/5.2.x-ci
Sep 25, 2026
Merged

sdelamo merged 2 commits into
5.2.xfrom
fix/5.2.x-ci

Conversation

@dstepanov

@dstepanov dstepanov commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the CI failures on 5.2.x since the dependency upgrades (they also fail every PR, e.g. #4060).

  • MariaTransactionsSpec: MariaDB Connector/J 3.5.10 (from micronaut-sql 7.2.0, was 3.5.9) now rejects writes in a read-only transaction (Cannot execute statement in a READ ONLY transaction). The spec now expects the failure, like MySqlTransactionsSpec and PostgresTransactionsSpec.
  • jdbc-sessionless-transaction-booking: test resources 4.3.0 waits for the Oracle container over JDBC (NoDriverFoundException: Could not get Driver). The example sets inferClasspath = false, so ojdbc11 is added to testResourcesService, as the other Oracle modules do.
  • Python CI (hibernate-example-python, hibernate-reactive-example-python): Micronaut 5.2.5 copies the annotations of every type allowed reflective access onto the generated Java source (micronaut-core#13338). With allowReflection=example.* that includes the repositories' internal @DataMethod, rendered as FindAllInterceptor<Object, Object>.class, which doesn't compile. The pattern now lists only the JPA types Hibernate reads reflectively. The copy is fixed in core 5.2.6 (micronaut-core#13401), which isn't on Maven Central yet; once it is, example.* can come back.

Verified locally: MariaTransactionsSpec 44/44, BookingServiceTest 3/3, the two hibernate Python examples 12/12 and 2/2 with -Ppython-ci. The Python failure didn't reproduce locally, so CI is the real check for that part.

MariaDB Connector/J 3.5.10 (micronaut-sql 7.2.0) enforces read-only
transactions, expect the failure like the MySQL and Postgres specs.

Test resources 4.3.0 checks the Oracle container readiness over JDBC, add the
driver to the test resources service of the sessionless booking example,
which does not infer its classpath.
Micronaut 5.2.5 copies the annotations of every type allowed reflective
access onto the generated Java source, including the internal @Datamethod of
the repositories, whose generic interceptor class literal does not compile.
Only allow the JPA types Hibernate reads reflectively. The copy is fixed in
Micronaut 5.2.6 (micronaut-core#13401).
@sonarqubecloud

Copy link
Copy Markdown

@radovanradic

Copy link
Copy Markdown
Contributor

Picked these changes in branch that is merge into 5.2.x and it did not need hiberate python changes from here since it uses core 5.2.6 so this PR might not be needed.

@sdelamo
sdelamo merged commit 5a3fdd8 into 5.2.x Sep 25, 2026
45 checks passed
@sdelamo
sdelamo deleted the fix/5.2.x-ci branch September 25, 2026 05:06
@sdelamo

sdelamo commented Sep 25, 2026

Copy link
Copy Markdown
Member

Picked these changes in branch that is merge into 5.2.x and it did not need hiberate python changes from here since it uses core 5.2.6 so this PR might not be needed.

I reverted it:

4bc0f00

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