diff --git a/airflow-e2e-tests/tests/airflow_e2e_tests/conftest.py b/airflow-e2e-tests/tests/airflow_e2e_tests/conftest.py index af72b97e7cf62..1de692710bb16 100644 --- a/airflow-e2e-tests/tests/airflow_e2e_tests/conftest.py +++ b/airflow-e2e-tests/tests/airflow_e2e_tests/conftest.py @@ -644,9 +644,9 @@ def spin_up_airflow_environment(tmp_path_factory: pytest.TempPathFactory): # os.environ["FERNET_KEY"] = generate_fernet_key_string() - # If we are using the image from ghcr.io/apache/airflow we do not pull - # as it is already available and loaded using prepare_breeze_and_image step in workflow - pull = False if DOCKER_IMAGE.startswith("ghcr.io/apache/airflow/") else True + # ghcr.io/apache/airflow is already available and loaded using prepare_breeze_and_image step in workflow. + # openlineage-e2e is built locally and the workflow doesn't push it. + pull = not DOCKER_IMAGE.startswith(("ghcr.io/apache/airflow/", "openlineage-e2e/")) try: console.print(f"[blue]Spinning up airflow environment using {DOCKER_IMAGE}")