Skip to content

Conversation

@jscheffl
Copy link
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
Copy link
Contributor

Copilot AI left a comment

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:

Copy link
Member

@potiuk potiuk left a comment

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
Contributor Author

Assuming CI will agree :)

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

@jscheffl
Copy link
Contributor Author

Now green... finally...

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

potiuk commented Jun 22, 2025

Now green... finally...

👀

@potiuk potiuk merged commit 2e8102a into main Jun 22, 2025
336 checks passed
@potiuk potiuk deleted the revert-51998-revert-edge-fab branch June 22, 2025 14:12
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.

2 participants