Skip to content

Export DataFusionToolset, AgentSkillsToolset and LoggingToolset… - #74449

Merged
Lee-W merged 4 commits into
apache:mainfrom
astronomer:common-ai-toolsets-export-lazy
Oct 9, 2026
Merged

Lee-W merged 4 commits into
apache:mainfrom
astronomer:common-ai-toolsets-export-lazy

Conversation

@Lee-W

@Lee-W Lee-W commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Why

Every other toolset can be imported from airflow.providers.common.ai.toolsets, but DataFusionToolset, AgentSkillsToolset and LoggingToolset required the submodule path.

What

  • DataFusionToolset, AgentSkillsToolset and LoggingToolset are added to __all__, so all toolsets import from airflow.providers.common.ai.toolsets.
  • AgentSkillsToolset and LoggingToolset have no optional dependency and are imported eagerly. DataFusionToolset stays behind the lazy module __getattr__, so importing the package does not require the optional DataFusion dependency; datafusion.py raises AirflowOptionalProviderFeatureException itself when it is missing.
  • The "Importing toolsets" docs section now lists every toolset as a root import.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [Claude] following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {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.

Lee-W added 4 commits October 9, 2026 05:54
… 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
Lee-W force-pushed the common-ai-toolsets-export-lazy branch from 177dc51 to d6b5b0f Compare October 9, 2026 04:54
@Lee-W
Lee-W merged commit 386c0ba into apache:main Oct 9, 2026
85 checks passed
@Lee-W
Lee-W deleted the common-ai-toolsets-export-lazy branch October 9, 2026 06:07
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants