Skip to content
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

Add determinstic UUID generation #947

Merged
merged 5 commits into from
Nov 14, 2023

Conversation

kaibocai
Copy link
Contributor

@kaibocai kaibocai commented Nov 3, 2023

Description

This PR add logic to generated a determinstic UUID to for workflow.

    UUID uuid = context.newUuid();

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #931

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@kaibocai kaibocai requested review from a team as code owners November 3, 2023 13:49
@kaibocai kaibocai changed the title add determinstic UUID generation Add determinstic UUID generation Nov 3, 2023
artursouza
artursouza previously approved these changes Nov 3, 2023
@kaibocai
Copy link
Contributor Author

kaibocai commented Nov 6, 2023

Hi @cicoyle , would you mind helping me to rerun the CI, I added one more test to improve the coverage.
Also, is there a way to gain permission to run the CI by myself? I read the CONTRIBUTING.md but didn't find anything about it. Thanks.

@cicoyle
Copy link
Contributor

cicoyle commented Nov 6, 2023

Hi @cicoyle , would you mind helping me to rerun the CI, I added one more test to improve the coverage. Also, is there a way to gain permission to run the CI by myself? I read the CONTRIBUTING.md but didn't find anything about it. Thanks.

Hey @kaibocai, the Java-sdk maintainers are the only ones able to run CI and my understanding is that there is flakiness. However, I can ping Artur for re-running CI. I believe he won't merge this until there is a PR updating the example

@kaibocai kaibocai mentioned this pull request Nov 8, 2023
3 tasks
@artursouza artursouza self-assigned this Nov 13, 2023
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1bd2c22) 76.58% compared to head (c767969) 76.59%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #947      +/-   ##
============================================
+ Coverage     76.58%   76.59%   +0.01%     
- Complexity     1465     1467       +2     
============================================
  Files           137      137              
  Lines          4468     4470       +2     
  Branches        526      526              
============================================
+ Hits           3422     3424       +2     
  Misses          761      761              
  Partials        285      285              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@artursouza artursouza merged commit 4c63abd into dapr:master Nov 14, 2023
13 of 17 checks passed
addjuarez pushed a commit to addjuarez/java-sdk that referenced this pull request Nov 27, 2023
* add determinstic UUID generation

Signed-off-by: kaibocai <[email protected]>

* add unit test to improve coverage

Signed-off-by: kaibocai <[email protected]>

* update grpc version to 1.59.0 to be compatible updated durabletask-java

Signed-off-by: kaibocai <[email protected]>

---------

Signed-off-by: kaibocai <[email protected]>
Signed-off-by: kaibocai <[email protected]>
Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: addjuarez <[email protected]>
artursouza added a commit that referenced this pull request Feb 16, 2024
* Show registered workflow

Signed-off-by: addjuarez <[email protected]>

