Skip to content

The test_refresh_dags_dir_deactivates_deleted_zipped_dags is flaky #46432

@potiuk

Description

@potiuk

Flaky test in DAG zipped dags

=================================== FAILURES ===================================
_ TestDagFileProcessorManager.test_refresh_dags_dir_deactivates_deleted_zipped_dags _
tests/dag_processing/test_manager.py:636: in test_refresh_dags_dir_deactivates_deleted_zipped_dags
    assert not dag.get_is_active()
E   assert not True
E    +  where True = get_is_active()
E    +    where get_is_active = <DAG: test_zip_dag>.get_is_active
----------------------------- Captured stdout call -----------------------------
[2025-02-04T16:02:01.361+0000] {dagbag.py:574} INFO - Filling up the DagBag from /tmp/pytest-of-root/pytest-0/test_refresh_dags_dir_deactiva0
[2025-02-04T16:02:01.364+0000] {dagbag.py:442} INFO - File /opt/airflow/tests/dags/test_zip.zip:file_no_airflow_dag.py assumed to contain no DAGs. Skipping.
[2025-02-04T16:02:01.371+0000] {collection.py:83} INFO - Creating ORM DAG for test_zip_dag
[2025-02-04T16:02:01.391+0000] {manager.py:231} INFO - Processing files using up to 2 processes at a time 
[2025-02-04T16:02:01.391+0000] {manager.py:232} INFO - Process each file at most once every 30 seconds
[2025-02-04T16:02:01.392+0000] {manager.py:98} INFO - DAG bundles loaded: testing
[2025-02-04T16:02:01.394+0000] {manager.py:98} INFO - DAG bundles loaded: testing
[2025-02-04T16:02:01.395+0000] {manager.py:443} INFO - Refreshing DAG bundles
[2025-02-04T16:02:01.398+0000] {manager.py:531} INFO - Searching for files in testing at /opt/airflow/tests/dags
[2025-02-04T16:02:01.416+0000] {manager.py:533} INFO - Found 41 files for bundle testing
[2025-02-04T16:02:01.466+0000] {manager.py:704} INFO - 
================================================================================

Example failure: https://github.com/apache/airflow/actions/runs/13139235278/job/36662824378?pr=46431#step:6:3443

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:CIAirflow's tests and continious integrationarea:core

    Type

    No type

    Projects

    Status

    Flaky stuff

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions