-
Notifications
You must be signed in to change notification settings - Fork 3
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
Upgrade artefactual-sdps/temporal-activities #1011
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1011 +/- ##
==========================================
- Coverage 53.19% 53.06% -0.14%
==========================================
Files 102 101 -1
Lines 5856 5814 -42
==========================================
- Hits 3115 3085 -30
+ Misses 2483 2476 -7
+ Partials 258 253 -5 ☔ View full report in Codecov by Sentry. |
89d12f7
to
a929608
Compare
Upgrading
That broke the build process:
Which I could fix upgrading all the other
Now, running
I have changed the |
a9ec983
to
e9856be
Compare
internal/a3m/client.go
Outdated
c := &Client{} | ||
|
||
conn, err := grpc.DialContext( | ||
ctx, | ||
conn, err := grpc.NewClient( |
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.
Would this be enough? Should we check the connection? Reading the links in the previous update it seems unnecessary. And, should we close the connection after all?
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.
@jraddaoui it looks like defer conn.Close()
is expected:
https://github.com/grpc/grpc-go/blob/master/examples/helloworld/greeter_client/main.go#L49
But other than that I think your change above is sufficient.
internal/telemetry/traces.go
Outdated
conn, err := grpc.NewClient( | ||
cfg.Traces.Address, | ||
grpc.WithTransportCredentials(insecure.NewCredentials()), | ||
grpc.WithBlock(), | ||
) |
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.
Same here.
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.
It sounds to me like grpc.WithBlock()
is unnecessary based on https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md#especially-bad-using-deprecated-dialoptions. It sounds like any following RPCs will wait for the connection before proceeding.
Nice! I'm in the process of trying it out! Did a |
Check https://enduro.readthedocs.io/dev-manual/deps/, @sevein suggested to avoid that. |
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.
Looks good to me (and upgraded/ran with no issue)!
Thanks Mike! For the |
9b674ba
to
d54fcc4
Compare
Upgrade `github.com/artefactual-sdps/temporal-activities` after the re-org, which also upgrades `google.golang.org/grpc` and other deps. Ignore `grpc.DialContext` and `grpc.WithBlock` deprecated warning. [skip-codecov]
[skip-codecov]
d54fcc4
to
5ec88fe
Compare
Upgrade
github.com/artefactual-sdps/temporal-activities
after there-org, which also upgrades
google.golang.org/grpc
and other deps.Ignore
grpc.DialContext
andgrpc.WithBlock
deprecated warning.