The GitHub Actions job "Tests" on airflow.git has succeeded.
Run started by GitHub user tatiana (triggered by tatiana).

Head commit for run:
1b043cbea971269295cfe6377bfcc926ac8d9f47 / Tatiana Al-Chueyr 
<[email protected]>
Add (optional) minimum dependency between dbt-cloud and OpenLineage provider

Since the change https://github.com/apache/airflow/pull/38033 was merged, 
`airflow-providers-dbt-cloud>=1.7.0` depend on 
`airflow-providers-openlineage>=1.7.0`. However, since this dependency was not 
declared anywhere.

This is the error users face if they use `airflow-providers-dbt-cloud>=1.7.0` 
and `airflow-providers-openlineage<1.7.0`:
```
2024-05-01, 10:17:39 UTC] {base.py:147} ERROR - OpenLineage provider method 
failed to import OpenLineage integration. This should not happen.
Traceback (most recent call last):
  File 
/usr/local/lib/python3.9/site-packages/airflow/providers/openlineage/extractors/base.py,
 line 137, in _get_openlineage_facets
    facets: OperatorLineage = get_facets_method(*args)
  File 
/usr/local/lib/python3.9/site-packages/airflow/providers/dbt/cloud/operators/dbt.py,
 line 249, in get_openlineage_facets_on_complete
    return generate_openlineage_events_from_dbt_cloud_run(operator=self, 
task_instance=task_instance)
  File 
/usr/local/lib/python3.9/site-packages/airflow/providers/dbt/cloud/utils/openlineage.py,
 line 50, in generate_openlineage_events_from_dbt_cloud_run
    from airflow.providers.openlineage.conf import namespace
ModuleNotFoundError: No module named 'airflow.providers.openlineage.conf'
```

Given that the dependency between both is optional, this PR introduces 
additional-extras to the dbt provider, solving the dependency issue for users 
who install using .

Report URL: https://github.com/apache/airflow/actions/runs/8922310036

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to