Skip to content

build: upgrade to Quarkus 4.0.1 - #371

Merged
asm0dey merged 3 commits into
mainfrom
quarkus-4
Nov 26, 2026
Merged

asm0dey merged 3 commits into
mainfrom
quarkus-4

Conversation

@asm0dey

@asm0dey asm0dey commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Upgrades calit to Quarkus 4.0.1. Supersedes Renovate #370 (same version bump, without the artifact renames, so it cannot pass) and folds in #368 (image digests) and #369 (version in README/CLAUDE.md).

flowchart LR
  A["quarkus-bom 3.40.1.2"] --> B["quarkus-bom 4.0.1"]
  B --> C["pom: quarkus-junit, quarkus-junit-mockito, byte-buddy pin dropped"]
  B --> D["Jakarta Persistence 4: ArchUnit store origins rewritten"]
  B --> E["flush before TestTransaction rollback: 3 tests fixed"]
Loading
  • pom: quarkus-junit5(-mockito) becomes quarkus-junit(-mockito). The byte-buddy pin is dropped because the BOM now ships the same 1.18.17. The jackson-core 2.23.0 pin stays because the BOM still ships 2.21.8.

  • ArchUnit store: Jakarta Persistence 4 moved executeUpdate/getResultList/setParameter/getSingleResult onto StatementOrTypedQuery, and refresh(Object, LockModeType) now binds to refresh(Object, RefreshOption...). The calls are the same; 36 origin signatures were rewritten by hand. The frozen violation count is unchanged.

  • Tests: Quarkus 4 adds HibernateTestTransactionCallback, which flushes the session before @TestTransaction rolls back. Three tests left the session in states the rollback used to discard:

    • WriteTargetResolverTest: the override pointed at a credential that doesn't exist. It now seeds a real one.
    • LoginTicketServiceTest: the user delete was never flushed, so the ticket delete hit a row that ON DELETE CASCADE had already removed. It now flushes the user delete, as if it had been committed elsewhere.
    • OverlapConstraintTest: the session was flushed again after the constraint violation it asserts. It now clears the session after the assertion.

    No production code changes.

  • Native: Quarkus 4.0.1 refuses NIK 25.0.3 ("Quarkus currently supports 25.0.4"), so both builder images (glibc in pom.xml, musl in Dockerfile.native) move to NIK 25.0.4, pinned by digest.

  • CI: the Quarkus 4 IT launcher logs each app launch to target/test-<id>/quarkus.log instead of overwriting target/quarkus.log. The native-it reflection/init check now reads every one of those logs, where before it saw only the last launch.

What the 4.0 migration guide lists that doesn't apply here: Jackson 3 code changes (calit has no com.fasterxml.jackson.core/databind imports), removed config properties (none used), OIDC config builders, and the Postgres 16 minimum (we run 18; CI's service is 16).

Verified: full mvn test, 1653 tests, 0 failures, 0 errors; spotless:check clean. Native smoke ITs: 7/7 pass in CI.

Contribution declaration

  • This contribution was written without AI assistance.

AI Disclosure

Prepared with the assistance of Claude Code (Claude Opus 5.5). The migration research, the pom edits, the ArchUnit store rewrite, the three test fixes and this description were AI-assisted. The maintainer reviews everything before merge.

🤖 Generated with Claude Code

- quarkus-bom 3.40.1.2 -> 4.0.1; quarkus-junit5(-mockito) -> quarkus-junit(-mockito)
- drop the byte-buddy pin: the 4.0.1 BOM ships the same 1.18.17
- keep the jackson-core 2.23.0 pin: the BOM still ships 2.21.8
- ArchUnit store: Jakarta Persistence 4 moved executeUpdate/getResultList/
  setParameter/getSingleResult to StatementOrTypedQuery, and refresh(Object,
  LockModeType) now binds to refresh(Object, RefreshOption...); same calls,
  origin signatures rewritten by hand
- Quarkus 4 flushes the session before @TestTransaction rolls back
  (HibernateTestTransactionCallback). Three tests left invalid state in the
  session that the rollback used to discard; each now matches what it claims
- fold in Renovate #368 (image digests) and #369 (version in README/CLAUDE.md)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

good-oss-citizen contribution gate — passed

A contribution declaration was found. Thanks for being a good OSS citizen!

asm0dey and others added 2 commits November 26, 2026 19:51
NativeImageBuildStep rejects 25.0.3: "Out of date version of GraalVM or
Mandrel detected: 25.0.3. Quarkus currently supports 25.0.4."

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quarkus 4's IT launcher logs each app launch to target/test-<id>/quarkus.log
instead of overwriting target/quarkus.log, so the reflection/init check found
no log and failed after all 7 native ITs had passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@asm0dey
asm0dey merged commit e64284c into main Nov 26, 2026
15 checks passed
@asm0dey
asm0dey deleted the quarkus-4 branch November 26, 2026 19:16
asm0dey added a commit that referenced this pull request Nov 26, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant