Skip to content

Conversation

plule-ansys
Copy link
Contributor

This PR integrates PyPIM. In an environment configured for PIM, DpfServer is now able to start a remote instance of DPF and connect to it.

The integration approach is intended to follow the current pydpf direction and does not add any gRPC specific dependency. PyPIM itself being based on gRPC, it is lazy loaded under the condition that the user is starting dpf in a pypim environment. It however changes the construction of the channel from "ip/port" to any address as supported by gRPC: https://grpc.github.io/grpc/core/md_doc_naming.html

It currently comes with a limitation that the headers are not transmitted to the instances. It means that this implementation will not work if the DPF instance is behind a gateway, or in an authenticated environment.

@cbellot000 cbellot000 requested a review from PProfizi May 16, 2022 06:53
@codecov
Copy link

codecov bot commented May 18, 2022

Codecov Report

Merging #237 (6433bcf) into master (b9a6cf4) will increase coverage by 0.03%.
The diff coverage is 93.10%.

@@            Coverage Diff             @@
##           master     #237      +/-   ##
==========================================
+ Coverage   85.41%   85.45%   +0.03%     
==========================================
  Files          52       52              
  Lines        5624     5650      +26     
==========================================
+ Hits         4804     4828      +24     
- Misses        820      822       +2     

@PProfizi
Copy link
Contributor

@plule-ansys Maybe a small test to pass the brand new codecov criteria?

@PProfizi PProfizi merged commit abea8fb into master May 19, 2022
@PProfizi PProfizi deleted the feat/pim branch May 19, 2022 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants