Skip to content

Users/sveigraju/fix integ tests 2#1754

Draft
siri-varma wants to merge 16 commits into
dapr:masterfrom
siri-varma:users/sveigraju/fix-integ-tests-2
Draft

Users/sveigraju/fix integ tests 2#1754
siri-varma wants to merge 16 commits into
dapr:masterfrom
siri-varma:users/sveigraju/fix-integ-tests-2

Conversation

@siri-varma
Copy link
Copy Markdown
Contributor

Description

Please explain the changes you've made

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

siri-varma and others added 16 commits May 25, 2026 09:38
Port the BookTrip compensation (Saga) workflow from the plain Java
examples into the Spring Boot workflow patterns module, adding
@Component-annotated activities and a /wfp/compensation REST endpoint.

Signed-off-by: Siri Varma Vegiraju <svegiraju@Siris-MacBook-Pro.local>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
Signed-off-by: Siri Varma Vegiraju <s_vegiraju@apple.com>
Spec for migrating 13 sdk-tests integration tests from the dapr-run
based BaseIT/DaprRun/AppRun harness to Testcontainers via DaprContainer.
Captures architecture, startup ordering, per-IT plan, CI changes, and
the 8 non-migrated ITs that stay on DaprRun.


Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
- Move ActorStateIT out of migration list (it's a sidecar-restart test).
  Migration count: 12 logical ITs / 13 files (9 non-migrated).
- Add D9: per-class @BeforeAll lifecycle for all migrated ITs, with
  TracingIT mitigation (per-test trace IDs).
- Add D10: each migrated IT subclass owns its own static DaprContainer
  + AppRun fields; BaseContainerIT provides helpers only, no fields.
- Reconcile IT counts throughout (12 logical, 13 files migrated,
  9 non-migrated, 22 total).


Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
19-task plan covering: SharedTestInfra + BaseContainerIT foundation,
AppRun port-override overload, 13 IT migrations (5 easy + 4 actor +
2 method-invoke + 2 tracing), CI compose-up trim, and push/observe.


Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
- Define final startAppAndAttach signature (returning DaprAndApp record)
  directly in Task 3 instead of refactoring it in Task 9.
- Drop the startApp tombstone that threw UnsupportedOperationException.
- Drop the unused newActorClient(dapr, ResiliencyOptions) overload — no
  migrated actor IT calls it (ActorSdkResiliencyIT is non-migrated).
- Fix Task 15's Configuration constructor: it takes 3 args (name,
  tracing, appHttpPipeline); pass null for the last.


Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
Provides a JVM-wide Network and lazy Redis container shared across all
migrated integration tests. Uses withReuse(true) for dev-loop speed.


Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
Lets BaseContainerIT point the spawned app subprocess at a Testcontainer
DaprContainer's mapped HTTP/gRPC ports. Existing callers untouched.


Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
- Add Apache 2.0 license header to new files (matches package convention).
- Change AppRun's new constructor overrides from Integer to int to remove
  NPE risk on a package-private API.


Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
BaseContainerIT lives in io.dapr.it.containers and Java packages are not
hierarchical, so the constructor needs public visibility to be callable
from the sub-package. Caught during Task 3 implementation.


Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
Provides daprBuilder, startAppAndAttach (returning DaprAndApp record),
newDaprClient(dapr), Component factories, and @afterall cleanup. Each
subclass owns its own static DaprContainer + AppRun fields (D10 from
the spec).

Smoke test boots a no-component DaprContainer to verify the helper
plumbing end-to-end.


Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
Document the single-thread JUnit lifecycle assumption on the cleanup
deques, clarify withReusablePlacement vs SharedTestInfra's withReuse,
and distinguish the two deferStop overloads.


Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
@siri-varma siri-varma force-pushed the users/sveigraju/fix-integ-tests-2 branch from dc20276 to 280c572 Compare May 25, 2026 16:40
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

❌ Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.89%. Comparing base (e3faa11) to head (280c572).

Files with missing lines Patch % Lines
sdk/src/main/java/io/dapr/client/Subscription.java 70.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1754      +/-   ##
============================================
+ Coverage     76.87%   76.89%   +0.01%     
- Complexity     2292     2294       +2     
============================================
  Files           243      243              
  Lines          7117     7127      +10     
  Branches        745      747       +2     
============================================
+ Hits           5471     5480       +9     
- Misses         1280     1282       +2     
+ Partials        366      365       -1     

☔ 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.

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.

1 participant