Skip to content

[java] re-enable Test_Knuth_Sample_Rate for >=1.61.1#6711

Merged
bm1549 merged 2 commits intomainfrom
brian.marks/fix-ksr-java-manifest
Apr 9, 2026
Merged

[java] re-enable Test_Knuth_Sample_Rate for >=1.61.1#6711
bm1549 merged 2 commits intomainfrom
brian.marks/fix-ksr-java-manifest

Conversation

@bm1549
Copy link
Copy Markdown
Contributor

@bm1549 bm1549 commented Apr 9, 2026

Motivation

The _dd.p.ksr formatting bug (APMAPI-1880) was fixed in dd-trace-java via DataDog/dd-trace-java#11068. The fix ships in v1.61.1 (if done) or v1.62.0

Changes

Removes the bug (APMAPI-1880) override on test_sampling_knuth_sample_rate_trace_sampling_rule and replaces it with >=1.61.1 so the test runs against fixed releases.

# before
test_sampling_knuth_sample_rate_trace_sampling_rule: bug (APMAPI-1880)
# after
test_sampling_knuth_sample_rate_trace_sampling_rule: '>=1.61.1'

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • Anything but tests/ or manifests/ is modified ? I have the approval from R&P team
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added, removed or renamed?

The _dd.p.ksr formatting bug (APMAPI-1880) was fixed in dd-trace-java
by switching from 6 significant figures to 6 decimal places. The fix
will ship in v1.61.1.

Removes the `bug (APMAPI-1880)` override and sets the minimum version
to >=1.61.1 so the test runs against fixed releases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

CODEOWNERS have been resolved as:

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

@bm1549 bm1549 changed the title fix(java): re-enable Test_Knuth_Sample_Rate for >=1.61.1 [java] re-enable Test_Knuth_Sample_Rate for >=1.61.1 Apr 9, 2026
@datadog-prod-us1-4
Copy link
Copy Markdown

datadog-prod-us1-4 bot commented Apr 9, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 5924ad4 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

@bm1549 bm1549 marked this pull request as ready for review April 9, 2026 15:43
@bm1549 bm1549 requested review from a team as code owners April 9, 2026 15:43
@bm1549 bm1549 enabled auto-merge (squash) April 9, 2026 16:20
Copy link
Copy Markdown
Contributor

@mhlidd mhlidd left a comment

Choose a reason for hiding this comment

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

Isn't this the same as just leaving v1.61.1

@bm1549 bm1549 merged commit c56273a into main Apr 9, 2026
78 checks passed
@bm1549 bm1549 deleted the brian.marks/fix-ksr-java-manifest branch April 9, 2026 16:46
@bm1549
Copy link
Copy Markdown
Contributor Author

bm1549 commented Apr 9, 2026

Isn't this the same as just leaving v1.61.1

Yeah. This is following other conventions though, so probably okay for this!

@BridgeAR
Copy link
Copy Markdown
Member

This seems to cause the test to consistently fail: e.g., https://github.com/DataDog/system-tests/actions/runs/24565965626/job/71826446518

@bm1549
Copy link
Copy Markdown
Contributor Author

bm1549 commented Apr 17, 2026

@BridgeAR it looks like there was a patch release I didn't know about and my PR didn't make it on that trainhttps://github.com/DataDog/dd-trace-java/pull/11068

@bm1549
Copy link
Copy Markdown
Contributor Author

bm1549 commented Apr 17, 2026

@BridgeAR opened up #6767 which should fix it

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.

3 participants