Skip to content

Consolidate SkipMixin imports through common-compat layer#62776

Merged
kaxil merged 2 commits intoapache:mainfrom
astronomer:consolidate-skipmixin-compat-imports
Mar 3, 2026
Merged

Consolidate SkipMixin imports through common-compat layer#62776
kaxil merged 2 commits intoapache:mainfrom
astronomer:consolidate-skipmixin-compat-imports

Conversation

@kaxil
Copy link
Copy Markdown
Member

@kaxil kaxil commented Mar 3, 2026

Follow-up of #62749

Replace version-conditional SkipMixin imports in branch.py and test_skipmixin.py with the common.compat.sdk layer. Add the standard provider's skipmixin as a middle fallback path in the compat import chain for consistency with common/compat/standard/utils.py.

Also route SkipMixin and XComArg in common/sql through the compat layer instead of importing directly from airflow.models.


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

  • 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 or {issue_number}.significant.rst, in airflow-core/newsfragments.

@kaxil kaxil requested a review from gopidesupavan March 3, 2026 09:17
@kaxil kaxil changed the title Consolidate SkipMixin imports through common-compat layer Consolidate SkipMixin imports through common-compat layer Mar 3, 2026
Replace version-conditional SkipMixin imports in branch.py and
test_skipmixin.py with the common.compat.sdk layer. Add the standard
provider's skipmixin as a middle fallback path in the compat import
chain for consistency with common/compat/standard/utils.py.

Also route SkipMixin and XComArg in common/sql through the compat
layer instead of importing directly from airflow.models / airflow.

Bump common-compat dependency to >=1.14.0.
@kaxil kaxil force-pushed the consolidate-skipmixin-compat-imports branch from 7de8bb7 to ec83937 Compare March 3, 2026 09:25
Move airflow.models.skipmixin before
airflow.providers.standard.utils.skipmixin in the compat
fallback chain. On Airflow 2.x, the standard provider's
SkipMixin is Airflow 3-only (uses DownstreamTasksSkipped),
so the compat layer should resolve to the old session-based
airflow.models.skipmixin first.
@kaxil kaxil merged commit 1199dc5 into apache:main Mar 3, 2026
125 checks passed
@kaxil kaxil deleted the consolidate-skipmixin-compat-imports branch March 3, 2026 11:38
dominikhei pushed a commit to dominikhei/airflow that referenced this pull request Mar 11, 2026
…#62776)

Replace version-conditional SkipMixin imports in branch.py and
test_skipmixin.py with the common.compat.sdk layer. Add the standard
provider's skipmixin as a middle fallback path in the compat import
chain for consistency with common/compat/standard/utils.py.

Also route SkipMixin and XComArg in common/sql through the compat
layer instead of importing directly from airflow.models / airflow.
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.2.0 milestone Apr 7, 2026
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.

3 participants