* Add `NewWorkflowOption` to config version, time, input, etc when start a new workflow (#945)

* add NewWorkflowOption

Signed-off-by: kaibocai <[email protected]>

* fix style

Signed-off-by: kaibocai <[email protected]>

* add unit test

Signed-off-by: kaibocai <[email protected]>

* add more unit tests for improving coverage

Signed-off-by: kaibocai <[email protected]>

---------

Signed-off-by: kaibocai <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* Update CLI link in example readme's (#951)

* Updated pre-requisite link to Dapr CLI

Signed-off-by: Michaël Hompus <[email protected]>

* Update JDK list to match all other examples

Signed-off-by: Michaël Hompus <[email protected]>

---------

Signed-off-by: Michaël Hompus <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* remove static

Signed-off-by: addjuarez <[email protected]>

* Add determinstic UUID generation (#947)

* add determinstic UUID generation

Signed-off-by: kaibocai <[email protected]>

* add unit test to improve coverage

Signed-off-by: kaibocai <[email protected]>

* update grpc version to 1.59.0 to be compatible updated durabletask-java

Signed-off-by: kaibocai <[email protected]>

---------

Signed-off-by: kaibocai <[email protected]>
Signed-off-by: kaibocai <[email protected]>
Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* fix flaky integration test ActorExceptionIT (#954)

Signed-off-by: MregXN <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* fix flaky it ActorReminderRecovery (#958)

Signed-off-by: MregXN <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* fix flaky integration test MethodInvokeIT (#959)

* fix flaky it MethodInvokeIT

Signed-off-by: MregXN <[email protected]>

* add debug print

Signed-off-by: MregXN <[email protected]>

* add debug print

Signed-off-by: MregXN <[email protected]>

* add more waiting time

Signed-off-by: MregXN <[email protected]>

* wait before invoke

Signed-off-by: MregXN <[email protected]>

* wait for health before invoke

Signed-off-by: MregXN <[email protected]>

---------

Signed-off-by: MregXN <[email protected]>
Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* Fix errors

Signed-off-by: addjuarez <[email protected]>

* make thead safe

* Fix code and test.

Signed-off-by: Artur Souza <[email protected]>

---------

Signed-off-by: addjuarez <[email protected]>
Signed-off-by: kaibocai <[email protected]>
Signed-off-by: Michaël Hompus <[email protected]>
Signed-off-by: kaibocai <[email protected]>
Signed-off-by: MregXN <[email protected]>
Signed-off-by: Artur Souza <[email protected]>
Signed-off-by: Artur Souza <[email protected]>
Co-authored-by: kaibocai <[email protected]>
Co-authored-by: Michaël Hompus <[email protected]>
Co-authored-by: Artur Souza <[email protected]>
Co-authored-by: MregXN <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Co-authored-by: Mukundan Sundararajan <[email protected]>
Co-authored-by: Artur Souza <[email protected]>
artursouza added a commit to artursouza/java-sdk that referenced this pull request Feb 19, 2024
* Show registered workflow

Signed-off-by: addjuarez <[email protected]>

* Add `NewWorkflowOption` to config version, time, input, etc when start a new workflow (dapr#945)

* add NewWorkflowOption

Signed-off-by: kaibocai <[email protected]>

* fix style

Signed-off-by: kaibocai <[email protected]>

* add unit test

Signed-off-by: kaibocai <[email protected]>

* add more unit tests for improving coverage

Signed-off-by: kaibocai <[email protected]>

---------

Signed-off-by: kaibocai <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* Update CLI link in example readme's (dapr#951)

* Updated pre-requisite link to Dapr CLI

Signed-off-by: Michaël Hompus <[email protected]>

* Update JDK list to match all other examples

Signed-off-by: Michaël Hompus <[email protected]>

---------

Signed-off-by: Michaël Hompus <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* remove static

Signed-off-by: addjuarez <[email protected]>

* Add determinstic UUID generation (dapr#947)

* add determinstic UUID generation

Signed-off-by: kaibocai <[email protected]>

* add unit test to improve coverage

Signed-off-by: kaibocai <[email protected]>

* update grpc version to 1.59.0 to be compatible updated durabletask-java

Signed-off-by: kaibocai <[email protected]>

---------

Signed-off-by: kaibocai <[email protected]>
Signed-off-by: kaibocai <[email protected]>
Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* fix flaky integration test ActorExceptionIT (dapr#954)

Signed-off-by: MregXN <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* fix flaky it ActorReminderRecovery (dapr#958)

Signed-off-by: MregXN <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* fix flaky integration test MethodInvokeIT (dapr#959)

* fix flaky it MethodInvokeIT

Signed-off-by: MregXN <[email protected]>

* add debug print

Signed-off-by: MregXN <[email protected]>

* add debug print

Signed-off-by: MregXN <[email protected]>

* add more waiting time

Signed-off-by: MregXN <[email protected]>

* wait before invoke

Signed-off-by: MregXN <[email protected]>

* wait for health before invoke

Signed-off-by: MregXN <[email protected]>

---------

Signed-off-by: MregXN <[email protected]>
Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: addjuarez <[email protected]>

* Fix errors

Signed-off-by: addjuarez <[email protected]>

* make thead safe

* Fix code and test.

Signed-off-by: Artur Souza <[email protected]>

---------

Signed-off-by: addjuarez <[email protected]>
Signed-off-by: kaibocai <[email protected]>
Signed-off-by: Michaël Hompus <[email protected]>
Signed-off-by: kaibocai <[email protected]>
Signed-off-by: MregXN <[email protected]>
Signed-off-by: Artur Souza <[email protected]>
Signed-off-by: Artur Souza <[email protected]>
Co-authored-by: kaibocai <[email protected]>
Co-authored-by: Michaël Hompus <[email protected]>
Co-authored-by: Artur Souza <[email protected]>
Co-authored-by: MregXN <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Co-authored-by: Mukundan Sundararajan <[email protected]>
Co-authored-by: Artur Souza <[email protected]>
artursouza added a commit that referenced this pull request Feb 19, 2024
* Show registered workflow



* Add `NewWorkflowOption` to config version, time, input, etc when start a new workflow (#945)

* add NewWorkflowOption



* fix style



* add unit test



* add more unit tests for improving coverage



---------




* Update CLI link in example readme's (#951)

* Updated pre-requisite link to Dapr CLI



* Update JDK list to match all other examples



---------




* remove static



* Add determinstic UUID generation (#947)

* add determinstic UUID generation



* add unit test to improve coverage



* update grpc version to 1.59.0 to be compatible updated durabletask-java



---------






* fix flaky integration test ActorExceptionIT (#954)




* fix flaky it ActorReminderRecovery (#958)




* fix flaky integration test MethodInvokeIT (#959)

* fix flaky it MethodInvokeIT



* add debug print



* add debug print



* add more waiting time



* wait before invoke



* wait for health before invoke



---------





* Fix errors



* make thead safe

* Fix code and test.



---------

Signed-off-by: addjuarez <[email protected]>
Signed-off-by: kaibocai <[email protected]>
Signed-off-by: Michaël Hompus <[email protected]>
Signed-off-by: kaibocai <[email protected]>
Signed-off-by: MregXN <[email protected]>
Signed-off-by: Artur Souza <[email protected]>
Signed-off-by: Artur Souza <[email protected]>
Co-authored-by: addjuarez <[email protected]>
Co-authored-by: kaibocai <[email protected]>
Co-authored-by: Michaël Hompus <[email protected]>
Co-authored-by: MregXN <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Co-authored-by: Mukundan Sundararajan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide getGuid() method in java workflow SDK
3 participants