Repository navigation
Export DataFusionToolset, AgentSkillsToolset and LoggingToolset… - #74449
Merged
Merged
Conversation
kaxil
approved these changes
Oct 8, 2026
kaxil
reviewed
Oct 8, 2026
… from `toolsets` Every other toolset can be imported from `airflow.providers.common.ai.toolsets`; these three required the submodule path. They load lazily, so importing the package does not require the optional DataFusion dependency.
- Rewrite the "Importing toolsets" section: all nine toolsets import from the package root - Note which optional extras raise on first access and which fail on first connection
- Drop the lazy `__getattr__` branches for the two toolsets that have no optional dependency - Drop the unreachable `ImportError` handler around `DataFusionToolset`
- Delete the export smoke test, which adds no coverage worth maintaining
Lee-W
force-pushed
the
common-ai-toolsets-export-lazy
branch
from
October 9, 2026 04:54
177dc51 to
d6b5b0f
Compare
This was referenced Oct 14, 2026
Lee-W
added a commit
to astronomer/airflow
that referenced
this pull request
Oct 26, 2026
The 1.0.0 note says LoggingToolset left the public API, so the Features bullet for apache#74449 should not list it as exported.
Lee-W
added a commit
to astronomer/airflow
that referenced
this pull request
Oct 26, 2026
1.0.0 is released and still exports LoggingToolset (apache#74449), so the removal note belongs under the next release. Restore LoggingToolset in the 1.0.0 export entry.
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
Every other toolset can be imported from
airflow.providers.common.ai.toolsets, butDataFusionToolset,AgentSkillsToolsetandLoggingToolsetrequired the submodule path.What
DataFusionToolset,AgentSkillsToolsetandLoggingToolsetare added to__all__, so all toolsets import fromairflow.providers.common.ai.toolsets.AgentSkillsToolsetandLoggingToolsethave no optional dependency and are imported eagerly.DataFusionToolsetstays behind the lazy module__getattr__, so importing the package does not require the optional DataFusion dependency;datafusion.pyraisesAirflowOptionalProviderFeatureExceptionitself when it is missing.Was generative AI tooling used to co-author this PR?
Generated-by: [Claude] following the guidelines
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.