You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2023/07/12 12:57:24 UTC

[GitHub] [airflow] potiuk opened a new pull request, #32556: Organize the release Breeze commands better

potiuk opened a new pull request, #32556:
URL: https://github.com/apache/airflow/pull/32556

   The release commands in Breeze were somewhat disorganized, some of them were hidden from the output of release-management command, and they were connected to release-management group in a bit weird way.
   
   They also did not have a chapter in BREEZE documentation
   
   This PR makes all the release management commands more consistently explained in documentation and help file:
   
   * the list of release-management commands contains all of the commands
   * they commands are grouped together in logical groups (Airflow, providers, other)
   * they are all linked to the common release_management group via the same mechanism (``@release_management.command``)
   * screenshots are generated for all of the commands and described in BREEZE.rst
   * the structure of documentation in BREEZE.rst reflects the logical grouping of commands
   * references are added between BREEZE.rst and relase READMES when needed.
   
   <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
   
      http://www.apache.org/licenses/LICENSE-2.0
   
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
    -->
   
   <!--
   Thank you for contributing! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   In case of an existing issue, reference it using one of the following:
   
   closes: #ISSUE
   related: #ISSUE
   
   How to write a good git commit message:
   http://chris.beams.io/posts/git-commit/
   -->
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)** for more information.
   In case of fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   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](https://github.com/apache/airflow/tree/main/newsfragments).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] amoghrajesh commented on a diff in pull request #32556: Organize the release Breeze commands better

Posted by "amoghrajesh (via GitHub)" <gi...@apache.org>.
amoghrajesh commented on code in PR #32556:
URL: https://github.com/apache/airflow/pull/32556#discussion_r1261265517


##########
dev/breeze/src/airflow_breeze/breeze.py:
##########
@@ -34,6 +34,9 @@
 from airflow_breeze.commands.kubernetes_commands import kubernetes_group  # noqa
 from airflow_breeze.commands.production_image_commands import prod_image  # noqa
 from airflow_breeze.commands.release_management_commands import release_management  # noqa
+from airflow_breeze.commands.minor_release_command import create_minor_version_branch  # noqa
+from airflow_breeze.commands.release_command import airflow_release  # noqa
+from airflow_breeze.commands.release_candidate_command import release_management  # noqa

Review Comment:
   Lot of new learnings in this area lately! :)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] amoghrajesh commented on a diff in pull request #32556: Organize the release Breeze commands better

Posted by "amoghrajesh (via GitHub)" <gi...@apache.org>.
amoghrajesh commented on code in PR #32556:
URL: https://github.com/apache/airflow/pull/32556#discussion_r1261224456


##########
BREEZE.rst:
##########
@@ -1775,24 +1730,121 @@ do not need or have no access to run). Those are usually connected with releasin
   :width: 100%
   :alt: Breeze release management
 
-Breeze can be used to prepare airflow packages - both "apache-airflow" main package and
-provider packages.
+Airflow release commands
+........................
 
-Preparing provider documentation
-................................
+Running airflow release commands is part of the release procedure by the release managers

Review Comment:
   nit: `Running airflow release commands is part of the release procedure performed by the release managers`



##########
BREEZE.rst:
##########
@@ -1775,24 +1730,121 @@ do not need or have no access to run). Those are usually connected with releasin
   :width: 100%
   :alt: Breeze release management
 
-Breeze can be used to prepare airflow packages - both "apache-airflow" main package and
-provider packages.
+Airflow release commands
+........................
 
-Preparing provider documentation
-................................
+Running airflow release commands is part of the release procedure by the release managers
+and it is described in detail in `dev <dev/README_AIRFLOW.md>`_ .

Review Comment:
   README_RELEASE_AIRFLOW.md right?



##########
BREEZE.rst:
##########
@@ -1775,24 +1730,121 @@ do not need or have no access to run). Those are usually connected with releasin
   :width: 100%
   :alt: Breeze release management
 
-Breeze can be used to prepare airflow packages - both "apache-airflow" main package and
-provider packages.
+Airflow release commands
+........................
 
