Skip to content

test: Add comprehensive test coverage for Ollama runtime hints registration #4014

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

Merged

Conversation

alxkm
Copy link
Contributor

@alxkm alxkm commented Aug 6, 2025

Adds new test cases to strengthen OllamaRuntimeHintsTests:

  • Null ClassLoader handling - Ensures registration works with null ClassLoader (AOT scenario)
  • Basic validation - Verifies hints are actually registered
  • Idempotent registration - Prevents duplicate hints on multiple calls
  • Main API classes validation - Confirms core Ollama classes are registered
  • Package validation - Ensures JSON classes found from correct package
  • Hint count control - Prevents excessive registrations that impact build time
  • Nested class support - Validates Tool and other nested classes are registered

These tests catch potential native compilation failures and ensure proper AOT hint registration for Ollama integration.

…ration

Signed-off-by: Alex Klimenko <alexanderklmn@gmail.com>
@sobychacko sobychacko added this to the 1.1.0.M1 milestone Aug 6, 2025
@sobychacko sobychacko merged commit 109923a into spring-projects:main Aug 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants