-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
Split redshift cluster and redshift sql #20276
Split redshift cluster and redshift sql #20276
Conversation
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 main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
The deprecation warnings should be added to "known" list and tests are failing unfortunately :) |
thanks wil work on it |
Hey @potiuk , can you point me the way here... Providers manager is warning here:
This causes a test to fail. I did not change anything about the class names or connection types. They're now in different modules though. Do you know what to do here? Perhaps we should not have let |
This warning is not in the CI. I believe this is caused by .pyc file which remained from the Hook being present in the old location when you moved the .py file (in your local development environment). This is one of the main reasons in Breeze we have this:
cc: @uranusjr (our slack discussion from yesterday) -> this is one of the bad sides of the .pyc files, that's why I always disable writing .pyc files in any development environment I have. Renaming and moving modules/packages causes this kind of problems. |
but it is in ci @potiuk 🤔 see: https://github.com/apache/airflow/runs/4515244414?check_suite_focus=true#step:6:12103 |
Ah. i see. See the FULL stack trace there (The summary of error does not have the warning just assert - but in the output of the test you have the whole error message: https://github.com/apache/airflow/runs/4515244414?check_suite_focus=true#step:6:4063 |
You need to unfold the failed "core" tests to see it all:
Is it clearer :) ? |
@dstandish would it be possible to handle the class name changes on this PR as well? We shouldn't have |
d61368f
to
4ab0065
Compare
@dstandish There are more deprecation messages that need changing |
Ok will search again tomorrow thought I got everything |
798bbbc
to
467a3e5
Compare
The first redshift hook was for managing the cluster itself. Later a hook for _using_ the cluster was added to the same module. Better to separate these into distinct modules redshift_sql and redshift_cluster. Here we split the redshift modules for operators, hooks, and sensors.
467a3e5
to
816e1ed
Compare
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.
LGTM
we will need a follow up on renaming AwsRedshiftClusterSensor
#20296
thanks everyone for the help in [hopefully] getting this one right |
The first redshift hook was for managing the cluster itself. Later a hook for using the cluster was added to the same module. Better to separate these into distinct modules redshift_sql and redshift_cluster. Here we split the redshift modules for operators, hooks, and sensors.