Skip to content

chore: Fix Durable tasks flaky tests#1653

Merged
siri-varma merged 6 commits into
dapr:masterfrom
javier-aliaga:fix-flaky-tests
Feb 13, 2026
Merged

chore: Fix Durable tasks flaky tests#1653
siri-varma merged 6 commits into
dapr:masterfrom
javier-aliaga:fix-flaky-tests

Conversation

@javier-aliaga

@javier-aliaga javier-aliaga commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Description

The test is checking for the difference in seconds, so when the minute is different the substraction is not working as expected and the test fails

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 marked this pull request as ready for review February 12, 2026 16:04
@javier-aliaga
javier-aliaga requested review from a team as code owners February 12, 2026 16:04
@javier-aliaga javier-aliaga changed the title chore: Fix waitForLoopEvent test chore: Fix Durable tasks flaky tests Feb 12, 2026
@javier-aliaga

Copy link
Copy Markdown
Contributor Author

@dapr/maintainers-java-sdk 🙏

@siri-varma siri-varma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great find. LGTM. Thank you Javier.

@siri-varma
siri-varma merged commit f283e3a into dapr:master Feb 13, 2026
17 of 22 checks passed
@codecov

codecov Bot commented Feb 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.21%. Comparing base (f660eb8) to head (a9515a5).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1653   +/-   ##
=========================================
  Coverage     79.21%   79.21%           
  Complexity     2141     2141           
=========================================
  Files           234      234           
  Lines          6456     6456           
  Branches        700      700           
=========================================
  Hits           5114     5114           
  Misses          990      990           
  Partials        352      352           

☔ 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 Feb 14, 2026
* chore: Fix waitForLoopEvent test

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

* fix: Code style

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

* chore: Fix singleTimer Test

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

* chore: Fix LoopWithTimer

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

* fix: longTimer test

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

---------

Signed-off-by: Javier Aliaga <[email protected]>
javier-aliaga added a commit to javier-aliaga/java-sdk that referenced this pull request Feb 14, 2026
* chore: Fix waitForLoopEvent test

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

* fix: Code style

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

* chore: Fix singleTimer Test

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

* chore: Fix LoopWithTimer

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

* fix: longTimer test

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

---------

Signed-off-by: Javier Aliaga <[email protected]>
salaboy added a commit that referenced this pull request Feb 16, 2026
* feat: Add workflow versioning (#1624)

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

* feat: Add new fields to conversation api (#1640)

* feat: Add new fields to conversation api

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

* chore: Modify conversation examples

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

---------

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

* feat: Add failure policy to actor reminders (#1643)

* feat: Add failure policy to actor reminders

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

* chore: Use jackson to serialize/deserialize FailurePolicies

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

---------

Signed-off-by: Javier Aliaga <[email protected]>
Co-authored-by: salaboy <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>

* Add PATCH constant to HttpExtension for service invocation (#1644)

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

* feat: Use dapr 1.17.0-rc.6 (#1651)

* feat: Use dapr 1.17.0-rc.6

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

* chore: Update pubsubIt to use resiliency policies

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

---------

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

* chore: Fix Durable tasks flaky tests (#1653)

* chore: Fix waitForLoopEvent test

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

* fix: Code style

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

* chore: Fix singleTimer Test

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

* chore: Fix LoopWithTimer

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

* fix: longTimer test

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

---------

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

* chore: Update testcontainers (#1654)

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

* Spring workflow versioning (#1646)

* feat: Spring workflow version support

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

* chore: Add workflow and activity annoations

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

* chore: Rename annotation

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

* chore: Fix spring boot examples

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

---------

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

* Adding spring boot 4.0.2 tests to the matrix (#1638)

* adding spring boot 4.0.2 tests to the matrix

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

* removing ignoring autoconfig for hibernate and datasource

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

* adding spring-data-6 and spring-boot-4-starters

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

* adding spring-boot-4-sdk-tests to split dependencies

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

* new profile for sb4

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

* Update master version to 1.18.0-SNAPSHOT

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

* feat: Add workflow versioning (#1624)

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

* feat: Add new fields to conversation api (#1640)

* feat: Add new fields to conversation api

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

* chore: Modify conversation examples

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

---------

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

* feat: Add failure policy to actor reminders (#1643)

* feat: Add failure policy to actor reminders

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

* chore: Use jackson to serialize/deserialize FailurePolicies

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

---------

Signed-off-by: Javier Aliaga <[email protected]>
Co-authored-by: salaboy <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: salaboy <[email protected]>

* updating version

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

* modifying integration tests steps for github workflow

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

* fixing workflow

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

* modified version on matrix

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

* modified values for matrix

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

* fix pom reference

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

* moving spring boot examples to integration tests

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

* removing code dependency between examples

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

* updating sb4 examples and deps

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

* Add PATCH constant to HttpExtension for service invocation (#1644)

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

* exclude spring6-data from java docs as it is not compatible with Spring Boot 3.x

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

* feat: Use dapr 1.17.0-rc.6 (#1651)

* feat: Use dapr 1.17.0-rc.6

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

* chore: Update pubsubIt to use resiliency policies

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

---------

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

* fixing classpath for javadocs aggregation

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

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Dapr Bot <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Co-authored-by: Javier Aliaga <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: Paul Lindner <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>

* chore: Update new pom.xml versions

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

* fix: pom version

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

---------

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: Dapr Bot <[email protected]>
Co-authored-by: salaboy <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: Paul Lindner <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
javier-aliaga added a commit to javier-aliaga/java-sdk that referenced this pull request Feb 20, 2026
* feat: Add workflow versioning (dapr#1624)

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

* feat: Add new fields to conversation api (dapr#1640)

* feat: Add new fields to conversation api

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

* chore: Modify conversation examples

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

---------

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

* feat: Add failure policy to actor reminders (dapr#1643)

* feat: Add failure policy to actor reminders

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

* chore: Use jackson to serialize/deserialize FailurePolicies

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

---------

Signed-off-by: Javier Aliaga <[email protected]>
Co-authored-by: salaboy <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>

* Add PATCH constant to HttpExtension for service invocation (dapr#1644)

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

* feat: Use dapr 1.17.0-rc.6 (dapr#1651)

* feat: Use dapr 1.17.0-rc.6

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

* chore: Update pubsubIt to use resiliency policies

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

---------

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

* chore: Fix Durable tasks flaky tests (dapr#1653)

* chore: Fix waitForLoopEvent test

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

* fix: Code style

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

* chore: Fix singleTimer Test

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

* chore: Fix LoopWithTimer

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

* fix: longTimer test

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

---------

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

* chore: Update testcontainers (dapr#1654)

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

* Spring workflow versioning (dapr#1646)

* feat: Spring workflow version support

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

* chore: Add workflow and activity annoations

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

* chore: Rename annotation

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

* chore: Fix spring boot examples

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

---------

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

* Adding spring boot 4.0.2 tests to the matrix (dapr#1638)

* adding spring boot 4.0.2 tests to the matrix

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

* removing ignoring autoconfig for hibernate and datasource

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

* adding spring-data-6 and spring-boot-4-starters

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

* adding spring-boot-4-sdk-tests to split dependencies

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

* new profile for sb4

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

* Update master version to 1.18.0-SNAPSHOT

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

* feat: Add workflow versioning (dapr#1624)

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

* feat: Add new fields to conversation api (dapr#1640)

* feat: Add new fields to conversation api

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

* chore: Modify conversation examples

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

---------

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

* feat: Add failure policy to actor reminders (dapr#1643)

* feat: Add failure policy to actor reminders

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

* chore: Use jackson to serialize/deserialize FailurePolicies

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

---------

Signed-off-by: Javier Aliaga <[email protected]>
Co-authored-by: salaboy <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: salaboy <[email protected]>

* updating version

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

* modifying integration tests steps for github workflow

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

* fixing workflow

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

* modified version on matrix

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

* modified values for matrix

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

* fix pom reference

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

* moving spring boot examples to integration tests

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

* removing code dependency between examples

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

* updating sb4 examples and deps

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

* Add PATCH constant to HttpExtension for service invocation (dapr#1644)

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

* exclude spring6-data from java docs as it is not compatible with Spring Boot 3.x

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

* feat: Use dapr 1.17.0-rc.6 (dapr#1651)

* feat: Use dapr 1.17.0-rc.6

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

* chore: Update pubsubIt to use resiliency policies

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

---------

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

* fixing classpath for javadocs aggregation

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

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Dapr Bot <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Co-authored-by: Javier Aliaga <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: Paul Lindner <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>

* chore: Update new pom.xml versions

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

* fix: pom version

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

---------

Signed-off-by: Javier Aliaga <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: Dapr Bot <[email protected]>
Co-authored-by: salaboy <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: Paul Lindner <[email protected]>
Co-authored-by: Dapr Bot <[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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants