Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion contributing-docs/01_roles_in_airflow_project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ The official list of committers can be found `here <https://airflow.apache.org/d
Additionally, committers are listed in a few other places (some of these may only be visible to existing committers):

* https://whimsy.apache.org/roster/committee/airflow
* https://github.com/orgs/apache/teams/airflow-committers/members

Committers are responsible for:

Expand Down
24 changes: 13 additions & 11 deletions contributing-docs/05_pull_requests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ these guidelines:

- Include tests, either as doctests, unit tests, or both, to your pull request.

The Airflow repo uses `GitHub Actions <https://help.github.com/en/actions>`__ to
run the tests and `codecov <https://codecov.io/gh/apache/airflow>`__ to track
The Airflow repo uses `GitHub Actions <https://help.github.com/en/actions>`_ to
run the tests and `codecov <https://codecov.io/gh/apache/airflow>`_ to track
coverage. You can set up both for free on your fork. It will help you make sure you do not
break the build with your PR and that you help increase coverage.
Also we advise to install locally `prek hooks <08_static_code_checks.rst#prek-hooks>`__ to
Also we advise to install locally `prek hooks <08_static_code_checks.rst#prek-hooks>`_ to
apply various checks, code generation and formatting at the time you make a local commit - which
gives you near-immediate feedback on things you need to fix before you push your code to the PR, or in
many case it will even fix it for you locally so that you can add and commit it straight away.
Expand All @@ -52,16 +52,16 @@ these guidelines:

- We prefer that you ``rebase`` your PR (and do it quite often) rather than merge. It leads to
easier reviews and cleaner changes where you know exactly what changes you've done. You can learn more
about rebase vs. merge workflow in `Rebase and merge your pull request <https://github.blog/2016-09-26-rebase-and-merge-pull-requests/>`__
and `Rebase your fork <http://stackoverflow.com/a/7244456/1110993>`__. Make sure to resolve all conflicts
about rebase vs. merge workflow in `Rebase and merge your pull request <https://github.blog/2016-09-26-rebase-and-merge-pull-requests/>`_
and `Rebase your fork <http://stackoverflow.com/a/7244456/1110993>`_. Make sure to resolve all conflicts
during rebase.

- When merging PRs, Maintainer will use **Squash and Merge** which means then your PR will be merged as one
commit, regardless of the number of commits in your PR. During the review cycle, you can keep a commit
history for easier review, but if you need to, you can also squash all commits to reduce the
maintenance burden during rebase.

- Add an `Apache License <http://www.apache.org/legal/src-headers.html>`__ header to all new files. If you
- Add an `Apache License <http://www.apache.org/legal/src-headers.html>`_ header to all new files. If you
have ``prek`` installed, prek will do it automatically for you. If you hesitate to install
prek for your local repository - for example because it takes a few seconds to commit your changes,
this one thing might be a good reason to convince anyone to install prek.
Expand All @@ -70,8 +70,8 @@ these guidelines:
code and tests. Docstring is often sufficient. Make sure to follow the Sphinx compatible standards.

- Make sure your code fulfills all the
`static code checks <08_static_code_checks.rst#static-code-checks>`__ we have in our code. The easiest way
to make sure of that is - again - to install `prek hooks <08_static_code_checks.rst#prek-hooks>`__
`static code checks <08_static_code_checks.rst#static-code-checks>`_ we have in our code. The easiest way
to make sure of that is - again - to install `prek hooks <08_static_code_checks.rst#prek-hooks>`_.

- Make sure your PR is small and focused on one change only - avoid adding unrelated changes, mixing
adding features and refactoring. Keeping to that rule will make it easier to review your PR and will make
Expand All @@ -83,6 +83,8 @@ these guidelines:
big PRs so by splitting it to smaller PRs you actually speed up the review process and make it easier
for your change to be eventually merged.

- To learn more about ``cherry-pick`` of PRs, refer to the `Airflow 3 development documentation <../blob/main/dev/README_AIRFLOW3_DEV.md>`_.

- Run relevant tests locally before opening PR. Often tests are placed in the files that are corresponding
to the changed code (for example for ``airflow/cli/cli_parser.py`` changes you have tests in
``tests/cli/test_cli_parser.py``). However there are a number of cases where the tests that should run
Expand All @@ -97,7 +99,7 @@ these guidelines:
versions. For that purpose we have ``airflow.compat`` package where we keep back-ported
useful features from newer versions.

- Adhere to guidelines for commit messages described in this `article <https://cbea.ms/git-commit/>`__.
- Adhere to guidelines for commit messages described in this `article <https://cbea.ms/git-commit/>`_.
This makes the lives of those who come after you (and your future self) a lot easier.

Requirement to resolve all conversations
Expand Down Expand Up @@ -271,7 +273,7 @@ In such cases we can usually do something like this
self.my_field = my_field

The reason for doing it is that we are working on a cleaning up our code to have
`prek hook <../scripts/ci/prek/validate_operators_init.py>`__
`prek hook <../scripts/ci/prek/validate_operators_init.py>`_
that will make sure all the cases where logic (such as validation and complex conversion)
is not done in the constructor are detected in PRs.

Expand Down Expand Up @@ -304,4 +306,4 @@ you should do:
-----------

If you want to learn what are the options for your development environment, follow to the
`Development environments <06_development_environments.rst>`__ document.
`Development environments <06_development_environments.rst>`_ document.