Skip to content

Define guidelines for improved four eyes principle #61358

Closed
@nashif

Description

@nashif

Background for this was feedback we got from the community in the 'Meet the Maintainers' session during ZDS 2023.

Right now we require at least 2 approvals (4 eyes) for a pull request to be merged. In the Zephyr case, all eyes (submitter, approvers and merger) can be of the same organisation or team. A change that might seem harmless and if merged quickly to address an issue or add a feature without having being reviewed by a larger group of users might have negative effects and should be avoided.
Ideally we want at least one set of eyes looking at the changes from a different organisation, This for example could be the person merging the change, however, having reviews and approvals from other organisation will simplify things further and the merger + the approval of the assignee removes any ambiguity about the review.

We can further optimize this as we go, but at minimum we shall avoid the following:

  • (a) Submitter, Approvers and Merger are from the same organisation

Additionally, the following should be considered:

  • (b) Changes to common and shared code shall always have reviews from different organisations (at least one review and approval from a different organisation as the submitter)
  • (c) with changes limited only to platform code (driver, soc, boards), at least the merger shall be from a different organisation.
  • ....

Consider and list other possible guidelines below...

Metadata

Metadata

Assignees

Labels

ProcessTracked by the process WGRFCRequest For Comments: want input from the community

Type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions