Skip to content

Make the LGTM starter work in tests and warn about missing Dev Services properties - #57375

Open
omatheusmesmo wants to merge 1 commit into
quarkusio:mainfrom
omatheusmesmo:fix/observability-devservices-test-startup
Open

omatheusmesmo wants to merge 1 commit into
quarkusio:mainfrom
omatheusmesmo:fix/observability-devservices-test-startup

Conversation

@omatheusmesmo

Copy link
Copy Markdown
Contributor

Describe Changes

Since #54952, observability Dev Services are not started in test mode unless quarkus.observability.enabled-in-tests=true is set. The LGTM codestart still generates a SimpleTest that injects grafana.endpoint and otel-collector.url, which only the Dev Service provides, so a fresh starter failed to boot its own test.

The codestart now sets the property. For existing apps in the same situation, a warning naming the missing properties and the config to enable them is logged only when a required @ConfigProperty matches a property the Dev Services would provide, so apps that don't need LGTM see nothing.


…es properties

The generated SimpleTest injects grafana.endpoint and otel-collector.url,
which are only set when the LGTM Dev Service runs. Since Dev Services are
disabled in test mode by default, a fresh LGTM starter failed to boot its
own test.

The codestart now sets quarkus.observability.enabled-in-tests=true.
Applications that require a property provided by the observability Dev
Services in test mode, without defining it, now get a warning naming the
property and quarkus.observability.enabled-in-tests. Nothing is logged for
applications that do not need them.

* Fix quarkusio#56950

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
@quarkus-bot quarkus-bot Bot added the area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins label Oct 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[3.40] observability-devservices extension creates a starter app that doesn't pass tests

1 participant