Skip to content

Conversation

@jscheffl
Copy link
Contributor

As a preparation to reduce complexity in PR #53563 and as "soon" also Edge will build Provider specific assets...

This PR makes a generalization of the pre-commit hook to check an build provider assets. Edge configuration will be added separately

@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Jul 20, 2025
@jscheffl jscheffl force-pushed the feature/generalize-plugin-asset-build branch from 936cdcf to 9f947ca Compare July 21, 2025 20:48
@jscheffl jscheffl force-pushed the feature/generalize-plugin-asset-build branch from 9f947ca to 6ab467b Compare July 30, 2025 20:15
@jscheffl jscheffl requested a review from Copilot July 30, 2025 20:17
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 generalizes the FAB provider asset compilation script to support multiple providers as preparation for reducing complexity in a future PR. The changes refactor hardcoded FAB-specific paths into a configurable dictionary structure and update the compilation function to accept a provider parameter.

  • Replaces hardcoded FAB paths with a configurable PROVIDERS_PATHS dictionary
  • Updates compile_assets() function to accept a provider name parameter instead of a direct path
  • Modifies the pre-commit hook to pass "fab" as an argument to the generalized script

Reviewed Changes

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

File Description
scripts/ci/pre_commit/compile_provider_assets.py Generalizes asset compilation from FAB-specific to multi-provider support with configurable paths
.pre-commit-config.yaml Updates pre-commit hook entry point to use generalized script with "fab" parameter

@jscheffl jscheffl requested a review from vincbeck July 30, 2025 20:39
@jscheffl jscheffl merged commit 68b6c36 into apache:main Jul 30, 2025
56 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 30, 2025
* Generalize UI Asset build in Plugins

* Review feedback

* Copilot feedback
(cherry picked from commit 68b6c36)

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
@github-actions
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

RoyLee1224 pushed a commit to RoyLee1224/airflow that referenced this pull request Jul 31, 2025
* Generalize UI Asset build in Plugins

* Review feedback

* Copilot feedback
ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 7, 2025
* Generalize UI Asset build in Plugins

* Review feedback

* Copilot feedback
fweilun pushed a commit to fweilun/airflow that referenced this pull request Aug 11, 2025
* Generalize UI Asset build in Plugins

* Review feedback

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

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants