Skip to content

chore: New task execution task id test #1352

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
merged 8 commits into from
May 28, 2025

Conversation

javier-aliaga
Copy link
Contributor

@javier-aliaga javier-aliaga commented May 13, 2025

Description

test how taskExecutionTaskId can be used for idempotency

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: #[issue number]

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

@javier-aliaga javier-aliaga changed the title [WIP] chore: New task execution task id test chore: New task execution task id test May 13, 2025
@javier-aliaga javier-aliaga marked this pull request as ready for review May 13, 2025 16:06
@javier-aliaga javier-aliaga requested review from a team as code owners May 13, 2025 16:06
@javier-aliaga javier-aliaga force-pushed the ja-task-idempotency-keys branch 2 times, most recently from ae29385 to 45872ef Compare May 15, 2025 16:14
Copy link
Contributor

@cicoyle cicoyle left a comment

Choose a reason for hiding this comment

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

Thanks for adding this feature! Mostly lgtm - mind adding a section or note about this somewhere in the daprdocs/?

Something as simple as saying use the ctx.getTaskExecutionKey() for xyz reasons will suffice.

Also, please ensure the header is added to every file

@javier-aliaga javier-aliaga reopened this May 20, 2025
@javier-aliaga javier-aliaga force-pushed the ja-task-idempotency-keys branch from 9de2450 to 97f8e2f Compare May 20, 2025 10:50
test how taskExecutionTaskId can be used for idempotency

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>
@javier-aliaga javier-aliaga force-pushed the ja-task-idempotency-keys branch from 97f8e2f to 3434802 Compare May 20, 2025 11:00
Signed-off-by: Javier Aliaga <[email protected]>
@javier-aliaga javier-aliaga force-pushed the ja-task-idempotency-keys branch from ec48fe4 to 90b11d6 Compare May 20, 2025 11:23
@javier-aliaga
Copy link
Contributor Author

Thanks for adding this feature! Mostly lgtm - mind adding a section or note about this somewhere in the daprdocs/?

Something as simple as saying use the ctx.getTaskExecutionKey() for xyz reasons will suffice.

Also, please ensure the header is added to every file

Done!

https://github.com/dapr/java-sdk/blob/ec48fe46bbadf1b44759c2a6167d8d5fb2afab88/daprdocs/content/en/java-sdk-docs/java-workflow/java-workflow-howto.md#advanced-features

Signed-off-by: Javier Aliaga <[email protected]>
@artur-ciocanu
Copy link
Contributor

@javier-aliaga would you have sometime to address the review comments so we could merge this one. Thank you!

Copy link
Contributor

@artur-ciocanu artur-ciocanu left a comment

Choose a reason for hiding this comment

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

@javier-aliaga this looks great! 🙇

@artur-ciocanu
Copy link
Contributor

@cicoyle if this looks good, could please re-approve. Thank you.

Copy link
Contributor

@siri-varma siri-varma left a comment

Choose a reason for hiding this comment

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

LGTM

@cicoyle cicoyle merged commit 949584f into dapr:master May 28, 2025
9 checks passed
Copy link

codecov bot commented May 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.17%. Comparing base (d759c53) to head (34715a9).
Report is 155 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1352      +/-   ##
============================================
+ Coverage     76.91%   78.17%   +1.26%     
- Complexity     1592     1832     +240     
============================================
  Files           145      223      +78     
  Lines          4843     5664     +821     
  Branches        562      601      +39     
============================================
+ Hits           3725     4428     +703     
- Misses          821      916      +95     
- Partials        297      320      +23     

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

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

javier-aliaga added a commit to javier-aliaga/java-sdk that referenced this pull request May 28, 2025
javier-aliaga added a commit to javier-aliaga/java-sdk that referenced this pull request May 28, 2025
cicoyle pushed a commit that referenced this pull request May 28, 2025
dapr-bot pushed a commit that referenced this pull request May 31, 2025
* adding remote endpoint request from inside activity with retry

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

