Date
1 - 4 of 4
GitHub Pull Request based Code Review Process
Michael D Kinney
Hello,
This is a proposal to change from the current email-based code review process to
a GitHub pull request-based code review process for all repositories maintained
in TianoCore. The current email-based code review process and commit message
requirements are documented in Readme.md or Readme.rst at the root of
repositories along with a few Wiki pages:
* https://github.com/tianocore/edk2/blob/master/ReadMe.rst
* https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Development-Process
* https://github.com/tianocore/tianocore.github.io/wiki/Laszlo's-unkempt-git-guide-for-edk2-contributors-and-maintainers
* https://github.com/tianocore/tianocore.github.io/wiki/Commit-Message-Format
* https://github.com/tianocore/tianocore.github.io/wiki/Commit-Signature-Format
The goal is to post changes by opening a GitHub pull request and perform all
code review activity using the GitHub web interface. This proposal does not
change any licenses or commit message requirements. It does require all
developers, maintainers, and reviewers to have GitHub accounts.
One requirement that was collected from previous discussions on this topic is
the need for an email archive of all patches and code review activities. The
existing GitHub features to produce an email archive were deemed insufficient.
A proof of concept of a GitHub webhook has been implemented to provide the email
archive service. This email archive is read-only. You will not be able to send
emails to this archive or reply to emails in the archive.
The sections below provide more details on the proposed GitHub pull request
based code review process, details on the email archive service, and a set of
remaining tasks make the email archive service production quality. It does not
make sense to support both the existing email-based code review and the GitHub
pull request-based code review at the same time. Instead, this proposal is to
switch to the GitHub pull request-based code review and retire the email based
code review process on the same date.
The edk2 repository is using GitHub pull requests today to run automated
CI checks on the code changes and allows a maintainer to set the `push` label to
request the changes to be merged if all CI checks pass. With this proposal,
once the code review is complete and the commit messages have been updated, the
same pull request can be used to perform a final set of CI checks and merge the
changes into the master branch.
I would like to collect feedback on this proposal and the email archive service
over the next two weeks with close of comments on Friday May 22, 2020. If all
issues and concerns can be addressed, then I would like to see the community
agree to make this change as soon as all remaining tasks are completed.
# TianoCore Repositories to enable
* [edk2](https://github.com/tianocore/edk2)
* [edk2-platforms](https://github.com/tianocore/edk2-platforms)
* [edk2-non-osi](https://github.com/tianocore/edk2-non-osi)
* [edk2-test](https://github.com/tianocore/edk2-test)
* [edk2-libc](https://github.com/tianocore/edk2-libc)
* [edk2-staging](https://github.com/tianocore/edk2-staging)
# GitHub Pull Request Code Review Process
**NOTE**: All steps below use [edk2](https://github.com/tianocore/edk2) as an
example. Several repositories are supported.
## Author/Developer Steps
* Create a personal fork of [edk2](https://github.com/tianocore/edk2)
https://help.github.com/en/github/getting-started-with-github/fork-a-repo
* Create a new branch from edk2/master in personal fork of edk2 repository.
* Add set of commits for new feature or bug fix to new branch. Make sure to
follow the commit message format requirements. The only change with this
RFC is that the Cc: lines to maintainers/reviewers should **not** be added.
The Cc: lines are still supported, but they should only be used to add
reviewers that do not have GitHub IDs or are not members of TianoCore.
* Push branch with new commits to personal fork
* Create a pull request against TianoCore edk2/master
https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request
* If pull request has more than 1 commit, then fill in the pull request title
and decryption information for Patch #0. Do not leave defaults.
* Do not assign reviewers. The webhook assigns maintainers and reviewers to
the pull request and each commit in the pull request.
* If maintainers/reviewers provide feedback that requires changes, then make
add commits to the current branch with the requested changes. Once all
changes are accepted on the current branch, reformulate the patch series and
commit comments as needed for perform a forced push to the branch in the
personal fork of the edk2 repository. This step may be repeated if multiple
versions of the patch series are required to address all code review
feedback.
**OPEN**: How should minimum review period be set? Labels?
## TianoCore GitHub Email Archive Webhook Service Steps
* Receive an event that a new pull request was opened
* Evaluate the files modified by the entire pull request and each commit in
the pull request and cross references against `Maintainters.txt` in the root
of the repository to assign maintainers/reviewers to the pull request and
each commit in the pull request. Individual commit assignments are performed
by adding a commit comment of the following form:
[CodeReview] Review-request @mdkinney
* Generate and sends git patch review emails to the email archive. Emails
are also sent to any Cc: tags in the commit messages.
* If the author/developer performs a forced push to the branch in their
personal fork of the edk2 repository, then a new set of patch review emails
with patch series Vx is sent to the email archive and any Cc: tags in commit
messages.
* Receive events associated with all code review activities and generate
and send emails to the email archive that shows all review comments and
all responses closely matching the email contents seen in the current email
based code review process.
* Generate and send email when pull request is merged or closed.
## Maintainer/Reviewer Steps
* Make sure GitHub configuration is setup to 'Watch' the repositories that
you have maintainer ship or review responsibilities and that email
notifications from GitHub are enabled. This enables email notifications
when a maintainer/reviewer is assigned to a pull request and individual
commits.
https://help.github.com/en/github/managing-subscriptions-and-notifications-on-github/configuring-notifications
* Subscribe to the email archive associated with the TianoCore GitHub Email
Archive Webhook Service.
https://www.redhat.com/mailman/listinfo/tianocore-code-review-poc
* Review pull requests and commits assigned by the TianoCore GitHub Email
Archive Webhook Service and use the GitHub web UI to provide all review
feedback.
https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/reviewing-changes-in-pull-requests
* Wait for Author/Developer to respond to all feedback and add commits with
code changes as needed to resolve all feedback. This step may be repeated
if the developer/author need to produce multiple versions of the patch
series to address all feedback.
* Once all feedback is addressed, add Reviewed-by, Acked-by, and Tested-by
responses on individual commits. Or add Series-reviewed-by, Series-acked-by,
or Series-Tested-by responses to the entire pull request.
* Wait for Developer/Author to add tags to commit messages in the pull request.
* Perform final review of patches and commit message tags. If there are not
issues, set the `push` label to run final set of CI checks and auto merge
the pull request into master.
# Maintainers.txt Format Changes
Add GitHub IDs of all maintainers and reviewers at the end of M: and R: lines
in []. For example:
M: Michael D Kinney <michael.d.kinney@...> [mdkinney]
# TianoCore GitHub Email Archive Webhook Service
Assign reviewers to commits in a GitHub pull request based on assignments
documented in Maintainers.txt and generates an email archive of all pull request
and code review activities.
https://github.com/mdkinney/edk2-email-archive-webhook
# Email Archive Subscription Service
The emails are being delivered to the following RedHat email subscription
service. Please subscribe to receive the emails and to be able to view the
email archives.
https://www.redhat.com/mailman/listinfo/tianocore-code-review-poc
The email archives are at this link:
https://www.redhat.com/mailman/private/tianocore-code-review-poc/index.html
The following sections show some example pull requests and code reviews to
help review the generated emails, their contents, and threading.
## Email Achieve Thread View
https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/thread.html#00289
## Example patch series with 1 patch
https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/thread.html#00340
## Example patch series with < 10 patches
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00289.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00030.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00018.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00008.html
## Example patch series with > 80 patches
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00198.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00116.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00035.html
# Tasks to Complete
* Create edk2-codereview repository for evaluation of new code review process.
* Add GitHub IDs to Maintainers.txt in edk2-codereview repository
* Update BaseTools/Scripts/GetMaintainer.py to be compatible with GitHub IDs at
the end of M: and R: statements
* Update webhook to use Rabbit MQ to manage requests and emails
* Determine if webhook requests must be serialized? Current POC is serialized.
* Make sure webhook has error handling for all unexpected events/states.
* Add logging of all events and emails to webhook
* Add admin interface to webhook
* Deploy webhook on a production server with 24/7 support
# Ideas for Future Enhancements
* Run PatchCheck.py before assigning maintainers/reviewers.
* Add a simple check that fails if a single patch spans more than one package.
* Monitor comments for Reviewed-by, Acked-by, Tested-by, Series-Reviewed-by,
Series-Acked-by, Series-Tested-by made by assigned maintainers/reviewers.
Once all commits have required tags, auto update commit messages in the
branch and wait for maintainer to set the `Push` label to run CI and auto
merge if all CI checks pass.
Best regards,
Mike
This is a proposal to change from the current email-based code review process to
a GitHub pull request-based code review process for all repositories maintained
in TianoCore. The current email-based code review process and commit message
requirements are documented in Readme.md or Readme.rst at the root of
repositories along with a few Wiki pages:
* https://github.com/tianocore/edk2/blob/master/ReadMe.rst
* https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Development-Process
* https://github.com/tianocore/tianocore.github.io/wiki/Laszlo's-unkempt-git-guide-for-edk2-contributors-and-maintainers
* https://github.com/tianocore/tianocore.github.io/wiki/Commit-Message-Format
* https://github.com/tianocore/tianocore.github.io/wiki/Commit-Signature-Format
The goal is to post changes by opening a GitHub pull request and perform all
code review activity using the GitHub web interface. This proposal does not
change any licenses or commit message requirements. It does require all
developers, maintainers, and reviewers to have GitHub accounts.
One requirement that was collected from previous discussions on this topic is
the need for an email archive of all patches and code review activities. The
existing GitHub features to produce an email archive were deemed insufficient.
A proof of concept of a GitHub webhook has been implemented to provide the email
archive service. This email archive is read-only. You will not be able to send
emails to this archive or reply to emails in the archive.
The sections below provide more details on the proposed GitHub pull request
based code review process, details on the email archive service, and a set of
remaining tasks make the email archive service production quality. It does not
make sense to support both the existing email-based code review and the GitHub
pull request-based code review at the same time. Instead, this proposal is to
switch to the GitHub pull request-based code review and retire the email based
code review process on the same date.
The edk2 repository is using GitHub pull requests today to run automated
CI checks on the code changes and allows a maintainer to set the `push` label to
request the changes to be merged if all CI checks pass. With this proposal,
once the code review is complete and the commit messages have been updated, the
same pull request can be used to perform a final set of CI checks and merge the
changes into the master branch.
I would like to collect feedback on this proposal and the email archive service
over the next two weeks with close of comments on Friday May 22, 2020. If all
issues and concerns can be addressed, then I would like to see the community
agree to make this change as soon as all remaining tasks are completed.
# TianoCore Repositories to enable
* [edk2](https://github.com/tianocore/edk2)
* [edk2-platforms](https://github.com/tianocore/edk2-platforms)
* [edk2-non-osi](https://github.com/tianocore/edk2-non-osi)
* [edk2-test](https://github.com/tianocore/edk2-test)
* [edk2-libc](https://github.com/tianocore/edk2-libc)
* [edk2-staging](https://github.com/tianocore/edk2-staging)
# GitHub Pull Request Code Review Process
**NOTE**: All steps below use [edk2](https://github.com/tianocore/edk2) as an
example. Several repositories are supported.
## Author/Developer Steps
* Create a personal fork of [edk2](https://github.com/tianocore/edk2)
https://help.github.com/en/github/getting-started-with-github/fork-a-repo
* Create a new branch from edk2/master in personal fork of edk2 repository.
* Add set of commits for new feature or bug fix to new branch. Make sure to
follow the commit message format requirements. The only change with this
RFC is that the Cc: lines to maintainers/reviewers should **not** be added.
The Cc: lines are still supported, but they should only be used to add
reviewers that do not have GitHub IDs or are not members of TianoCore.
* Push branch with new commits to personal fork
* Create a pull request against TianoCore edk2/master
https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request
* If pull request has more than 1 commit, then fill in the pull request title
and decryption information for Patch #0. Do not leave defaults.
* Do not assign reviewers. The webhook assigns maintainers and reviewers to
the pull request and each commit in the pull request.
* If maintainers/reviewers provide feedback that requires changes, then make
add commits to the current branch with the requested changes. Once all
changes are accepted on the current branch, reformulate the patch series and
commit comments as needed for perform a forced push to the branch in the
personal fork of the edk2 repository. This step may be repeated if multiple
versions of the patch series are required to address all code review
feedback.
**OPEN**: How should minimum review period be set? Labels?
## TianoCore GitHub Email Archive Webhook Service Steps
* Receive an event that a new pull request was opened
* Evaluate the files modified by the entire pull request and each commit in
the pull request and cross references against `Maintainters.txt` in the root
of the repository to assign maintainers/reviewers to the pull request and
each commit in the pull request. Individual commit assignments are performed
by adding a commit comment of the following form:
[CodeReview] Review-request @mdkinney
* Generate and sends git patch review emails to the email archive. Emails
are also sent to any Cc: tags in the commit messages.
* If the author/developer performs a forced push to the branch in their
personal fork of the edk2 repository, then a new set of patch review emails
with patch series Vx is sent to the email archive and any Cc: tags in commit
messages.
* Receive events associated with all code review activities and generate
and send emails to the email archive that shows all review comments and
all responses closely matching the email contents seen in the current email
based code review process.
* Generate and send email when pull request is merged or closed.
## Maintainer/Reviewer Steps
* Make sure GitHub configuration is setup to 'Watch' the repositories that
you have maintainer ship or review responsibilities and that email
notifications from GitHub are enabled. This enables email notifications
when a maintainer/reviewer is assigned to a pull request and individual
commits.
https://help.github.com/en/github/managing-subscriptions-and-notifications-on-github/configuring-notifications
* Subscribe to the email archive associated with the TianoCore GitHub Email
Archive Webhook Service.
https://www.redhat.com/mailman/listinfo/tianocore-code-review-poc
* Review pull requests and commits assigned by the TianoCore GitHub Email
Archive Webhook Service and use the GitHub web UI to provide all review
feedback.
https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/reviewing-changes-in-pull-requests
* Wait for Author/Developer to respond to all feedback and add commits with
code changes as needed to resolve all feedback. This step may be repeated
if the developer/author need to produce multiple versions of the patch
series to address all feedback.
* Once all feedback is addressed, add Reviewed-by, Acked-by, and Tested-by
responses on individual commits. Or add Series-reviewed-by, Series-acked-by,
or Series-Tested-by responses to the entire pull request.
* Wait for Developer/Author to add tags to commit messages in the pull request.
* Perform final review of patches and commit message tags. If there are not
issues, set the `push` label to run final set of CI checks and auto merge
the pull request into master.
# Maintainers.txt Format Changes
Add GitHub IDs of all maintainers and reviewers at the end of M: and R: lines
in []. For example:
M: Michael D Kinney <michael.d.kinney@...> [mdkinney]
# TianoCore GitHub Email Archive Webhook Service
Assign reviewers to commits in a GitHub pull request based on assignments
documented in Maintainers.txt and generates an email archive of all pull request
and code review activities.
https://github.com/mdkinney/edk2-email-archive-webhook
# Email Archive Subscription Service
The emails are being delivered to the following RedHat email subscription
service. Please subscribe to receive the emails and to be able to view the
email archives.
https://www.redhat.com/mailman/listinfo/tianocore-code-review-poc
The email archives are at this link:
https://www.redhat.com/mailman/private/tianocore-code-review-poc/index.html
The following sections show some example pull requests and code reviews to
help review the generated emails, their contents, and threading.
## Email Achieve Thread View
https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/thread.html#00289
## Example patch series with 1 patch
https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/thread.html#00340
## Example patch series with < 10 patches
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00289.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00030.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00018.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00008.html
## Example patch series with > 80 patches
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00198.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00116.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00035.html
# Tasks to Complete
* Create edk2-codereview repository for evaluation of new code review process.
* Add GitHub IDs to Maintainers.txt in edk2-codereview repository
* Update BaseTools/Scripts/GetMaintainer.py to be compatible with GitHub IDs at
the end of M: and R: statements
* Update webhook to use Rabbit MQ to manage requests and emails
* Determine if webhook requests must be serialized? Current POC is serialized.
* Make sure webhook has error handling for all unexpected events/states.
* Add logging of all events and emails to webhook
* Add admin interface to webhook
* Deploy webhook on a production server with 24/7 support
# Ideas for Future Enhancements
* Run PatchCheck.py before assigning maintainers/reviewers.
* Add a simple check that fails if a single patch spans more than one package.
* Monitor comments for Reviewed-by, Acked-by, Tested-by, Series-Reviewed-by,
Series-Acked-by, Series-Tested-by made by assigned maintainers/reviewers.
Once all commits have required tags, auto update commit messages in the
branch and wait for maintainer to set the `Push` label to run CI and auto
merge if all CI checks pass.
Best regards,
Mike
Ni, Ray
Mike,
It's a huge improvement to me as an Outlook user if pull-request-based review is enabled!
Please help me to understand: The pull-request-based review has been enabled naturally when edk2
was migrated to Github. People don't use it because it's not accepted by community. Your process
tries to meet community's needs of achieving all review comments in mails so pull-request-based
review can be accepted by community. Right?
I just subscribed at https://www.redhat.com/mailman/listinfo/tianocore-code-review-poc with
empty password.
I received the confirmation mail and clicked the link in the mail to confirm.
But I waited for ~15 minutes and didn't receive the additional mail containing the auto-generated password.
I went to https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/thread.html#00289.
However, the page requires me to enter password.
Can you please change the setting so that viewing the mail achieve doesn't need password?
Please advise me what else I can try. I am happy to try as many steps as I can before all the process are enabled.
Thanks,
Ray
toggle quoted message
Show quoted text
It's a huge improvement to me as an Outlook user if pull-request-based review is enabled!
Please help me to understand: The pull-request-based review has been enabled naturally when edk2
was migrated to Github. People don't use it because it's not accepted by community. Your process
tries to meet community's needs of achieving all review comments in mails so pull-request-based
review can be accepted by community. Right?
I just subscribed at https://www.redhat.com/mailman/listinfo/tianocore-code-review-poc with
empty password.
I received the confirmation mail and clicked the link in the mail to confirm.
But I waited for ~15 minutes and didn't receive the additional mail containing the auto-generated password.
I went to https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/thread.html#00289.
However, the page requires me to enter password.
Can you please change the setting so that viewing the mail achieve doesn't need password?
Please advise me what else I can try. I am happy to try as many steps as I can before all the process are enabled.
Thanks,
Ray
-----Original Message-----
From: rfc@edk2.groups.io <rfc@edk2.groups.io> On Behalf Of Michael D Kinney
Sent: Saturday, May 9, 2020 11:00 AM
To: devel@edk2.groups.io; rfc@edk2.groups.io; Kinney, Michael D <michael.d.kinney@...>
Subject: [edk2-rfc] GitHub Pull Request based Code Review Process
Hello,
This is a proposal to change from the current email-based code review process to
a GitHub pull request-based code review process for all repositories maintained
in TianoCore. The current email-based code review process and commit message
requirements are documented in Readme.md or Readme.rst at the root of
repositories along with a few Wiki pages:
* https://github.com/tianocore/edk2/blob/master/ReadMe.rst
* https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Development-Process
* https://github.com/tianocore/tianocore.github.io/wiki/Laszlo's-unkempt-git-guide-for-edk2-contributors-and-maintainers
* https://github.com/tianocore/tianocore.github.io/wiki/Commit-Message-Format
* https://github.com/tianocore/tianocore.github.io/wiki/Commit-Signature-Format
The goal is to post changes by opening a GitHub pull request and perform all
code review activity using the GitHub web interface. This proposal does not
change any licenses or commit message requirements. It does require all
developers, maintainers, and reviewers to have GitHub accounts.
One requirement that was collected from previous discussions on this topic is
the need for an email archive of all patches and code review activities. The
existing GitHub features to produce an email archive were deemed insufficient.
A proof of concept of a GitHub webhook has been implemented to provide the email
archive service. This email archive is read-only. You will not be able to send
emails to this archive or reply to emails in the archive.
The sections below provide more details on the proposed GitHub pull request
based code review process, details on the email archive service, and a set of
remaining tasks make the email archive service production quality. It does not
make sense to support both the existing email-based code review and the GitHub
pull request-based code review at the same time. Instead, this proposal is to
switch to the GitHub pull request-based code review and retire the email based
code review process on the same date.
The edk2 repository is using GitHub pull requests today to run automated
CI checks on the code changes and allows a maintainer to set the `push` label to
request the changes to be merged if all CI checks pass. With this proposal,
once the code review is complete and the commit messages have been updated, the
same pull request can be used to perform a final set of CI checks and merge the
changes into the master branch.
I would like to collect feedback on this proposal and the email archive service
over the next two weeks with close of comments on Friday May 22, 2020. If all
issues and concerns can be addressed, then I would like to see the community
agree to make this change as soon as all remaining tasks are completed.
# TianoCore Repositories to enable
* [edk2](https://github.com/tianocore/edk2)
* [edk2-platforms](https://github.com/tianocore/edk2-platforms)
* [edk2-non-osi](https://github.com/tianocore/edk2-non-osi)
* [edk2-test](https://github.com/tianocore/edk2-test)
* [edk2-libc](https://github.com/tianocore/edk2-libc)
* [edk2-staging](https://github.com/tianocore/edk2-staging)
# GitHub Pull Request Code Review Process
**NOTE**: All steps below use [edk2](https://github.com/tianocore/edk2) as an
example. Several repositories are supported.
## Author/Developer Steps
* Create a personal fork of [edk2](https://github.com/tianocore/edk2)
https://help.github.com/en/github/getting-started-with-github/fork-a-repo
* Create a new branch from edk2/master in personal fork of edk2 repository.
* Add set of commits for new feature or bug fix to new branch. Make sure to
follow the commit message format requirements. The only change with this
RFC is that the Cc: lines to maintainers/reviewers should **not** be added.
The Cc: lines are still supported, but they should only be used to add
reviewers that do not have GitHub IDs or are not members of TianoCore.
* Push branch with new commits to personal fork
* Create a pull request against TianoCore edk2/master
https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request
* If pull request has more than 1 commit, then fill in the pull request title
and decryption information for Patch #0. Do not leave defaults.
* Do not assign reviewers. The webhook assigns maintainers and reviewers to
the pull request and each commit in the pull request.
* If maintainers/reviewers provide feedback that requires changes, then make
add commits to the current branch with the requested changes. Once all
changes are accepted on the current branch, reformulate the patch series and
commit comments as needed for perform a forced push to the branch in the
personal fork of the edk2 repository. This step may be repeated if multiple
versions of the patch series are required to address all code review
feedback.
**OPEN**: How should minimum review period be set? Labels?
## TianoCore GitHub Email Archive Webhook Service Steps
* Receive an event that a new pull request was opened
* Evaluate the files modified by the entire pull request and each commit in
the pull request and cross references against `Maintainters.txt` in the root
of the repository to assign maintainers/reviewers to the pull request and
each commit in the pull request. Individual commit assignments are performed
by adding a commit comment of the following form:
[CodeReview] Review-request @mdkinney
* Generate and sends git patch review emails to the email archive. Emails
are also sent to any Cc: tags in the commit messages.
* If the author/developer performs a forced push to the branch in their
personal fork of the edk2 repository, then a new set of patch review emails
with patch series Vx is sent to the email archive and any Cc: tags in commit
messages.
* Receive events associated with all code review activities and generate
and send emails to the email archive that shows all review comments and
all responses closely matching the email contents seen in the current email
based code review process.
* Generate and send email when pull request is merged or closed.
## Maintainer/Reviewer Steps
* Make sure GitHub configuration is setup to 'Watch' the repositories that
you have maintainer ship or review responsibilities and that email
notifications from GitHub are enabled. This enables email notifications
when a maintainer/reviewer is assigned to a pull request and individual
commits.
https://help.github.com/en/github/managing-subscriptions-and-notifications-on-github/configuring-notifications
* Subscribe to the email archive associated with the TianoCore GitHub Email
Archive Webhook Service.
https://www.redhat.com/mailman/listinfo/tianocore-code-review-poc
* Review pull requests and commits assigned by the TianoCore GitHub Email
Archive Webhook Service and use the GitHub web UI to provide all review
feedback.
https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/reviewing-changes-in-pull-requests
* Wait for Author/Developer to respond to all feedback and add commits with
code changes as needed to resolve all feedback. This step may be repeated
if the developer/author need to produce multiple versions of the patch
series to address all feedback.
* Once all feedback is addressed, add Reviewed-by, Acked-by, and Tested-by
responses on individual commits. Or add Series-reviewed-by, Series-acked-by,
or Series-Tested-by responses to the entire pull request.
* Wait for Developer/Author to add tags to commit messages in the pull request.
* Perform final review of patches and commit message tags. If there are not
issues, set the `push` label to run final set of CI checks and auto merge
the pull request into master.
# Maintainers.txt Format Changes
Add GitHub IDs of all maintainers and reviewers at the end of M: and R: lines
in []. For example:
M: Michael D Kinney <michael.d.kinney@...> [mdkinney]
# TianoCore GitHub Email Archive Webhook Service
Assign reviewers to commits in a GitHub pull request based on assignments
documented in Maintainers.txt and generates an email archive of all pull request
and code review activities.
https://github.com/mdkinney/edk2-email-archive-webhook
# Email Archive Subscription Service
The emails are being delivered to the following RedHat email subscription
service. Please subscribe to receive the emails and to be able to view the
email archives.
https://www.redhat.com/mailman/listinfo/tianocore-code-review-poc
The email archives are at this link:
https://www.redhat.com/mailman/private/tianocore-code-review-poc/index.html
The following sections show some example pull requests and code reviews to
help review the generated emails, their contents, and threading.
## Email Achieve Thread View
https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/thread.html#00289
## Example patch series with 1 patch
https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/thread.html#00340
## Example patch series with < 10 patches
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00289.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00030.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00018.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00008.html
## Example patch series with > 80 patches
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00198.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00116.html
* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00035.html
# Tasks to Complete
* Create edk2-codereview repository for evaluation of new code review process.
* Add GitHub IDs to Maintainers.txt in edk2-codereview repository
* Update BaseTools/Scripts/GetMaintainer.py to be compatible with GitHub IDs at
the end of M: and R: statements
* Update webhook to use Rabbit MQ to manage requests and emails
* Determine if webhook requests must be serialized? Current POC is serialized.
* Make sure webhook has error handling for all unexpected events/states.
* Add logging of all events and emails to webhook
* Add admin interface to webhook
* Deploy webhook on a production server with 24/7 support
# Ideas for Future Enhancements
* Run PatchCheck.py before assigning maintainers/reviewers.
* Add a simple check that fails if a single patch spans more than one package.
* Monitor comments for Reviewed-by, Acked-by, Tested-by, Series-Reviewed-by,
Series-Acked-by, Series-Tested-by made by assigned maintainers/reviewers.
Once all commits have required tags, auto update commit messages in the
branch and wait for maintainer to set the `Push` label to run CI and auto
merge if all CI checks pass.
Best regards,
Mike
Michael D Kinney
Hello,
I have added the following repository to TianoCore to
support the evaluation of the GitHub pull request based
code review process and the email archive webbook. This
is a copy of tianocore/edk2 repo as of May 10, 2020.
https://github.com/tianocore/edk2-codereview
I have updated Maintainers.txt in this repo to add
GitHub IDs for the maintainers and reviewers. Please
review these updates to make sure they are correct.
https://github.com/tianocore/edk2-codereview/blob/master/Maintainers.txt
There are a few maintainers and reviewers that I need
GitHub IDs. Please send me your GitHub IDs and I will
complete the update of Maintainers.txt.
M: Chao Zhang <chao.b.zhang@...>
R: Julien Grall <julien@...>
R: Marc-André Lureau <marcandre.lureau@...>
R: Stefan Berger <stefanb@...>
R: Liran Alon <liran.alon@...>
R: Nikita Leshenko <nikita.leshchenko@...>
Thanks,
Mike
toggle quoted message
Show quoted text
I have added the following repository to TianoCore to
support the evaluation of the GitHub pull request based
code review process and the email archive webbook. This
is a copy of tianocore/edk2 repo as of May 10, 2020.
https://github.com/tianocore/edk2-codereview
I have updated Maintainers.txt in this repo to add
GitHub IDs for the maintainers and reviewers. Please
review these updates to make sure they are correct.
https://github.com/tianocore/edk2-codereview/blob/master/Maintainers.txt
There are a few maintainers and reviewers that I need
GitHub IDs. Please send me your GitHub IDs and I will
complete the update of Maintainers.txt.
M: Chao Zhang <chao.b.zhang@...>
R: Julien Grall <julien@...>
R: Marc-André Lureau <marcandre.lureau@...>
R: Stefan Berger <stefanb@...>
R: Liran Alon <liran.alon@...>
R: Nikita Leshenko <nikita.leshchenko@...>
Thanks,
Mike
-----Original Message-----
From: Kinney, Michael D <michael.d.kinney@...>
Sent: Friday, May 8, 2020 8:00 PM
To: devel@edk2.groups.io; rfc@edk2.groups.io; Kinney,
Michael D <michael.d.kinney@...>
Subject: [edk2-rfc] GitHub Pull Request based Code
Review Process
Hello,
This is a proposal to change from the current email-
based code review process to
a GitHub pull request-based code review process for all
repositories maintained
in TianoCore. The current email-based code review
process and commit message
requirements are documented in Readme.md or Readme.rst
at the root of
repositories along with a few Wiki pages:
*
https://github.com/tianocore/edk2/blob/master/ReadMe.rs
t
*
https://github.com/tianocore/tianocore.github.io/wiki/E
DK-II-Development-Process
*
https://github.com/tianocore/tianocore.github.io/wiki/L
aszlo's-unkempt-git-guide-for-edk2-contributors-and-
maintainers
*
https://github.com/tianocore/tianocore.github.io/wiki/C
ommit-Message-Format
*
https://github.com/tianocore/tianocore.github.io/wiki/C
ommit-Signature-Format
The goal is to post changes by opening a GitHub pull
request and perform all
code review activity using the GitHub web interface.
This proposal does not
change any licenses or commit message requirements. It
does require all
developers, maintainers, and reviewers to have GitHub
accounts.
One requirement that was collected from previous
discussions on this topic is
the need for an email archive of all patches and code
review activities. The
existing GitHub features to produce an email archive
were deemed insufficient.
A proof of concept of a GitHub webhook has been
implemented to provide the email
archive service. This email archive is read-only. You
will not be able to send
emails to this archive or reply to emails in the
archive.
The sections below provide more details on the proposed
GitHub pull request
based code review process, details on the email archive
service, and a set of
remaining tasks make the email archive service
production quality. It does not
make sense to support both the existing email-based
code review and the GitHub
pull request-based code review at the same time.
Instead, this proposal is to
switch to the GitHub pull request-based code review and
retire the email based
code review process on the same date.
The edk2 repository is using GitHub pull requests today
to run automated
CI checks on the code changes and allows a maintainer
to set the `push` label to
request the changes to be merged if all CI checks pass.
With this proposal,
once the code review is complete and the commit
messages have been updated, the
same pull request can be used to perform a final set of
CI checks and merge the
changes into the master branch.
I would like to collect feedback on this proposal and
the email archive service
over the next two weeks with close of comments on
Friday May 22, 2020. If all
issues and concerns can be addressed, then I would like
to see the community
agree to make this change as soon as all remaining
tasks are completed.
# TianoCore Repositories to enable
* [edk2](https://github.com/tianocore/edk2)
* [edk2-platforms](https://github.com/tianocore/edk2-
platforms)
* [edk2-non-osi](https://github.com/tianocore/edk2-non-
osi)
* [edk2-test](https://github.com/tianocore/edk2-test)
* [edk2-libc](https://github.com/tianocore/edk2-libc)
* [edk2-staging](https://github.com/tianocore/edk2-
staging)
# GitHub Pull Request Code Review Process
**NOTE**: All steps below use
[edk2](https://github.com/tianocore/edk2) as an
example. Several repositories are supported.
## Author/Developer Steps
* Create a personal fork of
[edk2](https://github.com/tianocore/edk2)
https://help.github.com/en/github/getting-started-
with-github/fork-a-repo
* Create a new branch from edk2/master in personal
fork of edk2 repository.
* Add set of commits for new feature or bug fix to
new branch. Make sure to
follow the commit message format requirements. The
only change with this
RFC is that the Cc: lines to maintainers/reviewers
should **not** be added.
The Cc: lines are still supported, but they should
only be used to add
reviewers that do not have GitHub IDs or are not
members of TianoCore.
* Push branch with new commits to personal fork
* Create a pull request against TianoCore edk2/master
https://help.github.com/en/github/collaborating-
with-issues-and-pull-requests/creating-a-pull-request
* If pull request has more than 1 commit, then fill
in the pull request title
and decryption information for Patch #0. Do not
leave defaults.
* Do not assign reviewers. The webhook assigns
maintainers and reviewers to
the pull request and each commit in the pull
request.
* If maintainers/reviewers provide feedback that
requires changes, then make
add commits to the current branch with the
requested changes. Once all
changes are accepted on the current branch,
reformulate the patch series and
commit comments as needed for perform a forced push
to the branch in the
personal fork of the edk2 repository. This step
may be repeated if multiple
versions of the patch series are required to
address all code review
feedback.
**OPEN**: How should minimum review period be set?
Labels?
## TianoCore GitHub Email Archive Webhook Service Steps
* Receive an event that a new pull request was opened
* Evaluate the files modified by the entire pull
request and each commit in
the pull request and cross references against
`Maintainters.txt` in the root
of the repository to assign maintainers/reviewers
to the pull request and
each commit in the pull request. Individual commit
assignments are performed
by adding a commit comment of the following form:
[CodeReview] Review-request @mdkinney
* Generate and sends git patch review emails to the
email archive. Emails
are also sent to any Cc: tags in the commit
messages.
* If the author/developer performs a forced push to
the branch in their
personal fork of the edk2 repository, then a new
set of patch review emails
with patch series Vx is sent to the email archive
and any Cc: tags in commit
messages.
* Receive events associated with all code review
activities and generate
and send emails to the email archive that shows all
review comments and
all responses closely matching the email contents
seen in the current email
based code review process.
* Generate and send email when pull request is merged
or closed.
## Maintainer/Reviewer Steps
* Make sure GitHub configuration is setup to 'Watch'
the repositories that
you have maintainer ship or review responsibilities
and that email
notifications from GitHub are enabled. This
enables email notifications
when a maintainer/reviewer is assigned to a pull
request and individual
commits.
https://help.github.com/en/github/managing-
subscriptions-and-notifications-on-github/configuring-
notifications
* Subscribe to the email archive associated with the
TianoCore GitHub Email
Archive Webhook Service.
https://www.redhat.com/mailman/listinfo/tianocore-
code-review-poc
* Review pull requests and commits assigned by the
TianoCore GitHub Email
Archive Webhook Service and use the GitHub web UI
to provide all review
feedback.
https://help.github.com/en/github/collaborating-
with-issues-and-pull-requests/reviewing-changes-in-
pull-requests
* Wait for Author/Developer to respond to all
feedback and add commits with
code changes as needed to resolve all feedback.
This step may be repeated
if the developer/author need to produce multiple
versions of the patch
series to address all feedback.
* Once all feedback is addressed, add Reviewed-by,
Acked-by, and Tested-by
responses on individual commits. Or add Series-
reviewed-by, Series-acked-by,
or Series-Tested-by responses to the entire pull
request.
* Wait for Developer/Author to add tags to commit
messages in the pull request.
* Perform final review of patches and commit message
tags. If there are not
issues, set the `push` label to run final set of CI
checks and auto merge
the pull request into master.
# Maintainers.txt Format Changes
Add GitHub IDs of all maintainers and reviewers at the
end of M: and R: lines
in []. For example:
M: Michael D Kinney <michael.d.kinney@...>
[mdkinney]
# TianoCore GitHub Email Archive Webhook Service
Assign reviewers to commits in a GitHub pull request
based on assignments
documented in Maintainers.txt and generates an email
archive of all pull request
and code review activities.
https://github.com/mdkinney/edk2-email-archive-webhook
# Email Archive Subscription Service
The emails are being delivered to the following RedHat
email subscription
service. Please subscribe to receive the emails and to
be able to view the
email archives.
https://www.redhat.com/mailman/listinfo/tianocore-code-
review-poc
The email archives are at this link:
https://www.redhat.com/mailman/private/tianocore-code-
review-poc/index.html
The following sections show some example pull requests
and code reviews to
help review the generated emails, their contents, and
threading.
## Email Achieve Thread View
https://www.redhat.com/mailman/private/tianocore-code-
review-poc/2020-May/thread.html#00289
## Example patch series with 1 patch
https://www.redhat.com/mailman/private/tianocore-code-
review-poc/2020-May/thread.html#00340
## Example patch series with < 10 patches
* https://www.redhat.com/mailman/private/tianocore-
code-review-poc/2020-May/msg00289.html
* https://www.redhat.com/mailman/private/tianocore-
code-review-poc/2020-May/msg00030.html
* https://www.redhat.com/mailman/private/tianocore-
code-review-poc/2020-May/msg00018.html
* https://www.redhat.com/mailman/private/tianocore-
code-review-poc/2020-May/msg00008.html
## Example patch series with > 80 patches
* https://www.redhat.com/mailman/private/tianocore-
code-review-poc/2020-May/msg00198.html
* https://www.redhat.com/mailman/private/tianocore-
code-review-poc/2020-May/msg00116.html
* https://www.redhat.com/mailman/private/tianocore-
code-review-poc/2020-May/msg00035.html
# Tasks to Complete
* Create edk2-codereview repository for evaluation of
new code review process.
* Add GitHub IDs to Maintainers.txt in edk2-codereview
repository
* Update BaseTools/Scripts/GetMaintainer.py to be
compatible with GitHub IDs at
the end of M: and R: statements
* Update webhook to use Rabbit MQ to manage requests
and emails
* Determine if webhook requests must be serialized?
Current POC is serialized.
* Make sure webhook has error handling for all
unexpected events/states.
* Add logging of all events and emails to webhook
* Add admin interface to webhook
* Deploy webhook on a production server with 24/7
support
# Ideas for Future Enhancements
* Run PatchCheck.py before assigning
maintainers/reviewers.
* Add a simple check that fails if a single patch spans
more than one package.
* Monitor comments for Reviewed-by, Acked-by, Tested-
by, Series-Reviewed-by,
Series-Acked-by, Series-Tested-by made by assigned
maintainers/reviewers.
Once all commits have required tags, auto update
commit messages in the
branch and wait for maintainer to set the `Push`
label to run CI and auto
merge if all CI checks pass.
Best regards,
Mike
Michael D Kinney
Hi Ray,
Comments below.
Mike
toggle quoted message
Show quoted text
Comments below.
Mike
-----Original Message-----Yes.
From: Ni, Ray <ray.ni@...>
Sent: Friday, May 8, 2020 9:23 PM
To: rfc@edk2.groups.io; Kinney, Michael D
<michael.d.kinney@...>; devel@edk2.groups.io
Subject: RE: [edk2-rfc] GitHub Pull Request based Code
Review Process
Mike,
It's a huge improvement to me as an Outlook user if
pull-request-based review is enabled!
Please help me to understand: The pull-request-based
review has been enabled naturally when edk2
was migrated to Github. People don't use it because
it's not accepted by community. Your process
tries to meet community's needs of achieving all review
comments in mails so pull-request-based
review can be accepted by community. Right?
Laszlo has graciously volunteered to help setup this email
I just subscribed at
https://www.redhat.com/mailman/listinfo/tianocore-code-
review-poc with
empty password.
I received the confirmation mail and clicked the link
in the mail to confirm.
But I waited for ~15 minutes and didn't receive the
additional mail containing the auto-generated password.
I went to
https://www.redhat.com/mailman/private/tianocore-code-
review-poc/2020-May/thread.html#00289.
However, the page requires me to enter password.
Can you please change the setting so that viewing the
mail achieve doesn't need password?
subscription service to help evaluate the POC. I will let
him comment on the settings available. He should also be
able to approve your subscription so you can see the archive
and receive any emails generated by the webhook.
Please advise me what else I can try. I am happy to try
as many steps as I can before all the process are
enabled.
Thanks,
Ray-----Original Message-----Behalf Of Michael D Kinney
From: rfc@edk2.groups.io <rfc@edk2.groups.io> OnSent: Saturday, May 9, 2020 11:00 AMMichael D <michael.d.kinney@...>
To: devel@edk2.groups.io; rfc@edk2.groups.io; Kinney,Subject: [edk2-rfc] GitHub Pull Request based CodeReview Processbased code review process to
Hello,
This is a proposal to change from the current email-a GitHub pull request-based code review process forall repositories maintainedin TianoCore. The current email-based code reviewprocess and commit messagerequirements are documented in Readme.md orReadme.rst at the root ofrepositories along with a few Wiki pages:https://github.com/tianocore/edk2/blob/master/ReadMe.rs
*
t*https://github.com/tianocore/tianocore.github.io/wiki/E
DK-II-Development-Process*https://github.com/tianocore/tianocore.github.io/wiki/L
aszlo's-unkempt-git-guide-for-edk2-contributors-and-
maintainers*https://github.com/tianocore/tianocore.github.io/wiki/C
ommit-Message-Format*https://github.com/tianocore/tianocore.github.io/wiki/C
ommit-Signature-Formatrequest and perform all
The goal is to post changes by opening a GitHub pullcode review activity using the GitHub web interface.This proposal does notchange any licenses or commit message requirements.It does require alldevelopers, maintainers, and reviewers to have GitHubaccounts.discussions on this topic is
One requirement that was collected from previousthe need for an email archive of all patches and codereview activities. Theexisting GitHub features to produce an email archivewere deemed insufficient.A proof of concept of a GitHub webhook has beenimplemented to provide the emailarchive service. This email archive is read-only.You will not be able to sendemails to this archive or reply to emails in thearchive.proposed GitHub pull request
The sections below provide more details on thebased code review process, details on the emailarchive service, and a set ofremaining tasks make the email archive serviceproduction quality. It does notmake sense to support both the existing email-basedcode review and the GitHubpull request-based code review at the same time.Instead, this proposal is toswitch to the GitHub pull request-based code reviewand retire the email basedcode review process on the same date.today to run automated
The edk2 repository is using GitHub pull requestsCI checks on the code changes and allows a maintainerto set the `push` label torequest the changes to be merged if all CI checkspass. With this proposal,once the code review is complete and the commitmessages have been updated, thesame pull request can be used to perform a final setof CI checks and merge thechanges into the master branch.the email archive service
I would like to collect feedback on this proposal andover the next two weeks with close of comments onFriday May 22, 2020. If allissues and concerns can be addressed, then I wouldlike to see the communityagree to make this change as soon as all remainingtasks are completed.platforms)
# TianoCore Repositories to enable
* [edk2](https://github.com/tianocore/edk2)
* [edk2-platforms](https://github.com/tianocore/edk2-* [edk2-non-osi](https://github.com/tianocore/edk2-non-osi)* [edk2-test](https://github.com/tianocore/edk2-test)staging)
* [edk2-libc](https://github.com/tianocore/edk2-libc)
* [edk2-staging](https://github.com/tianocore/edk2-[edk2](https://github.com/tianocore/edk2) as an
# GitHub Pull Request Code Review Process
**NOTE**: All steps below useexample. Several repositories are supported.[edk2](https://github.com/tianocore/edk2)
## Author/Developer Steps
* Create a personal fork ofstarted-with-github/fork-a-repo
https://help.github.com/en/github/getting-fork of edk2 repository.
* Create a new branch from edk2/master in personalnew branch. Make sure to
* Add set of commits for new feature or bug fix tofollow the commit message format requirements.The only change with thisRFC is that the Cc: lines tomaintainers/reviewers should **not** be added.The Cc: lines are still supported, but theyshould only be used to addreviewers that do not have GitHub IDs or are notmembers of TianoCore.edk2/master
* Push branch with new commits to personal fork
* Create a pull request against TianoCorewith-issues-and-pull-requests/creating-a-pull-request
https://help.github.com/en/github/collaborating-in the pull request title
* If pull request has more than 1 commit, then filland decryption information for Patch #0. Do notleave defaults.maintainers and reviewers to
* Do not assign reviewers. The webhook assignsthe pull request and each commit in the pullrequest.requires changes, then make
* If maintainers/reviewers provide feedback thatadd commits to the current branch with therequested changes. Once allchanges are accepted on the current branch,reformulate the patch series andcommit comments as needed for perform a forcedpush to the branch in thepersonal fork of the edk2 repository. This stepmay be repeated if multipleversions of the patch series are required toaddress all code reviewfeedback.Labels?
**OPEN**: How should minimum review period be set?Steps
## TianoCore GitHub Email Archive Webhook Service* Receive an event that a new pull request wasopened* Evaluate the files modified by the entire pullrequest and each commit inthe pull request and cross references against`Maintainters.txt` in the rootof the repository to assign maintainers/reviewersto the pull request andeach commit in the pull request. Individualcommit assignments are performedby adding a commit comment of the following form:email archive. Emails
[CodeReview] Review-request @mdkinney
* Generate and sends git patch review emails to theare also sent to any Cc: tags in the commitmessages.the branch in their
* If the author/developer performs a forced push topersonal fork of the edk2 repository, then a newset of patch review emailswith patch series Vx is sent to the email archiveand any Cc: tags in commitmessages.activities and generate
* Receive events associated with all code reviewand send emails to the email archive that showsall review comments andall responses closely matching the email contentsseen in the current emailbased code review process.merged or closed.
* Generate and send email when pull request is'Watch' the repositories that
## Maintainer/Reviewer Steps
* Make sure GitHub configuration is setup toyou have maintainer ship or reviewresponsibilities and that emailnotifications from GitHub are enabled. Thisenables email notificationswhen a maintainer/reviewer is assigned to a pullrequest and individualcommits.subscriptions-and-notifications-on-github/configuring-
https://help.github.com/en/github/managing-
notificationsthe TianoCore GitHub Email
* Subscribe to the email archive associated withArchive Webhook Service.https://www.redhat.com/mailman/listinfo/tianocore-code-
review-pocTianoCore GitHub Email
* Review pull requests and commits assigned by theArchive Webhook Service and use the GitHub web UIto provide all reviewfeedback.with-issues-and-pull-requests/reviewing-changes-in-
https://help.github.com/en/github/collaborating-
pull-requestsfeedback and add commits with
* Wait for Author/Developer to respond to allcode changes as needed to resolve all feedback.This step may be repeatedif the developer/author need to produce multipleversions of the patchseries to address all feedback.Acked-by, and Tested-by
* Once all feedback is addressed, add Reviewed-by,responses on individual commits. Or add Series-reviewed-by, Series-acked-by,or Series-Tested-by responses to the entire pullrequest.messages in the pull request.
* Wait for Developer/Author to add tags to commitmessage tags. If there are not
* Perform final review of patches and commitissues, set the `push` label to run final set ofCI checks and auto mergethe pull request into master.the end of M: and R: lines
# Maintainers.txt Format Changes
Add GitHub IDs of all maintainers and reviewers atin []. For example:[mdkinney]
M: Michael D Kinney <michael.d.kinney@...>based on assignments
# TianoCore GitHub Email Archive Webhook Service
Assign reviewers to commits in a GitHub pull requestdocumented in Maintainers.txt and generates an emailarchive of all pull requestand code review activities.webhook
https://github.com/mdkinney/edk2-email-archive-RedHat email subscription
# Email Archive Subscription Service
The emails are being delivered to the followingservice. Please subscribe to receive the emails andto be able to view theemail archives.code-review-poc
https://www.redhat.com/mailman/listinfo/tianocore-code-review-poc/index.html
The email archives are at this link:
https://www.redhat.com/mailman/private/tianocore-requests and code reviews to
The following sections show some example pullhelp review the generated emails, their contents, andthreading.code-review-poc/2020-May/thread.html#00289
## Email Achieve Thread View
https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/thread.html#00340
## Example patch series with 1 patch
https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00289.html
## Example patch series with < 10 patches
* https://www.redhat.com/mailman/private/tianocore-* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00030.html* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00018.html* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00008.htmlcode-review-poc/2020-May/msg00198.html
## Example patch series with > 80 patches
* https://www.redhat.com/mailman/private/tianocore-* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00116.html* https://www.redhat.com/mailman/private/tianocore-code-review-poc/2020-May/msg00035.htmlnew code review process.
# Tasks to Complete
* Create edk2-codereview repository for evaluation of* Add GitHub IDs to Maintainers.txt in edk2-codereview repository* Update BaseTools/Scripts/GetMaintainer.py to becompatible with GitHub IDs atthe end of M: and R: statementsand emails
* Update webhook to use Rabbit MQ to manage requests* Determine if webhook requests must be serialized?Current POC is serialized.* Make sure webhook has error handling for allunexpected events/states.* Add logging of all events and emails to webhooksupport
* Add admin interface to webhook
* Deploy webhook on a production server with 24/7maintainers/reviewers.
# Ideas for Future Enhancements
* Run PatchCheck.py before assigning* Add a simple check that fails if a single patchspans more than one package.* Monitor comments for Reviewed-by, Acked-by, Tested-by, Series-Reviewed-by,Series-Acked-by, Series-Tested-by made by assignedmaintainers/reviewers.Once all commits have required tags, auto updatecommit messages in thebranch and wait for maintainer to set the `Push`label to run CI and automerge if all CI checks pass.
Best regards,
Mike