Skip to content
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

update dapr runtime to use v1.12.0-rc.1 #906

Merged
merged 7 commits into from
Sep 25, 2023

Conversation

cicoyle
Copy link
Contributor

@cicoyle cicoyle commented Sep 14, 2023

Description

Update dapr runtime to use v1.12.0-rc.3 && dapr cli to use v1.12.0-rc.1 to test & validate the release candidate

Issue reference

dapr/dapr#6899

Checklist

  • The quickstart code compiles correctly
  • You've tested new builds of the quickstart if you changed quickstart code

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
artursouza
artursouza previously approved these changes Sep 19, 2023
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
@msfussell
Copy link
Member

@cicoyle - We create a release-1.12 branch in this repo. Can you retarget this PR against the new branch, so that we test this independent of master (main) branch.

@cicoyle cicoyle changed the base branch from master to release-1.12 September 21, 2023 13:15
@cicoyle
Copy link
Contributor Author

cicoyle commented Sep 21, 2023

@cicoyle - We create a release-1.12 branch in this repo. Can you retarget this PR against the new branch, so that we test this independent of master (main) branch.

Done. I guess we will want to re trigger the workflows again - can someone help me out with that?

@artursouza
Copy link
Member

Shouldn't the redis version also be pinned here?

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
@cicoyle
Copy link
Contributor Author

cicoyle commented Sep 21, 2023

Shouldn't the redis version also be pinned here?

Maybe, I pinned it to a version I saw in your PR here.

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Comment on lines -51 to -56
err = client.UnsubscribeConfigurationItems(context.Background(), DAPR_CONFIGURATION_STORE, subscriptionID)
if err != nil {
fmt.Println("Error unsubscribing to config updates, err:" + err.Error())
} else {
fmt.Println("App unsubscribed to config changes")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this being removed?
Is this removed from SDK or not a valid operation anymore?

Copy link
Contributor

Choose a reason for hiding this comment

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

It has been deprecated in runtime https://github.com/dapr/dapr/blob/9105124636459e751964f3a68845fc63ccbb45e9/pkg/grpc/api.go#L1459

It should be marked as such in SDKs (I don't think it is atm anywhere).

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree it should be removed ... but is it causing an issue ...

On a side note, @dapr/maintainers-quickstarts When will the latest SDK RCs will be tested for quickstarts.

Copy link
Contributor

@JoshVanL JoshVanL Sep 22, 2023

Choose a reason for hiding this comment

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

I agree it should be removed ... but is it causing an issue ...

Yes, with it included the test runner is printing out an error saying that the subscription cannot be unsubscribed because it doesn't exist. That is a true error- the subscription at the top of the file is given a context with a timeout of 10 seconds, we then do some work, then sleep 10 seconds. This means that when we go to unsubscribe here, the subscription context has been cancelled and closed, and therefore unsubscribed. The unsubscribe here now makes no sense.

The relevant runtime PR: dapr/dapr#6769

Copy link
Contributor

Choose a reason for hiding this comment

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

ok that is marked as a breaking change ....

Copy link
Contributor

Choose a reason for hiding this comment

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

Also the other question, is the unsubscribe method only failing in GO SDK?
Does it fail in any other SDK?

Copy link
Contributor

Choose a reason for hiding this comment

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

@mukundansundar I assume it is not failing in other quickstart tests because the logic is different. For example, JS is doing the right thing here by just closing the stream

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe the context timeout was also causing an issue due to us having a context with a timeout, then sleeping for that duration.

Copy link
Contributor

Choose a reason for hiding this comment

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

good catch

@mukundansundar
Copy link
Contributor

Interesting the bindings tutorial seems to be failing consistently.

Co-authored-by: Josh van Leeuwen <me@joshvanl.dev>
Signed-off-by: Cassie Coyle <cassie.i.coyle@gmail.com>
Copy link
Contributor

@paulyuk paulyuk left a comment

Choose a reason for hiding this comment

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

LGTM. let's just let checks pass.

Comment on lines -51 to -56
err = client.UnsubscribeConfigurationItems(context.Background(), DAPR_CONFIGURATION_STORE, subscriptionID)
if err != nil {
fmt.Println("Error unsubscribing to config updates, err:" + err.Error())
} else {
fmt.Println("App unsubscribed to config changes")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch

@@ -134,7 +134,7 @@ jobs:
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm install redis bitnami/redis
helm install redis bitnami/redis --version 17.14.5
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, why do we want to pin? this can catch us later on too when we forget :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Per Arturs comment above ^, tho also not sure on the exact reasoning for it

@paulyuk paulyuk added the P0 label Sep 23, 2023
@paulyuk paulyuk added this to the 1.12 milestone Sep 23, 2023
@paulyuk paulyuk merged commit 72f6823 into dapr:release-1.12 Sep 25, 2023
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants