Revert "Revert "Remove FAB dependency from Edge3 Provider (#51995)""#52000
Revert "Revert "Remove FAB dependency from Edge3 Provider (#51995)""#52000
Conversation
32ec3e1 to
c3dff49
Compare
c3dff49 to
aaf9fa6
Compare
There was a problem hiding this comment.
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:
Oh, no, seems need another iteration... :-( |
|
Now green... finally... |
👀 |
Attempt to re-apply #51995 with full tests.
Reverts #51998