Repository navigation
test(spring-boot): [Sample Tests 8] Move the Boot 3 cache, metrics and flag tests - #6294
Draft
runningcode wants to merge 2 commits into
Draft
runningcode wants to merge 2 commits into
runningcode wants to merge 2 commits into
Conversation
…sts into the module Ports the jakarta sample's CacheSystemTest, MetricsSystemTest and FeatureFlagSystemTest to the integrationTest suite. Feature flags use the OpenFeature SDK's InMemoryProvider instead of the sample's hand-written provider. The suite's Kotlin is compiled with parameter names, as the Spring Boot Gradle plugin does for apps; without them Spring can't resolve `#id` in a cache key. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Oct 20, 2026
📲 Install BuildsAndroid
|
This was referenced Oct 20, 2026
Draft
Draft
Draft
Draft
Draft
This was referenced Oct 20, 2026
Draft
Draft
Draft
Draft
…-cache-metrics-flags-test
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Stack (Sample Tests)
main)📜 Description
Ports the jakarta sample's
CacheSystemTest,MetricsSystemTestandFeatureFlagSystemTestto theintegrationTestsuite insentry-spring-boot-jakarta, and deletes them from the sample.@CachePut,@Cacheableand@CacheEvicton a Caffeine-backed cache producecache.put,cache.getandcache.evictspans.InMemoryProvider, replacing the sample's 150-line hand-written provider.The suite's Kotlin is now compiled with parameter names (
javaParameters), the same way the Spring Boot Gradle plugin compiles apps. Without them, Spring can't resolve#idin a cache key, and the cache requests fail with "Null key returned for cache operation".💡 Motivation and Context
This continues the Spring Boot 3 pilot.
CacheSystemTesthas 11 identical copies andMetricsSystemTesthas 14.sentry-openfeature:FeatureFlagSystemTestis the only coverage that module has anywhere.The suite's 21 tests run in about 5s.
💚 How did you test it?
:sentry-spring-boot-jakarta:checkpasses.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Still to port from the jakarta sample:
#skip-changelog