Skip to content

Conversation

dd-octo-sts[bot]
Copy link
Contributor

@dd-octo-sts dd-octo-sts bot commented Oct 15, 2025

Automated activation of easy-win tests for java

[View nightly workflow run](https://github.com/DataDog/system-tests-dashboard/actions/runs/18516682402)

This commit was created from the local commit with hash d61ea40e66aaa9d6f613cbd4115d53508981be9d.
@dd-octo-sts dd-octo-sts bot requested review from a team as code owners October 15, 2025 08:42
@github-actions
Copy link
Contributor

CODEOWNERS have been resolved as:

manifests/java.yml                                                      @DataDog/asm-java @DataDog/apm-java

resteasy-netty3: incomplete_test_app (endpoint does not support fetching headers injected to downstream call)
spring-boot: v1.50.0
spring-boot-3-native: incomplete_test_app (endpoint does not support fetching headers injected to downstream call)
Test_Baggage_Headers_Malformed:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following baggage tests should not be enabled. They pass by chance, but as the comments say, the weblog applications are not configured properly to propagate HTTP Headers.

I see that this is auto-enabled. Is there a way to have an exclude list? This isn't the first time Baggage tests have been incorrectly enabled in a PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mhlidd,

It's a use case of negative assertion. The issue is not in the activation, but inside the : it test must not pass if it shouldn't. The reason is that, when the test will be activated, if for some unwanted reason, we broke the feature it in a way it get back to the state before its implementation, the test won't complain. So it's not achieving its goal.

We must add in those test an assertion that check the presence of something, either in the data sent by the tracer, or in the logs. Do you see any good candidate for that ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue here is with the make_distant_call of weblog applications not properly sending injected headers into the downstream request. Coincidentally, with malformed baggage headers, we expect no headers coming out in our assertions and the test will pass by chance. This explains why the malformed tests XPass, but the basic test fails.

We do have debug logs for the malformed header scenarios, but the log messages are Java specific. Do you think this is something worth including as an edge case for Java here? (We would have to include DD_TRACE_DEBUG=true as part of the env for this test scenario for this to work).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants