-
Notifications
You must be signed in to change notification settings - Fork 180
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
Proposal for different fix to 2.10 regression #1163
Proposal for different fix to 2.10 regression #1163
Conversation
One more thing, after all of this gets resolved, we should either do this for each minor version from 1.3+, or alternatively put an upper bound on each previously released version as patch releases. I believe based on the Slack that there are a lot of users on 1.3 still. |
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.
Looks good. thanks @dwreeves for looking into.
cc: @pankajkoti we should include this in 1.6.0 |
I'm not sure about this at the moment, but I'm open to hearing what others think. The user who has reported this issue using Cosmos 1.5.1.
Which Slack are you referring to? |
Also, the CI is not running on this PR, possibly because the base branch is not main. |
I'm merging this to branch |
Look like CI is not happy |
@pankajastro That's weird. 😕 I did run tests locally for Let's rollback on the other PR and we can merge this if/when it is ready. There is a higher criticality to just releasing a fix than there is to fixing it in a "good way." Sorry for making this so complicated. |
RE: upgrading other versions-- Fair enough, we won't backport then. My one concern was that Airflow issues like this can be annoying because if a user upgrades their Airflow, downgrading Airflow to rollback a change can be very annoying because of the Postgres db requiring a downgrade, so if they are stuck on an old Cosmos version for some reason and they upgrade Airflow, now they have 2 problems (2.10 broke things for them + they cannot easily downgrade, but also, Cosmos cannot be upgraded either).
Official Airflow slack, dbt channel. |
Description
Fixes Airflow 2.10 regression / compat
Related Issue(s)
This is a fix for #1161, and is designed to be a different proposal to the changes in #1162.
Ultimately the issue that popped up in 2.10 relates to how the MRO was impacted by the Mixin class.
The simplest, most robust fix to make the MRO work properly is to make each mixin a subclass of
BaseOperator
. This doesn't require the unintuitive hack of needing an__init__()
call to shuffle the MRO around, and it makes things more easily maintainable going forward, I think.A note: This PR is merging to
test-af-2.10
, notmain
.Tested for 2.10.
I also removed an unnecessary
__init__
for theDbtTestMixin
while I was at it.Checklist