Skip to content

AzureServiceBusSubscriptionTrigger imports test-only module at runtime #60643

@rstoof

Description

@rstoof

Apache Airflow Provider(s)

microsoft-azure

Versions of Apache Airflow Providers

12.10.1

Apache Airflow version

3.1.1

Operating System

Ubuntu 22.04.5 LTS

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

What happened

The AzureServiceBusSubscriptionTrigger in apache-airflow-providers-microsoft-azure fails to load in production environments because it imports from tests_common.test_utils.version_compat, which is not available outside the Airflow development repository.

What you think should happen instead

The trigger should load successfully and poll the Service Bus subscription for messages.

How to reproduce

  1. Install apache-airflow-providers-microsoft-azure in a production Airflow environment
  2. Create a deferrable sensor/operator that uses AzureServiceBusSubscriptionTrigger
  3. Trigger the task so it defers to the trigger
  4. Observe the triggerer process logs

Anything else

Where could we get an aiflow version that is not tests_common?

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions