-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Add system test for gcs_to_bigquery #8556
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
Add system test for gcs_to_bigquery #8556
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
|
airflow/providers/google/cloud/example_dags/example_gcs_to_bigquery.py
Outdated
Show resolved
Hide resolved
airflow/providers/google/cloud/example_dags/example_gcs_to_bigquery.py
Outdated
Show resolved
Hide resolved
|
Can you also updaate reference in /opt/airflow/docs/howto/operator/gcp/gcs.rst file? |
|
@mik-laj Made the requested adjustments. Not sure why CI fails and says that the license has been adjusted. |
You had a problem when copy&pasting the licence. All our licence headers have to be exactly the same. Delete the licence from this file (tests/providers/google/cloud/operators/test_gcs_to_bigquery.py) and run pre-commit as described in https://github.com/apache/airflow/blob/master/STATIC_CODE_CHECKS.rst#pre-commit-hooks |
|
Once you delete the "wrong" licence and re-run the pre-commit, It will add the licences in the right way when they are missing. In this case, Then you will be able |
|
HEy @joppevos -> I really recommend installing pre-commit framework. You could have seen all those errors automatically during the commit (it will not let you commit anything that fails the checks) long before you push it. I heartily recommend it :) |
|
@potiuk Thanks. I never heard/used about pre-commit, but will definitely get started with it. New to the whole CI workflow but always happy to learn. Already felt that is is probably not the way to go how I did it now 😅 |
| --------------------- | ||
|
|
||
| Use the | ||
| :class:`~airflow.providers.google.cloud.operators.gcs_to_bigquery.GCSToBigQueryOperator` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This guide should be in a separate file, but this is another problem. Each module (* .py) with operators should have a separate guide and separate unit test file and separate system test and at least one example dag.
|
I run system tests and when everything works it will accept the change. |
|
Example DAG works Details |
|
@mik-laj gentle poke, ready to be re-reviewed :) Jarek assured me that the failing quarantine test are nothing to worry about. |
|
Awesome work, congrats on your first merged pull request! |
Fixes partly the following issue.
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, 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 UPDATING.md.
Read the Pull Request Guidelines for more information.