Skip to content

Conversation

@jx2lee
Copy link
Contributor

@jx2lee jx2lee commented Jun 2, 2024

Add Google Cloud Run Operators for Service

@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Jun 2, 2024
@boring-cyborg
Copy link

boring-cyborg bot commented Jun 2, 2024

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 Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our pre-commits will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

@jx2lee jx2lee force-pushed the cloud-run-service branch from 2e0d6c2 to 7274be0 Compare June 2, 2024 14:51
@jx2lee jx2lee marked this pull request as ready for review June 6, 2024 13:31
Copy link
Contributor

@shahar1 shahar1 left a comment

Choose a reason for hiding this comment

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

Looks good overall!
There are a few nitpicks, and there's one failing test in the CI related to the system test which should be fixed.
Also, did you check yourself that it runs properly?

@VladaZakharova Would you like to take another look? :)

Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
@jx2lee
Copy link
Contributor Author

jx2lee commented Jun 7, 2024

@shahar1 CI test that was failed have now passed!

@jx2lee
Copy link
Contributor Author

jx2lee commented Jun 10, 2024

@shahar1 Thanks for review! 🫡

@jx2lee jx2lee requested a review from VladaZakharova June 22, 2024 14:50
@jx2lee
Copy link
Contributor Author

jx2lee commented Jul 16, 2024

@VladaZakharova could you review changed?

@shahar1
Copy link
Contributor

shahar1 commented Aug 2, 2024

@VladaZakharova could you review changed?

@jx2lee - It seems that static checks + tests fail, could you please check it out and fix?

@jx2lee jx2lee force-pushed the cloud-run-service branch 4 times, most recently from 17f4b5f to f49f454 Compare August 4, 2024 06:28
@jx2lee jx2lee force-pushed the cloud-run-service branch from f49f454 to 0cf14fd Compare August 4, 2024 06:35
@jx2lee
Copy link
Contributor Author

jx2lee commented Aug 4, 2024

@VladaZakharova could you review changed?

@jx2lee - It seems that static checks + tests fail, could you please check it out and fix?

@shahar1 i fixed that. Sorry for not checking for static & tests. 🥲

@eladkal eladkal changed the title Add CloudRunServiceHook and operator (create) Add CloudRunServiceHook and CloudRunCreateServiceOperator Aug 4, 2024
Copy link
Contributor

@shahar1 shahar1 left a comment

Choose a reason for hiding this comment

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

A couple of more comments - please resolve when you're done :)

Copy link
Contributor

@VladaZakharova VladaZakharova left a comment

Choose a reason for hiding this comment

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

Thank you for changes! Left some comments
Did you run system tests locally to check if the DAG works fine?

@jx2lee
Copy link
Contributor Author

jx2lee commented Aug 10, 2024

Thank you for changes! Left some comments

Did you run system tests locally to check if the DAG works fine?

Sure, i checked DAG works fine!

Copy link
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

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

LGTM

@shahar1 shahar1 self-requested a review August 10, 2024 08:59
@eladkal eladkal merged commit 0aad0c8 into apache:main Aug 10, 2024
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Aug 20, 2024
…#40008)

* init cloud_run service hook & operator

* init docs

* added example_cloud_run_service

* remove parent init

Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>

* apply reveiw - more clearer

* typo

* add ENV_ID in system tests

* validate inputs

* add deleteOperator & test

* typo

* modified second review

* 404/409 case in operator

* pass static checks

* typo

* modified service creation in hook & operator

* fixed by reviews in tests

* modified docs

* fixed test code to success

* modified hook

* add exceptions

* modified test codes

* static checks

---------

Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CloudRunCreateServiceOperator to Google Provider

4 participants