Skip to content

Conversation

@Ozaq
Copy link
Member

@Ozaq Ozaq commented Dec 1, 2025

Description

Add guidelines how to handle Pull Requests as reviewee and reviewer.

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

@@ -0,0 +1,97 @@
# Pull Requests

Changes to our repository are to be approved through a peer review process
Copy link
Contributor

Choose a reason for hiding this comment

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

Important to note here that this applies for certain branches. In the internal workflow, these PRs should be based on branches that are already in the repo.

Also reference the git guidelines re git-flow and GitHub based workflows. See ADR-001

Copy link
Member Author

Choose a reason for hiding this comment

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

done


## Preparation

Speak with your team and/or the repository's maintainer before you open a PR,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this only applies for big PRs. For small/trivial ones, it is fine to just create the PR and then poke someone.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

For example: Your change uses a particularly complicated implementation for which
a much more obvious and simple implementation would be possible. However you
know that we receive inputs that exhibit worst-case run-time behaviour in the
obvious solution, hence the sophisticated solution is required. In this case
Copy link
Contributor

Choose a reason for hiding this comment

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

In this example, the context should also, or primarily, be in source code comments...

Copy link
Member Author

Choose a reason for hiding this comment

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

done


For example a PR that addresses long outdated comments or clarifies
documentation with a generally accepted explanation can be handled by Reviewer
and Reviewee having a short call and agreeing on the change. It is important,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is worth explicitly saying here that an exchange on Teams is perfectly sufficient. Especially an exchange in a chat with all relevant stakeholders having visibility.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@simondsmart simondsmart left a comment

Choose a reason for hiding this comment

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

Minor comments on things that would be nice to have. But happy for you to merge when you are happy with it.

the obvious solution, hence the sophisticated solution is required. In this
case you should strongly consider providing enough context within the code as
comments. Repeating this information in commit messages and PR description will
go a long way to spread the word. In any case: start with the comments they
Copy link
Contributor

Choose a reason for hiding this comment

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

Check English here: "start with the comments they will read most often and easies to find and closest to the code.". This sentence doesn't make sense.


For example a PR that addresses long outdated comments or clarifies
documentation with a generally accepted explanation can be handled by Reviewer
and Reviewee having a short call or chat with required stakeholders and
Copy link
Contributor

Choose a reason for hiding this comment

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

I really think that this comment needs to the word 'Teams' or 'Online' or similar. Otherwise this still reads as needing to have a synchronous rather than asynchronous communication process.


- [ ] Do I understand the problem and agree with the solution?
- [ ] Is the change functionally correct?
- [ ] Are all GitHub checks passing?
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this part of the process for a reviewer, or for the person doing a merge?

Copy link
Member Author

Choose a reason for hiding this comment

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

Reviewers

Co-authored-by: Andreas Grafberger <andreas.grafberger@ecmwf.int>
Copy link
Contributor

@corentincarton corentincarton left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for the work guys @andreas-grafberger and @Ozaq!

@corentincarton corentincarton merged commit 96c667b into main Jan 16, 2026
1 check passed
@corentincarton corentincarton deleted the pr-guidelines branch January 16, 2026 13:25
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.

3 participants