Skip to content

Fix Version Check for CLI Imports in Providers - #45255

Merged
jedcunningham merged 6 commits into
apache:mainfrom
bugraoz93:fix/cli-import-in-providers
Dec 30, 2024
Merged

jedcunningham merged 6 commits into
apache:mainfrom
bugraoz93:fix/cli-import-in-providers

Conversation

@bugraoz93

@bugraoz93 bugraoz93 commented Dec 27, 2024 •

Copy link
Copy Markdown
Contributor

closes: #44538 (comment)
While testing the changes (here #45148, I missed that we are releasing the providers from the main branch but actual versions not from the main branch. So I have only tested the changes on the main, my bad 🤦

The imports for the older versions were adjusted accordingly.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk

potiuk commented Dec 27, 2024

Copy link
Copy Markdown
Member

Hmm. Interesting it was not caught by the compatibility tests

@potiuk

potiuk commented Dec 27, 2024

Copy link
Copy Markdown
Member

And some tests still need fixing.

@bugraoz93

Copy link
Copy Markdown
Contributor Author

Hmm. Interesting it was not caught by the compatibility tests

Yeah, I would expect some tests to fail.

And some tests still need fixing.

Yes, I am fixing them now. Thanks for the quick review!

Comment thread providers/src/airflow/providers/celery/executors/celery_executor.py Outdated
Comment thread providers/src/airflow/providers/fab/auth_manager/cli_commands/db_command.py Outdated
Comment thread providers/tests/celery/cli/test_celery_command.py Outdated
@bugraoz93
bugraoz93 force-pushed the fix/cli-import-in-providers branch from b89f1f4 to e01cf3f Compare December 27, 2024 22:57
Comment thread providers/src/airflow/providers/fab/version_compat.py Outdated
@bugraoz93
bugraoz93 force-pushed the fix/cli-import-in-providers branch from 0c8e1fe to b2653cf Compare December 27, 2024 23:09
@bugraoz93

Copy link
Copy Markdown
Contributor Author

My local pre-commit didn't fix the exact issue even with --all-files. Suspecting from old image, rebuilding and trying again now

@bugraoz93
bugraoz93 force-pushed the fix/cli-import-in-providers branch from 07b07eb to cc5fe7e Compare December 30, 2024 00:40
@bugraoz93
bugraoz93 force-pushed the fix/cli-import-in-providers branch from cc5fe7e to c44ef80 Compare December 30, 2024 00:43
@jedcunningham
jedcunningham merged commit a152b6a into apache:main Dec 30, 2024
@kurtrwall kurtrwall mentioned this pull request Jan 2, 2025
1 of 2 tasks
@potiuk potiuk linked an issue Jan 3, 2025 that may be closed by this pull request
1 of 2 tasks
HariGS-DB pushed a commit to HariGS-DB/airflow that referenced this pull request Jan 16, 2025
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
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.

Airflow Celery CLI broken

4 participants