diff --git a/.gitattributes b/.gitattributes index 2c85720..23a8962 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ -poetry.lock linguist-generated=true +poetry.lock linguist-generated +doc/changes/changelog.md linguist-generated diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a70ee85..f3d49fd 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -119,8 +119,7 @@ jobs: - name: Calculate Test Coverage run: poetry run nox -s coverage -- -- --db-version ${{ matrix.exasol-version }} env: - PYTEST_ADDOPTS=" - -W 'ignore::DeprecationWarning:luigi:' + PYTEST_ADDOPTS: "-W 'ignore::DeprecationWarning:luigi:' -W 'ignore::DeprecationWarning:pkg_resources:' -W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning' -W 'ignore:Deprecated call to \`pkg_resources.declare_namespace:DeprecationWarning' diff --git a/doc/changes/changes_0.4.0.md b/doc/changes/changes_0.4.0.md index 2d05f3a..f8898e1 100644 --- a/doc/changes/changes_0.4.0.md +++ b/doc/changes/changes_0.4.0.md @@ -1,4 +1,4 @@ -# 0.4.0 - 2024-10-22 +# 0.4.0 - 2024-10-23 ## Summary diff --git a/exasol/nb_connector/itde_manager.py b/exasol/nb_connector/itde_manager.py index a66775d..f9e57cb 100644 --- a/exasol/nb_connector/itde_manager.py +++ b/exasol/nb_connector/itde_manager.py @@ -23,18 +23,6 @@ from exasol.nb_connector.container_by_ip import ContainerByIp, IPRetriever from exasol.nb_connector.secret_store import Secrets -import logging -LOG = logging.getLogger(__name__) -LOG.setLevel(logging.DEBUG) -logging.basicConfig( - format="%(asctime)s %(levelname)-7s %(filename)s: %(message)s", - datefmt="%Y-%m-%d %X", -) - -# if __name__ == "__main__": -# LOG.info("info") -# LOG.debug("debug") - ENVIRONMENT_NAME = "DemoDb" NAME_SERVER_ADDRESS = "8.8.8.8" @@ -113,24 +101,17 @@ def bring_itde_up(conf: Secrets, env_info: Optional[EnvironmentInfo] = None) -> def _get_current_container(docker_client: docker.DockerClient): ip_addresses = _get_ipv4_addresses() - LOG.debug(f"_get_current_container: ip_addresses = {ip_addresses}") return ContainerByIp(docker_client).find(ip_addresses) def _add_current_container_to_db_network(network_name: str) -> None: - LOG.debug(f"_add_current_container_to_db_network({network_name})") with ContextDockerClient() as docker_client: container = _get_current_container(docker_client) - LOG.debug(f"- container = {container and container.name}") if not container: return network = _get_docker_network(docker_client, network_name) - LOG.debug(f"- network = {network}") if network and not _is_container_connected_to_network(container, network): - LOG.debug(f"- connecting container {container.id} to the network") network.connect(container.id) - else: - LOG.debug("- either network is falsy or container is already connected")