Skip to content
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

Improve Contributing guide #1501

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RichardChukwu
Copy link

@RichardChukwu RichardChukwu commented Feb 4, 2025

This PR is part of Add Contributing guide to repos

This update aims to make it easier for contributors to get started with the project and follow best practices while contributing while following a consistent pattern for a setup guide across the Otel ecosystem.

Certain info was taken from the DEVELOPMENT.md guide to create this

Please review and let me know if you have any suggestions or feedback.

@RichardChukwu RichardChukwu requested a review from a team as a code owner February 4, 2025 10:32
Copy link

welcome bot commented Feb 4, 2025

Thanks for opening your first pull request! If you haven't yet signed our Contributor License Agreement (CLA), then please do so that we can accept your contribution. A link should appear shortly in this PR if you have not already signed one.

@@ -34,10 +209,6 @@ Find more information about the member role in the [community repository](https:

Find more about emeritus roles in the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#emeritus-maintainerapprovertriager)

## Communication
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason for this to not be mentioned?

Copy link
Author

Choose a reason for hiding this comment

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

It is mentioned actually in the guide, see under "Further Help" and the last information in the doc. @brettmc

CONTRIBUTING.md Outdated Show resolved Hide resolved
- Link relevant issues in the PR description.


## Local Run/Build
Copy link
Contributor

@spadger spadger Feb 5, 2025

Choose a reason for hiding this comment

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

Hi

I did my first work on this repo a few days ago, and the makefile doesn't work straight after a clone because of this line

include .env

I see what it does now, but some guidance on how to provision one would have been helpful

Copy link
Collaborator

Choose a reason for hiding this comment

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

How to set up .env is at the very top of DEVELOPMENT.md

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh bloody hell. I did look for something like development.md, totally missed the link in the main readme and then wondered why contributing.md was so slim. My fault 🤠

- Fork the repository and create a new branch.
- Follow the coding guidelines before submitting your PR.
- Ensure tests pass locally before pushing.
- Link relevant issues in the PR description.
Copy link
Contributor

Choose a reason for hiding this comment

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

Does each PR require an issue? I have a trivial PR and will make an issue for it, but it'd be good if there were guidance in case there are some circumstances one isn't required

Copy link
Author

Choose a reason for hiding this comment

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

I'm a contributor myself, so I guess the maintainers would have better knowledge to give a response to this

cc @brettmc @ChrisLightfootWild

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm happy to receive PRs without a corresponding issue, provided the PR provides some detail.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm the same as @brettmc. Although there's a risk that contributors spend more time on a PR that would not have been necessary with some up-front discussion in an issue/other channel.

Comment on lines +30 to +37
### Branch Naming Convention
- **Feature branches**: `feature/<short-description>`
- **Bugfix branches**: `fix/<short-description>`
- **Documentation updates**: `docs/<short-description>`

### Commit Message Format
- Use descriptive commit messages (e.g., `fix(tracing): resolve issue with span context`)
- Follow [Conventional Commits](https://www.conventionalcommits.org/) where possible.
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't currently have a standard or practise for branch naming or commit messages. I assume this has come from another repository? Is it considered best-practise for all OpenTelemetry projects?

Copy link
Author

Choose a reason for hiding this comment

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

Not sure if there any general format though, it can be removed if there is no standard yet for this repo though, or can be adopted this depending on what is tenable

@brettmc
Copy link
Collaborator

brettmc commented Feb 5, 2025

A lot of this seems to be duplicate info from DEVELOPMENT.md - I don't mind which is the source of truth, but I would prefer there was just one version of the truth. Since you're aligning multiple SIGs contribution guides, maybe removing double-ups from development guide?

@RichardChukwu
Copy link
Author

RichardChukwu commented Feb 5, 2025

A lot of this seems to be duplicate info from DEVELOPMENT.md - I don't mind which is the source of truth, but I would prefer there was just one version of the truth. Since you're aligning multiple SIGs contribution guides, maybe removing double-ups from development guide?

About this, I asked during SIG call attended and the idea was, having information that is relevant to a contributor not a user in the contributing guide was necessary, and apparently most of that info is already in the development guide.

Maybe it can be removed from the development guide instead?

@brettmc
Copy link
Collaborator

brettmc commented Feb 6, 2025

Maybe it can be removed from the development guide instead?

I think so - both DEVELOPMENT and CONTRIBUTING seem to serve the same purpose, so how about CONTRIBUTING completely replaces DEVELOPMENT, and remove the latter?

@RichardChukwu
Copy link
Author

Maybe it can be removed from the development guide instead?

I think so - both DEVELOPMENT and CONTRIBUTING seem to serve the same purpose, so how about CONTRIBUTING completely replaces DEVELOPMENT, and remove the latter?

That can work, so are you removing it?

@brettmc
Copy link
Collaborator

brettmc commented Feb 6, 2025

That can work, so are you removing it?

This is your PR, you're doing it :)
Where I think this is heading is that instead of creating a new CONTRIBUTING, you're renaming DEVELOPMENT to CONTRIBUTING and aligning it to the standards you've been asked to promote.

@RichardChukwu
Copy link
Author

That can work, so are you removing it?

This is your PR, you're doing it :) Where I think this is heading is that instead of creating a new CONTRIBUTING, you're renaming DEVELOPMENT to CONTRIBUTING and aligning it to the standards you've been asked to promote.

The CONTRIBUTING file already has major info from the DEVELOPMENT to create this PR though, so would it be better to just take current info as is and edit into the DEVELOPMENT guide and rename?

@brettmc
Copy link
Collaborator

brettmc commented Feb 6, 2025

The CONTRIBUTING file already has major info from the DEVELOPMENT to create this PR though, so would it be better to just take current info as is and edit into the DEVELOPMENT guide and rename?

I think that's the same thing. End result: DEVELOPMENT no longer exists, CONTRIBUTING contains all useful info from DEVELOPMENT and is in the format you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants