dirrao commented on PR #39908: URL: https://github.com/apache/airflow/pull/39908#issuecomment-2208890297
@potiuk I am seeing this deprecation warning everywhere. As it is being triggered during initialization. is there any place where we can add it ignore it for the all the test cases? is there any better way to handle this? `request = <SubRequest 'initialize_airflow_tests' for <Function test_jdbc_conn_connection>> @pytest.fixture(autouse=True, scope="session") def initialize_airflow_tests(request): """Helper that setups Airflow testing environment.""" print(" AIRFLOW ".center(60, "=")) # Setup test environment for breeze home = os.path.expanduser("~") airflow_home = os.environ.get("AIRFLOW_HOME") or os.path.join(home, "airflow") print(f"Home of the user: {home}\nAirflow home {airflow_home}") # Initialize Airflow db if required lock_file = os.path.join(airflow_home, ".airflow_db_initialised") if not skip_db_tests: if request.config.option.db_init: print("Initializing the DB - forced with --with-db-init switch.") initial_db_init() elif not os.path.exists(lock_file): print( "Initializing the DB - first time after entering the container.\n" "You can force re-initialization the database by adding --with-db-init switch to run-tests." ) > initial_db_init() tests/conftest.py:383: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:346: in initial_db_init from tests.test_utils.compat import AIRFLOW_V_2_8_PLUS, AIRFLOW_V_2_10_PLUS tests/test_utils/compat.py:28: in <module> from airflow.models import Connection, Operator airflow/models/__init__.py:79: in __getattr__ val = import_string(f"{path}.{name}") airflow/utils/module_loading.py:39: in import_string module = import_module(module_path) /usr/local/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) airflow/models/operator.py:22: in <module> from airflow.models.baseoperator import BaseOperator airflow/models/baseoperator.py:85: in <module> from airflow.models.taskinstance import TaskInstance, clear_task_instances airflow/models/taskinstance.py:103: in <module> from airflow.models.xcom import LazyXComSelectSequence, XCom airflow/models/xcom.py:52: in <module> from airflow.utils.json import XComDecoder, XComEncoder airflow/utils/json.py:27: in <module> from airflow.serialization.serde import CLASSNAME, DATA, SCHEMA_ID, deserialize, serialize airflow/serialization/serde.py:406: in <module> _register() airflow/serialization/serde.py:391: in _register _stringifiers[c] = name airflow/metrics/protocols.py:112: in __exit__ self.stop()` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org