Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 3, 2023

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.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk
Copy link
Member Author

potiuk commented Aug 3, 2023

Example Celery docs:

image

@potiuk
Copy link
Member Author

potiuk commented Aug 3, 2023

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.

@potiuk potiuk force-pushed the add-cli-executor-command-docs branch from 7d581ff to c44ae7b Compare August 3, 2023 20:00
@potiuk potiuk requested review from XD-DENG, ashb and kaxil as code owners August 3, 2023 20:00
@potiuk potiuk force-pushed the add-cli-executor-command-docs branch from c44ae7b to 3e5b76e Compare August 4, 2023 10:38
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
@potiuk potiuk force-pushed the add-cli-executor-command-docs branch from 3e5b76e to 3d3f80a Compare August 4, 2023 12:17
@potiuk
Copy link
Member Author

potiuk commented Aug 4, 2023

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

@potiuk
Copy link
Member Author

potiuk commented Aug 4, 2023

All green !

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

@eladkal eladkal added this to the Airflow 2.7.0 milestone Aug 4, 2023
@potiuk potiuk merged commit 879fd34 into apache:main Aug 4, 2023
@potiuk potiuk deleted the add-cli-executor-command-docs branch August 4, 2023 17:26
:meta private:
"""
return CeleryExecutor._get_parser()
Copy link
Contributor

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!

potiuk added a commit to potiuk/airflow that referenced this pull request Aug 5, 2023
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.
potiuk added a commit that referenced this pull request Aug 5, 2023
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.
potiuk added a commit to potiuk/airflow that referenced this pull request Aug 5, 2023
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.
potiuk added a commit that referenced this pull request Aug 5, 2023
…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.
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Aug 8, 2023
ephraimbuddy pushed a commit that referenced this pull request Aug 8, 2023
…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)
ephraimbuddy pushed a commit that referenced this pull request Aug 8, 2023
The #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: #27932
(cherry picked from commit 879fd34)
ephraimbuddy pushed a commit that referenced this pull request Aug 8, 2023
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)
@ephraimbuddy ephraimbuddy added AIP-51 AIP-51: Remove executor coupling from Core changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) and removed type:improvement Changelog: Improvements labels Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-51 AIP-51: Remove executor coupling from Core area:CLI area:providers changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) kind:documentation provider:celery provider:cncf-kubernetes Kubernetes (k8s) provider related issues

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

AIP-51 - Executor Specific CLI Commands

4 participants