Commit 28d1bf8
Update SDKs for google provider package (#30067)
* Update SDK versions for Google provider
* Adjust google ads operators to v12
Changes:
- fix tests/system/providers/google/cloud/bigquery/example_bigquery_queries.py
- fix tests/system/providers/google/cloud/bigquery/example_bigquery_queries_async.py
* Fix GCS system tests
* Fix CloudBuild unit test
* Update BigTable operators to accomodate for new dependencies.
* Fix Cloud Tasks System tests
Tasks dag was quite flaky without the retry option in the run_task step,
but it's consistently green with the option set.
We also add a GCP_APP_ENGINE_LOCATION env variable since this depends on
the used GCP Project App Engine's location
* Add setup docstring to Tasks system tests.
* Update Vision operators to accommodate new dependencies.
Changes:
- fix methods for CloudVisionHook
- fix Vision Operators
- fix tests/providers/google/cloud/hooks/test_vision.py
- fix tests/providers/google/cloud/operators/test_vision.py
- fix tests/system/providers/google/cloud/vision/example_vision_annotate_image.py
- fix tests/system/providers/google/cloud/vision/example_vision_autogenerated.py
- fix tests/system/providers/google/cloud/vision/example_vision_explicit.py
* Update SpeechToText operators to accommodate new dependencies.
Changes:
- fix synthesize_speech method for CloudTextToSpeechHook
- fix CloudSpeechToTextRecognizeSpeechOperator
- fix tests/providers/google/cloud/operators/test_speech_to_text.py
- fix tests/providers/google/cloud/hooks/test_text_to_speech.py
- fix tests/providers/google/cloud/hooks/test_speech_to_text.py
* Update Translate Speech operators to accommodate new dependencies.
Changes:
- fix synthesize_speech method for CloudTextToSpeechHook
- fix CloudTranslateSpeechOperator
- tests/providers/google/cloud/operators/test_translate_speech.py
* Update VideoIntelligence operators to accommodate new dependencies.
Changes:
- fix annotate_video method for CloudVideoIntelligenceHook
- fix VideoIntelligence Operators
- fix tests/providers/google/cloud/hooks/test_video_intelligence.py
- fix tests/providers/google/cloud/operators/test_video_intelligence.py
* Update Compute Engine operators to accomodate for new dependencies.
Changes:
- added wait_for_operation_complete() method to check the execution flow
- added new attribute cmd_timeout for ComputeEngineSSHHook
* Fix Stackdriver system test
This test has not worked because of slack channel and credentials not
being setup. We now test the same operators by creating notification
channels and policy alerts against pubsub topics, which don't need to
exist before the test is ran, making the test self-contained.
* Update Natural Language operators to accommodate new dependencies.
Changes:
- fix airflow/providers/google/cloud/operators/natural_language.py
- fix airflow/providers/google/cloud/hooks/natural_language.py
- fix tests/providers/google/cloud/hooks/test_natural_language.py
- fix tests/providers/google/cloud/operators/test_natural_language.py
- fix tests/system/providers/google/cloud/natural_language/example_natural_language.py
* Update Composer system tests.
Fix environment id to contain underscores.
* Update AutoML operators to accommodate new dependencies.
Changes:
- add timeout parameter to all long-running operations for operators
- fix tests/system/providers/google/cloud/automl/example_automl_dataset.py
- fix tests/system/providers/google/cloud/automl/example_automl_model.py
- fix tests/system/providers/google/cloud/automl/example_automl_nl_text_extraction.py
- fix tests/system/providers/google/cloud/automl/example_automl_vision_classification.py
* Fix Cloud SQL delete operator
For some delete instance operations, the operation stops being available ~9 seconds after completion, so we need a shorter sleep time to make sure we don'tmiss the DONE status.
* Update VertexAI operators to accommodate new dependencies.
* Add SQL to Sheets Test instructions
* Update Dataproc Metastore operators to accommodate new dependencies.
* Update Dataproc operators to accommodate new dependencies.
* Update Dataflow sys tests to new sdk
* Update Dataproc on gke operators to accommodate new dependencies.
* Update MLEngine operators to accomodate new dependencies.
Changes:
- update train model that is used for prediction
- update version and runner for ApacheBeam in utils for MLEngine
- update connection inside async hook
* Update Dataprep operators to accommodate new dependencies.
Changes:
- fix tests/system/providers/google/cloud/dataprep/example_dataprep.py
* Add Dataflow Go system test
* Update providers.yaml for google
* fixup! Update providers.yaml for google
* Google SDK Fixes after rebase
- Secret Manager was missing updating to v2, now expects a request dict
- Compute ssh had a bug when no cmd_timeout was passed
- Cloud Build tests were improved/refactored in community, so deleting
old ones
- googleapiclient.errors.HttpError was incorrectly used in our tests, it
it didn´t matter before but a change in the class makes HttpError()
raise an error in initialization the way we were using it before
- fix static checks
* Fix Google providers type errors
---------
Co-authored-by: Lukasz Wyszomirski <wyszomirski@google.com>
Co-authored-by: Maksim Moiseenkov <maksim_moiseenkov@epam.com>
Co-authored-by: Eugene Kostieiev <kosteev@google.com>
Co-authored-by: Augusto Hidalgo <augustoh@google.com>
Co-authored-by: Beata Kossakowska <bkossakowska@google.com>
Co-authored-by: Ulada Zakharava <uladaz@google.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>1 parent a03f6cc commit 28d1bf8
File tree
118 files changed
+1381
-837
lines changed- airflow/providers
- apache/beam
- google
- ads/hooks
- cloud
- _internal_client
- example_dags
- hooks
- log
- operators
- transfers
- utils
- docs/apache-airflow-providers-google/operators/cloud
- generated
- tests
- providers/google/cloud
- _internal_client
- hooks
- operators
- triggers
- system/providers/google/cloud
- automl
- bigquery
- cloud_sql
- composer
- compute
- dataflow
- resources
- dataprep
- dataproc_metastore
- dataproc
- gcs
- resources
- ml_engine
- natural_language
- sql_to_sheets
- stackdriver
- tasks
- vertex_ai
- resources
- vision
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
118 files changed
+1381
-837
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 36 | | |
45 | 37 | | |
46 | 38 | | |
| |||
238 | 230 | | |
239 | 231 | | |
240 | 232 | | |
241 | | - | |
| 233 | + | |
242 | 234 | | |
243 | 235 | | |
244 | 236 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
Lines changed: 0 additions & 107 deletions
This file was deleted.
Lines changed: 0 additions & 90 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
| |||
0 commit comments