* adding retry with Microcks payloads

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

* fixing review comments

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

* chore: New task execution task id test (#1352)

* chore: New task execution task id test

test how taskExecutionTaskId can be used for idempotency

Signed-off-by: Javier Aliaga <[email protected]>

* chore: Clean up not used files

Signed-off-by: Javier Aliaga <[email protected]>

* docs: Task execution keys

Signed-off-by: Javier Aliaga <[email protected]>

* test: Modify unit tests

Signed-off-by: Javier Aliaga <[email protected]>

* Remove new lines

Signed-off-by: artur-ciocanu <[email protected]>

---------

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Revert "chore: New task execution task id test (#1352)" (#1389)

This reverts commit 949584f.

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: salaboy <[email protected]>

* 1.5.5 (#1390)

Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Add Documentation for Conversation AI SDK (#1387)

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

* Cleanup Spring Dependencies (#1334)

* Update CONTRIBUTING.md

Signed-off-by: Siri Varma Vegiraju <[email protected]>

* Fix spring

Signed-off-by: siri-varma <[email protected]>

* Add context

Signed-off-by: siri-varma <[email protected]>

* Phase 1

Signed-off-by: siri-varma <[email protected]>

* Fix things

Signed-off-by: siri-varma <[email protected]>

* Fix things

Signed-off-by: siri-varma <[email protected]>

* Fix spring

Signed-off-by: siri-varma <[email protected]>

* Add context

Signed-off-by: siri-varma <[email protected]>

* Phase 1

Signed-off-by: siri-varma <[email protected]>

* Fix things

Signed-off-by: siri-varma <[email protected]>

* Fix things

Signed-off-by: siri-varma <[email protected]>

* move version

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

* Fix pom

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

* change version

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

* remove unused

Signed-off-by: siri-varma <[email protected]>

* Address comments

Signed-off-by: siri-varma <[email protected]>

* Fix test

Signed-off-by: siri-varma <[email protected]>

* Fix test

Signed-off-by: siri-varma <[email protected]>

* Fix things

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

---------

Signed-off-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: sirivarma <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* network is needed

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

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: sirivarma <[email protected]>
Co-authored-by: Javier Aliaga <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
javier-aliaga added a commit to javier-aliaga/java-sdk that referenced this pull request Jun 20, 2025
* chore: New task execution task id test

test how taskExecutionTaskId can be used for idempotency

Signed-off-by: Javier Aliaga <[email protected]>

* chore: Clean up not used files

Signed-off-by: Javier Aliaga <[email protected]>

* docs: Task execution keys

Signed-off-by: Javier Aliaga <[email protected]>

* test: Modify unit tests

Signed-off-by: Javier Aliaga <[email protected]>

* Remove new lines

Signed-off-by: artur-ciocanu <[email protected]>

---------

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>
javier-aliaga added a commit to javier-aliaga/java-sdk that referenced this pull request Jul 17, 2025
* chore: New task execution task id test

test how taskExecutionTaskId can be used for idempotency

Signed-off-by: Javier Aliaga <[email protected]>

* chore: Clean up not used files

Signed-off-by: Javier Aliaga <[email protected]>

* docs: Task execution keys

Signed-off-by: Javier Aliaga <[email protected]>

* test: Modify unit tests

Signed-off-by: Javier Aliaga <[email protected]>

* Remove new lines

Signed-off-by: artur-ciocanu <[email protected]>

---------

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>
javier-aliaga added a commit to javier-aliaga/java-sdk that referenced this pull request Jul 21, 2025
* chore: New task execution task id test

test how taskExecutionTaskId can be used for idempotency

Signed-off-by: Javier Aliaga <[email protected]>

* chore: Clean up not used files

Signed-off-by: Javier Aliaga <[email protected]>

* docs: Task execution keys

Signed-off-by: Javier Aliaga <[email protected]>

* test: Modify unit tests

Signed-off-by: Javier Aliaga <[email protected]>

* Remove new lines

Signed-off-by: artur-ciocanu <[email protected]>

---------

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>
siri-varma pushed a commit to siri-varma/java-sdk that referenced this pull request Aug 6, 2025
* chore: New task execution task id test

test how taskExecutionTaskId can be used for idempotency

Signed-off-by: Javier Aliaga <[email protected]>

* chore: Clean up not used files

Signed-off-by: Javier Aliaga <[email protected]>

* docs: Task execution keys

Signed-off-by: Javier Aliaga <[email protected]>

* test: Modify unit tests

Signed-off-by: Javier Aliaga <[email protected]>

* Remove new lines

Signed-off-by: artur-ciocanu <[email protected]>

---------

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: sirivarma <[email protected]>
siri-varma pushed a commit to siri-varma/java-sdk that referenced this pull request Aug 6, 2025
This reverts commit 949584f.

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: sirivarma <[email protected]>
siri-varma added a commit to siri-varma/java-sdk that referenced this pull request Aug 6, 2025
…1388)

* adding remote endpoint request from inside activity with retry

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

* adding retry with Microcks payloads

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

* fixing review comments

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

* chore: New task execution task id test (dapr#1352)

* chore: New task execution task id test

test how taskExecutionTaskId can be used for idempotency

Signed-off-by: Javier Aliaga <[email protected]>

* chore: Clean up not used files

Signed-off-by: Javier Aliaga <[email protected]>

* docs: Task execution keys

Signed-off-by: Javier Aliaga <[email protected]>

* test: Modify unit tests

Signed-off-by: Javier Aliaga <[email protected]>

* Remove new lines

Signed-off-by: artur-ciocanu <[email protected]>

---------

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Revert "chore: New task execution task id test (dapr#1352)" (dapr#1389)

This reverts commit 949584f.

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: salaboy <[email protected]>

* 1.5.5 (dapr#1390)

Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Add Documentation for Conversation AI SDK (dapr#1387)

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

* Cleanup Spring Dependencies (dapr#1334)

* Update CONTRIBUTING.md

Signed-off-by: Siri Varma Vegiraju <[email protected]>

* Fix spring

Signed-off-by: siri-varma <[email protected]>

* Add context

Signed-off-by: siri-varma <[email protected]>

* Phase 1

Signed-off-by: siri-varma <[email protected]>

* Fix things

Signed-off-by: siri-varma <[email protected]>

* Fix things

Signed-off-by: siri-varma <[email protected]>

* Fix spring

Signed-off-by: siri-varma <[email protected]>

* Add context

Signed-off-by: siri-varma <[email protected]>

* Phase 1

Signed-off-by: siri-varma <[email protected]>

* Fix things

Signed-off-by: siri-varma <[email protected]>

* Fix things

Signed-off-by: siri-varma <[email protected]>

* move version

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

* Fix pom

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

* change version

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

* remove unused

Signed-off-by: siri-varma <[email protected]>

* Address comments

Signed-off-by: siri-varma <[email protected]>

* Fix test

Signed-off-by: siri-varma <[email protected]>

* Fix test

Signed-off-by: siri-varma <[email protected]>

* Fix things

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

---------

Signed-off-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: sirivarma <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* network is needed

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

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: sirivarma <[email protected]>
Co-authored-by: Javier Aliaga <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: sirivarma <[email protected]>
javier-aliaga added a commit to javier-aliaga/java-sdk that referenced this pull request Aug 8, 2025
* chore: New task execution task id test

test how taskExecutionTaskId can be used for idempotency

Signed-off-by: Javier Aliaga <[email protected]>

* chore: Clean up not used files

Signed-off-by: Javier Aliaga <[email protected]>

* docs: Task execution keys

Signed-off-by: Javier Aliaga <[email protected]>

* test: Modify unit tests

Signed-off-by: Javier Aliaga <[email protected]>

* Remove new lines

Signed-off-by: artur-ciocanu <[email protected]>

---------

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: Javier Aliaga <[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.

4 participants