Skip to content

Conversation

@alxkm
Copy link
Contributor

@alxkm alxkm commented Aug 6, 2025

Adds 4 targeted test cases to strengthen runtime hints functionality across multiple components:

ToolRuntimeHintsTests:

  • Null ClassLoader handling - Ensures tool hints registration doesn't fail when ClassLoader parameter is null (common in AOT processing)

AiRuntimeHintsTests:

  • Record validation - Confirms records with @JsonProperty parameters are properly discovered for hint registration
  • Enum validation - Verifies enums with @JsonInclude annotations are correctly identified for reflection hints

JdbcChatMemoryRepositoryRuntimeHintsTest:

  • Null ClassLoader robustness - Validates JDBC chat memory hints registration handles null ClassLoader gracefully

These tests prevent runtime failures in native images by ensuring proper discovery of JSON-annotated classes (records/enums), robust hint registration under various ClassLoader conditions, and reliable chat memory persistence in GraalVM environments.

@sobychacko sobychacko added this to the 1.1.0.M1 milestone Aug 6, 2025
@sobychacko sobychacko merged commit f7e6b34 into spring-projects:main Aug 6, 2025
2 checks passed
juntae6942 pushed a commit to juntae6942/spring-ai that referenced this pull request Aug 7, 2025
…nts registration (spring-projects#4028)

Adds 4 targeted test cases to strengthen runtime hints functionality across multiple components:

- ToolRuntimeHintsTests:

Null ClassLoader handling - Ensures tool hints registration doesn't fail when ClassLoader parameter is null (common in AOT processing)

- AiRuntimeHintsTests:

Record validation - Confirms records with @JsonProperty parameters are properly discovered for hint registration
Enum validation - Verifies enums with @JsonInclude annotations are correctly identified for reflection hints

- JdbcChatMemoryRepositoryRuntimeHintsTest:

Null ClassLoader robustness - Validates JDBC chat memory hints registration handles null ClassLoader gracefully
These tests prevent runtime failures in native images by ensuring proper discovery of JSON-annotated classes (records/enums), robust hint registration under various ClassLoader conditions, and reliable chat memory persistence in GraalVM environments.

Signed-off-by: Alex Klimenko <[email protected]>
scionaltera pushed a commit to scionaltera/spring-ai that referenced this pull request Sep 3, 2025
…nts registration (spring-projects#4028)

Adds 4 targeted test cases to strengthen runtime hints functionality across multiple components:

- ToolRuntimeHintsTests:

Null ClassLoader handling - Ensures tool hints registration doesn't fail when ClassLoader parameter is null (common in AOT processing)

- AiRuntimeHintsTests:

Record validation - Confirms records with @JsonProperty parameters are properly discovered for hint registration
Enum validation - Verifies enums with @JsonInclude annotations are correctly identified for reflection hints

- JdbcChatMemoryRepositoryRuntimeHintsTest:

Null ClassLoader robustness - Validates JDBC chat memory hints registration handles null ClassLoader gracefully
These tests prevent runtime failures in native images by ensuring proper discovery of JSON-annotated classes (records/enums), robust hint registration under various ClassLoader conditions, and reliable chat memory persistence in GraalVM environments.

Signed-off-by: Alex Klimenko <[email protected]>
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 2025
…nts registration (spring-projects#4028)

Adds 4 targeted test cases to strengthen runtime hints functionality across multiple components:

- ToolRuntimeHintsTests:

Null ClassLoader handling - Ensures tool hints registration doesn't fail when ClassLoader parameter is null (common in AOT processing)

- AiRuntimeHintsTests:

Record validation - Confirms records with @JsonProperty parameters are properly discovered for hint registration
Enum validation - Verifies enums with @JsonInclude annotations are correctly identified for reflection hints

- JdbcChatMemoryRepositoryRuntimeHintsTest:

Null ClassLoader robustness - Validates JDBC chat memory hints registration handles null ClassLoader gracefully
These tests prevent runtime failures in native images by ensuring proper discovery of JSON-annotated classes (records/enums), robust hint registration under various ClassLoader conditions, and reliable chat memory persistence in GraalVM environments.

Signed-off-by: Alex Klimenko <[email protected]>
Willam2004 pushed a commit to Willam2004/spring-ai that referenced this pull request Oct 11, 2025
…nts registration (spring-projects#4028)

Adds 4 targeted test cases to strengthen runtime hints functionality across multiple components:

- ToolRuntimeHintsTests:

Null ClassLoader handling - Ensures tool hints registration doesn't fail when ClassLoader parameter is null (common in AOT processing)

- AiRuntimeHintsTests:

Record validation - Confirms records with @JsonProperty parameters are properly discovered for hint registration
Enum validation - Verifies enums with @JsonInclude annotations are correctly identified for reflection hints

- JdbcChatMemoryRepositoryRuntimeHintsTest:

Null ClassLoader robustness - Validates JDBC chat memory hints registration handles null ClassLoader gracefully
These tests prevent runtime failures in native images by ensuring proper discovery of JSON-annotated classes (records/enums), robust hint registration under various ClassLoader conditions, and reliable chat memory persistence in GraalVM environments.

Signed-off-by: Alex Klimenko <[email protected]>
Signed-off-by: 家娃 <[email protected]>
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