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

Reviewers guideline for Pull Request #6209

Closed
MovieStoreGuy opened this issue Nov 9, 2021 · 9 comments
Closed

Reviewers guideline for Pull Request #6209

MovieStoreGuy opened this issue Nov 9, 2021 · 9 comments
Assignees
Labels
discussion needed Community discussion needed Stale

Comments

@MovieStoreGuy
Copy link
Contributor

Having reviewed a few pull requests, the quality and the approach on how things are done vary a lot and it raised some questions that I wanted to see if we can clarify to help making the PR process easier.

There is a few things I wanted to highlight as such:

  • Added code is not go idiomatic (lack of concise variables, naming conventions, stuttering within definitions)
  • Mocking external integrations
  • The suggest packages to use for testing
  • Generated data for testing
  • Test helper functions

There is rather extreme variations in the work of the pull requests and I would like to make the reviewing experience consistent regardless of the reviewer.

@MovieStoreGuy
Copy link
Contributor Author

@bogdandrutu , @jpkrohling , @codeboten, @tigrannajaryan,

Could I ask for your input on this as the maintainers of the project 🥺 ?

@jpkrohling
Copy link
Member

It would be great to have a review guideline! The review guidelines would help not only reviewers but also what contributors can expect from us.

I would add to your list which library to use for hashing (see #6136).

@tigrannajaryan
Copy link
Member

  • Added code is not go idiomatic (lack of concise variables, naming conventions, stuttering within definitions)

We have this https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#coding-guidelines recommendation which reffers to https://golang.org/doc/effective_go.html, perhaps we need to explain more.

@alolita alolita added the discussion needed Community discussion needed label Nov 10, 2021
@MovieStoreGuy
Copy link
Contributor Author

I did miss that @tigrannajaryan, thanks for sharing.

Perhaps it would be worth extending it to include what is the suggestion in order to do X and contribute that back to CONTRIBUTING.md ?

I think it would go some way when reviewing and help ask better clarification.

Is that a sensible way to go about it?

@MovieStoreGuy
Copy link
Contributor Author

MovieStoreGuy commented Nov 11, 2021

I should also add that requiring CGO should be made clear as part of the package.

@tigrannajaryan
Copy link
Member

Perhaps it would be worth extending it to include what is the suggestion in order to do X and contribute that back to CONTRIBUTING.md ?

Definitely worth extending.

@MovieStoreGuy
Copy link
Contributor Author

@tigrannajaryan if you wanna assign this to me, I'll have a PR to iterate over by the end of the day.

tigrannajaryan pushed a commit to open-telemetry/opentelemetry-collector that referenced this issue Dec 14, 2021
In order to help making sub packages across the repo more consistent,
the contribution guide is being updated to reflect that.

**Description:**
Looking to expand contributions to make consistent approaches to working on the collector and the contrib.

**Link to tracking Issue:**
open-telemetry/opentelemetry-collector-contrib#6209
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2022

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Nov 7, 2022
@jpkrohling
Copy link
Member

I'm closing this, as I understand the initial proposal was completed.

povilasv referenced this issue in coralogix/opentelemetry-collector-contrib Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion needed Community discussion needed Stale
Projects
None yet
Development

No branches or pull requests

4 participants