-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Separate FAB migration from Core Airflow migration #41437
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
Separate FAB migration from Core Airflow migration #41437
Conversation
7df27d4 to
82cd523
Compare
potiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NICE
vincbeck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤯 Fantastic! I wish I could have done it while working on AIP-56! Thank you!
2ab293d to
b54d98c
Compare
c9210c6 to
504c078
Compare
|
Not sure why this test is failing but doesn't fail locally: https://github.com/apache/airflow/actions/runs/10406470435/job/28819881902?pr=41437#step:7:5512 |
Mostly tests related to logging: |
|
Likely side-effect of other tests that have been somewhat masked or avoided before the change - where some setup/teardown removed the side-effect. You can reproduce the set of tests run with Generally those kind of side-effects are best investigated by a bit guessing and bi-secting - and trying to run a smaller-and-smaller subset of tests until you find the one that is the culprit. At least that's what I did in the past. You should start by looking at the pytest command that was run in the original test type - unfold the If your tests succeeds when run separately, but fails when run as In this case you might convert the single:
into (looking at the output):
Then you can remove half of the modules from the list and run it again (then you will see whether side-effect comes from the removed half or the remaining half). And continue that path - even down to a single test that causes the side effect. Then usually fixing it is trivial by adding missing setup/teardown or changing the test so that it patches and restores any state. It's slow and tedious, yes, but this is the way I've been successfully using in the past to trace root causes of similar issues, and have no other idea how to do it differently faster. |
Thanks @potiuk for always helping. I'll look into these and fix them 🙏 |
1ebb982 to
2c47ab4
Compare
a5527b0 to
708b15e
Compare
|
wait.. what does this actually mean for users who is bumping providers only? If now, migrations can also run from bumping provider only that changes the upgrade procedure users should take. |
I will describe the upgrade procedure in my next PR when I add the upgrade command for FAB provider. It should be smooth |
I am worried here. Here we are introducing something really new - bumping provider version which also runs DB migration.. that is not small change to how Airflow operatre. |
24facde to
167ecb6
Compare
This PR separates FAB migration from Airflow Core migration and provides a way for apps to integrate into Airflow and run their migrations.