Skip to content

Conversation

@amoghrajesh
Copy link
Contributor

To ease effort on moving BaseHook to task sdk, noticed that this one could be an issue.

It can just use the Connection layer instead of using the BaseHook. BaseHook returned a Connection earlier and we anyways did a test_connection on it below: https://github.com/apache/airflow/compare/main...astronomer:airflow:dont-use-hook-in-test-connection?expand=1#diff-dac3064a790b9fc69e43692362250d0144934c4e217a65b9a47eacb23c822671R378

root@81e35b442509:/opt/airflow# airflow connections test postgres_default
Retrieving connection: 'postgres_default'

Testing...

Connection success

^ 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 airflow-core/newsfragments.

@amoghrajesh amoghrajesh added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Jun 19, 2025
@amoghrajesh amoghrajesh merged commit 891b960 into apache:main Jun 19, 2025
53 checks passed
@amoghrajesh amoghrajesh deleted the dont-use-hook-in-test-connection branch June 19, 2025 06:02
github-actions bot pushed a commit that referenced this pull request Jun 19, 2025
…BaseHook (#51834)

(cherry picked from commit 891b960)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
@github-actions
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

potiuk pushed a commit that referenced this pull request Jun 21, 2025
…BaseHook (#51834) (#51917)

(cherry picked from commit 891b960)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
RoyLee1224 pushed a commit to RoyLee1224/airflow that referenced this pull request Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants