Skip to content

[UT] Add tests for C++ ThreadLocalUUIDGenerator #59267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

dolfinus
Copy link
Contributor

@dolfinus dolfinus commented May 22, 2025

Why I'm doing:

Before changing behavior of ThreadLocalUUIDGenerator in #59107, added some minimal tests.

What I'm doing:

Added tests for ThreadLocalUUIDGenerator C++ class, checking UUID uniqueness and thread-safety.

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.5
    • 3.4
    • 3.3
    • 3.2
    • 3.1

@dolfinus dolfinus marked this pull request as ready for review May 22, 2025 17:39
@dolfinus dolfinus force-pushed the refactor/cpp-uuidgenerator-tests branch 2 times, most recently from c8066e2 to 02c2a45 Compare May 22, 2025 17:43
@dolfinus
Copy link
Contributor Author

Is there any docker image with environment for BE unit tests? I've tried to run UT on local machine, but I got compile errors for different libraries, and this is quite frustrating...

@alvin-celerdata
Copy link
Contributor

Is there any docker image with environment for BE unit tests? I've tried to run UT on local machine, but I got compile errors for different libraries, and this is quite frustrating...

Have you tried this docker image?

@dolfinus dolfinus force-pushed the refactor/cpp-uuidgenerator-tests branch 2 times, most recently from 38746ed to 53da1b8 Compare May 23, 2025 07:32
@dolfinus dolfinus force-pushed the refactor/cpp-uuidgenerator-tests branch 2 times, most recently from d0ddfe8 to eea8458 Compare May 23, 2025 20:02
@dolfinus dolfinus force-pushed the refactor/cpp-uuidgenerator-tests branch from eea8458 to 7d941cd Compare May 23, 2025 20:08
Copy link

[FE Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

[Java-Extensions Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

[BE Incremental Coverage Report]

pass : 0 / 0 (0%)

@alvin-celerdata alvin-celerdata merged commit f3b7fca into StarRocks:main May 24, 2025
48 checks passed
@dolfinus dolfinus deleted the refactor/cpp-uuidgenerator-tests branch May 24, 2025 16:36
AntiTopQuark pushed a commit to AntiTopQuark/starrocks that referenced this pull request Jun 19, 2025
Why I'm doing:
Before changing behavior of ThreadLocalUUIDGenerator in StarRocks#59107, added some minimal tests.

What I'm doing:
Added tests for ThreadLocalUUIDGenerator C++ class, checking UUID uniqueness and thread-safety.

Signed-off-by: Martynov Maxim <[email protected]>
Signed-off-by: AntiTopQuark <[email protected]>
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