test(java): enable ot.th/ot.rv tracestate sampling scenarios [java@milan.garnier/ot.th] - #7649
test(java): enable ot.th/ot.rv tracestate sampling scenarios [java@milan.garnier/ot.th]#7649MilanGarnier wants to merge 3 commits into
Conversation
|
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c37b3ecbef
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| - declaration: missing_feature (OTel resource naming implemented in 1.24.0) | ||
| component_version: <=1.23.0 | ||
| tests/parametric/test_otel_tracestate_sampling.py::Test_OtelTracestateSampling: missing_feature (APMAPI-2171) | ||
| tests/parametric/test_otel_tracestate_sampling.py::Test_OtelTracestateSampling: v1.67.0 |
There was a problem hiding this comment.
Include the 1.67.0 snapshot builds in the activation range
When CI runs these tests against the Java 1.67 development/PR build, whose version is reported as 1.67.0-SNAPSHOT~<sha>, this v1.67.0 condition does not match because the snapshot is semantically earlier than the stable 1.67.0 release (the Java normalization behavior is covered in tests/test_the_test/test_version.py:170-173). Consequently, the parametric suite and all ten similarly changed end-to-end classes remain skipped while validating the implementation branch; use a snapshot-inclusive lower bound such as v1.67.0-SNAPSHOT. .cursor/rules/test-activation.mdcL159-L164
Useful? React with 👍 / 👎.
| tests/test_otel_tracestate_sampling.py::Test_ThOnlyDoesNotFabricateRv: missing_feature (APMAPI-2171) | ||
| tests/test_otel_tracestate_sampling.py::Test_ThOnlyDoesNotFabricateRvWhenDropped: missing_feature (APMAPI-2171) | ||
| tests/test_otel_tracestate_sampling.py::Test_EmitOtOnProbabilityDecision_Rate0_5: v1.67.0 | ||
| tests/test_otel_tracestate_sampling.py::Test_ForceKeepClearsTh: v1.67.0 |
There was a problem hiding this comment.
Preserve incomplete-app skips for unsupported weblogs
When Test_ForceKeepClearsTh runs on akka-http, jersey-grizzly2, ratpack, resteasy-netty3, or spring-boot-3-native, its inherited-rv assertions cannot pass because the class reads injected downstream headers from /trace/manual_keep_drop (tests/test_otel_tracestate_sampling.py:338-376), while the existing declaration at manifests/java.yml:4904-4910 explicitly records that this endpoint cannot report those headers on these five weblogs. Activating the class unconditionally therefore turns a known test-app limitation into failures once the version gate matches; retain weblog-specific incomplete_test_app declarations for these variants. .cursor/rules/test-activation.mdcL22-L31
Useful? React with 👍 / 👎.
Motivation
Enable the shared OpenTelemetry consistent tracestate sampling coverage for Java once dd-trace-java#12397 is available.
Changes