anderson-fachini opened a new issue, #61360: URL: https://github.com/apache/airflow/issues/61360
### Apache Airflow Provider(s) cncf-kubernetes ### Versions of Apache Airflow Providers apache-airflow-providers-cncf-kubernetes==10.12.2 ### Apache Airflow version 3.1.5 ### Operating System Debian 12 ### Deployment Official Apache Airflow Helm Chart ### Deployment details helm 4.0.4, k8s 1.32.1 ### What happened cleanup cronjob in apache-airflow-providers-cncf-kubernetes 10.12.2 fails to load in production environments because it imports from tests_common.test_utils.taskinstance, which is not available outside the Airflow development repository. PR that introduced the problem: https://github.com/apache/airflow/pull/60112 Exception log: ` Traceback (most recent call last): File "/home/airflow/.local/bin/airflow", line 7, in <module> sys.exit(main()) ^^^^^^ File "/home/airflow/.local/lib/python3.12/site-packages/airflow/__main__.py", line 55, in main args.func(args) File "/home/airflow/.local/lib/python3.12/site-packages/airflow/cli/cli_config.py", line 48, in command func = import_string(import_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/airflow/.local/lib/python3.12/site-packages/airflow/utils/module_loading.py", line 41, in import_string module = import_module(module_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/python/lib/python3.12/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/cncf/kubernetes/cli/kubernetes_command.py", line 40, in <module> from tests_common.test_utils.taskinstance import create_task_instance ModuleNotFoundError: No module named 'tests_common' ` ### What you think should happen instead _No response_ ### How to reproduce Just trigger cleanup job ### Anything else _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
