-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Airflow 3.0 deprecations #14626
Comments
There's already a short proposal #14616 (comment). Putting it here might make it easier to find 🙂 I'm thinking of separating "removal" and "rename" at least. It would be much easier for the users to know whether there's anything they could do to fix it. |
Additionally, the NumPy 2.0 migration rule is a good reference whose implementation is at: https://github.com/astral-sh/ruff/blob/6f1cf5b686e67fb74383641fcbbe98e33481a271/crates/ruff_linter/src/rules/numpy/rules/numpy_2_0_deprecation.rs |
Hi, we have grouped our deprecations into several categories and would appreciate it if the team could take a look and let us know what you think about it 🙂
Here's the categorised list we have now |
I like what's proposed here. Thanks for going through all the deprecations and grouping them by possible rules. We can also do some fine-tuning as we go. |
Later discuss with @uranusjr, we think it would be better for us to merge rename and removal into
We now use apache/airflow#44556 to track the detail of this task instead of the original one as some of the migration might not be able to be done in ruff |
Sorry for pinging you here, but could someone more familiar with Airflow volunteer looking at the changes in #14631? We just want to make sure that the change is correct. |
Looks like a valid one to me |
Thanks for taking a look! |
I think it'll also be really useful to provide an auto-fix for these rules. Refer to how NumPy 2.0 deprecation rule does it: ruff/crates/ruff_linter/src/rules/numpy/rules/numpy_2_0_deprecation.rs Lines 683 to 708 in 1bd8fbb
And, I think we'll also need to add this guard check specific to Airflow imports and attributes which allows for having both the new and deprecated symbols to exists in a ruff/crates/ruff_linter/src/rules/numpy/rules/numpy_2_0_deprecation.rs Lines 671 to 673 in 1bd8fbb
|
I agree. We’re on a tight schedule and would like to prioritise adding all the rules first, but contribution is always welcomed on these. |
Yeah, I think that's fine. Do you have a rough timeline on when v3 is going to be released? I could spend some time in adding the infrastructure for an auto-fix. I think that shouldn't take much time as we already have a reference implementation. And, I'll mark this as a "help wanted" task in the issue description if someone else is interested. |
It seems ruff also has interface to add fixes which seems straightforward. I tested below where users can opt for unsafe fixes using Diff : main...tirkarthi:ruff:air302-fixes
|
@tirkarthi Thank you for working on that. I think it will be useful to consider the kind of deprecations and provide the auto-fixes accordingly. Your implementation looks simple enough, I'm happy to look at the PR. One suggestion for the |
Thanks @dhruvmanila, created PR #14887 . I agree that the fixes need to be categorized like numpy with |
Just created a new one for AIR303 #14764 |
Tracking issue for the
AIR3xx
rules that implements Airflow 3.0 deprecations.For details, refer to the Airflow tracking issue: apache/airflow#44556
Help wanted
The following is a "help wanted" task list:
try .. except
block could include both the new and deprecated symbols for backwards compatibility. Look at NumPy 2.0 implementation for referenceRef: apache/airflow#41641
The text was updated successfully, but these errors were encountered: