Skip to content

Conversation

rachael-ds
Copy link
Contributor

Adding new example Composer DAG sample to accompany my blog on data orchestration.
In draft state for review by @leahecole thanks!

@google-cla
Copy link

google-cla bot commented Apr 12, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Apr 12, 2021
@google-cla google-cla bot added the cla: no This human has *not* signed the Contributor License Agreement. label Apr 12, 2021
@google-cla
Copy link

google-cla bot commented Apr 12, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@google-cla
Copy link

google-cla bot commented Apr 12, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@rachael-ds rachael-ds force-pushed the data-orchestration-blog-sample branch from aee35da to 82c7df7 Compare April 12, 2021 13:51
@google-cla
Copy link

google-cla bot commented Apr 12, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@rachael-ds rachael-ds force-pushed the data-orchestration-blog-sample branch from 82c7df7 to 4e514ad Compare April 12, 2021 13:55
@google-cla
Copy link

google-cla bot commented Apr 12, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@rachael-ds rachael-ds closed this Apr 12, 2021
@rachael-ds rachael-ds reopened this Apr 12, 2021
@rachael-ds rachael-ds force-pushed the data-orchestration-blog-sample branch from 4e514ad to 82c7df7 Compare April 12, 2021 14:54
@google-cla
Copy link

google-cla bot commented Apr 12, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@rachael-ds rachael-ds force-pushed the data-orchestration-blog-sample branch from 82c7df7 to 29da218 Compare April 12, 2021 14:56
@google-cla
Copy link

google-cla bot commented Apr 12, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

1 similar comment
@google-cla
Copy link

google-cla bot commented Apr 12, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@rachael-ds rachael-ds force-pushed the data-orchestration-blog-sample branch from e0914db to 0f2b96b Compare April 12, 2021 15:15
@google-cla
Copy link

google-cla bot commented Apr 12, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@rachael-ds rachael-ds force-pushed the data-orchestration-blog-sample branch from 0f2b96b to a866173 Compare April 12, 2021 15:16
@google-cla
Copy link

google-cla bot commented Apr 12, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@rachael-ds rachael-ds force-pushed the data-orchestration-blog-sample branch from a866173 to 732a6e9 Compare April 12, 2021 15:18
@google-cla google-cla bot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Apr 12, 2021
@rachael-ds
Copy link
Contributor Author

Fixed GPG signing of old commits

@leahecole leahecole self-assigned this Apr 12, 2021
@leahecole leahecole added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 12, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 12, 2021
@rachael-ds rachael-ds closed this Apr 26, 2021
@rachael-ds rachael-ds reopened this Apr 26, 2021
@leahecole leahecole added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 27, 2021
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 27, 2021
@tmatsuo tmatsuo added the snippet-bot:force-run Force snippet-bot runs its logic label May 20, 2021
@snippet-bot snippet-bot bot removed the snippet-bot:force-run Force snippet-bot runs its logic label May 20, 2021
@snippet-bot
Copy link

snippet-bot bot commented May 20, 2021

No region tags are edited in this PR.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@tmatsuo tmatsuo added the snippet-bot:force-run Force snippet-bot runs its logic label Jun 1, 2021
@snippet-bot snippet-bot bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Jun 1, 2021
rachael-ds and others added 3 commits June 7, 2021 11:03
Signed-off-by: rachael-ds <deaconsmith@google.com>
Signed-off-by: rachael-ds <deaconsmith@google.com>
@rachael-ds rachael-ds marked this pull request as ready for review June 8, 2021 17:38
@rachael-ds rachael-ds requested a review from a team as a code owner June 8, 2021 17:38
@@ -0,0 +1,2 @@
pytest==6.2.1
git+https://github.com/GoogleCloudPlatform/python-docs-samples.git#egg=dag_test_utils&subdirectory=composer/dag_test_utils # DAG unit test utility
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
git+https://github.com/GoogleCloudPlatform/python-docs-samples.git#egg=dag_test_utils&subdirectory=composer/dag_test_utils # DAG unit test utility
cloud-composer-dag-test-utils==0.0.1 # DAG unit test utility

Copy link
Collaborator

Choose a reason for hiding this comment

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

I released this as a real PyPI package now so no more ugly import needed 😄

Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
Copy link
Collaborator

@leahecole leahecole left a comment

Choose a reason for hiding this comment

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

The nits I've left are non-blocking - mostly just converting to f-strings. If you choose to accept the changes, just double check the dag runs in your environment before sending to publication

Comment on lines 40 to 51
slack_msg = """
:red_circle: Task Failed.
*Task*: {task}
*Dag*: {dag}
*Execution Time*: {exec_date}
*Log Url*: {log_url}
""".format(
task=ti.task_id,
dag=ti.dag_id,
log_url=ti.log_url,
exec_date=context.get('execution_date'),
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
slack_msg = """
:red_circle: Task Failed.
*Task*: {task}
*Dag*: {dag}
*Execution Time*: {exec_date}
*Log Url*: {log_url}
""".format(
task=ti.task_id,
dag=ti.dag_id,
log_url=ti.log_url,
exec_date=context.get('execution_date'),
)
slack_msg = f"""
:red_circle: Task Failed.
*Task*: {ti.task_id}
*Dag*: {ti.dag_id}
*Execution Time*: {context.get('execution_date')}
*Log Url*: {ti.log_url}
"""

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done - thank you!

@leahecole leahecole added the blunderbuss: assign Instruct blunderbuss to assign someone label Jun 15, 2021
@blunderbuss-gcf blunderbuss-gcf bot removed the blunderbuss: assign Instruct blunderbuss to assign someone label Jun 15, 2021
@dinagraves
Copy link
Contributor

Looks good! Nit: some of the formatting is inconsistent, eg the mixing of single and double quotes in one dict. Could you run black on these files to clean it up?

@leahecole leahecole merged commit e415b2d into GoogleCloudPlatform:master Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants