Skip to content

Deprecation of AutoML services: Add deprecation warnings and raise exceptions for already deprecated ones - #38673

Merged
potiuk merged 1 commit into
apache:mainfrom
VladaZakharova:deprecate-automl
May 10, 2024
Merged

Deprecation of AutoML services: Add deprecation warnings and raise exceptions for already deprecated ones#38673
potiuk merged 1 commit into
apache:mainfrom
VladaZakharova:deprecate-automl

Conversation

@molcay

@molcaymolcay commented Apr 2, 2024

Copy link
Copy Markdown
Contributor

Before merging this PR we need to merge #38633

This PR is for raising exception for the deprecated services of AutoML (Tables, Vision, Video Intelligence, Natural Language) which are EoL or will be EoL soon.


^ 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.

@boring-cyborgboring-cyborgBot added area:providers provider:google Google (including GCP) related issues labels Apr 2, 2024
@molcaymolcay changed the title Add deprecation warnings and raise exception for already deprecated onesDeprecation of AutoML services: Add deprecation warnings and raise exceptions for already deprecated onesApr 2, 2024
Comment threadairflow/providers/google/cloud/hooks/vertex_ai/prediction_service.py Outdated
@molcay
molcay requested review from ashb and potiuk as code ownersApril 4, 2024 02:01
@molcay
molcayforce-pushed the deprecate-automl branch 3 times, most recently from f75a35e to 5331569CompareApril 5, 2024 08:29
@potiuk

Copy link
Copy Markdown
Member

I think you need to rebase the PR. It's 52 commits behind and this is likely why it fails

@molcay
molcayforce-pushed the deprecate-automl branch 3 times, most recently from 8d86abd to 338ca37CompareApril 9, 2024 08:34
Comment threadtests/providers/google/cloud/operators/test_automl.py Outdated

@shahar1shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good start!
There's some work to do to finish it up (mostly adding tests and docstrings), and I hope that my comments will make sense - please ask if you have any questions.
I'd be happy if you could test the operator against an actual GCP project with enabled AutoML API to see if all functionalities work as expected :)

Comment threadairflow/providers/google/cloud/hooks/automl.py Outdated
Comment threadairflow/providers/google/cloud/hooks/vertex_ai/prediction_service.py Outdated
Comment threadairflow/providers/google/cloud/hooks/vertex_ai/prediction_service.py Outdated
Comment threadairflow/providers/google/cloud/operators/automl.py Outdated
Comment threadairflow/providers/google/cloud/operators/automl.py Outdated
Comment threadairflow/providers/google/cloud/operators/automl.py Outdated
Comment threadairflow/providers/google/cloud/operators/automl.py Outdated
Comment threadtests/providers/google/cloud/operators/test_automl.py Outdated
Comment threadtests/providers/google/cloud/operators/test_automl.py Outdated
Comment threadairflow/providers/google/cloud/operators/automl.py Outdated
@molcay
molcayforce-pushed the deprecate-automl branch 3 times, most recently from 9f17725 to 1554e19CompareApril 15, 2024 09:18
@potiuk

Copy link
Copy Markdown
Member

@molcay -> can you please rebase/resolve conflict and respond/mark as resolved all conversations that you think were resolved?

@molcay
molcayforce-pushed the deprecate-automl branch 2 times, most recently from c646a71 to ec88665CompareApril 24, 2024 14:54
@potiuk

Copy link
Copy Markdown
Member

cc: @VladaZakharova - there were some doubts for Google team about those deprecations - does this one look ok for you?

@VladaZakharova

Copy link
Copy Markdown
Contributor

cc: @VladaZakharova - there were some doubts for Google team about those deprecations - does this one look ok for you?

Hi! Thanks, yes, changes look good, LGTM

@potiuk

Copy link
Copy Markdown
Member

@molcay -> can you please review and address/mark as resolved if they are - the comments made by @shahar1 ?

@molcay

Copy link
Copy Markdown
ContributorAuthor

@potiuk,
Ohh I see, there are some hidden conversations. I totally missed them. Sorry for the inconvenience. I will try to address and resolve them as soon as possible.

@shahar1shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Very good progress! :)
You resolved all of my comments, so you get a sincere approval from me.
One last step before merging - try to rebase and ensure that tests/providers/google/cloud/operators/test_automl.py passes in the Non-DB tests, as currently they fail on the CI.
Make sure that objects are mocked properly in tests that you added or modified.

@molcay

Copy link
Copy Markdown
ContributorAuthor

I will work on this test failure and send an update. Thank you for the review @shahar1
Also, thank you for pinging and guiding along the way @potiuk

@molcay
molcayforce-pushed the deprecate-automl branch 2 times, most recently from 57b7fc4 to fec27f3CompareMay 2, 2024 09:07
@eladkal
eladkalforce-pushed the deprecate-automl branch from fec27f3 to 5191583CompareMay 7, 2024 14:51
@molcay
molcayforce-pushed the deprecate-automl branch from 5191583 to bb2bbc8CompareMay 9, 2024 09:26
@VladaZakharova

Copy link
Copy Markdown
Contributor

Hey @shahar1 !
Would be nice if you can check the changes here again

@eladkal
eladkal requested a review from shahar1May 10, 2024 05:42

@shahar1shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Re-reviewed, we're good to go :)

@potiuk
potiuk merged commit 8dcee5b into apache:mainMay 10, 2024
pateash pushed a commit to pateash/airflow that referenced this pull request May 13, 2024
@utkarsharma2utkarsharma2 added type:improvement Changelog: Improvements changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) and removed type:improvement Changelog: Improvements labels Jun 3, 2024
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providerschangelog:skipChanges that should be skipped from the changelog (CI, tests, etc..)provider:googleGoogle (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@molcay@potiuk@VladaZakharova@Taragolis@eladkal@shahar1@utkarsharma2