Skip to content

Conversation

@Srabasti
Copy link
Contributor

@Srabasti Srabasti commented Jan 4, 2026

Per [https://github.com//issues/60000],

Update keycloack provider to stop importing conf from airflow.configuration and instead use the shared compat import
from airflow.providers.common.compat.sdk import conf.

@Srabasti
Copy link
Contributor Author

Srabasti commented Jan 4, 2026

Prek checks run locally with no errors as below
image

@Prab-27
Copy link
Contributor

Prab-27 commented Jan 4, 2026

Do we need to update pyproject.toml since its using

"apache-airflow-providers-common-compat>=1.10.1",
dependencies as issue describes ?

I'd love to hear your point of view

@Srabasti Srabasti requested a review from Prab-27 January 4, 2026 08:26
@Srabasti
Copy link
Contributor Author

Srabasti commented Jan 4, 2026

Do we need to update pyproject.toml since its using

"apache-airflow-providers-common-compat>=1.10.1",

dependencies as issue describes ?
I'd love to hear your point of view

Great thinking @prab! As per original PR 60000, snippet below, ONLY if a new import is added to sdk.py that a provider uses, THEN that provider's pyproject.toml needs to be updated. Since no changes are made to sdk.py for keycloak provider, looks to me this is not needed.

@sunank200 Your thoughts on this?

image

@potiuk
Copy link
Member

potiuk commented Jan 4, 2026

Great thinking @prab! As per original PR 60000, snippet below, ONLY if a new import is added to sdk.py that a provider uses, THEN that provider's pyproject.toml needs to be updated. Since no changes are made to sdk.py for keycloak provider, looks to me this is not needed.

You should update it with # use next version -> this feature (common.compat import for conf) has just been added, so you should use "next" version of the common.compat provider (that will be released in the next wave) @Srabasti

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requesting changes to not merge it accidentally

@Srabasti Srabasti requested a review from potiuk January 5, 2026 02:17
@Srabasti
Copy link
Contributor Author

Srabasti commented Jan 5, 2026

Incorporated changes for airflow/providers/keycloak/pyproject.toml file :
Line 62 "apache-airflow-providers-common-compat>=1.10.1",
to
"apache-airflow-providers-common-compat>=1.10.1", #use next version
All checks passed and green.

@potiuk potiuk merged commit 960c2c5 into apache:main Jan 5, 2026
99 checks passed
@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Backport failed to create: v3-1-test. View the failure log Run details

Status Branch Result
v3-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 960c2c5 v3-1-test

This should apply the commit to the v3-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

chirodip98 pushed a commit to chirodip98/airflow-contrib that referenced this pull request Jan 9, 2026
* Fix deprecated sqlalchemy usage for test_processor.py

* Remove deprecate Query usage and upgrade to SQLAlchemy2.0

* Updating files for test_not_previously_skipped_dep.py

* Reverting changes to pyproject.toml files for test_not_previously_skipped_dep.py

* Reverting changes to pyproject.toml files for test_not_previously_skipped_dep.py

* Reverting changes to pyproject.toml files for test_not_previously_skipped_dep.py

* Making changes to test_not_previously_skipped_dep.py

* Making changes to pre-committest_not_previously_skipped_dep.py

* Making changes to pre-commit-config

* Fix pre-commit hook issues hopefully

* Update keycloak provider for conf imports

* Reverting changes from old PR

* pyproject.toml update to use next version
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
* Fix deprecated sqlalchemy usage for test_processor.py

* Remove deprecate Query usage and upgrade to SQLAlchemy2.0

* Updating files for test_not_previously_skipped_dep.py

* Reverting changes to pyproject.toml files for test_not_previously_skipped_dep.py

* Reverting changes to pyproject.toml files for test_not_previously_skipped_dep.py

* Reverting changes to pyproject.toml files for test_not_previously_skipped_dep.py

* Making changes to test_not_previously_skipped_dep.py

* Making changes to pre-committest_not_previously_skipped_dep.py

* Making changes to pre-commit-config

* Fix pre-commit hook issues hopefully

* Update keycloak provider for conf imports

* Reverting changes from old PR

* pyproject.toml update to use next version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants