<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Dec 5, 2018 at 5:32 PM Jordan Justen <<a href="mailto:jordan.l.justen@intel.com">jordan.l.justen@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This documents a process for using GitLab Merge Requests as an second<br>
way to submit code changes for Mesa. Only one of the two methods is<br>
allowed for each patch series.<br>
<br>
We will *not* require all patches to be emailed. Some code changes may<br>
be reviewed and merged without any discussion on the mesa-dev email<br>
list.<br>
<br>
v2:<br>
 * No longer require email. Allow submitter to choose email or a<br>
   GitLab merge request.<br>
 * Various feedback from Brian, Daniel, Dylan, Eric, Erik, Jason,<br>
   Matt, Michel and Rob.<br>
<br>
Signed-off-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>><br>
---<br>
 docs/submittingpatches.html | 76 ++++++++++++++++++++++++++++++++++---<br>
 1 file changed, 71 insertions(+), 5 deletions(-)<br>
<br>
diff --git a/docs/submittingpatches.html b/docs/submittingpatches.html<br>
index 92d954a2d09..21175988d0b 100644<br>
--- a/docs/submittingpatches.html<br>
+++ b/docs/submittingpatches.html<br>
@@ -21,7 +21,7 @@<br>
 <li><a href="#guidelines">Basic guidelines</a><br>
 <li><a href="#formatting">Patch formatting</a><br>
 <li><a href="#testing">Testing Patches</a><br>
-<li><a href="#mailing">Mailing Patches</a><br>
+<li><a href="#submit">Submitting Patches</a><br>
 <li><a href="#reviewing">Reviewing Patches</a><br>
 <li><a href="#nominations">Nominating a commit for a stable branch</a><br>
 <li><a href="#criteria">Criteria for accepting patches to the stable branch</a><br>
@@ -42,8 +42,10 @@ components.<br>
 <code>git bisect</code>.)<br>
 <li>Patches should be properly <a href="#formatting">formatted</a>.<br>
 <li>Patches should be sufficiently <a href="#testing">tested</a> before submitting.<br>
-<li>Patches should be submitted to <a href="#mailing">mesa-dev</a><br>
-for <a href="#reviewing">review</a> using <code>git send-email</code>.<br>
+<li>Patches should be <a href="#submit">submitted</a><br>
+to <a href="#mailing">mesa-dev</a> or with<br>
+a <a href="#merge-request">merge request</a><br>
+for <a href="#reviewing">review</a>.<br>
<br>
 </ul><br>
<br>
@@ -180,10 +182,19 @@ run.<br>
 </p><br>
<br>
<br>
-<h2 id="mailing">Mailing Patches</h2><br>
+<h2 id="submit">Submitting Patches</h2><br>
<br>
 <p><br>
-Patches should be sent to the mesa-dev mailing list for review:<br>
+Patches may be submitted to the Mesa project by<br>
+<a href="#mailing">email</a> or with a<br>
+GitLab <a href="#merge-request">merge request</a>. To prevent<br>
+duplicate code review, only use one method to submit your changes.<br>
+</p><br></blockquote><div><br></div><div>Do we want to require a cover-letter to be sent to the ML?  Ideally, we'd just have a bot that makes one every time someone submits a MR and sends it to the list.  Maybe someone just needs to write that bot.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
+<h3 id="mailing">Mailing Patches</h3><br>
+<br>
+<p><br>
+Patches may be sent to the mesa-dev mailing list for review:<br>
 <a href="<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a>"><br>
 <a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a></a>.<br>
 When submitting a patch make sure to use<br>
@@ -217,8 +228,63 @@ disabled before sending your patches. (Note that you may need to contact<br>
 your email administrator for this.)<br>
 </p><br>
<br>
+<h3 id="merge-request">GitLab Merge Requests</h3><br>
+<br>
+<p><br>
+  <a href="<a href="https://gitlab.freedesktop.org/mesa/mesa" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/mesa/mesa</a>">GitLab</a> Merge<br>
+  Requests (MR) can also be used to submit patches for Mesa.<br>
+</p><br>
+<br>
+<p><br>
+  If the MR may have interest for most of the Mesa community, you can<br>
+  send an email to the mesa-dev email list including a link to the MR.<br>
+  Don't send the patch to mesa-dev, just the MR link.<br>
+</p><br>
+<p><br>
+  Add labels to your MR to help reviewers find it. For example:<br>
+  <ul><br>
+    <li>Mesa changes affecting all drivers: mesa<br>
+    <li>Hardware vendor specific code: amd, intel, nvidia, ...<br>
+    <li>Driver specific code: anvil, freedreno, i965, iris, radeonsi,<br>
+      radv, vc4, ...<br>
+    <li>Other tag examples: gallium, util<br>
+  </ul><br>
+</p><br>
+<p><br>
+  If you revise your patches based on code review and push an update<br>
+  to your branch, you should maintain a <strong>clean</strong> history<br>
+  in your patches. There should not be "fixup" patches in the history.<br>
+  The series should be buildable and functional after every commit<br>
+  whenever you push the branch.<br>
+</p><br>
+<p><br>
+  It is your responsibility to keep the MR alive and making progress,<br>
+  as there are no guarantees that a Mesa dev will independently take<br>
+  interest in it.<br>
+</p><br>
+<p><br>
+  Some other notes:<br>
+  <ul><br>
+    <li>Make changes and update your branch based on feedback<br>
+    <li>Old, stale MR may be closed, but you can reopen it if you<br>
+      still want to pursue the changes<br>
+    <li>You should periodically check to see if your MR needs to be<br>
+      rebased<br>
+    <li>Make sure your MR is closed if your patches get pushed outside<br>
+      of GitLab<br>
+  </ul><br>
+</p><br>
+<br>
 <h2 id="reviewing">Reviewing Patches</h2><br>
<br>
+<p><br>
+  To participate in code review, you should monitor the<br>
+  <a href="<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a>"><br>
+  mesa-dev</a> email list and the GitLab<br>
+  Mesa <a href="<a href="https://gitlab.freedesktop.org/mesa/mesa/merge_requests" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/mesa/mesa/merge_requests</a>">Merge<br>
+  Requests</a> page.<br>
+</p><br>
+<br>
 <p><br>
 When you've reviewed a patch on the mailing list, please be unambiguous<br>
 about your review.  That is, state either<br>
-- <br>
2.20.0.rc2<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>