public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Guo Dong" <guo.dong@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] GitHub PR Code Review process now active
Date: Thu, 6 Jun 2024 01:21:38 +0000	[thread overview]
Message-ID: <CY5PR11MB6260D5E710C713D7A0CB2F1A9EFA2@CY5PR11MB6260.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CO1PR11MB492983A04F94300F1D3D9BF4D2F92@CO1PR11MB4929.namprd11.prod.outlook.com>


Hi Mike,

Glad to see EDK2 PR code review process is active.
In Slim Bootloader project, it runs BaseTools/Scripts/PatchCheck.py to check the PR commit message when running QEMU CI test  
Maybe you could refer https://github.com/slimbootloader/slimbootloader/blob/48a24b87824321c053cccf367c7c3637ff581fdf/.azurepipelines/azure-pipelines.yml#L38 to check if EDK2 could use similar check.

Thanks,
Guo

-----Original Message-----
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Michael D Kinney
Sent: Wednesday, June 5, 2024 3:21 PM
To: devel@edk2.groups.io
Cc: Kinney, Michael D <michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] GitHub PR Code Review process now active

Hello,

The PR code review process has been active for a little over a week now.

There have been about 17 PRs merged since the switch and it appears to have been mostly working well. I also note that the emails per day on this mailing list is much smaller as the code reviews have migrated to PRs.

A few issues have been noted:

1) Contributors that are not EDK II Maintainers do not have permissions
   to assign reviewers 

   * Mitigation #1: EDK II Maintainers review new PRs and assign reviewers
   * Mitigation #2: Use CODEOWNERS to auto assign maintainers.  WIP.

* EDK II Maintainers must review the commit message in each commit and
  to make sure it follows the required commit message format and has
  an appropriate Signed-off-by tag. GitHub does not provide a way to
  provide review comments for a commit message. Instead, feedback on
  commit messages must be provided in the main PR conversation and quote
  commit message that requires changes as required.

* Slow CI Performance

  This appears to be due to longer than expected queues in Azure Pipelines.
  Azure Pipelines is working through the backlog. It may help if the
  number of requests to rebase and number of new commits to open PRs are
  reduced. The Tools/CI team will continue to collect data and determine
  if other changes are needed to reduce the CI overhead.

* Some PRs have been merged using the "Rebase and Merge" button in the
  PR after all required reviews completed and all CI checks pass. Instead,
  the "push" label should continue to be used. There does not appear to be
  any unexpected side effects from the "Rebase and Merge" button, but that
  option is not available if the PR needs to be rebased. This is what
  Mergify handles through a merge queue, so the easiest way to merge right
  now is the "push" label.

  If the most recent commit was not performed by an EDK II Maintainers, then
  Mergify attempt to rebase may fail.

    Mitigation #1: EDK II Maintainer perform a rebase
    Mitigation #2: Update Mergify to use a bot account with write permission
                   to perform rebase operations.

  There was feedback earlier in the year that the git commit history does
  not indicate which maintainer was the committer.  Instead it always shows
  Mergify.

  The use of GitHub Merge Queues will be evaluated to see if it can be used
  instead of Mergify and remove the need for the "push" label and allow the
  "Rebase and Merge" button to be used and avoid the Mergify permission issues.

* Some PRs do not complete all CI checks waiting for "Workflow Approval".
  this can occur when a PR is updated by an outside collaborator that does
  not have any previous "Workflow Approvals" accepted.

  Mitigation #1: EDK II Maintainers review PRs and accept the "Workflow Approval"
                 if the PR looks like a good change request.
  Mitigation #2: Relax the edk2 repo configuration settings related to workflows

* When a PR needs to be rebased, there are 2 options available through the
  Web UI:

  * Update with merge commit (Never use - generates PatchCheck errors)
  * Update with rebase (Only use this one)

  If Update with merge commit is accidently applied, then redo again
  Using "Update with rebase"

Please provide feedback if you are seeing other issues or have other suggestions to improve the process.

Thanks,

Mike

