Skip to content

Conversation

pyansys-ci-bot
Copy link
Collaborator

An update of generated code has been triggered either manually or by an update in the dpf-standalone repository.

@pyansys-ci-bot pyansys-ci-bot requested a review from a team as a code owner July 29, 2025 09:13
@pyansys-ci-bot pyansys-ci-bot added the server-sync DO NOT USE, Related to automatic synchronization with the server label Jul 29, 2025
@PProfizi PProfizi closed this Jul 29, 2025
@PProfizi PProfizi reopened this Jul 29, 2025
Copy link

codecov bot commented Jul 29, 2025

❌ 7 Tests Failed:

Tests completed Failed Passed Skipped
29945 7 29938 3831
View the top 3 failed test(s) by shortest run time
tests/test_any.py::test_cast_data_sources_any[gRPC CLayer]
Stack Traces | 0.007s run time
server_type = <ansys.dpf.core.server_types.GrpcServer object at 0x7fab9233c850>

    @conftest.raises_for_servers_version_under("8.2")
    def test_cast_data_sources_any(server_type):
        # Not available through grpc yet
        entity = dpf.DataSources(server=server_type, result_path="test.pth")
>       any_dpf = dpf.Any.new_from(entity)

tests/test_any.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..../test-api/lib/python3.10.../dpf/core/any.py:246: in new_from
    any_dpf._internal_obj = type_tuple[0](obj)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

any = <ansys.dpf.core.data_sources.DataSources object at 0x7faba2ea9ab0>

    @staticmethod
    def any_new_from_data_sources(any):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Any_newFrom_DataSources(any._internal_obj if any 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 'unimplemented' error occurred: Unimplemented Any constructor for given type.

..../test-api/lib/python3.10.../gate/generated/any_capi.py:392: DPFServerException
tests\test_any.py::test_any::test_cast_data_sources_any[gRPC CLayer]
Stack Traces | 0.008s run time
server_type = <ansys.dpf.core.server_types.GrpcServer object at 0x000002332B97E140>

    @conftest.raises_for_servers_version_under("8.2")
    def test_cast_data_sources_any(server_type):
        # Not available through grpc yet
        entity = dpf.DataSources(server=server_type, result_path="test.pth")
>       any_dpf = dpf.Any.new_from(entity)

tests\test_any.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\test-api\lib\site-packages\ansys\dpf\core\any.py:246: in new_from
    any_dpf._internal_obj = type_tuple[0](obj)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

any = <ansys.dpf.core.data_sources.DataSources object at 0x00000233310BE980>

    @staticmethod
    def any_new_from_data_sources(any):
    	errorSize = ctypes.c_int(0)
    	sError = ctypes.c_wchar_p()
    	res = capi.dll.Any_newFrom_DataSources(any._internal_obj if any 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 'unimplemented' error occurred: Unimplemented Any constructor for given type.

.tox\test-api\lib\site-packages\ansys\dpf\gate\generated\any_capi.py:392: DPFServerException
tests/test_any.py::test_cast_data_sources_any[ansys-grpc-dpf]
Stack Traces | 0.009s run time
server_type = <ansys.dpf.core.server_types.LegacyGrpcServer object at 0x7fab82b94490>

    @conftest.raises_for_servers_version_under("8.2")
    def test_cast_data_sources_any(server_type):
        # Not available through grpc yet
        entity = dpf.DataSources(server=server_type, result_path="test.pth")
>       any_dpf = dpf.Any.new_from(entity)

tests/test_any.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..../test-api/lib/python3.10.../dpf/core/any.py:246: in new_from
    any_dpf._internal_obj = type_tuple[0](obj)
..../test-api/lib/python3.10.../dpf/gate/errors.py:38: in wrapper
    out = func(*args, **kwargs)
..../test-api/lib/python3.10.../dpf/gate/any_grpcapi.py:250: in any_new_from_data_sources
    return AnyGRPCAPI._new_from(any, any._server)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (<ansys.dpf.core.data_sources.DataSources object at 0x7fabb76e4a90>, <ansys.dpf.core.server_types.LegacyGrpcServer object at 0x7fab82b94490>)
kwargs = {}, _InactiveRpcError = <class 'grpc._channel._InactiveRpcError'>
_MultiThreadedRendezvous = <class 'grpc._channel._MultiThreadedRendezvous'>
details = 'Unimplemented Any constructor for given type.'

    @wraps(func)
    def wrapper(*args, **kwargs):
        """Capture gRPC exceptions."""
        from grpc._channel import _InactiveRpcError, _MultiThreadedRendezvous
        try:
            out = func(*args, **kwargs)
        except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
            details = error.details()
            if "object is null in the dataBase" in details:
                raise DPFServerNullObject(details) from None
            elif "Unable to open the following file" in details:
                raise DPFServerException(
                    "The result file could not be found or could not be opened, the server raised an error message: \n" + details) from None
>           raise DPFServerException(details) from None
E           ansys.dpf.gate.errors.DPFServerException: Unimplemented Any constructor for given type.

..../test-api/lib/python3.10.../dpf/gate/errors.py:46: 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 and others added 4 commits July 29, 2025 16:35
…r_261_test_any_new_from_datasources_on_fix/cast_any_to_data_sources
…r_261_test_any_new_from_datasources_on_fix/cast_any_to_data_sources
@BClappe BClappe force-pushed the fix/cast_any_to_data_sources branch from 136a164 to 372cd9d Compare August 5, 2025 12:46
Base automatically changed from fix/cast_any_to_data_sources to main August 5, 2025 15:10
@rafacanton rafacanton closed this Aug 25, 2025
@rafacanton rafacanton deleted the maint/update_code_for_261_test_any_new_from_datasources_on_fix/cast_any_to_data_sources branch August 25, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server-sync DO NOT USE, Related to automatic synchronization with the server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants