You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/07/04 16:26:09 UTC
[GitHub] [airflow] chenglongyan opened a new pull request, #24830: Migrate Google firestore example to new design AIP-47
chenglongyan opened a new pull request, #24830:
URL: https://github.com/apache/airflow/pull/24830
related: #22447, #22430
---
**^ Add meaningful description above**
Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)** for more information.
In case of fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
In case of backwards incompatible changes please leave a note in a newsfragment file, named `{pr_number}.significant.rst`, in [newsfragments](https://github.com/apache/airflow/tree/main/newsfragments).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] turbaszek commented on a diff in pull request #24830: Migrate Google firestore example to new design AIP-47
Posted by GitBox <gi...@apache.org>.
turbaszek commented on code in PR #24830:
URL: https://github.com/apache/airflow/pull/24830#discussion_r917360889
##########
tests/system/providers/google/cloud/gcs/example_firestore.py:
##########
@@ -132,12 +132,39 @@
},
)
- chain(
- # Firestore
- export_database_to_gcs,
- # BigQuery
- create_dataset,
- create_external_table_multiple_types,
- read_data_from_gcs_multiple_types,
- delete_dataset,
+ delete_dataset = BigQueryDeleteDatasetOperator(
+ task_id="delete_dataset",
+ dataset_id=DATASET_NAME,
+ project_id=GCP_PROJECT_ID,
+ delete_contents=True,
+ trigger_rule=TriggerRule.ALL_DONE,
)
+
+ delete_bucket = GCSDeleteBucketOperator(
+ task_id="delete_bucket", bucket_name=BUCKET_NAME, trigger_rule=TriggerRule.ALL_DONE
+ )
+
+ (
+ # TEST SETUP
+ create_bucket
+ >> create_dataset
+ # TEST BODY
+ >> export_database_to_gcs
+ >> create_external_table_multiple_types
+ >> read_data_from_gcs_multiple_types
+ # TEST TEARDOWN
+ >> delete_dataset
+ >> delete_bucket
+ )
+
+ from tests.system.utils.watcher import watcher
+
+ # This test needs watcher in order to properly mark success/failure
+ # when "tearDown" task with trigger rule is part of the DAG
+ list(dag.tasks) >> watcher()
+
+
+from tests.system.utils import get_test_run # noqa: E402
+
+# Needed to run the example DAG with pytest (see: tests/system/README.md#run_via_pytest)
Review Comment:
Should this be placed in L166?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] chenglongyan closed pull request #24830: Migrate Google firestore example to new design AIP-47
Posted by GitBox <gi...@apache.org>.
chenglongyan closed pull request #24830: Migrate Google firestore example to new design AIP-47
URL: https://github.com/apache/airflow/pull/24830
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk merged pull request #24830: Migrate Google firestore example to new design AIP-47
Posted by GitBox <gi...@apache.org>.
potiuk merged PR #24830:
URL: https://github.com/apache/airflow/pull/24830
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org