Skip to content

Contribution guide#2840

Open
jan--f wants to merge 5 commits intoprometheus:mainfrom
jan--f:beorn7/community
Open

Contribution guide#2840
jan--f wants to merge 5 commits intoprometheus:mainfrom
jan--f:beorn7/community

Conversation

@jan--f
Copy link
Copy Markdown
Contributor

@jan--f jan--f commented Feb 12, 2026

No description provided.

beorn7 and others added 2 commits February 12, 2026 11:28
This replaces the section on the community page.

The information from the community page is not only moved into the new
contributor's guide, but also updated to the current realities. Plus,
a lot of new information is added, like a more helpful introduction
for new contributors, a coding style guide, guidelines about handling
PRs, and more. I tried to write down what I percieve as the tribal
knowledge. However, people might have different versions of this
tribal knowledge in their heads, so please discuss during the review
what we want to codify here.

Signed-off-by: beorn7 <beorn@grafana.com>
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
@jan--f
Copy link
Copy Markdown
Contributor Author

jan--f commented Feb 12, 2026

Note that parts of this assume that prometheus/proposals#65 will be accepted. If not the required changes shouldn't be to hard to make, but will require some lengthier descriptions.

Copy link
Copy Markdown
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

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

Thank you very much for this epic work. Looks quite good already.

In the same PR, we should update https://github.com/prometheus/docs/blob/main/src/app/community/community.md to not contain its own "Contributing" section anymore but point to this guide. Also, remove all the developer channels from that doc and the section about the dev summit.

Separately from this PR, all the CONTRIBUTING.md files in all repos should be updated to point to this guide.

that are not part of the `main` branch yet, commit authors should refrain from
rewriting those commits.

## AI generated contributions
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.

If we add an AI policy, as discussed on Slack, this section should not duplicate it but simply link to it.

The alternative would be to make this section our AI policy. In that case, we should include (and emphasize) the aspect of the human author being able to understand what they are submitting (see discussion on Slack).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Left this in. While we have an AGENT.md now, it is/should really be aimed at the agents. We can always change things if our AI policy changes or moves somewhere.

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
@beorn7
Copy link
Copy Markdown
Member

beorn7 commented Feb 25, 2026

@jan--f do you want me to do another round of review?

Everyone else: It would be extremely helpful if others reviewed this, too. Beyond providing historical context, my opinions here are really the least relevant, given my imminent retirement.

We have checks that run on every PR. To merge all checks should succeed. Any
failing checks should be investigated and addressed by the PR author.

Reviewers might request changes, which requires the author to either add commits
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.

Personal preference: I generally don't look at individual commits (unless the author calls it out).
If a PR is too big, I'd rather it's split into multiple PRs. Also if half the PR is renaming things and shuffling things around, and the other half is logic changes, I'm sure to request splitting into an easy to review refactor PR and the substantial PR.

I think it might discourage people from contributing if we're strict about commits. I'd rather we say something on the PR complexity.

Copy link
Copy Markdown
Member

@juliusv juliusv left a comment

Choose a reason for hiding this comment

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

A set of mostly editorial changes.

Otherwise, good approach.


## How to get a PR merged

If you’re working on your first contribution please read this whole document, this section is aimed at experienced Open Source contributors.
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.

Suggested change
If you’re working on your first contribution please read this whole document, this section is aimed at experienced Open Source contributors.
If you’re working on your first contribution, please read this whole document. This section is aimed at experienced open source contributors.

Comment on lines +214 to +217
func (s *shards) sendSamples(
ctx context.Context, samples []prompb.TimeSeries,
sampleCount, exemplarCount, histogramCount int,
pBuf *proto.Buffer, buf compression.EncodeBuffer, compr compression.Type) error {
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.

Could also be like this (as a NOT example):

Suggested change
func (s *shards) sendSamples(
ctx context.Context, samples []prompb.TimeSeries,
sampleCount, exemplarCount, histogramCount int,
pBuf *proto.Buffer, buf compression.EncodeBuffer, compr compression.Type) error {
func (s *shards) sendSamples(ctx context.Context, samples []prompb.TimeSeries,
sampleCount, exemplarCount, histogramCount int,
pBuf *proto.Buffer, buf compression.EncodeBuffer, compr compression.Type) error {

Maybe add this as an additional example?

@jan--f jan--f requested review from juliusv and krajorama April 8, 2026 09:05
The biggest change here is the changes to the PR review process.

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
@jan--f jan--f force-pushed the beorn7/community branch from b402981 to 300bcc3 Compare April 8, 2026 09:21
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