-Preparing provider documentation
-................................
+Running airflow release commands is part of the release procedure by the release managers
+and it is described in detail in `dev <dev/README_AIRFLOW.md>`_ .
+
+Preparing airflow packages
+""""""""""""""""""""""""""
+
+You can prepare airflow packages using Breeze:
+
+.. code-block:: bash
+
+     breeze release-management prepare-airflow-package
+
+This prepares airflow .whl package in the dist folder.
+
+Again, you can specify optional ``--package-format`` flag to build selected formats of airflow packages,
+default is to build ``both`` type of packages ``sdist`` and ``wheel``.
+
+.. code-block:: bash
+
+     breeze release-management prepare-airflow-package --package-format=wheel
+
+.. image:: ./images/breeze/output_release-management_prepare-airflow-package.svg
+  :target: https://raw.githubusercontent.com/apache/airflow/main/images/breeze/output_release-management_prepare-airflow-package.svg
+  :width: 100%
+  :alt: Breeze release-management prepare-airflow-package
+
+
+Start minor branch of Airflow
+"""""""""""""""""""""""""""""
+
+When we create a new minor branch of Airflow, we need to perform a few maintenance tassk. This command

Review Comment:
   typo:`task`



##########
dev/breeze/src/airflow_breeze/breeze.py:
##########
@@ -34,6 +34,9 @@
 from airflow_breeze.commands.kubernetes_commands import kubernetes_group  # noqa
 from airflow_breeze.commands.production_image_commands import prod_image  # noqa
 from airflow_breeze.commands.release_management_commands import release_management  # noqa
+from airflow_breeze.commands.minor_release_command import create_minor_version_branch  # noqa
+from airflow_breeze.commands.release_command import airflow_release  # noqa
+from airflow_breeze.commands.release_candidate_command import release_management  # noqa

Review Comment:
   Where in this script are we using these commands? We can remove them right?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on a diff in pull request #32556: Organize the release Breeze commands better

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #32556:
URL: https://github.com/apache/airflow/pull/32556#discussion_r1261254939


##########
BREEZE.rst:
##########
@@ -1775,24 +1730,121 @@ do not need or have no access to run). Those are usually connected with releasin
   :width: 100%
   :alt: Breeze release management
 
-Breeze can be used to prepare airflow packages - both "apache-airflow" main package and
-provider packages.
+Airflow release commands
+........................
 
-Preparing provider documentation
-................................
+Running airflow release commands is part of the release procedure by the release managers
+and it is described in detail in `dev <dev/README_AIRFLOW.md>`_ .
+
+Preparing airflow packages
+""""""""""""""""""""""""""
+
+You can prepare airflow packages using Breeze:
+
+.. code-block:: bash
+
+     breeze release-management prepare-airflow-package
+
+This prepares airflow .whl package in the dist folder.
+
+Again, you can specify optional ``--package-format`` flag to build selected formats of airflow packages,
+default is to build ``both`` type of packages ``sdist`` and ``wheel``.
+
+.. code-block:: bash
+
+     breeze release-management prepare-airflow-package --package-format=wheel
+
+.. image:: ./images/breeze/output_release-management_prepare-airflow-package.svg
+  :target: https://raw.githubusercontent.com/apache/airflow/main/images/breeze/output_release-management_prepare-airflow-package.svg
+  :width: 100%
+  :alt: Breeze release-management prepare-airflow-package
+
+
+Start minor branch of Airflow
+"""""""""""""""""""""""""""""
+
+When we create a new minor branch of Airflow, we need to perform a few maintenance tassk. This command

Review Comment:
   fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on pull request #32556: Organize the release Breeze commands better

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #32556:
URL: https://github.com/apache/airflow/pull/32556#issuecomment-1632636818

   > Nice, looks nice now. Should we also move the `build-docs` to release management?
   
   Not really. The `build-docs` command is generally much more useful for regular development tasks where people are actually using it to build documentation in their PR after they add it. We are "accidentally" also using the same command to build the docs during relase, but this is most-of-all developer command.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk merged pull request #32556: Organize the release Breeze commands better

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #32556:
URL: https://github.com/apache/airflow/pull/32556


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on pull request #32556: Organize the release Breeze commands better

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #32556:
URL: https://github.com/apache/airflow/pull/32556#issuecomment-1632484313

   I think this way is much better:
   
   ![image](https://github.com/apache/airflow/assets/595491/f52fbcbb-4576-42c1-9428-d93b210972c5)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on a diff in pull request #32556: Organize the release Breeze commands better

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #32556:
URL: https://github.com/apache/airflow/pull/32556#discussion_r1261251356


##########
dev/breeze/src/airflow_breeze/breeze.py:
##########
@@ -34,6 +34,9 @@
 from airflow_breeze.commands.kubernetes_commands import kubernetes_group  # noqa
 from airflow_breeze.commands.production_image_commands import prod_image  # noqa
 from airflow_breeze.commands.release_management_commands import release_management  # noqa
+from airflow_breeze.commands.minor_release_command import create_minor_version_branch  # noqa
+from airflow_breeze.commands.release_command import airflow_release  # noqa
+from airflow_breeze.commands.release_candidate_command import release_management  # noqa

Review Comment:
   No. This is why #noqa is needed. They need to be imported here so that click will be able to do auto-complete and register the commands (the commands are added whle the files are being imported - so they need to be added in the main command) . This is the same reason why during the import of those commands we cannot import any "extra" packages because autocompletion parses the python files without activating Breeze's virtual environment/.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] amoghrajesh commented on a diff in pull request #32556: Organize the release Breeze commands better

Posted by "amoghrajesh (via GitHub)" <gi...@apache.org>.
amoghrajesh commented on code in PR #32556:
URL: https://github.com/apache/airflow/pull/32556#discussion_r1261265187


##########
dev/breeze/src/airflow_breeze/breeze.py:
##########
@@ -34,6 +34,9 @@
 from airflow_breeze.commands.kubernetes_commands import kubernetes_group  # noqa
 from airflow_breeze.commands.production_image_commands import prod_image  # noqa
 from airflow_breeze.commands.release_management_commands import release_management  # noqa
+from airflow_breeze.commands.minor_release_command import create_minor_version_branch  # noqa
+from airflow_breeze.commands.release_command import airflow_release  # noqa
+from airflow_breeze.commands.release_candidate_command import release_management  # noqa

Review Comment:
   Nice. Didn't know that. Thanks for clarifying!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on a diff in pull request #32556: Organize the release Breeze commands better

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #32556:
URL: https://github.com/apache/airflow/pull/32556#discussion_r1261252165


##########
BREEZE.rst:
##########
@@ -1775,24 +1730,121 @@ do not need or have no access to run). Those are usually connected with releasin
   :width: 100%
   :alt: Breeze release management
 
-Breeze can be used to prepare airflow packages - both "apache-airflow" main package and
-provider packages.
+Airflow release commands
+........................
 
-Preparing provider documentation
-................................
+Running airflow release commands is part of the release procedure by the release managers
+and it is described in detail in `dev <dev/README_AIRFLOW.md>`_ .

Review Comment:
   Right.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on a diff in pull request #32556: Organize the release Breeze commands better

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #32556:
URL: https://github.com/apache/airflow/pull/32556#discussion_r1261254583


##########
BREEZE.rst:
##########
@@ -1775,24 +1730,121 @@ do not need or have no access to run). Those are usually connected with releasin
   :width: 100%
   :alt: Breeze release management
 
-Breeze can be used to prepare airflow packages - both "apache-airflow" main package and
-provider packages.
+Airflow release commands
+........................
 
-Preparing provider documentation
-................................
+Running airflow release commands is part of the release procedure by the release managers

Review Comment:
   yep



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on pull request #32556: Organize the release Breeze commands better

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #32556:
URL: https://github.com/apache/airflow/pull/32556#issuecomment-1632638740

   ![image](https://github.com/apache/airflow/assets/595491/1db141a3-0142-4c1b-beea-225cda2f645b)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org