Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bugfix: Fix False alarm in import changes rule#14493

Merged
kaxil merged 3 commits intoapache:v1-10-stablefrom
astronomer:import-changes-false-warning-fix
Mar 3, 2021
Merged

Bugfix: Fix False alarm in import changes rule#14493
kaxil merged 3 commits intoapache:v1-10-stablefrom
astronomer:import-changes-false-warning-fix

Conversation

@ephraimbuddy
Copy link
Contributor

Closes: #14295

Currently, the ImportChangesRule only checks for the existence of a class name and issue a warning, this causes false warning. This PR addresses it by checking for the old import path instead of the class name


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest master at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Feb 27, 2021
@ephraimbuddy ephraimbuddy force-pushed the import-changes-false-warning-fix branch from 58a18b1 to 210c998 Compare February 27, 2021 06:58
@github-actions
Copy link

The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason.

@ephraimbuddy ephraimbuddy force-pushed the import-changes-false-warning-fix branch 2 times, most recently from 46eaa68 to 21f38dc Compare February 27, 2021 18:13
Copy link
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

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

Tested on my DAGs.
works as expected except ignoring:
from airflow.contrib.utils.sendgrid.send_email import send_email
it should suggest installing sendgrid provider

@ephraimbuddy ephraimbuddy force-pushed the import-changes-false-warning-fix branch from 21f38dc to fe13913 Compare February 28, 2021 22:24
@ephraimbuddy
Copy link
Contributor Author

@kaxil, Any idea why this is failing on CI but don't fail locally? Also the failing parts are not the ones I worked on in this PR

@eladkal eladkal added the upgrade-check upgrade-check CLI label Mar 1, 2021
@eladkal eladkal added this to the Airflow Upgrade Check - 1.3.0 milestone Mar 1, 2021
@kaxil kaxil merged commit e647593 into apache:v1-10-stable Mar 3, 2021
@kaxil kaxil deleted the import-changes-false-warning-fix branch March 3, 2021 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full tests needed We need to run full set of tests for this PR to merge upgrade-check upgrade-check CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants