Repository navigation
Speed up provider asset change detection by pruning dependency directories - #72784
Merged
potiuk merged 1 commit intoSep 9, 2026
Merged
Conversation
…ories The provider asset hash already excluded node_modules and .pnpm-store, but only after listing and resolving every path under them. That is about two seconds per provider on each breeze start-airflow for nothing. Pruning the directories during the walk removes the cost.
Andrushika
requested review from
amoghrajesh,
ashb,
bugraoz93,
gopidesupavan,
jason810496,
jscheffl and
potiuk
as code owners
September 9, 2026 07:53
potiuk
approved these changes
Sep 9, 2026
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
potiuk
pushed a commit
that referenced
this pull request
Sep 9, 2026
…dency directories (#72784) (#72800) The provider asset hash already excluded node_modules and .pnpm-store, but only after listing and resolving every path under them. That is about two seconds per provider on each breeze start-airflow for nothing. Pruning the directories during the walk removes the cost. (cherry picked from commit 01e0ace) Co-authored-by: Andrew Chang <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Before each
breeze start-airflow,compile_provider_assets.pyhashes the providerwwwdirectory to decide if the plugin UI needs a rebuild. That directory also holdsnode_modulesand.pnpm-store(the pnpm cache lands there because our lint hooks setstore-dirto a relative path), so the hash excludes both.But the exclusion is a regexp over the result of
rglob, which means every path under them is still listed andresolve()first, then thrown away. That is about 2s per provider, and common.ai runs on every start.#72783 fixed the same thing in
compile_ui_assets.py.What
Walk with
os.walkand prune the two directories, so nothing under them is listed or resolved. Hash time for common.ai and edge3 goes from about 2s to under 10ms each. The hash order changes, so each provider rebuilds once after this lands.related: #72783
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Fable 5.1) following the guidelines