Skip to content

Simplify CONTRIBUTING.rst - #14176

Closed
paolaperaza wants to merge 7 commits into
apache:mainfrom
astronomer:paola-contributing.rst
Closed

paolaperaza wants to merge 7 commits into
apache:mainfrom
astronomer:paola-contributing.rst

Conversation

@paolaperaza

@paolaperaza paolaperaza commented Feb 10, 2021 •

Copy link
Copy Markdown

Adding a PR here that seeks to simplify Airflow's CONTRIBUTING.rst.

Specifically, this PR:

  • Removes most sections under "Contributions" to a single "Welcome" section
  • Simplifies the overview "Contribution Workflow" to actually match the steps provided
  • Notably, this PR creates a new top-level contributing folder on apache/airflow, that then hosts 3 files:
    • CONTRIBUTE-CODE.rst (converted from contributing.rst)
    • CONTRIBUTE-DOCS.rst (new)
    • CONTRIBUTE-PROVIDERS.rst (new)
    • CONTRIBUTE-QUICK_START.rst (renamed from CONTRIBUTORS_QUICK_START.rst
  • contributing.rst will remain as a top-level directory, and act as a short resource that links out to the above docs

The idea here is that if a person wants to contribute to Airflow, we should give them tailored instructions depending on the part of the project they want to make changes to. Additionally, most of the actions I've taken here were talked about at our bi-weekly "Issue Triage" meeting (Notes).

Additional Notes:

  • The CONTRIBUTE-DOCS.rst file does not have much content at all - for now I didn't create new content, but just ported over existing language in what was contributing.rst. Would we be comfortable merging this PR as-is? The rest of the files should generally be looked at in more detail as well.
  • I imagine these files are linked in quite a few places...given the new file paths I'm suggesting, we'll need to make sure to either create redirects or convert all existing references to the new paths.
  • Need to re-link this section in the README:

    If you would like to become a maintainer, please review the Apache Airflow committer requirements.

cc: @kaxil @vikramkoka @eladkal Before I move forward with this and polish what I have here, does this structure I'm proposing make sense/is feasible? I'm not entirely familiar with the typical structure of these .rst files, so I want to make sure this is "ok" to do in a single PR. Let me know on general thoughts, and I'll do some more work on this.

@boring-cyborg

boring-cyborg Bot commented Feb 10, 2021

Copy link
Copy Markdown

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 Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
Here are some useful points:

  • Pay attention to the quality of your code (flake8, pylint 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.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@kaxil kaxil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this ready for review @paolaperaza ?

@paolaperaza
paolaperaza marked this pull request as ready for review March 24, 2021 04:05
@marcosmarxm

Copy link
Copy Markdown
Contributor

Amazing work @paolaperaza I started to work on a how-to guide to create a new provider in #15061 (structure files, examples of initial files etc). Initially, I placed it inside the docs/apache-airflow-providers with other providers' documentation. Probably with this new document will be better placed together.

@uranusjr

uranusjr commented Mar 29, 2021 •

Copy link
Copy Markdown
Member

Would it be worthwhile to still have a CONTRIBUTING file? I think GitHub detects this particular file name and displays it in new PRs.

@potiuk

potiuk commented Mar 29, 2021

Copy link
Copy Markdown
Member

Would it be worthwhile to still have a CONTRIBUTING file? I think GitHub detects this particular file name and displays it in new PRs.

Very good point. We should have and it should be a directory to all the split documentation.

It's also part of the "commity" checklist https://github.com/apache/airflow/community

@paolaperaza

paolaperaza commented Mar 31, 2021 •

Copy link
Copy Markdown
Author

@potiuk @uranusjr Yes! I agree - @ashb actually suggested that at our Issue Triage meeting last week and we all agreed it was a good idea. To confirm, this means that I will:

  • Keep CONTRIBUTING.rst, which will act as a directory to the rest of "Contributing" content (i.e. the other 3 files referenced in this PR).
  • Those 3 files will be in a separate contributing directory (top-level)

This may be in a separate PR, but I'd also like to get the directory of that content (equivelent to CONTRIBUTING.rst) on https://airflow.apache.org/docs/, since our docs site is where most people in the community go for information. Ultimately looking to do something like this from Ansible, but a bit more consolidated.


@marcosmarxm Thanks for the note! I'll comment in that PR, but I think it's fair to merge #15061 before this PR, and I'll rebase and incorporate those changes here afterwards, if you all agree.

@potiuk

potiuk commented Mar 31, 2021

Copy link
Copy Markdown
Member

Cool!

@paolaperaza

paolaperaza commented May 5, 2021 •

Copy link
Copy Markdown
Author

@kaxil @potiuk @vikramkoka A bit delayed here, but I THINK this PR is finally ready for review 😊 My latest changes include:

  • Pulling in most recent commits to contributing.rst (since I changed the file name, I couldn't rebase and merge).
  • Wrote new content for contribute-docs.rst

Question:
Did we want to pull in @marcosmarxm changes to my new contribute-providers.rst file, or keep that file under the apache-airflow-providers directory? His currently lives here: https://github.com/apache/airflow/blob/932f8c2e9360de6371031d4d71df00867a2776e6/docs/apache-airflow-providers/howto/create-update-providers.rst

The contribute-providers.rst file that I created was really just extracting provider-related info from the original contributing.rst. I could also just delete it?

Let me know what you two think so we can keep the ball moving. Appreciate it!

@potiuk

potiuk commented May 7, 2021

Copy link
Copy Markdown
Member

Hey @paolaperaza - can you please rebase this one ? I'd love to get this one merged and will have more time to review those kind of changes now :)

@potiuk

potiuk commented May 7, 2021

Copy link
Copy Markdown
Member

Did we want to pull in @marcosmarxm changes to my new contribute-providers.rst file, or keep that file under the apache-airflow-providers directory? His currently lives here: https://github.com/apache/airflow/blob/932f8c2e9360de6371031d4d71df00867a2776e6/docs/apache-airflow-providers/howto/create-update-providers.rst

I think let's merge yours first and the we can as @marcosmarxm to rebase his changes n top.

@paolaperaza
paolaperaza force-pushed the paola-contributing.rst branch from fb1a8c7 to 873a19f Compare May 11, 2021 19:47
@paolaperaza
paolaperaza force-pushed the paola-contributing.rst branch from 873a19f to b6eeecc Compare May 11, 2021 19:55
@paolaperaza

Copy link
Copy Markdown
Author

@potiuk Thanks for looking at this! Just rebased and resolved some conflicts with contributing.rst, so I should be back in a clean working state for now. Do you wanna review my proposed changes in aggregate now and let me know what you think?

@kaxil
kaxil force-pushed the paola-contributing.rst branch from b6eeecc to 1c19efc Compare May 11, 2021 21:28

@vikramkoka vikramkoka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@paolaperaza This looks great, just left a couple of comments to help early contributors find issues that they could help with.

Comment thread contribute/CONTRIBUTE-DOCS.rst Resolved
Comment thread contribute/CONTRIBUTE-CODE.rst Resolved
@github-actions

Copy link
Copy Markdown
Contributor

The PR is likely ready to be merged. No tests are needed as no important environment files, nor python files were modified by it. However, committers might decide that full test matrix is needed and add the 'full tests needed' label. Then you should rebase it to the latest master or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions Bot added the okay to merge It's ok to merge this PR as it does not require more tests label May 13, 2021

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Agree. Great job @paolaperaza

Comment thread contribute/CONTRIBUTE-PROVIDERS.rst Resolved

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One small change about script automation needed.

@paolaperaza
paolaperaza requested a review from ashb as a code owner May 14, 2021 20:16
@paolaperaza

paolaperaza commented May 14, 2021 •

Copy link
Copy Markdown
Author

@vikramkoka @potiuk Thank you both for reviewing this! I just made both of the changes you all suggested. One last question: I did another global search on contributing.rst and found a lot of references to that file with a specific section. Do you all think I need to adjust those, or is it fine that we're still linking out to contributing.rst and people can find the info they need?

For example, our README states:

You can read more about the naming conventions used
in Naming conventions for provider packages

Should I look through all of these and update to CONTRIBUTE-PROVIDERS.rst or CONTRIBUTE-CODE.rst etc. where appropriate? I did make that type of change in https://github.com/apache/airflow/blob/master/BREEZE.rst.

@github-actions

Copy link
Copy Markdown
Contributor

The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the workflow link to check the reason.

@potiuk

potiuk commented May 16, 2021

Copy link
Copy Markdown
Member

Should I look through all of these and update to CONTRIBUTE-PROVIDERS.rst or CONTRIBUTE-CODE.rst etc. where appropriate? I did make that type of change in https://github.com/apache/airflow/blob/master/BREEZE.rst.

Absolutely. Good spot! Currently we have a major GitHub Actions outage, I hope it's going to be solved soon, but happy to review it approve and merge soon after it's finished and you update the references! https://www.githubstatus.com/incidents/zbpwygxwb3gw

@jhtimmins

Copy link
Copy Markdown
Contributor

@paolaperaza can you resolve these conflicts? CI is generally stable again, so we should be able to get this merged.

@potiuk can you validate that your requested changes have been addressed?

@potiuk

potiuk commented Jun 11, 2021

Copy link
Copy Markdown
Member

Yep. Will do it after @paolaperaza rebases it.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale Stale PRs per the .github/workflows/stale.yml policy file label Aug 12, 2021
@github-actions github-actions Bot closed this Aug 18, 2021
@kaxil
kaxil deleted the paola-contributing.rst branch December 31, 2025 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools okay to merge It's ok to merge this PR as it does not require more tests stale Stale PRs per the .github/workflows/stale.yml policy file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants