Changeset 53679 in webkit


Ignore:
Timestamp:
Jan 21, 2010 10:37:57 PM (14 years ago)
Author:
Chris Jerdonek
Message:

Added screenshots and clearer instructions on how to submit
a patch for review.

Reviewed by David Levin.

https://bugs.webkit.org/show_bug.cgi?id=32542

Also added that a bug report should be selected or created
prior to submitting a patch.

  • coding/contributing.html:
  • coding/images: Added.
  • coding/images/contribute_add_attachment.png: Added.
  • coding/images/contribute_mark_review.png: Added.
Location:
trunk/WebKitSite
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitSite/ChangeLog

    r53117 r53679  
     12010-01-21  Chris Jerdonek  <cjerdonek@webkit.org>
     2
     3        Reviewed by David Levin.
     4
     5        Added screenshots and clearer instructions on how to submit
     6        a patch for review.
     7
     8        https://bugs.webkit.org/show_bug.cgi?id=32542
     9
     10        Also added that a bug report should be selected or created
     11        prior to submitting a patch.
     12
     13        * coding/contributing.html:
     14        * coding/images: Added.
     15        * coding/images/contribute_add_attachment.png: Added.
     16        * coding/images/contribute_mark_review.png: Added.
     17
    1182010-01-11  Maciej Stachowiak  <mjs@apple.com>
    219
  • trunk/WebKitSite/coding/contributing.html

    r51733 r53679  
    1 <?php 
     1<?php
    22    $title="Contributing Code";
    3     include("../header.inc");
     3    $extra_head_content = <<<END
     4<style type="text/css">
     5img {
     6    border:1px solid black
     7}
     8</style>
     9
     10
     11END;
     12
     13    include("../header.inc");
    414?>
    515<h2>Contributing Code</h2>
    6 <p>Contributing code to the WebKit project is a straightforward process.
    7 The project maintains several <a href="scripts.html">scripts</a>
    8 to assist you with this process.</p>
     16<p>This page describes how to contribute changes to the WebKit
     17source control repository.
     18The WebKit project maintains several <a href="scripts.html">scripts</a>
     19to assist you. This page assumes you already know how to
     20<a href="/building/checkout.html">check out</a> and
     21<a href="/building/build.html">build</a> the code.</p>
    922
    10 <p>Once you have <a href="/building/checkout.html">checked out</a>,
    11 <a href="/building/build.html">built</a>, and made your changes to the code,
    12 you'll need to do a few things to get your changes landed in the tree:</p>
     23<h3>Overview</h3>
     24<p>Below are the recommended steps.
     25Later sections of this page explain each step in more detail.
     26</p>
    1327
    1428<ol>
     29    <li>Choose or create a <a href="#bugreport">bug report</a> to work on.</li>
     30    <li>Complete your changes.</li>
    1531    <li>Make sure your changes meet the <a href="/coding/coding-style.html">code
    1632        style guidelines</a>. The <tt>check-webkit-style</tt> script may be of
     
    2137    <li>Prepare a change log entry. You may have to add entries to multiple ChangeLogs. The <tt>prepare-ChangeLog</tt> script will create stub entries for you.  See the <a href="#changelogs">paragraph about ChangeLogs</a> below.</li>
    2238    <li>Create the patch using the <tt>svn-create-patch</tt> script.</li>
    23     <li>Upload the patch for review. In Bugzilla, be sure to mark your file as a patch and set the <tt>review:?</tt> flag.</li>
     39    <li><a href="#submit">Submit</a> your patch for review to
     40        <a href="https://bugs.webkit.org/">bugs.webkit.org</a>.</li>
    2441    <li>Make any changes recommended by the reviewer.</li>
    2542    <li>Once reviewed, ask someone to land your patch or mark it for <a href="#commitqueue">automated commit</a>.
     
    2845
    2946<p>More detail about these steps is below.</p>
     47
     48<h3 id="bugreport">Choose a bug report</h3>
     49<p>The <a href="https://bugs.webkit.org/">bugs.webkit.org</a> database
     50is the central point of communication for contributions to WebKit.
     51Nearly every contribution corresponds to a bug report there.
     52Note that WebKit uses bug reports to track all types of code changes
     53and not just bug fixes.
     54</p>
     55
     56<p>Choose a bug report to work on. You can also create a new report.
     57Be sure to search the database before creating new reports to avoid
     58duplication.</p>
     59
     60<p>After choosing a bug report, follow the
     61WebKit <a href="/quality/lifecycle.html">bug life cycle</a> guidelines
     62for the report. For example, it is often good practice to comment
     63in a report if you are working on that issue. If your change
     64may be controversial, you may want to check in advance with the
     65<a href="http://lists.webkit.org/mailman/listinfo/webkit-dev">
     66webkit-dev</a> mailing list.</p>
    3067
    3168<h3>Code Style Guidelines</h3>
     
    6198
    6299<h3>Create the patch</h3>
    63 <p>WebKit uses <tt>svn-create-patch</tt> to create patches. The 
    64 <tt>svn-create-patch</tt> script is a small wrapper around Subversion's 
     100<p>WebKit uses <tt>svn-create-patch</tt> to create patches. The
     101<tt>svn-create-patch</tt> script is a small wrapper around Subversion's
    65102<tt>diff</tt> command that better handles moved, added, and deleted files.
    66 This command is best run from the top level of your checkout 
    67 to make sure no changes are left out of your patch. It is not necessary to 
     103This command is best run from the top level of your checkout
     104to make sure no changes are left out of your patch. It is not necessary to
    68105break a patch into multiple files.</p>
    69106
     
    72109<p class="code">svn-create-patch > MyExcellentPatch.txt</p>
    73110
    74 <h3>Patch review</h3>
    75 <p>Once you have a patch file, one of the approved WebKit reviewers must review it.
    76 To request a review, attach the patch to the bug report, and mark the patch with the flag <tt>review:?</tt>. The reviewer will typically either approve the patch
     111<h3 id="submit">Submit your patch</h3>
     112<p>Submit your patch by clicking the "Add an attachment" link in the
     113<a href="#bugreport">bug report</a> you chose for your contribution.</p>
     114
     115<p><img src="images/contribute_add_attachment.png"
     116alt='Bugzilla "Add an attachment" link'></p>
     117
     118<p>Complete the attachment form by doing at least the following:
     119<ol>
     120    <li>Browse to your patch file in the File field.</li>
     121    <li>Type a brief description in the Description field, for example
     122        "Proposed patch."</li>
     123    <li>Check the "patch" checkbox (see picture below).</li>
     124    <li>Select the question mark "?" in the "review" pull-down
     125        (see picture below).</li>
     126    <li>Click Submit at the bottom.</li>
     127</ol>
     128</p>
     129
     130<p><img src="images/contribute_mark_review.png"
     131alt="Bugzilla patch-submission options"></p>
     132
     133<p>The patch checkbox and the <tt>review:?</tt> flag signal to
     134WebKit reviewers that your patch is ready for review.
     135Setting the review flag also sends an automatic e-mail to the
     136<a href="http://lists.webkit.org/mailman/listinfo/webkit-reviews">
     137webkit-reviews</a> mailing list which some reviewers subscribe to.
     138</p>
     139
     140<h3>Respond to reviewers</h3>
     141<p>A WebKit reviewer must approve your patch before WebKit can accept
     142it into the source control repository.
     143A reviewer will typically either approve your patch
    77144(by responding with an <tt>r=me</tt> in the bug report and marking the patch <tt>review:+</tt>) or request revisions
    78 to the patch (and mark the patch <tt>review:-</tt>). In rare cases a patch may be permanently rejected, meaning that the reviewer
     145to your patch (and mark the patch <tt>review:-</tt>). In rare cases a patch may be permanently rejected, meaning that the reviewer
    79146believes the feature should never be committed to the tree. The review process can consist of multiple iterations between you and
    80 the reviewer as revisions are made to your patch.</p>
     147the reviewer as you submit revised patches.</p>
    81148
    82149<h3 id="landing">Landing in the tree</h3>
Note: See TracChangeset for help on using the changeset viewer.