-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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 hooks extended from http hook #16109
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 master at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
Static checks failing @msumit :) |
I HEARTILY recommend running |
Would this not break backwards compatibility to existing usages of these hooks? |
@uranusjr no it won't. Cause when Airflow fetches the connections from DB, it won't check its conn_type. |
I see, thanks for the clarification. |
Yeah. We discussed it in #16048. It's lesser known fact with Airflow that you can use ANY connection with ANY hook. As long as it has the right extras/values - it will work just fine :). The type is only used to make it easier to edit it via UI (shows custom fields, and add custom validations). It's not used for anything else. The custom fields are anyhow mapped to extras which are handled the same way for all connections. |
@potiuk not sure why this test is failing, on my local I can see
|
looking at it. BTW. When you look at the output it's possible to run breeze in the very CI image that was used during the tests locally: This way you can inspect what's going on and reproduce it (this command is printed in the logs when test fail)
|
After entering the image with above
|
Wrong sorting order :) |
Thanks a lot @potiuk. I tried to use breeze but could not figure out the correct way to run it. About getting the sorting order wrong I pasted the values after running the tests locally (via py.test) and as I did not have all the providers installed, it gave me an incomplete order :( |
Yep. That's exactly the reason we have |
(cherry picked from commit 10ed42a)
Opened in place of #16048