> -----Original Message-----
> From: Kinney, Michael D <michael.d.kinney@intel.com>
> Sent: Monday, June 3, 2024 12:38 PM
> To: Neal Gompa <ngompa13@gmail.com>; devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>
> Subject: RE: [edk2-devel] GitHub PR Code Review process now active
> 
> The reason to allow a draft PR is to allow contributors to run all the 
> CI tests to see if they pass and resolve issues before starting a review.
> 
> The CI tests include combinations of OS/compiler that not all 
> contributors have available.
> 
> Mike
> 
> > -----Original Message-----
> > From: Neal Gompa <ngompa13@gmail.com>
> > Sent: Monday, June 3, 2024 11:47 AM
> > To: devel@edk2.groups.io; Kinney, Michael D 
> > <michael.d.kinney@intel.com>
> > Subject: Re: [edk2-devel] GitHub PR Code Review process now active
> >
> > Hmm, I don't see a setting for it anymore, maybe that's not a thing
> anymore?
> >
> > I seemingly recall that draft PRs didn't get CI runs, but if that's 
> > not a thing anymore, then that's fine.
> >
> > That said, draft PRs cannot be reviewed, so we should not be telling 
> > people to make draft PRs.
> >
> >
> > On Mon, Jun 3, 2024 at 12:26 PM Michael D Kinney via groups.io
> >
> > <michael.d.kinney=intel.com@groups.io> wrote:
> > >
> > > CI jobs are dispatched to both GitHub Actions and Azure Pipelines.
> > >
> > > For Draft PRs, I see both GitHub Actions and Azure Pipelines jobs
> running.
> > >
> > > This must imply that edk2 repo allows this.  Do you happen to know 
> > > where this is configurable or a link to GitHub docs for configuration?
> > >
> > > Mike
> > >
> > > > -----Original Message-----
> > > > From: Neal Gompa <ngompa13@gmail.com>
> > > > Sent: Monday, June 3, 2024 9:13 AM
> > > > To: devel@edk2.groups.io; Kinney, Michael D
> <michael.d.kinney@intel.com>
> > > > Subject: Re: [edk2-devel] GitHub PR Code Review process now 
> > > > active
> > > >
> > > > On Tue, May 28, 2024 at 2:53 PM Michael D Kinney via groups.io 
> > > > <michael.d.kinney=intel.com@groups.io> wrote:
> > > > >
> > > > > Hello,
> > > > >
> > > > > The GitHub PR code review process is now active.  Please use 
> > > > > the new PR based code review process for all new submissions 
> > > > > starting today.
> > > > >
> > > > > * The Wiki has been updated with the process changes.
> > > > >
> > > > >   
> > > > > https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-
> > Development-
> > > > Process
> > > > >
> > > > >   Big thanks to Michael Kubacki for writing up all the
> > > > >   changes based on the RFC proposal and community discussions.
> > > > >
> > > > >   We will learn by using, so if you see anything missing or
> > > > >   incorrect or clarifications needed, please send feedback
> > > > >   here so the Wiki pages can be updated quickly for everyone.
> > > > >
> > > > > * The edk2 repo settings have been updated to require
> > > > >   a GitHub PR code review approval before merging and
> > > > >   all conversations must be resolved before merging.
> > > > >
> > > > > * A PR has been opened that removes the requirement for
> > > > >   Cc: tags in the commit messages and is the first PR
> > > > >   that will use the new process. This PR needs to be
> > > > >   reviewed and merged to support the revised commit
> > > > >   message format.
> > > > >
> > > > >   https://github.com/tianocore/edk2/pull/5688
> > > > >
> > > > >   
> > > > > https://github.com/tianocore/tianocore.github.io/wiki/Commit-
> Message-
> > > > Format
> > > > >
> > > > > * Please use "Draft" PRs to run CI without any reviews.
> > > > >   Once ready for reviews, convert from "Draft" to
> > > > >   "Ready for Review".
> > > > >
> > > >
> > > > Generally GitHub doesn't allow CI to run on PRs created as draft 
> > > > pull requests. Was this changed for edk2?
> > > >
> > > >
> > > > --
> > > > 真実はいつも一つ!/ Always, there's only one truth!
> > >
> > >
> > > 
> > >
> > >
> >
> >
> > --
> > 真実はいつも一つ!/ Always, there's only one truth!







-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119492): https://edk2.groups.io/g/devel/message/119492
Mute This Topic: https://groups.io/mt/106355103/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  parent reply	other threads:[~2024-06-06  1:21 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-28 18:53 [edk2-devel] GitHub PR Code Review process now active Michael D Kinney
2024-05-29  6:38 ` Gerd Hoffmann
2024-05-29 15:00   ` Michael D Kinney
2024-05-29 16:38     ` Gerd Hoffmann
2024-05-29 18:09       ` Michael D Kinney
2024-05-29 18:18         ` Rebecca Cran
2024-05-29 18:27           ` Michael D Kinney
2024-05-29 19:25             ` Michael Kubacki
2024-05-29 20:06               ` Michael D Kinney
2024-05-30  0:51                 ` Michael Kubacki
2024-05-30 17:38                   ` Saloni Kasbekar
2024-05-30 18:00                     ` Michael D Kinney
2024-05-31  3:50                       ` Michael D Kinney
2024-05-31  4:36                         ` Michael Kubacki
2024-06-21  5:15                       ` Dhaval Sharma
2024-06-21  5:25                         ` Michael D Kinney
2024-05-30  8:32                 ` Gerd Hoffmann
2024-05-30 14:10                   ` Michael D Kinney
2024-05-29 10:40 ` Chang, Abner via groups.io
2024-05-29 14:44   ` Michael D Kinney
2024-05-29 14:48     ` Chang, Abner via groups.io
2024-05-30  0:41       ` Yao, Jiewen
2024-06-03 16:13 ` Neal Gompa
2024-06-03 16:26   ` Michael D Kinney
2024-06-03 18:46     ` Neal Gompa
2024-06-03 19:38       ` Michael D Kinney
2024-06-05 22:21         ` Michael D Kinney
2024-06-05 22:47           ` Rebecca Cran via groups.io
2024-06-05 23:27             ` Michael D Kinney
2024-06-16 22:08               ` Rebecca Cran
2024-06-06  1:21           ` Guo Dong [this message]
2024-06-06  1:37             ` Michael D Kinney
2024-06-04 13:23       ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CY5PR11MB6260D5E710C713D7A0CB2F1A9EFA2@CY5PR11MB6260.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox