Skip to content

[v3-0-test] Move SQS message queue to Amazon provider (#50057)#50096

Merged
potiuk merged 1 commit intoapache:v3-0-testfrom
potiuk:backport-4f962f4-v3-0-test
May 2, 2025
Merged

[v3-0-test] Move SQS message queue to Amazon provider (#50057)#50096
potiuk merged 1 commit intoapache:v3-0-testfrom
potiuk:backport-4f962f4-v3-0-test

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented May 1, 2025

The common.messaging abstraction should discover common messaging queue providers using the same mechanism as we have for other core extensions. Previously common.messaging had the optional (but not really) dependencies to other providers, but that was not needed and introduced unnecessary coupling.

By switching to our built-in discovery mechanism we get immediately all the niceties of provider discovery mechanisms:

  • queue is provided by the actual provider where the service or integration already is implemented (sqs -> amazon provider, in the future kafka -> kafka provider)
  • queues are discovered from installed providers
  • there is no coupling or imports between common.messaging and the providers that implement messaging, the dependency is in the other way - providers that implement messaging depend on common.messaging
  • airflow providers queues CLI and providers core extensions documentation is automatically generated (cherry picked from commit 4f962f4)

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@potiuk potiuk added the full tests needed We need to run full set of tests for this PR to merge label May 1, 2025
@potiuk potiuk force-pushed the backport-4f962f4-v3-0-test branch from 463a18f to 47b9ca1 Compare May 1, 2025 20:54
@potiuk potiuk force-pushed the backport-4f962f4-v3-0-test branch from 47b9ca1 to 9452e96 Compare May 2, 2025 06:41
@potiuk
Copy link
Member Author

potiuk commented May 2, 2025

Will need #50115 cherry-picked to succeed building PROD images (we need to build common.messaging 1.0.1 built locally until we release it in PyPI

@potiuk potiuk force-pushed the backport-4f962f4-v3-0-test branch from 9452e96 to 558d57b Compare May 2, 2025 11:32
The common.messaging abstraction should discover common messaging
queue providers using the same mechanism as we have for other core
extensions. Previously common.messaging had the optional (but not
really) dependencies to other providers, but that was not needed
and introduced unnecessary coupling.

By switching to our built-in discovery mechanism we get immediately
all the niceties of provider discovery mechanisms:

* queue is provided by the actual provider where the service or
  integration already is implemented (sqs -> amazon provider, in
  the future kafka -> kafka provider)
* queues are discovered from installed providers
* there is no coupling or imports between common.messaging and the
  providers that implement messaging, the dependency is in the other
  way - providers that implement messaging depend on common.messaging
* airflow providers queues CLI and providers core extensions
  documentation is automatically generated
(cherry picked from commit 4f962f4)

Co-authored-by: Jarek Potiuk <[email protected]>
@potiuk potiuk force-pushed the backport-4f962f4-v3-0-test branch from 558d57b to c23d882 Compare May 2, 2025 12:34
@potiuk potiuk merged commit e226db4 into apache:v3-0-test May 2, 2025
73 checks passed
@potiuk potiuk deleted the backport-4f962f4-v3-0-test branch May 2, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI area:providers full tests needed We need to run full set of tests for this PR to merge kind:documentation provider:amazon AWS/Amazon - related issues provider:cncf-kubernetes Kubernetes (k8s) provider related issues provider:common-messaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants