-
Notifications
You must be signed in to change notification settings - Fork 215
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
Add actor testcontainer tests #1192
Conversation
@salaboy I have currently the problem that the test fails with the following exception when trying to connect to the Dapr gRPC port.
Not sure why it uses port 50001, because this is the internal port. I think normally it should use the mapped port. Maybe you can have a look, if the test is not correct configured? |
@akkie thanks a lot of this.. give me some time to look into this.. check the DCO, we need that to approve the PR. Click on the Details link to see the steps to fix it. |
@salaboy Is it OK if I do a force push regarding the update of the DCO? |
@akkie yeah.. that is your fork.. so it is ok |
ee83cff
to
bec4bd2
Compare
@akkie would you mind adding me as a collaborator to your fork? I am working on a fix, but I would love to push to your fork.. if not I can send you a patch to apply to your fork with the fix |
Done |
@akkie I will push two commits to your fork, I am stuck with a new error now.. but at least the connection is working now. |
Now I am stuck with this:
But the connection is working as far as I can tell. |
This is strange.. because it looks like we are hitting this: dapr/dapr#6783 @artursouza do you know if these examples are executed as part of the tests? |
@salaboy This is exactly the message we get with our testcontainer setup:
We use .NET and not Java. |
Ok so I think we are up to something here
- Blog: http://salaboy.com <http://salaboy.wordpress.com>
- Github user: http://github.com/salaboy
- Twitter: http://twitter.com/salaboy
- Mauricio "Salaboy" Salatino -
…On Wed, 22 Jan 2025 at 20:11, Christian Kaps ***@***.***> wrote:
@salaboy <https://github.com/salaboy> This is exactly the message we get
with our testcontainer setup:
´´´
fails to send binding event to http app channel, status code: 500 body:
Dapr.DaprApiException: error invoke actor method: did not find address for
actor
´´´
We use .NET and not Java.
—
Reply to this email directly, view it on GitHub
<#1192 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACCMXUKSIIUSSF7NQM2YJT2L73O5AVCNFSM6AAAAABVI4UL56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBYGE3TANRUHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@akkie I am curious.. are you testing with an in-memory statestore? |
@salaboy Yes, we are using Redis. |
@akkie if you pull the code that I push can you check that you are getting the same results? |
@salaboy You mean running the tests? If I run them, yes, I get the same result:
|
@akkie good news.. i think that I found the issue..
I will try to fix this and push again. |
@salaboy Any news regarding the issue? |
I am still fighting with this.. for some
Reason after fixing all the connection issues, the actor is not registered
in the placement service. I am trying to figure out why
- Blog: http://salaboy.com <http://salaboy.wordpress.com>
- Github user: http://github.com/salaboy
- Twitter: http://twitter.com/salaboy
- Mauricio "Salaboy" Salatino -
…On Thu, 30 Jan 2025 at 10:12, Christian Kaps ***@***.***> wrote:
@salaboy <https://github.com/salaboy> Any news regarding the issue?
—
Reply to this email directly, view it on GitHub
<#1192 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACCMXUL5XKLZCHGK7LKWE32NH3JFAVCNFSM6AAAAABVI4UL56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRUGA2TQNZRGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The funny thing is that the actor example in the Java SDK is working , but
that example uses two sidecars instead of one.. and I am not entirely sure
if that placement service is configured differently
- Blog: http://salaboy.com <http://salaboy.wordpress.com>
- Github user: http://github.com/salaboy
- Twitter: http://twitter.com/salaboy
- Mauricio "Salaboy" Salatino -
…On Thu, 30 Jan 2025 at 10:59, Mauricio Salatino ***@***.***> wrote:
I am still fighting with this.. for some
Reason after fixing all the connection issues, the actor is not registered
in the placement service. I am trying to figure out why
- Blog: http://salaboy.com <http://salaboy.wordpress.com>
- Github user: http://github.com/salaboy
- Twitter: http://twitter.com/salaboy
- Mauricio "Salaboy" Salatino -
On Thu, 30 Jan 2025 at 10:12, Christian Kaps ***@***.***>
wrote:
> @salaboy <https://github.com/salaboy> Any news regarding the issue?
>
> —
> Reply to this email directly, view it on GitHub
> <#1192 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AACCMXUL5XKLZCHGK7LKWE32NH3JFAVCNFSM6AAAAABVI4UL56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRUGA2TQNZRGY>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
@salaboy and @akkie I have found what's the culprit. Please check #1202. The TL;DR is that I will try to have a quick fix just to unblock this PR, but in general I think CC: @artursouza @cicoyle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sdk-tests/src/test/java/io/dapr/it/testcontainers/TestDaprActorsConfiguration.java
Show resolved
Hide resolved
@artur-ciocanu Thanks for working on that. I fixed the formatting issues. Is there anything I need to do to get the tests running locally? They still failing for me with the message: api error: code = Internal desc = error invoke actor method: did not find address for actor TestActor/789215ad-9328-4019-8c86-6a4b6cc664a7 |
@akkie I think we are hitting the same issue as we hit with PubSub.. we need to investigate this further.. My expectation is that if we run this application in a Kubernetes Cluster, everything works.. so the issue is related with the sequence in which both the app and the sidecar gets bootstrapped by testcontainers. |
Signed-off-by: Christian Kaps <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]> Signed-off-by: Christian Kaps <[email protected]>
…r#1201) Signed-off-by: Christian Kaps <[email protected]>
…rs module (dapr#1210) * feat: Adding basic HTTPEndpoint configuration support in testcontainers module Signed-off-by: Laurent Broudoux <[email protected]> * feat: dapr#1209 Adding test for HTTPEndpoint in testcontainers module Signed-off-by: Laurent Broudoux <[email protected]> --------- Signed-off-by: Laurent Broudoux <[email protected]> Signed-off-by: Christian Kaps <[email protected]>
Signed-off-by: Christian Kaps <[email protected]>
* Add app health check support to Dapr Testcontainer Signed-off-by: Artur Ciocanu <[email protected]> * Some minor cleanup Signed-off-by: Artur Ciocanu <[email protected]> * Move waiting to beforeEach, it looks more natural Signed-off-by: Artur Ciocanu <[email protected]> --------- Signed-off-by: Artur Ciocanu <[email protected]> Co-authored-by: Artur Ciocanu <[email protected]> Signed-off-by: Christian Kaps <[email protected]>
Signed-off-by: Christian Kaps <[email protected]>
* Add app health check support to Dapr Testcontainer Signed-off-by: Artur Ciocanu <[email protected]> * Some minor cleanup Signed-off-by: Artur Ciocanu <[email protected]> * Move waiting to beforeEach, it looks more natural Signed-off-by: Artur Ciocanu <[email protected]> --------- Signed-off-by: Artur Ciocanu <[email protected]> Co-authored-by: Artur Ciocanu <[email protected]> Signed-off-by: Christian Kaps <[email protected]>
Signed-off-by: Artur Souza <[email protected]> Signed-off-by: Christian Kaps <[email protected]>
* Add app health check support to Dapr Testcontainer Signed-off-by: Artur Ciocanu <[email protected]> * Some minor cleanup Signed-off-by: Artur Ciocanu <[email protected]> * Move waiting to beforeEach, it looks more natural Signed-off-by: Artur Ciocanu <[email protected]> --------- Signed-off-by: Artur Ciocanu <[email protected]> Co-authored-by: Artur Ciocanu <[email protected]> Signed-off-by: Christian Kaps <[email protected]>
Signed-off-by: Christian Kaps <[email protected]>
ace4137
to
a9fdda8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is green and while the port overriding is not the prettiest, it works.
Hey, thanks for letting me know @artur-ciocanu. I don’t have much time right now but gladly check it out later. |
@artursouza could you please take a look and approve it. Thank you! |
Signed-off-by: Artur Souza <[email protected]>
@artursouza and @cicoyle we need your review one more time. Thank you! |
Signed-off-by: artur-ciocanu <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Love it!
Description
This PR adds testcontainer based integration tests for actors. This is to make sure that actors really work with testcontainers.
Issue reference
This PR was crated based on a Discord discussion with @salaboy to check if actors works with testcontainers.