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

Add contributing guide #618

Closed
wants to merge 17 commits into from
Closed

Conversation

RichardChukwu
Copy link

@RichardChukwu RichardChukwu commented Feb 4, 2025

part of open-telemetry/sig-contributor-experience#31

This pull request standardizes the setup guide for the opentelemetry-proto repository using the proposed template

Next Steps:

Feedback and suggestions are highly welcomed!

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.

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

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
Co-authored-by: Reiley Yang <[email protected]>
CONTRIBUTING.md Outdated Show resolved Hide resolved
RichardChukwu and others added 2 commits February 5, 2025 16:41
Co-authored-by: Reiley Yang <[email protected]>
Co-authored-by: Reiley Yang <[email protected]>
CONTRIBUTING.md Outdated
## Contributing Rules

- Follow OpenTelemetry’s [Contribution Guidelines](https://github.com/open-telemetry/community/blob/main/CONTRIBUTING.md).
- Ensure that .proto files adhere to OpenTelemetry’s stability guarantees.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Ensure that .proto files adhere to OpenTelemetrys stability guarantees.
- Ensure that `.proto` files adhere to OpenTelemetry's stability guarantees.

Copy link
Member

Choose a reason for hiding this comment

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

Can we ensure this via CI job?

Copy link
Author

@RichardChukwu RichardChukwu Feb 5, 2025

Choose a reason for hiding this comment

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

Hmmmm... is there a pipeline for that already via Github actions?

RichardChukwu and others added 4 commits February 5, 2025 16:41
Co-authored-by: Reiley Yang <[email protected]>
Co-authored-by: Reiley Yang <[email protected]>
Co-authored-by: Reiley Yang <[email protected]>
Co-authored-by: Reiley Yang <[email protected]>
CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

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

Thanks @RichardChukwu!
Looks great to me, left couple minor suggestions, no blocking comments.

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
@tigrannajaryan
Copy link
Member

The instructions are incorrect (mention makefile targets that don't exist). In case you used an AI to create the PR please see the OpenTelemetry contributing guide here https://github.com/open-telemetry/community/blob/main/guides/contributor/genai.md

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

I am going to close the PR. It contains multiple factual errors, imaginary makefile targets. This is now the second round of review I did on this PR and found more errors. The instructions added to the CONTRIBUTING.md obviously have never been tried.

If you would like to contribute to this project I advise to first learn how things work in this repository and only then submit PRs. The top priority should be that what the PR adds is correct. Low effort PRs like this where the change was not even tried waste maintainers time and are not welcome.

Comment on lines +85 to +91
**Error:** `protoc: command not found`

**Fix:** Install the protobuf compiler:

```bash
sudo apt install protobuf-compiler # Linux
brew install protobuf # macOS
Copy link
Member

Choose a reason for hiding this comment

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

Where is this coming from? We don't use protobuf compiler directly.

**Fix:** Run:

```bash
make proto-lint-fix
Copy link
Member

Choose a reason for hiding this comment

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

There is no proto-lint-fix target in makefile.

To test your changes, run:

```bash
make test
Copy link
Member

Choose a reason for hiding this comment

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

There is no test target in makefile.

To verify the protobuf definitions:

```bash
make proto-lint
Copy link
Member

Choose a reason for hiding this comment

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

There is no proto-lint makefile target.

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.

5 participants