Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DB utils for Airflow Backwards compatability tests - import not existing #42522

Conversation

jscheffl
Copy link
Contributor

@jscheffl jscheffl commented Sep 26, 2024

Fix broken main/canary in https://github.com/apache/airflow/actions/runs/11058948895/job/30726378646
...as of merge #42455

Moving import into function preventing non existing import from utils

ImportError while importing test module '/opt/airflow/tests/providers/google/cloud/log/test_gcs_task_handler.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/providers/google/cloud/log/test_gcs_task_handler.py:31: in <module>
    from tests.test_utils.db import clear_db_dags, clear_db_runs
tests/test_utils/db.py:38: in <module>
    from airflow.models.backfill import Backfill, BackfillDagRun
E   ModuleNotFoundError: No module named 'airflow.models.backfill'

@jedcunningham jedcunningham merged commit 3749dbd into apache:main Sep 26, 2024
51 checks passed
joaopamaral pushed a commit to joaopamaral/airflow that referenced this pull request Oct 21, 2024
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants