-
Notifications
You must be signed in to change notification settings - Fork 0
Launcher: implement gRPC transport option handling #116
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
Conversation
0f9f7eb to
52aa7f8
Compare
RobPasMue
left a comment
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's looking good - I guess this will require a new minor right?
Yes. I'll want to actually try using it in PyACP (currently uses the old module still) before we release, though. |
42d01f7 to
2f8e4c0
Compare
|
@RobPasMue what's the rationale behind creating our own exception hierarchy (specifically, the use of As such, I'm trying to figure out if PyACP should go the same route, or spend extra effort to hide this change. |
…to feat/launcher-grpc-transport-options
That's a good point @greschd - the goal was to provide a set of common errors related to Ansys libraries that we could all extend from and make the experience for our users more streamlined -- they could simply catch our error and make sure that everything related to Ansys can be captured by it.. nonetheless, up for discussion. We haven't enforced it anywhere yet. |
|
@RobPasMue I think the custom exceptions can make sense when there's scenario that's somewhat specific to our libraries. For example I'm less convinced that errors which basically mirror built-in exceptions make sense (
Doesn't that promise indirectly imply that we'd write exception-free code / catch and re-raise all exceptions? I don't think it makes sense to raise an So, in short:
It may make sense to pull this discussion into a separate issue - for this PR I think it's okay to keep the |
The test with PyACP has been successful: ansys/pyacp#921 |
RobPasMue
left a comment
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.
LGTM! Thanks @greschd
|
You know the changes better than us @greschd - do you want us to trigger a minor release or a patch one? |
|
Minor release. Not sure if we should wait for #118 |
|
@AlejandroFernandezLuces - what's the status on #118? |
Implement gRPC transport option handling for the product launcher:
with a method to instantiate the corresponding gRPC channel
an entry in the newly added
transport_optionsproperty, instead of providingan entry in the
urlsproperty.This change is needed since the URL itself is not sufficient to create a gRPC
channel.
Other changes:
ansys.tools.common.launcher