Skip to content

Fix empty chart 500 in native image; smoke-test the image in CI - #2

Merged
tschuehly merged 3 commits into
masterfrom
native-emptylist-hint
Nov 8, 2026
Merged

tschuehly merged 3 commits into
masterfrom
native-emptylist-hint

Conversation

@tschuehly

Copy link
Copy Markdown
Owner

The native image returned 500 for /lineChartComponent?name=Sales (no data): Kotlin reflection could not resolve kotlin.collections.EmptyList. The live Boot 3.2 site returns an empty chart.

  • NativeHints registers kotlin.collections.EmptyList for reflection.
  • CI now runs the built native image and requests /, /tables, /forms and the empty chart.

Commit 1 adds only the smoke test, so its run shows the 500; commit 2 adds the hint.

Copilot AI balanced review requested due to automatic review settings November 8, 2026 11:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the native-image empty-chart fix and added CI smoke coverage.

No open issues 🎉

What changed in this PR

Fixes the native-image failure when rendering a chart without data and adds CI smoke coverage for the built image.

Changes:

  • Registers kotlin.collections.EmptyList for reflection to address the empty-chart HTTP 500.
  • Starts the native-image container in CI and checks /, /tables, /forms, and /lineChartComponent?name=Sales.
File Description
src/​main/​kotlin/​de/​tschuehly/​fullstackdemo/​common/​NativeHints.kt Adds reflection hints for Kotlin’s empty-list implementation.
.github/​workflows/​native-image.yml Adds container startup, readiness polling, and endpoint smoke checks with failure logs.

Review effort: Balanced

@tschuehly
tschuehly merged commit 742882c into master Nov 8, 2026
3 checks passed
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