Skip to content

Revert "Revert "Remove FAB dependency from Edge3 Provider (#51995)"" - #52000

Merged
potiuk merged 4 commits into
mainfrom
revert-51998-revert-edge-fab
Jun 22, 2025
Merged

potiuk merged 4 commits into
mainfrom
revert-51998-revert-edge-fab

Conversation

@jscheffl

Copy link
Copy Markdown
Contributor

Attempt to re-apply #51995 with full tests.

Reverts #51998

@jscheffl jscheffl added full tests needed We need to run full set of tests for this PR to merge all versions If set, the CI build will be forced to use all versions of Python/K8S/DBs labels Jun 21, 2025
@boring-cyborg boring-cyborg Bot added area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3 labels Jun 21, 2025
@jscheffl
jscheffl force-pushed the revert-51998-revert-edge-fab branch from 32ec3e1 to c3dff49 Compare June 21, 2025 22:18
@jscheffl
jscheffl force-pushed the revert-51998-revert-edge-fab branch from c3dff49 to aaf9fa6 Compare June 22, 2025 10:59
@jscheffl
jscheffl requested review from Copilot and potiuk and removed request for potiuk June 22, 2025 11:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR re-applies a previous change that removed the FAB dependency from the Edge3 Provider while ensuring full test coverage. Key changes include modifying test assertions for the plugin’s configuration under different Airflow versions, refactoring the API endpoint setup in the plugin to use FastAPI for Airflow 3.0+, and updating the dependency list in pyproject.toml.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
providers/edge3/tests/unit/edge3/plugins/test_edge_executor_plugin.py Adjusted test assertions to align with the new plugin behavior between Airflow 3.0+ and earlier versions
providers/edge3/src/airflow/providers/edge3/plugins/edge_executor_plugin.py Updated API endpoint configuration and refactored imports and endpoint definitions for compatibility with Airflow 3.0+
providers/edge3/pyproject.toml Removed the FAB provider dependency for both runtime and development
Comments suppressed due to low confidence (2)

providers/edge3/tests/unit/edge3/plugins/test_edge_executor_plugin.py:58

  • [nitpick] Consider adding an inline comment here to clarify why the expectations for 'appbuilder_views' and 'flask_blueprints' differ between AIRFLOW_V_3_0_PLUS and earlier versions to aid future maintenance.
            assert len(rep.appbuilder_views) == 0

providers/edge3/src/airflow/providers/edge3/plugins/edge_executor_plugin.py:222

  • [nitpick] Consider adding a brief inline comment explaining why only 'fastapi_apps' is assigned in the AIRFLOW_V_3_0_PLUS branch and why the legacy 'appbuilder_views' and 'flask_blueprints' are omitted, for clarity on the version-specific design decisions.
        if AIRFLOW_V_3_0_PLUS:

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming CI will agree :)

@jscheffl

Copy link
Copy Markdown
Contributor Author

Assuming CI will agree :)

Oh, no, seems need another iteration... :-(

@jscheffl

Copy link
Copy Markdown
Contributor Author

Now green... finally...

@jscheffl
jscheffl marked this pull request as ready for review June 22, 2025 13:12
@potiuk

potiuk commented Jun 22, 2025

Copy link
Copy Markdown
Member

Now green... finally...

👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

all versions If set, the CI build will be forced to use all versions of Python/K8S/DBs area:providers full tests needed We need to run full set of tests for this PR to merge provider:edge Edge Executor / Worker (AIP-69) / edge3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants