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 <javier@diagrid.io>
Signed-off-by: Javier Aliaga <javier@diagrid.io>
@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 <javier@diagrid.io>
@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 <javier@diagrid.io>
@artur-ciocanu
Copy link
Contributor

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

cicoyle and others added 2 commits May 22, 2025 16:56
Signed-off-by: artur-ciocanu <artur.ciocanu@gmail.com>
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
This reverts commit 949584f.

Signed-off-by: Javier Aliaga <javier@diagrid.io>
cicoyle pushed a commit that referenced this pull request May 28, 2025
This reverts commit 949584f.

Signed-off-by: Javier Aliaga <javier@diagrid.io>
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request May 29, 2025
* chore: New task execution task id test

test how taskExecutionTaskId can be used for idempotency

Signed-off-by: Javier Aliaga <javier@diagrid.io>

* chore: Clean up not used files

Signed-off-by: Javier Aliaga <javier@diagrid.io>

* docs: Task execution keys

Signed-off-by: Javier Aliaga <javier@diagrid.io>

* test: Modify unit tests

Signed-off-by: Javier Aliaga <javier@diagrid.io>

* Remove new lines

Signed-off-by: artur-ciocanu <artur.ciocanu@gmail.com>

---------

Signed-off-by: Javier Aliaga <javier@diagrid.io>
Signed-off-by: artur-ciocanu <artur.ciocanu@gmail.com>
Co-authored-by: Cassie Coyle <cassie.i.coyle@gmail.com>
Co-authored-by: artur-ciocanu <artur.ciocanu@gmail.com>
Signed-off-by: salaboy <Salaboy@gmail.com>
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request May 29, 2025
This reverts commit 949584f.

Signed-off-by: Javier Aliaga <javier@diagrid.io>
Signed-off-by: salaboy <Salaboy@gmail.com>
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 <Salaboy@gmail.com>

* adding retry with Microcks payloads

Signed-off-by: salaboy <Salaboy@gmail.com>

* fixing review comments

Signed-off-by: salaboy <Salaboy@gmail.com>

* 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 <javier@diagrid.io>

* chore: Clean up not used files

Signed-off-by: Javier Aliaga <javier@diagrid.io>

* docs: Task execution keys

Signed-off-by: Javier Aliaga <javier@diagrid.io>

* test: Modify unit tests

Signed-off-by: Javier Aliaga <javier@diagrid.io>

* Remove new lines

Signed-off-by: artur-ciocanu <artur.ciocanu@gmail.com>

---------

Signed-off-by: Javier Aliaga <javier@diagrid.io>
Signed-off-by: artur-ciocanu <artur.ciocanu@gmail.com>
Co-authored-by: Cassie Coyle <cassie.i.coyle@gmail.com>
Co-authored-by: artur-ciocanu <artur.ciocanu@gmail.com>
Signed-off-by: salaboy <Salaboy@gmail.com>

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

This reverts commit 949584f.

Signed-off-by: Javier Aliaga <javier@diagrid.io>
Signed-off-by: salaboy <Salaboy@gmail.com>

* 1.5.5 (#1390)

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Signed-off-by: salaboy <Salaboy@gmail.com>

* Add Documentation for Conversation AI SDK (#1387)

Signed-off-by: salaboy <Salaboy@gmail.com>

* Cleanup Spring Dependencies (#1334)

* Update CONTRIBUTING.md

Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>

* Fix spring

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Add context

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Phase 1

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Fix things

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Fix things

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Fix spring

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Add context

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Phase 1

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Fix things

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Fix things

Signed-off-by: siri-varma <siri.varma@outlook.com>

* move version

Signed-off-by: sirivarma <siri.varma@outlook.com>

* Fix pom

Signed-off-by: sirivarma <siri.varma@outlook.com>

* change version

Signed-off-by: sirivarma <siri.varma@outlook.com>

* remove unused

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Address comments

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Fix test

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Fix test

Signed-off-by: siri-varma <siri.varma@outlook.com>

* Fix things

Signed-off-by: sirivarma <siri.varma@outlook.com>

---------

Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
Signed-off-by: siri-varma <siri.varma@outlook.com>
Signed-off-by: sirivarma <siri.varma@outlook.com>
Co-authored-by: artur-ciocanu <artur.ciocanu@gmail.com>
Signed-off-by: salaboy <Salaboy@gmail.com>

* network is needed

Signed-off-by: salaboy <Salaboy@gmail.com>

---------

Signed-off-by: salaboy <Salaboy@gmail.com>
Signed-off-by: Javier Aliaga <javier@diagrid.io>
Signed-off-by: artur-ciocanu <artur.ciocanu@gmail.com>
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
Signed-off-by: siri-varma <siri.varma@outlook.com>
Signed-off-by: sirivarma <siri.varma@outlook.com>
Co-authored-by: Javier Aliaga <javier@diagrid.io>
Co-authored-by: Cassie Coyle <cassie.i.coyle@gmail.com>
Co-authored-by: artur-ciocanu <artur.ciocanu@gmail.com>
Co-authored-by: Siri Varma Vegiraju <siri.varma@outlook.com>
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 <javier@diagrid.io>

* chore: Clean up not used files

Signed-off-by: Javier Aliaga <javier@diagrid.io>

* docs: Task execution keys

Signed-off-by: Javier Aliaga <javier@diagrid.io>

* test: Modify unit tests

Signed-off-by: Javier Aliaga <javier@diagrid.io>

* Remove new lines

Signed-off-by: artur-ciocanu <artur.ciocanu@gmail.com>

---------

Signed-off-by: Javier Aliaga <javier@diagrid.io>
Signed-off-by: artur-ciocanu <artur.ciocanu@gmail.com>
Co-authored-by: Cassie Coyle <cassie.i.coyle@gmail.com>
Co-authored-by: artur-ciocanu <artur.ciocanu@gmail.com>
Signed-off-by: Javier Aliaga <javier@diagrid.io>
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