Skip to content
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

Fix backwards compatibility for SMTP provider #37701

Merged

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Feb 26, 2024

The #36226 introduced backwards compatibility check for the smtp provider, where it relied pn airflow settings containig new settings.

This PR fixes it by falling back to default settings in case the settings cannot be imported.


^ 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
Copy link
Member Author

potiuk commented Feb 26, 2024

cc: @vchiapaikeo . FYI. I guess you moved the import as local imports to solve "compatibility checks" failing in CI - but as a learning for the future - DON't :) . The compatibility checks deliberately fail when there are imports that are importing stuff from airlfow - and we perform import checks for all the providers to see if the imports still work, local imports are a way to avoid that, but also they will stop detecting compatibility issues.

Also note to self (and others) to pay closer attention to such changes :D

@potiuk potiuk changed the title Fix backwards compatibility check for SMTP provider Fix backwards compatibility for SMTP provider Feb 26, 2024
The apache#36226 introduced backwards compatibility check for the smtp
provider, where it relied pn airflow settings containig new settings.

This PR fixes it by falling back to default settings in case the
settings cannot be imported.
@potiuk potiuk force-pushed the fix-backwards-compatibility-check-for-smtp-provider branch from e134ed0 to b318f0e Compare February 26, 2024 11:15
Copy link
Collaborator

@dirrao dirrao left a comment

Choose a reason for hiding this comment

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

LGTM

@potiuk potiuk merged commit 84a8f7e into apache:main Feb 26, 2024
58 checks passed
@potiuk potiuk deleted the fix-backwards-compatibility-check-for-smtp-provider branch February 26, 2024 12:21
@vchiapaikeo
Copy link
Contributor

Oof, I'm sorry guys! I'll try to fix this right up!

potiuk added a commit to potiuk/airflow that referenced this pull request Feb 26, 2024
Related apache#36226 and apache#37701 - where we had problems with SMTP
provider 1.6.0.
potiuk added a commit to potiuk/airflow that referenced this pull request Feb 26, 2024
Related apache#36226 and apache#37701 - where we had problems with SMTP
provider 1.6.0.
potiuk added a commit to potiuk/airflow that referenced this pull request Feb 26, 2024
Related apache#36226 and apache#37701 - where we had problems with SMTP
provider 1.6.0.
potiuk added a commit that referenced this pull request Feb 26, 2024
Related #36226 and #37701 - where we had problems with SMTP
provider 1.6.0.
abhishekbhakat pushed a commit to abhishekbhakat/my_airflow that referenced this pull request Mar 5, 2024
The apache#36226 introduced backwards compatibility check for the smtp
provider, where it relied pn airflow settings containig new settings.

This PR fixes it by falling back to default settings in case the
settings cannot be imported.
abhishekbhakat pushed a commit to abhishekbhakat/my_airflow that referenced this pull request Mar 5, 2024
ephraimbuddy pushed a commit that referenced this pull request Mar 6, 2024
Related #36226 and #37701 - where we had problems with SMTP
provider 1.6.0.

(cherry picked from commit 5d2a28e)
ephraimbuddy pushed a commit that referenced this pull request Mar 6, 2024
Related #36226 and #37701 - where we had problems with SMTP
provider 1.6.0.

(cherry picked from commit 5d2a28e)
utkarsharma2 pushed a commit to astronomer/airflow that referenced this pull request Apr 22, 2024
The apache#36226 introduced backwards compatibility check for the smtp
provider, where it relied pn airflow settings containig new settings.

This PR fixes it by falling back to default settings in case the
settings cannot be imported.
utkarsharma2 pushed a commit to astronomer/airflow that referenced this pull request Apr 22, 2024
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.

None yet

5 participants