test: run Spring smoke tests against shaded artifact - #2385
Open
zeitlinger wants to merge 8 commits into
Open
Conversation
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
zeitlinger
marked this pull request as ready for review
August 18, 2026 08:11
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
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.
Summary
target/classes.mise/envs/*as mise monorepo projects and invoke the native task directlyMISE_MONOREPO_ROOTRoot cause
The smoke test previously ran with Surefire during the test phase. Maven therefore used the
exposition module's unshaded
target/classes. The generated Protobuf 4.35.1 classes then loadedagainst Spring Boot's managed Protobuf 4.34.2 runtime and failed the runtime compatibility check.
Moving this consumer-style smoke test to Failsafe runs it after packaging, when Maven resolves the
shaded artifact that users receive. This avoids an artificial reactor-only version conflict without
overriding Spring Boot's Protobuf version.
The native test task still invokes the Maven
testphase because GraalVM Native Test consumesSurefire's test configuration. It now selects
ApplicationITexplicitly; an inline comment recordswhy that exception is necessary. The workflow invokes it as
mise //.mise/envs/native:native-testfrom the repository root.Impact
There is no production code or published dependency change. The smoke test now more accurately
represents a Spring Boot application consuming the packaged client library.
Validation
mainmise run lint:fix./mvnw verify -pl integration-tests/it-spring-boot-smoke-test -am -Dcoverage.skip=true -Dwarnings=-nowarnmise run buildmise run --skip-deps //.mise/envs/native:native-test -- -DskipTestslinking could not run because the local environment does not provide the static zlib artifact