Skip to content

chore: update CHANGELOG for v0.11.7 (#889) #2346

chore: update CHANGELOG for v0.11.7 (#889)

chore: update CHANGELOG for v0.11.7 (#889) #2346

GitHub Actions / Launch Test Report 3.11 failed Sep 1, 2024 in 0s

34 tests run, 25 passed, 0 skipped, 9 failed.

Annotations

Check failure on line 1 in tests/test_logging.py

See this annotation in the file changed.

@github-actions github-actions / Launch Test Report 3.11

test_logging.test_instance_logger_format

failed on setup with "OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10000."
Raw output
@pytest.fixture(scope="session")
    def mechanical():
        print("current working directory: ", os.getcwd())
    
        if not pymechanical.mechanical.get_start_instance():
            mechanical = connect_to_mechanical_instance()
        else:
>           mechanical = launch_mechanical_instance()

tests/conftest.py:292: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/conftest.py:264: in launch_mechanical_instance
    return pymechanical.launch_mechanical(
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2243: in launch_mechanical
    raise exception
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2230: in launch_mechanical
    mechanical = Mechanical(
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:452: in __init__
    self._multi_connect(timeout=timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Error getting product info., n_attempts = 5, timeout = 120

    def _multi_connect(self, n_attempts=5, timeout=60):
        """Try to connect over a series of attempts to the channel.
    
        Parameters
        ----------
        n_attempts : int, optional
            Number of connection attempts. The default is ``5``.
        timeout : float, optional
            Maximum allowable time in seconds for establishing a connection.
            The default is ``60``.
    
        """
        # This prevents a single failed connection from blocking other attempts
        connected = False
        attempt_timeout = timeout / n_attempts
        self.log_debug(
            f"timetout:{timeout} n_attempts:{n_attempts} attempt_timeout={attempt_timeout}"
        )
    
        max_time = time.time() + timeout
        i = 1
        while time.time() < max_time and i <= n_attempts:
            self.log_debug(f"Connection attempt {i} with attempt timeout {attempt_timeout}s")
            connected = self._connect(timeout=attempt_timeout)
    
            if connected:
                self.log_debug(f"Connection attempt {i} succeeded.")
                break
    
            i += 1
        else:  # pragma: no cover
            self.log_debug(
                f"Reached either maximum amount of connection attempts "
                f"({n_attempts}) or timeout ({timeout} s)."
            )
    
        if not connected:  # pragma: no cover
>           raise IOError(f"Unable to connect to Mechanical instance at {self._channel_str}.")
E           OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10000.

/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:568: OSError

Check failure on line 1 in tests/test_logging.py

See this annotation in the file changed.

@github-actions github-actions / Launch Test Report 3.11

test_logging.test_log_instance_name

failed on setup with "OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10000."
Raw output
@pytest.fixture(scope="session")
    def mechanical():
        print("current working directory: ", os.getcwd())
    
        if not pymechanical.mechanical.get_start_instance():
            mechanical = connect_to_mechanical_instance()
        else:
>           mechanical = launch_mechanical_instance()

tests/conftest.py:292: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/conftest.py:264: in launch_mechanical_instance
    return pymechanical.launch_mechanical(
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2243: in launch_mechanical
    raise exception
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2230: in launch_mechanical
    mechanical = Mechanical(
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:452: in __init__
    self._multi_connect(timeout=timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Error getting product info., n_attempts = 5, timeout = 120

    def _multi_connect(self, n_attempts=5, timeout=60):
        """Try to connect over a series of attempts to the channel.
    
        Parameters
        ----------
        n_attempts : int, optional
            Number of connection attempts. The default is ``5``.
        timeout : float, optional
            Maximum allowable time in seconds for establishing a connection.
            The default is ``60``.
    
        """
        # This prevents a single failed connection from blocking other attempts
        connected = False
        attempt_timeout = timeout / n_attempts
        self.log_debug(
            f"timetout:{timeout} n_attempts:{n_attempts} attempt_timeout={attempt_timeout}"
        )
    
        max_time = time.time() + timeout
        i = 1
        while time.time() < max_time and i <= n_attempts:
            self.log_debug(f"Connection attempt {i} with attempt timeout {attempt_timeout}s")
            connected = self._connect(timeout=attempt_timeout)
    
            if connected:
                self.log_debug(f"Connection attempt {i} succeeded.")
                break
    
            i += 1
        else:  # pragma: no cover
            self.log_debug(
                f"Reached either maximum amount of connection attempts "
                f"({n_attempts}) or timeout ({timeout} s)."
            )
    
        if not connected:  # pragma: no cover
>           raise IOError(f"Unable to connect to Mechanical instance at {self._channel_str}.")
E           OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10000.

/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:568: OSError

Check failure on line 1 in tests/test_logging.py

See this annotation in the file changed.

@github-actions github-actions / Launch Test Report 3.11

test_logging.test_instance_log_to_file

failed on setup with "OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10000."
Raw output
@pytest.fixture(scope="session")
    def mechanical():
        print("current working directory: ", os.getcwd())
    
        if not pymechanical.mechanical.get_start_instance():
            mechanical = connect_to_mechanical_instance()
        else:
>           mechanical = launch_mechanical_instance()

tests/conftest.py:292: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/conftest.py:264: in launch_mechanical_instance
    return pymechanical.launch_mechanical(
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2243: in launch_mechanical
    raise exception
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2230: in launch_mechanical
    mechanical = Mechanical(
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:452: in __init__
    self._multi_connect(timeout=timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Error getting product info., n_attempts = 5, timeout = 120

    def _multi_connect(self, n_attempts=5, timeout=60):
        """Try to connect over a series of attempts to the channel.
    
        Parameters
        ----------
        n_attempts : int, optional
            Number of connection attempts. The default is ``5``.
        timeout : float, optional
            Maximum allowable time in seconds for establishing a connection.
            The default is ``60``.
    
        """
        # This prevents a single failed connection from blocking other attempts
        connected = False
        attempt_timeout = timeout / n_attempts
        self.log_debug(
            f"timetout:{timeout} n_attempts:{n_attempts} attempt_timeout={attempt_timeout}"
        )
    
        max_time = time.time() + timeout
        i = 1
        while time.time() < max_time and i <= n_attempts:
            self.log_debug(f"Connection attempt {i} with attempt timeout {attempt_timeout}s")
            connected = self._connect(timeout=attempt_timeout)
    
            if connected:
                self.log_debug(f"Connection attempt {i} succeeded.")
                break
    
            i += 1
        else:  # pragma: no cover
            self.log_debug(
                f"Reached either maximum amount of connection attempts "
                f"({n_attempts}) or timeout ({timeout} s)."
            )
    
        if not connected:  # pragma: no cover
>           raise IOError(f"Unable to connect to Mechanical instance at {self._channel_str}.")
E           OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10000.

/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:568: OSError

Check failure on line 1 in tests/test_mechanical.py

See this annotation in the file changed.

@github-actions github-actions / Launch Test Report 3.11

test_mechanical.test_launch_meshing_mode

failed on setup with "OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10001."
Raw output
@pytest.fixture(scope="function")
    def mechanical_meshing():
        print("current working directory: ", os.getcwd())
    
>       mechanical_meshing = pymechanical.launch_mechanical(
            additional_switches=["-AppModeMesh"],
            additional_envs=dict(ENV_VARIABLE="1"),
            verbose_mechanical=True,
            cleanup_on_exit=False,
        )

tests/conftest.py:313: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2243: in launch_mechanical
    raise exception
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2230: in launch_mechanical
    mechanical = Mechanical(
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:452: in __init__
    self._multi_connect(timeout=timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Error getting product info., n_attempts = 5, timeout = 120

    def _multi_connect(self, n_attempts=5, timeout=60):
        """Try to connect over a series of attempts to the channel.
    
        Parameters
        ----------
        n_attempts : int, optional
            Number of connection attempts. The default is ``5``.
        timeout : float, optional
            Maximum allowable time in seconds for establishing a connection.
            The default is ``60``.
    
        """
        # This prevents a single failed connection from blocking other attempts
        connected = False
        attempt_timeout = timeout / n_attempts
        self.log_debug(
            f"timetout:{timeout} n_attempts:{n_attempts} attempt_timeout={attempt_timeout}"
        )
    
        max_time = time.time() + timeout
        i = 1
        while time.time() < max_time and i <= n_attempts:
            self.log_debug(f"Connection attempt {i} with attempt timeout {attempt_timeout}s")
            connected = self._connect(timeout=attempt_timeout)
    
            if connected:
                self.log_debug(f"Connection attempt {i} succeeded.")
                break
    
            i += 1
        else:  # pragma: no cover
            self.log_debug(
                f"Reached either maximum amount of connection attempts "
                f"({n_attempts}) or timeout ({timeout} s)."
            )
    
        if not connected:  # pragma: no cover
>           raise IOError(f"Unable to connect to Mechanical instance at {self._channel_str}.")
E           OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10001.

/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:568: OSError

Check failure on line 1 in tests/test_mechanical.py

See this annotation in the file changed.

@github-actions github-actions / Launch Test Report 3.11

test_mechanical.test_launch_result_mode

failed on setup with "OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10002."
Raw output
@pytest.fixture(scope="function")
    def mechanical_result():
        print("current working directory: ", os.getcwd())
    
>       mechanical_result = pymechanical.launch_mechanical(
            additional_switches=["-AppModeRest"], verbose_mechanical=True
        )

tests/conftest.py:331: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2243: in launch_mechanical
    raise exception
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2230: in launch_mechanical
    mechanical = Mechanical(
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:452: in __init__
    self._multi_connect(timeout=timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Error getting product info., n_attempts = 5, timeout = 120

    def _multi_connect(self, n_attempts=5, timeout=60):
        """Try to connect over a series of attempts to the channel.
    
        Parameters
        ----------
        n_attempts : int, optional
            Number of connection attempts. The default is ``5``.
        timeout : float, optional
            Maximum allowable time in seconds for establishing a connection.
            The default is ``60``.
    
        """
        # This prevents a single failed connection from blocking other attempts
        connected = False
        attempt_timeout = timeout / n_attempts
        self.log_debug(
            f"timetout:{timeout} n_attempts:{n_attempts} attempt_timeout={attempt_timeout}"
        )
    
        max_time = time.time() + timeout
        i = 1
        while time.time() < max_time and i <= n_attempts:
            self.log_debug(f"Connection attempt {i} with attempt timeout {attempt_timeout}s")
            connected = self._connect(timeout=attempt_timeout)
    
            if connected:
                self.log_debug(f"Connection attempt {i} succeeded.")
                break
    
            i += 1
        else:  # pragma: no cover
            self.log_debug(
                f"Reached either maximum amount of connection attempts "
                f"({n_attempts}) or timeout ({timeout} s)."
            )
    
        if not connected:  # pragma: no cover
>           raise IOError(f"Unable to connect to Mechanical instance at {self._channel_str}.")
E           OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10002.

/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:568: OSError

Check failure on line 407 in tests/test_mechanical.py

See this annotation in the file changed.

@github-actions github-actions / Launch Test Report 3.11

test_mechanical.test_close_all_Local_instances

OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10003.
Raw output
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_close_all_Local_instances0')

    @pytest.mark.remote_session_launch
    def test_close_all_Local_instances(tmpdir):
        list_ports = []
>       mechanical = conftest.launch_mechanical_instance(cleanup_on_exit=False)

tests/test_mechanical.py:407: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/conftest.py:264: in launch_mechanical_instance
    return pymechanical.launch_mechanical(
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2243: in launch_mechanical
    raise exception
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:2230: in launch_mechanical
    mechanical = Mechanical(
/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:452: in __init__
    self._multi_connect(timeout=timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Error getting product info., n_attempts = 5, timeout = 120

    def _multi_connect(self, n_attempts=5, timeout=60):
        """Try to connect over a series of attempts to the channel.
    
        Parameters
        ----------
        n_attempts : int, optional
            Number of connection attempts. The default is ``5``.
        timeout : float, optional
            Maximum allowable time in seconds for establishing a connection.
            The default is ``60``.
    
        """
        # This prevents a single failed connection from blocking other attempts
        connected = False
        attempt_timeout = timeout / n_attempts
        self.log_debug(
            f"timetout:{timeout} n_attempts:{n_attempts} attempt_timeout={attempt_timeout}"
        )
    
        max_time = time.time() + timeout
        i = 1
        while time.time() < max_time and i <= n_attempts:
            self.log_debug(f"Connection attempt {i} with attempt timeout {attempt_timeout}s")
            connected = self._connect(timeout=attempt_timeout)
    
            if connected:
                self.log_debug(f"Connection attempt {i} succeeded.")
                break
    
            i += 1
        else:  # pragma: no cover
            self.log_debug(
                f"Reached either maximum amount of connection attempts "
                f"({n_attempts}) or timeout ({timeout} s)."
            )
    
        if not connected:  # pragma: no cover
>           raise IOError(f"Unable to connect to Mechanical instance at {self._channel_str}.")
E           OSError: Unable to connect to Mechanical instance at dns:///127.0.0.1:10003.

/usr/local/lib/python3.11/dist-packages/ansys/mechanical/core/mechanical.py:568: OSError

Check failure on line 1 in tests/test_pool.py

See this annotation in the file changed.

@github-actions github-actions / Launch Test Report 3.11

test_pool.test_map

failed on setup with "assert 0 == 2
 +  where 0 = len([])
 +    where [] = <ansys.mechanical.core.pool.LocalMechanicalPool object at 0x7f6c15084bd0>.ports"
Raw output
@pytest.fixture(scope="session")
    def mechanical_pool():
        if not pymechanical.mechanical.get_start_instance():
            return None
    
        path = atp.get_mechanical_path()
    
        exec_file = path
        instances_count = 2
    
        pool = LocalMechanicalPool(instances_count, exec_file=exec_file)
    
        print(pool)
>       assert len(pool.ports) == instances_count
E       assert 0 == 2
E        +  where 0 = len([])
E        +    where [] = <ansys.mechanical.core.pool.LocalMechanicalPool object at 0x7f6c15084bd0>.ports

tests/conftest.py:354: AssertionError

Check failure on line 1 in tests/test_pool.py

See this annotation in the file changed.

@github-actions github-actions / Launch Test Report 3.11

test_pool.test_map_no_job

failed on setup with "assert 0 == 2
 +  where 0 = len([])
 +    where [] = <ansys.mechanical.core.pool.LocalMechanicalPool object at 0x7f6c15084bd0>.ports"
Raw output
@pytest.fixture(scope="session")
    def mechanical_pool():
        if not pymechanical.mechanical.get_start_instance():
            return None
    
        path = atp.get_mechanical_path()
    
        exec_file = path
        instances_count = 2
    
        pool = LocalMechanicalPool(instances_count, exec_file=exec_file)
    
        print(pool)
>       assert len(pool.ports) == instances_count
E       assert 0 == 2
E        +  where 0 = len([])
E        +    where [] = <ansys.mechanical.core.pool.LocalMechanicalPool object at 0x7f6c15084bd0>.ports

tests/conftest.py:354: AssertionError

Check failure on line 1 in tests/test_pool.py

See this annotation in the file changed.

@github-actions github-actions / Launch Test Report 3.11

test_pool.test_run_batch_no_job

failed on setup with "assert 0 == 2
 +  where 0 = len([])
 +    where [] = <ansys.mechanical.core.pool.LocalMechanicalPool object at 0x7f6c15084bd0>.ports"
Raw output
@pytest.fixture(scope="session")
    def mechanical_pool():
        if not pymechanical.mechanical.get_start_instance():
            return None
    
        path = atp.get_mechanical_path()
    
        exec_file = path
        instances_count = 2
    
        pool = LocalMechanicalPool(instances_count, exec_file=exec_file)
    
        print(pool)
>       assert len(pool.ports) == instances_count
E       assert 0 == 2
E        +  where 0 = len([])
E        +    where [] = <ansys.mechanical.core.pool.LocalMechanicalPool object at 0x7f6c15084bd0>.ports

tests/conftest.py:354: AssertionError