-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Add documentation generation for CLI commands from executors #33081
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
Conversation
f6ae439 to
7d581ff
Compare
|
I will need to add a second one to add links to the providers from Airflow docs - it will have to be done after this one is merged though due to cyclic celery -> airflow -> kubernetes -> celery dependency and I have to make sure the inventory for the Celery / Kubernetes providers is pushed to S3 before the Airflow one might succed. |
airflow/providers/cncf/kubernetes/executors/kubernetes_executor.py
Outdated
Show resolved
Hide resolved
7d581ff to
c44ae7b
Compare
c44ae7b to
3e5b76e
Compare
The apache#29055 moved relevant CLI command definition to executors but it automatically removed the command from generated documentation. This PR brings it back for both Celery and Cncf Kubernetes provider Closes: apache#27932
3e5b76e to
3d3f80a
Compare
|
That one should be ready - for now it has only "providers" side - I will add separately the "airflow" side to link to the documentation of the CLI commands in providers cc: @eladkal |
|
All green ! |
eladkal
left a comment
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.
LGTM
| :meta private: | ||
| """ | ||
| return CeleryExecutor._get_parser() |
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.
Very nice now abstracted away to the base class!
The PROD image verification happens after the images are pulled in the "wait for PROD images" step. This verification is pretty helpful in detecting cases where there are some "installed airflow" problems (for example recently it helped to avoid a circular import problem in apache#33081 as one of the tests failed when images were verified. However PROD image wait might fail for other reasons and sometimes might be "neglected" as temporary failure. Separating verification will allow to clearly surface that the problem is with verification, not pulling the images.
The PROD image verification happens after the images are pulled in the "wait for PROD images" step. This verification is pretty helpful in detecting cases where there are some "installed airflow" problems (for example recently it helped to avoid a circular import problem in #33081 as one of the tests failed when images were verified. However PROD image wait might fail for other reasons and sometimes might be "neglected" as temporary failure. Separating verification will allow to clearly surface that the problem is with verification, not pulling the images.
The apache#33081 added documentation generation for CLI commands contributed by executors coming from providers. Adding Airflow documentation in the same PR was not really possible because it created a documentation reference circle and we had to wait until the documentation inventory has been released in S3 and since this already happened, we can now add links to provider CLIs from Airflow.
…33143) The #33081 added documentation generation for CLI commands contributed by executors coming from providers. Adding Airflow documentation in the same PR was not really possible because it created a documentation reference circle and we had to wait until the documentation inventory has been released in S3 and since this already happened, we can now add links to provider CLIs from Airflow.
…33143) The #33081 added documentation generation for CLI commands contributed by executors coming from providers. Adding Airflow documentation in the same PR was not really possible because it created a documentation reference circle and we had to wait until the documentation inventory has been released in S3 and since this already happened, we can now add links to provider CLIs from Airflow. (cherry picked from commit 9910d92)
The PROD image verification happens after the images are pulled in the "wait for PROD images" step. This verification is pretty helpful in detecting cases where there are some "installed airflow" problems (for example recently it helped to avoid a circular import problem in #33081 as one of the tests failed when images were verified. However PROD image wait might fail for other reasons and sometimes might be "neglected" as temporary failure. Separating verification will allow to clearly surface that the problem is with verification, not pulling the images. (cherry picked from commit c310703)

The #29055 moved relevant CLI command definition to executors but it automatically removed the command from generated documentation.
Closes: #27932
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.