-
Notifications
You must be signed in to change notification settings - Fork 276
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
Conversation
Co-authored-by: Reiley Yang <[email protected]>
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Ensure that .proto files adhere to OpenTelemetry’s stability guarantees. | |
- Ensure that `.proto` files adhere to OpenTelemetry's stability guarantees. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
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]>
There was a problem hiding this 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.
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 |
There was a problem hiding this 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.
**Error:** `protoc: command not found` | ||
|
||
**Fix:** Install the protobuf compiler: | ||
|
||
```bash | ||
sudo apt install protobuf-compiler # Linux | ||
brew install protobuf # macOS |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
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.