blob: 72d568667a8ab607433e2beb0f00458aa84e732a [file] [log] [blame]
Ian Maxon3dffc852015-07-13 20:17:09 -07001<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 <meta name="viewport" content="width=device-width, initial-scale=1">
7 <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
8 <meta name="description" content="">
9 <meta name="author" content="">
Ian Maxonf84cb812015-12-07 15:09:45 -080010 <link rel="icon" href="favicon.ico">
Ian Maxon3dffc852015-07-13 20:17:09 -070011
12 <title>Submitting Changes</title>
13
14 <!-- Bootstrap core CSS -->
Ian Maxonf84cb812015-12-07 15:09:45 -080015 <link href="css/bootstrap.min.css" rel="stylesheet">
Ian Maxon3dffc852015-07-13 20:17:09 -070016 <!-- Bootstrap theme -->
17
18 <!-- Custom styles for this template -->
Ian Maxonf84cb812015-12-07 15:09:45 -080019 <link href="css/theme.css" rel="stylesheet">
Ian Maxon3dffc852015-07-13 20:17:09 -070020
21 <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
22 <!--[if lt IE 9]>
23 <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
24 <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
25 <![endif]-->
26 <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
27 </head>
28
29 <div class="container theme-showcase" role="main">
Till Westmann00f9bf22016-03-14 13:59:27 -070030 <div class="masthead">
31 <p class="lead">
32 <a href="index.html">
33 <img src="img/asterixdb_tm.png" style="height:75px; width:auto; vertical-align:bottom; margin-top:10px;"/>
34 </a>
35 </p>
36 </div>
Ian Maxon3dffc852015-07-13 20:17:09 -070037
Till Westmann00f9bf22016-03-14 13:59:27 -070038 <nav class="navbar navbar-default">
Ian Maxon3dffc852015-07-13 20:17:09 -070039 <div class="container">
40 <div class="navbar-header">
41 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
42 <span class="sr-only">Toggle navigation</span>
43 <span class="icon-bar"></span>
44 <span class="icon-bar"></span>
45 <span class="icon-bar"></span>
46 </button>
Ian Maxonf84cb812015-12-07 15:09:45 -080047 <a class="navbar-brand" href="index.html">Overview</a>
Ian Maxon3dffc852015-07-13 20:17:09 -070048 </div>
49 <div class="navbar-collapse collapse">
50 <ul class="nav navbar-nav">
Ian Maxonf84cb812015-12-07 15:09:45 -080051 <li><a href="download.html">Download</a></li>
Ian Maxona9643c82015-09-01 11:15:57 -100052 <li class="dropdown">
53 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Documentation<span class="caret"></span></a>
54 <ul class="dropdown-menu" role="menu">
55 <li class="dropdown-header">Stable release</li>
Till Westmanne617e522016-02-29 12:42:51 -080056 <li><a href="docs/0.8.8-incubating/index.html">Documentation for 0.8.8-incubating<i class="fa fa-external-link fa-sm"></i></a></li>
Ian Maxona9643c82015-09-01 11:15:57 -100057 <li class="divider"></li>
58 <li class="dropdown-header">Snapshot release</li>
Ian Maxona1d49092016-03-25 13:24:08 -070059 <li><a href="https://ci.apache.org/projects/asterixdb/index.html">Documentation for 0.8.9-SNAPSHOT <i class="fa fa-external-link fa-sm"></i></a></li>
Ian Maxona9643c82015-09-01 11:15:57 -100060 </ul>
61 </li>
Ian Maxonf84cb812015-12-07 15:09:45 -080062 <li><a href="about.html">About</a></li>
63 <li><a href="community.html">Community</a></li>
Ian Maxon3dffc852015-07-13 20:17:09 -070064 <li class="dropdown">
65 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Contributing <span class="caret"></span></a>
66 <ul class="dropdown-menu" role="menu">
67 <li class="dropdown-header">For New Contributors</li>
Ian Maxonf84cb812015-12-07 15:09:45 -080068 <li><a href="dev-setup.html">Development Setup</a></li>
Ian Maxon3dffc852015-07-13 20:17:09 -070069 <li class="divider"></li>
70 <li class="dropdown-header">For Committers</li>
Ian Maxonf84cb812015-12-07 15:09:45 -080071 <li><a href="pushing.html">Pushing changes</a></li>
72 <li><a href="site.html">Editing this site</a></li>
Ian Maxon3dffc852015-07-13 20:17:09 -070073 </ul>
74 </li>
75 </ul>
Till Westmann00f9bf22016-03-14 13:59:27 -070076 <ul class="nav navbar-nav navbar-right">
77 <li class="dropdown">
78 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"
79 style="padding-right: 30px">
80 <img src="img/feather.png" style="height:20px"/>Apache Software Foundation<span class="caret"/>
81 </a>
82 <ul class="dropdown-menu dropdown-menu-right" role="menu">
83 <li><a href="http://www.apache.org/"><b>ASF Homepage</b></a></li>
84 <li><a href="http://www.apache.org/licenses/">License</a></li>
85 <li><a href="http://www.apache.org/foundation/sponsorship.html">Donate</a></li>
86 <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
87 <li><a href="http://www.apache.org/security/">Security</a></li>
88 </ul>
89 </li>
90 </ul>
Ian Maxon3dffc852015-07-13 20:17:09 -070091 </div><!--/.nav-collapse -->
92 </div>
93 </nav>
94
95
Till Westmann00f9bf22016-03-14 13:59:27 -070096 <div class="row">
Ian Maxon3dffc852015-07-13 20:17:09 -070097<div class="col-md-8 col-centered">
98<h2>Submitting Changes</h2>
99<ul id="markdown-toc">
100 <li><a href="#submitting-patches-in-gerrit" id="markdown-toc-submitting-patches-in-gerrit">Submitting patches in Gerrit</a></li>
101 <li><a href="#pushing-merged-patches-from-gerrit-to-asf-git" id="markdown-toc-pushing-merged-patches-from-gerrit-to-asf-git">Pushing merged patches from Gerrit to ASF git</a></li>
102</ul>
103
104<hr />
105
106<h3 id="submitting-patches-in-gerrit">Submitting patches in Gerrit</h3>
107
108<p>Once a patch set is <code>+2 Code Review</code> in Gerrit, as well as <code>+1 Verified</code>, it can be submitted by a committer.
109In the simplest case, this simply means for someone who is authorized (any Apache committer) to click the ‘Submit Patchset …’ button in the Gerrit web interface. However there is one case right now where care must be exercised in submitting a patch.</p>
110
111<h4 id="patches-which-span-hyracks-and-asterixdb">Patches which span Hyracks and AsterixDB</h4>
112
113<p>These patches require special care to submit. Any AsterixDB patch that requires a topic in Gerrit to verify is of this type. In general this is the process:</p>
114
115<ol>
116 <li>Ensure that both patches are based on the current HEAD of master (there should be no ‘Rebase Change’ button). This will require reviewers to re-apply their +2, because it changes the content of the patch.</li>
117 <li>Submit the Hyracks patch.</li>
118 <li>If all went well, submit the AsterixDB patch.</li>
119</ol>
120
121<p><strong>IMPORTANT</strong>: Do <em>not</em> attempt to merge a patch that needs changes in Hyracks and AsterixDB while it needs rebasing. If the patch to Hyracks succeeds with a clean rebase, but the AsterixDB change requires a manual merge, you will leave master in a broken state!</p>
122
123<h3 id="pushing-merged-patches-from-gerrit-to-asf-git">Pushing merged patches from Gerrit to ASF git</h3>
124
125<p>Once a change is submitted and merged in Gerrit, the job is only partially done. The patch is committed in Gerrit’s local repository, but it is not present in the ASF git repository. This step must be done manually, preferably by the author of the patch (if they are a committer), or by one of the reviewers (if the patch is authored by a non-committer). This is simply a matter of fetching Gerrit’s master branch, and then pushing those changes to the ASF git repo. The git-asf script automates and simplifies this process.</p>
126
127<h4 id="prerequisites">Prerequisites</h4>
128
129<p>Before we begin, some prerequisites/notes:</p>
130
131<ul>
132 <li>
133 <p>You should have git-gerrit and git-asf installed (available <a href="http://github.com/ceejatec/git-gerrit">here</a>) and set up properly.</p>
134 </li>
135 <li>
136 <p>We need the SHA1 hash of the commit we want to push to ASF. This is visible in the Gerrit Web UI as a comment when a change is merged (“Change has been successfully cherry-picked as …”).</p>
137 </li>
138 <li>
139 <p>You should have the credentials for pushing to the ASF repository set up in a .netrc file or stored in git. See <a href="https://git-wip-us.apache.org/#committers-getting-started">here</a> for more details on setting up git with your Apache credentials.</p>
140 </li>
141</ul>
142
143<h4 id="pushing-the-changes">Pushing the change(s)</h4>
144
145<p>Once the above is fulfilled, we can begin. Let <code>$SHA1</code> be the actual SHA1 hash of the commit we want to transmit from Gerrit to the ASF repo.</p>
146
147<ol>
148 <li><code>git asf commit $SHA1</code></li>
149</ol>
150
151<p>That’s all there is to it! If the patch spanned both Hyracks and AsterixDB, be sure to perform this process in both repositories.</p>
152
153
154</div>
155</div>
156
157
Till Westmann00f9bf22016-03-14 13:59:27 -0700158 <hr/>
Ian Maxon3dffc852015-07-13 20:17:09 -0700159
Till Westmann00f9bf22016-03-14 13:59:27 -0700160 <footer>
161 <div class="row">
162 <div class="col-md-9 col-centered">
163 <div class="col-md-9 text-left">
164 <p>Apache AsterixDB is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored
165 by the Apache Incubator.
166 Incubation is required of all newly accepted projects until a further review indicates that the
167 infrastructure, communications, and decision making process have stabilized in a manner consistent with
168 other successful ASF projects.
169 While incubation status is not necessarily a reflection of the completeness or stability of the code, it
170 does indicate that the project has yet to be fully endorsed by the ASF.</p>
171 </div>
172 <div class="col-md-3 text-right">
173 <img src="img/egg-logo.png" style="height:auto; width:200px; vertical-align:bottom;"/>
174 </div>
175 </div>
176 </div>
177 <div class="row">
178 <div class="col-md-9 col-centered text-center">
179 <p/>
180 <p>&copy; Copyright 2016 The Apache Software foundation. All Rights Reserved. </p>
181 <p>Apache AsterixDB, the Apache AsterixDB logo, Apache, and the Apache feather logo are trademarks of the
182 Apache Software Foundation</p>
Ian Maxon3dffc852015-07-13 20:17:09 -0700183 </div>
Till Westmann00f9bf22016-03-14 13:59:27 -0700184 </div>
185 </footer>
186 </div> <!-- /container -->
Ian Maxon3dffc852015-07-13 20:17:09 -0700187
188 <!-- Bootstrap core JavaScript
189 ================================================== -->
190 <!-- Placed at the end of the document so the pages load faster -->
191 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
Ian Maxonf84cb812015-12-07 15:09:45 -0800192 <script src="js/bootstrap.min.js"></script>
Ian Maxon3dffc852015-07-13 20:17:09 -0700193 </body>
194</html>