Skip to content

Conversation

@PProfizi
Copy link
Contributor

@PProfizi PProfizi commented Jul 24, 2025

@PProfizi PProfizi self-assigned this Jul 24, 2025
@PProfizi PProfizi added the tutorials Related to PyDPF-Core tutorials label Jul 24, 2025
@codecov
Copy link

codecov bot commented Jul 24, 2025

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
29940 2 29938 3874
View the top 3 failed test(s) by shortest run time
test_remote_operator/test_remote_operator.py::test_connect_remote_data_to_operator
Stack Traces | 1.25s run time
simple_bar = '.../pydpf-core/pydpf-core/.tox.../test-remote_operator/lib/python3.10.../examples/result_files/ASimpleBar.rst'

    @pytest.mark.skipif(
        not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_4_0,
        reason="Connecting data from different servers is " "supported starting server version 4.0",
    )
    def test_connect_remote_data_to_operator(simple_bar):
        data_sources1 = core.DataSources(simple_bar)
>       op2 = ops.result.displacement(data_sources=data_sources1, server=local_servers[0])

test_remote_operator/test_remote_operator.py:66: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox.../test-remote_operator/lib/python3.10.../operators/result/displacement.py:118: in __init__
    super().__init__(name="U", config=config, server=server)
.tox.../test-remote_operator/lib/python3.10.../dpf/core/dpf_operator.py:156: in __init__
    self._internal_obj = self._api.operator_new_on_client(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

operatorName = 'U'
client = <ansys.dpf.core.server_types.GrpcClient object at 0x7efcaa014760>

    @staticmethod
    def operator_new_on_client(operatorName, client):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Operator_new_on_client(utils.to_char_ptr(operatorName), client._internal_obj if client is not None else None, ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: a 'service is currently unavailable' error occurred: failed to connect to all addresses

.tox.../test-remote_operator/lib/python3.10.../gate/generated/operator_capi.py:781: DPFServerException
test_server\test_server.py::test_server::TestServerConfigs::test_start_shutdown_start[grpc]
Stack Traces | 3.19s run time
self = <test_server.TestServerConfigs object at 0x0000021BF033DF90>
server_config = <ansys.dpf.core.server_factory.ServerConfig object at 0x0000021BF0314BB0>

    def test_start_shutdown_start(self, server_config):
        set_server_configuration(server_config)
        # print(dpf.core.SERVER_CONFIGURATION)
        server = start_local_server(timeout=20)
        server.shutdown()
>       server = start_local_server(timeout=20)

test_server\test_server.py:148: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-server\lib\site-packages\ansys\dpf\core\server.py:255: in start_local_server
    server = server_type(
.tox\test-server\lib\site-packages\ansys\dpf\core\server_types.py:852: in __init__
    self._check_first_call(timeout=timeout - (time.time() - start_time))  # Pass remaining time
.tox\test-server\lib\site-packages\ansys\dpf\core\server_types.py:871: in _check_first_call
    raise e
.tox\test-server\lib\site-packages\ansys\dpf\core\server_types.py:865: in _check_first_call
    _ = self.version
.tox\test-server\lib\site-packages\ansys\dpf\core\server_types.py:888: in version
    api.data_processing_get_server_version_on_client(self.client, major, minor)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = <ansys.dpf.core.server_types.GrpcClient object at 0x0000021BF5924790>
major = <ansys.dpf.gate.integral_types.MutableInt32 object at 0x0000021BF5927A90>
minor = <ansys.dpf.gate.integral_types.MutableInt32 object at 0x0000021BF5927A60>

    @staticmethod
    def data_processing_get_server_version_on_client(client, major, minor):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.DataProcessing_getServerVersion_on_client(client._internal_obj if client is not None else None, ctypes.byref(utils.to_int32(major)), ctypes.byref(utils.to_int32(minor)), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: a 'cancelled' error occurred: CANCELLED

.tox\test-server\lib\site-packages\ansys\dpf\gate\generated\data_processing_capi.py:498: DPFServerException
test_server\test_server.py::test_server::test_start_after_shutting_down_server
Stack Traces | 9.12s run time
@pytest.mark.skipif(
        not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_4_0,
        reason="Not existing in version lower than 4.0",
    )
    @pytest.mark.skipif(running_docker, reason="Unstable on Docker")
    def test_start_after_shutting_down_server():
        remote_server = start_local_server(
            config=dpf.core.AvailableServerConfigs.GrpcServer, as_global=False
        )
        remote_server.shutdown()
    
        time.sleep(2.0)
    
>       remote_server = start_local_server(
            config=dpf.core.AvailableServerConfigs.GrpcServer, as_global=False
        )

test_server\test_server.py:338: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-server\lib\site-packages\ansys\dpf\core\server.py:255: in start_local_server
    server = server_type(
.tox\test-server\lib\site-packages\ansys\dpf\core\server_types.py:852: in __init__
    self._check_first_call(timeout=timeout - (time.time() - start_time))  # Pass remaining time
.tox\test-server\lib\site-packages\ansys\dpf\core\server_types.py:871: in _check_first_call
    raise e
.tox\test-server\lib\site-packages\ansys\dpf\core\server_types.py:865: in _check_first_call
    _ = self.version
.tox\test-server\lib\site-packages\ansys\dpf\core\server_types.py:888: in version
    api.data_processing_get_server_version_on_client(self.client, major, minor)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

client = <ansys.dpf.core.server_types.GrpcClient object at 0x0000021BF5927100>
major = <ansys.dpf.gate.integral_types.MutableInt32 object at 0x0000021BF5924E20>
minor = <ansys.dpf.gate.integral_types.MutableInt32 object at 0x0000021BF5926E30>

    @staticmethod
    def data_processing_get_server_version_on_client(client, major, minor):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.DataProcessing_getServerVersion_on_client(client._internal_obj if client is not None else None, ctypes.byref(utils.to_int32(major)), ctypes.byref(utils.to_int32(minor)), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
    	if errorSize.value != 0:
>   		raise errors.DPFServerException(sError.value)
E     ansys.dpf.gate.errors.DPFServerException: a 'cancelled' error occurred: CANCELLED

.tox\test-server\lib\site-packages\ansys\dpf\gate\generated\data_processing_capi.py:498: DPFServerException

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@PProfizi PProfizi added the deploy-pr-doc For deploying a PR's documentation label Jul 24, 2025
@github-actions
Copy link
Contributor

The documentation for this pull request will be available at https://dpf.docs.pyansys.com/pull/2472. Please allow some time for the documentation to be deployed.

@PProfizi PProfizi merged commit fb3b6d9 into doc/new-tutorials-section Jul 24, 2025
109 of 118 checks passed
@PProfizi PProfizi deleted the tuto/custom_operators_tutorial_support_older_DPF branch July 24, 2025 16:57
@github-actions
Copy link
Contributor

This PR has been closed. Documentation for this pull request will shortly be removed from its former deployment address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy-pr-doc For deploying a PR's documentation tutorials Related to PyDPF-Core tutorials

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant