Skip to content

Conversation

mahendrabishnoi2
Copy link
Member

Fixes #7160

  • Modified testIDGenerator to have both low and high bits (in uint64 form) since we can't store 128 bits integer
  • start with high seed values (taken from sdk/trace: More trace id tests #7155)
  • validate both high and low 64 bits of trace id

Does not need a CHANGELOG entry - test only.

@mahendrabishnoi2 mahendrabishnoi2 marked this pull request as ready for review August 16, 2025 16:12
@mahendrabishnoi2
Copy link
Member Author

Reviewers, please add skip changelog label.

@pellared pellared added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Aug 18, 2025
@mahendrabishnoi2
Copy link
Member Author

This PR is ready for review.

Copy link

codecov bot commented Sep 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.5%. Comparing base (fef6ee5) to head (e87787e).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #7212     +/-   ##
=======================================
- Coverage   85.5%   85.5%   -0.1%     
=======================================
  Files        277     277             
  Lines      24654   24654             
=======================================
- Hits       21088   21086      -2     
- Misses      3187    3189      +2     
  Partials     379     379             

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@pellared pellared left a comment

Choose a reason for hiding this comment

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

Just nit comments regarding the names

Comment on lines +1934 to +1935
high uint64
low uint64
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
high uint64
low uint64
traceIDHigh uint64
traceIDLow uint64

Comment on lines +1959 to +1960
startHigh uint64 = 0x1001_1001_1001_1001
startLow uint64 = 0x2002_2002_2002_2002
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
startHigh uint64 = 0x1001_1001_1001_1001
startLow uint64 = 0x2002_2002_2002_2002
startTraceIDHigh uint64 = 0x1001_1001_1001_1001
startTraceIDLow uint64 = 0x2002_2002_2002_2002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test the high 64-bits of the trace ID for the ID generator
3 participants