blob: 0a48ac7150f0fe9f17c0879a70b4fc10a066669e [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>
Ian Maxon858061a2022-05-12 19:11:28 -070056 <li><a href="docs/0.9.8/index.html">Documentation for 0.9.8<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 Maxon1befeb12021-07-16 12:40:15 -070059 <li><a href="https://ci.apache.org/projects/asterixdb/index.html">Documentation for 0.9.7-SNAPSHOT <i class="fa fa-external-link fa-sm"></i></a></li>
Ian Maxon79af4a72018-11-02 17:06:39 -070060 <li class="divider"></li>
61 <li class="dropdown-header">Tutorial for SQL Users</li>
62 <li><a href="files/SQL_Book.pdf">Don Chamberlin's SQL++ for SQL Users<i class="fa fa-external-link fa-sm"></i></a></li>
Ian Maxona9643c82015-09-01 11:15:57 -100063 </ul>
64 </li>
Ian Maxonf84cb812015-12-07 15:09:45 -080065 <li><a href="about.html">About</a></li>
Till Westmann2a321022016-04-08 08:18:14 -070066 <li class="dropdown">
67 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Community<span class="caret"></span></a>
68 <ul class="dropdown-menu" role="menu">
69 <li><a href="community.html">Mailing Lists</a></li>
70 <li><a href="community.html#irc">IRC</a></li>
71 <li><a href="community.html#asterixdb-team">Team</a></li>
72 <li><a href="https://issues.apache.org/jira/browse/ASTERIXDB">Issue Tracker</a></li>
73 </ul>
74 </li>
Ian Maxon3dffc852015-07-13 20:17:09 -070075 <li class="dropdown">
Michael Blowf93d7f52016-10-07 14:36:30 -040076 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Development<span class="caret"></span></a>
Ian Maxon3dffc852015-07-13 20:17:09 -070077 <ul class="dropdown-menu" role="menu">
78 <li class="dropdown-header">For New Contributors</li>
Ian Maxonf84cb812015-12-07 15:09:45 -080079 <li><a href="dev-setup.html">Development Setup</a></li>
Ian Maxon3dffc852015-07-13 20:17:09 -070080 <li class="divider"></li>
81 <li class="dropdown-header">For Committers</li>
Ian Maxonf84cb812015-12-07 15:09:45 -080082 <li><a href="pushing.html">Pushing changes</a></li>
83 <li><a href="site.html">Editing this site</a></li>
Michael Blowf93d7f52016-10-07 14:36:30 -040084 <li class="dropdown-header">Extensions</li>
85 <li><a href="extension.html">Extending AsterixDB</a></li>
Ian Maxon3dffc852015-07-13 20:17:09 -070086 </ul>
87 </li>
88 </ul>
Till Westmann00f9bf22016-03-14 13:59:27 -070089 <ul class="nav navbar-nav navbar-right">
90 <li class="dropdown">
91 <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"
92 style="padding-right: 30px">
93 <img src="img/feather.png" style="height:20px"/>Apache Software Foundation<span class="caret"/>
94 </a>
95 <ul class="dropdown-menu dropdown-menu-right" role="menu">
96 <li><a href="http://www.apache.org/"><b>ASF Homepage</b></a></li>
97 <li><a href="http://www.apache.org/licenses/">License</a></li>
98 <li><a href="http://www.apache.org/foundation/sponsorship.html">Donate</a></li>
99 <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
100 <li><a href="http://www.apache.org/security/">Security</a></li>
101 </ul>
102 </li>
103 </ul>
Ian Maxon3dffc852015-07-13 20:17:09 -0700104 </div><!--/.nav-collapse -->
105 </div>
106 </nav>
107
108
Till Westmann00f9bf22016-03-14 13:59:27 -0700109 <div class="row">
Ian Maxon3dffc852015-07-13 20:17:09 -0700110<div class="col-md-8 col-centered">
111<h2>Submitting Changes</h2>
112<ul id="markdown-toc">
113 <li><a href="#submitting-patches-in-gerrit" id="markdown-toc-submitting-patches-in-gerrit">Submitting patches in Gerrit</a></li>
114 <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>
115</ul>
116
117<hr />
118
119<h3 id="submitting-patches-in-gerrit">Submitting patches in Gerrit</h3>
120
121<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.
122In 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>
123
124<h4 id="patches-which-span-hyracks-and-asterixdb">Patches which span Hyracks and AsterixDB</h4>
125
126<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>
127
128<ol>
129 <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>
130 <li>Submit the Hyracks patch.</li>
131 <li>If all went well, submit the AsterixDB patch.</li>
132</ol>
133
134<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>
135
136<h3 id="pushing-merged-patches-from-gerrit-to-asf-git">Pushing merged patches from Gerrit to ASF git</h3>
137
138<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>
139
140<h4 id="prerequisites">Prerequisites</h4>
141
142<p>Before we begin, some prerequisites/notes:</p>
143
144<ul>
145 <li>
146 <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>
147 </li>
148 <li>
149 <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>
150 </li>
151 <li>
152 <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>
153 </li>
154</ul>
155
156<h4 id="pushing-the-changes">Pushing the change(s)</h4>
157
158<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>
159
160<ol>
161 <li><code>git asf commit $SHA1</code></li>
162</ol>
163
164<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>
165
166
167</div>
168</div>
169
170
Till Westmann00f9bf22016-03-14 13:59:27 -0700171 <hr/>
Ian Maxon3dffc852015-07-13 20:17:09 -0700172
Till Westmann00f9bf22016-03-14 13:59:27 -0700173 <footer>
174 <div class="row">
Till Westmann00f9bf22016-03-14 13:59:27 -0700175 <div class="col-md-9 col-centered text-center">
176 <p/>
177 <p>&copy; Copyright 2016 The Apache Software foundation. All Rights Reserved. </p>
178 <p>Apache AsterixDB, the Apache AsterixDB logo, Apache, and the Apache feather logo are trademarks of the
179 Apache Software Foundation</p>
Ian Maxon3dffc852015-07-13 20:17:09 -0700180 </div>
Till Westmann00f9bf22016-03-14 13:59:27 -0700181 </div>
182 </footer>
183 </div> <!-- /container -->
Ian Maxon3dffc852015-07-13 20:17:09 -0700184
185 <!-- Bootstrap core JavaScript
186 ================================================== -->
187 <!-- Placed at the end of the document so the pages load faster -->
188 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
Ian Maxonf84cb812015-12-07 15:09:45 -0800189 <script src="js/bootstrap.min.js"></script>
Ian Maxon3dffc852015-07-13 20:17:09 -0700190 </body>
191</html>