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

use dpf installation action rather than starting the dpf server #616

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

koubaa
Copy link
Collaborator

@koubaa koubaa commented Nov 13, 2024

Attempt to use the dpf server github action

@koubaa koubaa requested a review from PProfizi November 13, 2024 15:08
@koubaa koubaa requested a review from a team as a code owner November 13, 2024 15:08
@github-actions github-actions bot added the maintenance Package and maintenance related label Nov 13, 2024
@koubaa
Copy link
Collaborator Author

koubaa commented Nov 13, 2024

@PProfizi I'm not sure what other configuration is needed. See the below error from the doc build:

../examples/Airbag/airbag_post.py unexpectedly failed to execute correctly:
Traceback (most recent call last):
File "/home/runner/work/pydyna/pydyna/examples/Airbag/airbag_post.py", line 20, in
dpf.connect_to_server()
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/ansys/dpf/core/server.py", line 362, in connect_to_server
return connect()
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/ansys/dpf/core/server.py", line 344, in connect
server = server_type(
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/ansys/dpf/core/server_types.py", line 735, in init
self._check_first_call(num_connection_tryouts)
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/ansys/dpf/core/server_types.py", line 752, in _check_first_call
raise e
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/ansys/dpf/core/server_types.py", line 746, in _check_first_call
self.version
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/ansys/dpf/core/server_types.py", line 762, in version
api.data_processing_get_server_version_on_client(self.client, major, minor)
File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/ansys/dpf/gate/generated/data_processing_capi.py", line 408, in data_processing_get_server_version_on_client
raise errors.DPFServerException(sError.value)
ansys.dpf.gate.errors.DPFServerException: a 'service is currently unavailable' error occurred: failed to connect to all addresses

@koubaa
Copy link
Collaborator Author

koubaa commented Nov 13, 2024

@ansjhajjar do you know why the action clones the dpf github repo? Woudln't it be more efficient to get the files it needs?

@koubaa
Copy link
Collaborator Author

koubaa commented Nov 13, 2024

Fixes #611

@koubaa koubaa changed the title use dpf server action use dpf installation action rather than starting the dpf server Nov 13, 2024
@koubaa koubaa merged commit 8cc3047 into main Nov 13, 2024
25 checks passed
@koubaa koubaa deleted the use-dpf-server branch November 13, 2024 18:30
@PProfizi
Copy link

@ansjhajjar do you know why the action clones the dpf github repo? Woudln't it be more efficient to get the files it needs?

Hello @koubaa, the action clones the branch it needs based on the input parameters given, and clones with depth=1. It does need everything in the branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Package and maintenance related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants