-
Notifications
You must be signed in to change notification settings - Fork 228
Fix Flaky Integration Tests + Migrate some tests to Test Containers #1754
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
siri-varma
merged 70 commits into
dapr:master
from
siri-varma:users/sveigraju/fix-integ-tests-2
Jul 9, 2026
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
1648786
feat: Add compensation workflow pattern to Spring Boot examples
siri-varma 5be1ad4
Apply suggestions from code review
siri-varma b14417c
Refactor BookTripWorkflow to use CompensationHelper
siri-varma 1c512d1
Add CompensationHelper class for managing compensations
siri-varma 1b54fef
Await cancellation activities in BookTripWorkflow
siri-varma 2dfc129
fix things
siri-varma b14ed63
Add design doc: migrate sdk-tests ITs to Testcontainers
siri-varma 68a57d2
Refine Testcontainers migration spec after review
siri-varma 9ab7e7f
Add implementation plan for sdk-tests Testcontainers migration
siri-varma 82df73d
Address plan-review feedback: simplify Task 3, fix Configuration ctor
siri-varma 37cf022
Add SharedTestInfra singleton for Redis container
siri-varma a85b4e7
Add AppRun constructor overload for explicit Dapr port overrides
siri-varma 5acc1d1
Address review feedback for Task 1 + Task 2
siri-varma 88f0f8d
Make AppRun's 6-arg constructor public
siri-varma a20bbba
Add BaseContainerIT helpers + smoke test
siri-varma fd9ee1f
Polish BaseContainerIT doc comments per review
siri-varma 37417bc
Migrate SecretsClientIT to Testcontainers
siri-varma a542ebd
Use Map.of for SecretsClientIT payload helper
siri-varma 334e8ed
Migrate ApiIT to Testcontainers
siri-varma 18ef3e3
Migrate ConfigurationClientIT to Testcontainers
siri-varma d866772
Migrate state client ITs to Testcontainers
siri-varma f4f0d1d
Add Zipkin container to SharedTestInfra
siri-varma e4c8548
Migrate ActorExceptionIT to Testcontainers
siri-varma 40fe2ab
Migrate ActivationDeactivationIT to Testcontainers
siri-varma 742b9c2
Migrate ActorTurnBasedConcurrencyIT to Testcontainers
siri-varma ff1defa
Migrate ActorMethodNameIT to Testcontainers
siri-varma 6d52baf
Migrate MethodInvokeIT (http) to Testcontainers
siri-varma dc5b8c7
Migrate MethodInvokeIT (grpc) to Testcontainers
siri-varma 7f10f03
Migrate TracingIT (http) to Testcontainers
siri-varma 1064c27
Migrate TracingIT (grpc) to Testcontainers
siri-varma 0bdd062
CI: drop Mongo from local-test.yml + compose-up step
siri-varma 34570a8
fix things
siri-varma c5115d3
Fix things
siri-varma 7094dac
Fix two CI failures in BaseContainerIT
siri-varma 6a17cd1
Fix CI: bypass legacy daprd-stdout success-message check
siri-varma 11b3e18
Fix CI: add wait helpers + secrets metadata
siri-varma 94cf31e
Diagnostic: stream daprd logs + DEBUG level
siri-varma ca41559
Reorder: expose host ports AFTER dapr.start()
siri-varma 8e47d7f
Add session handoff doc for Testcontainers migration
siri-varma 5990068
Fix actor IT timeouts: start AppRun before DaprContainer
siri-varma 2d17796
Fix remaining IT failures: pin daprd ports + correct tracing span names
siri-varma b82a550
Delete .claude/worktrees directory
siri-varma 0b25419
Delete docs/superpowers/notes/2026-05-25-migration-handoff.md
siri-varma 79d2d7e
Delete docs/superpowers/plans/2026-05-25-sdk-tests-testcontainers-mig…
siri-varma 236d2a1
Delete docs/superpowers/specs/2026-05-25-sdk-tests-testcontainers-mig…
siri-varma a7fdcda
Re-enable Mongo query state IT via Testcontainers
siri-varma 52ba75f
Subscription: prevent backoff overflow + interrupt receiver on close
siri-varma 783a77d
Subscription: simplify backoff to a doubled long, no bit-shift
siri-varma 8444aa1
Restore DLQ coverage in migrated DaprPubSubStreamIT
siri-varma 0145946
Pin Zipkin testcontainer to 3.4 instead of latest
siri-varma d62e20d
Fix comment formatting in CODEOWNERS file
siri-varma 5e09ffb
Update CODEOWNERS
siri-varma 7204e81
Restore parity for two legacy ITs deleted earlier
siri-varma 8f54fce
Fix two newly-added parity tests after first CI run
siri-varma 39fc821
Move secret.json out of dapr components dir
siri-varma 492f743
Fix ClassCastException in testPubSubBulkSubscribe
siri-varma 129b5c2
fix things
siri-varma f1efe9f
Switch BindingIT's 404 fixture URL from GitHub to httpbin
siri-varma 3e60255
Revert "Switch BindingIT's 404 fixture URL from GitHub to httpbin"
siri-varma f212920
Merge branch 'master' into users/sveigraju/fix-integ-tests-2
siri-varma de4a0dd
Merge branch 'master' into users/sveigraju/fix-integ-tests-2
siri-varma 1df78a0
Merge branch 'master' into users/sveigraju/fix-integ-tests-2
siri-varma c865376
Merge branch 'master' into users/sveigraju/fix-integ-tests-2
siri-varma 63e6b3b
Merge branch 'master' into users/sveigraju/fix-integ-tests-2
siri-varma 5e4f2a6
Merge branch 'master' into users/sveigraju/fix-integ-tests-2
siri-varma ed8b398
Subscription: reset backoff after healthy stream + don't tear down st…
siri-varma 731f319
Revert Subscription.java to master version
siri-varma aa9238d
Re-apply Subscription backoff reset + listener-only per-event error h…
siri-varma aa2a7f9
Add SubscriptionTest unit tests + interrupt receiver on close
siri-varma d936b3f
Merge branch 'master' into users/sveigraju/fix-integ-tests-2
siri-varma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
sdk-tests/src/test/java/io/dapr/it/AppRunOverrideTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| /* | ||
| * Copyright 2025 The Dapr Authors | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| package io.dapr.it; | ||
|
|
||
| import org.junit.jupiter.api.Test; | ||
|
|
||
| import java.lang.reflect.Field; | ||
| import java.util.Map; | ||
|
|
||
| import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
|
||
| class AppRunOverrideTest { | ||
|
|
||
| /** | ||
| * Verifies that when we construct AppRun with explicit Dapr port overrides, | ||
| * the DAPR_HTTP_PORT / DAPR_GRPC_PORT env vars on the spawned command point | ||
| * at the override values, not at the DaprPorts-allocated ones. | ||
| */ | ||
| @Test | ||
| void daprPortOverridesAreUsedInEnv() throws Exception { | ||
| DaprPorts ports = DaprPorts.build(true, true, true); | ||
| AppRun app = new AppRun(ports, "ready", Object.class, 1000, 12345, 67890); | ||
|
|
||
| Field commandField = AppRun.class.getDeclaredField("command"); | ||
| commandField.setAccessible(true); | ||
| Command command = (Command) commandField.get(app); | ||
|
|
||
| Field envField = Command.class.getDeclaredField("env"); | ||
| envField.setAccessible(true); | ||
| @SuppressWarnings("unchecked") | ||
| Map<String, String> env = (Map<String, String>) envField.get(command); | ||
|
|
||
| assertEquals("12345", env.get("DAPR_HTTP_PORT")); | ||
| assertEquals("67890", env.get("DAPR_GRPC_PORT")); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.