blob: 242881a70bcc6c1b0919c2088a86f6942604564c [file] [log] [blame]
Emil Velikov2edc29a2016-11-16 18:25:41 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html lang="en">
3<head>
4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
Emil Velikov028d29b2016-11-28 17:22:15 +00005 <title>Releasing process</title>
Emil Velikov2edc29a2016-11-16 18:25:41 +00006 <link rel="stylesheet" type="text/css" href="mesa.css">
7</head>
8<body>
9
10<div class="header">
11 <h1>The Mesa 3D Graphics Library</h1>
12</div>
13
14<iframe src="contents.html"></iframe>
15<div class="content">
16
17<h1>Releasing process</h1>
18
19<ul>
20<li><a href="#overview">Overview</a>
21<li><a href="#schedule">Release schedule</a>
22<li><a href="#pickntest">Cherry-pick and test</a>
23<li><a href="#branch">Making a branchpoint</a>
24<li><a href="#prerelease">Pre-release announcement</a>
25<li><a href="#release">Making a new release</a>
26<li><a href="#announce">Announce the release</a>
27<li><a href="#website">Update the mesa3d.org website</a>
28<li><a href="#bugzilla">Update Bugzilla</a>
29</ul>
30
31<h1 id="overview">Overview</h1>
32
33<p>
34This document uses the convention X.Y.Z for the release number with X.Y being
35the stable branch name.
36<br>
37Mesa provides feature and bugfix releases. Former use zero as patch version (Z),
38while the latter have a non-zero one.
39</p>
40
41<p>
42For example:
43</p>
44<pre>
45 Mesa 10.1.0 - 10.1 branch, feature
46 Mesa 10.1.4 - 10.1 branch, bugfix
47 Mesa 12.0.0 - 12.0 branch, feature
48 Mesa 12.0.2 - 12.0 branch, bugfix
49</pre>
50
51<h1 id="schedule">Release schedule</h1>
52
53<p>
54Releases should happen on Fridays. Delays can occur although those should be keep
55to a minimum.
56</p>
57
58<h2>Feature releases</h2>
59<ul>
60<li>Available approximatelly every three months.
61<li>Initial timeplan available 2-4 weeks before the planned branchpoint (rc1)
62on the mesa-announce@ mailing list.
63<li>A <a href="#prerelease">pre-release</a> announcement should be available
64approximatelly 24 hours before the final (non-rc) release.
65</ul>
66
67<h2>Stable releases</h2>
68<ul>
69<li>Normally available once every two weeks.
70<li>Only the latest branch has releases. See note below.
71<li>A <a href="#prerelease">pre-release</a> announcement should be available
72approximatelly 48 hours before the actual release.
73</ul>
74
75<p>
76Note: There is one or two releases overlap when changing branches. For example:
77<br>
78The final release from the 12.0 series Mesa 12.0.5 will be out around the same
79time (or shortly after) 13.0.1 is out.
80</p>
81
82<h1 id="pickntest">Cherry-picking and testing</h1>
83
84<p>
85Commits nominated for the active branch are picked as based on the
86<a href="submittingpatches.html#criteria" target="_parent">criteria</a> as
87described in the same section.
88
89<p>
90Maintainer is responsible for testing in various possible permutations of
91the autoconf and scons build.
92</p>
93
94<h2>Cherry-picking and build/check testing</h2>
95
96<p>Done continuously up-to the <a href="#prerelease">pre-release</a> announcement.</p>
97
98<p>
99As an exception, patches can be applied up-to the last ~1h before the actual
100release. This is made <strong>only</strong> with explicit permission/request,
101and the patch <strong>must</strong> be very well contained. Thus it cannot
102affect more than one driver/subsystem.
103</p>
104<p>
105Currently Ilia Mirkin and AMD devs have requested "permanent" exception.
106</p>
107
108
109<ul>
110<li>make distcheck, scons and scons check must pass
111<li>Testing with different version of system components - LLVM and others is also
112performed where possible.
113</ul>
114<p>
115Achieved by combination of local ad-hoc scripts and AppVeyor plus Travis-CI,
116the latter as part of their Github integration.
117</p>
118
119<h2>Regression/functionality testing</h2>
120
121<p>
122Less often (once or twice), shortly before the pre-release announcement.
123Ensure that testing is redone if Intel devs have requested an exception, as per above.
124</p>
125<ul>
126<li><em>no regressions should be observed for Piglit/dEQP/CTS/Vulkan on Intel platforms</em>
127<li><em>no regressions should be observed for Piglit using the swrast, softpipe
128and llvmpipe drivers</em>
129</ul>
130<p>
131Currently testing is performed courtesy of the Intel OTC team and their Jenkins CI setup. Check with the Intel team over IRC how to get things setup.
132</p>
133
134
135<h1 id="branch">Making a branchpoint</h1>
136
137<p>
138A branchpoint is made such that new development can continue in parallel to
139stabilisation and bugfixing.
140</p>
141
142<p>
143Note: Before doing a branch ensure that basic build and <code>make check</code>
144testing is done and there are little to-no issues.
145<br>
146Ideally all of those should be tackled already.
147</p>
148
149<p>
150Check if the version number is going to remain as, alternatively
151<code> git mv docs/relnotes/{current,new}.html </code> as appropriate.
152</p>
153
154<p>
155To setup the branchpoint:
156</p>
157<pre>
158 git checkout master # make sure we're in master first
159 git tag -s X.Y-branchpoint -m "Mesa X.Y branchpoint"
160 git checkout -b X.Y
Emil Velikov0f8afde2017-01-19 15:35:38 +0000161 git checkout master
162 $EDITOR VERSION # bump the version number
163 git commit -as
Emil Velikov1d104f92017-01-26 19:26:13 +0000164 cp docs/relnotes/{X.Y,X.Y+1}.html # copy/create relnotes template
165 git commit -as
Emil Velikov2edc29a2016-11-16 18:25:41 +0000166 git push origin X.Y-branchpoint X.Y
167</pre>
168
169<p>
170Now go to
171<a href="https://bugs.freedesktop.org/editversions.cgi?action=add&amp;product=Mesa" target="_parent">Bugzilla</a> and add the new Mesa version X.Y.
172</p>
173<p>
Emil Velikov383e8e22017-02-20 19:27:49 +0000174Check that there are no distribution breaking changes and revert them if needed.
175For example: files being overwritten on install, etc. Happens extremely rarely -
176we had only one case so far (see commit 2ced8eb136528914e1bf4e000dea06a9d53c7e04).
Emil Velikov2edc29a2016-11-16 18:25:41 +0000177</p>
178<p>
179Proceed to <a href="#release">release</a> -rc1.
180</p>
181
182<h1 id="prerelease">Pre-release announcement</h1>
183
184<p>
185It comes shortly after outstanding patches in the respective branch are pushed.
186Developers can check, in brief, what's the status of their patches. They,
187alongside very early testers, are strongly encouraged to test the branch and
188report any regressions.
189<br>
190It is followed by a brief period (normally 24 or 48 hours) before the actual
191release is made.
192</p>
193
194<h2>Terminology used</h2>
195<ul><li>Nominated</ul>
196<p>
197Patch that is nominated but yet to to merged in the patch queue/branch.
198</p>
199
200<ul><li>Queued</ul>
201<p>
202Patch is in the queue/branch and will feature in the next release.
203Barring reported regressions or objections from developers.
204</p>
205
206<ul><li>Rejected</ul>
207<p>
208Patch does not fit the
209<a href="submittingpatches.html#criteria" target="_parent">criteria</a> and
210is followed by a brief information.
211<br>
212The release maintainer is human so if you believe you've spotted a mistake do
213let them know.
214</p>
215
216<h2>Format/template</h2>
217<pre>
218Subject: [ANNOUNCE] Mesa X.Y.Z release candidate
219To: mesa-announce@...
220Cc: mesa-dev@...
221
222Hello list,
223
224The candidate for the Mesa X.Y.Z is now available. Currently we have:
225 - NUMBER queued
226 - NUMBER nominated (outstanding)
227 - and NUMBER rejected patches
228
229BRIEF SUMMARY OF CHANGES
230
231Take a look at section "Mesa stable queue" for more information.
232
233
234Testing reports/general approval
235--------------------------------
236Any testing reports (or general approval of the state of the branch) will be
237greatly appreciated.
238
239The plan is to have X.Y.Z this DAY (DATE), around or shortly after TIME.
240
241If you have any questions or suggestions - be that about the current patch
242queue or otherwise, please go ahead.
243
244
245Trivial merge conflicts
246-----------------------
247List of commits where manual intervention was required.
248Keep the authors in the CC list.
249
250commit SHA
251Author: AUTHOR
252
253 COMMIT SUMMARY
254
255 CHERRY PICKED FROM
256
257
258For example:
259
260commit 990f395e007c3204639daa34efc3049f350ee819
261Author: Emil Velikov &lt;emil.velikov@collabora.com&gt;
262
263 anv: automake: cleanup the generated json file during make clean
264
265 (cherry picked from commit 8df581520a823564be0ab5af7dbb7d501b1c9670)
266
267
268Cheers,
269Emil
270
271
272Mesa stable queue
273-----------------
274
275Nominated (NUMBER)
276==================
277
278AUTHOR (NUMBER):
279 SHA COMMIT SUMMARY
280
281For example:
282
283Dave Airlie (1):
284 2de85eb radv: fix texturesamples to handle single sample case
285
286
287Queued (NUMBER)
288===============
289
290AUTHOR (NUMBER):
291 COMMIT SUMMARY
292
293
294Rejected (NUMBER)
295=================
296
297Rejected (11)
298=============
299
300AUTHOR (NUMBER):
301 SHA COMMIT SUMMARY
302
303Reason: ...
304</pre>
305
306<h1 id="release">Making a new release</h1>
307
Emil Velikov2edc29a2016-11-16 18:25:41 +0000308<p>
309These are the instructions for making a new Mesa release.
310</p>
311
312<h3>Get latest source files</h3>
313<p>
314Ensure the latest code is available - both in your local master and the
315relevant branch.
316</p>
317
318<h3>Perform basic testing</h3>
319<p>
320Most of the testing should already be done during the
321<a href="#pickntest">cherry-pick</a> and
322<a href="#prerelease">pre-announce</a> stages.
323
324So we do a quick 'touch test'
325<ul>
326<li>make distcheck (you can omit this if you're not using --dist below)
327<li>scons (from release tarball)
328<li>the produced binaries work
329</ul>
330
331<p>
332Here is one solution that I've been using.
333</p>
334
335<pre>
336 git clean -fXd; git clean -nxd
337 read # quick cross check any outstanding files
Emil Velikovf9959ca2016-11-28 17:18:06 +0000338 export __version=`cat VERSION`
Emil Velikov2edc29a2016-11-16 18:25:41 +0000339 export __mesa_root=../
340 export __build_root=./foo
341 chmod 755 -fR $__build_root; rm -rf $__build_root
342 mkdir -p $__build_root &amp;&amp; cd $__build_root
343
Emil Velikovf9959ca2016-11-28 17:18:06 +0000344 $__mesa_root/autogen.sh --enable-llvm-shared-libs &amp;&amp; make -j2 distcheck
Emil Velikov2edc29a2016-11-16 18:25:41 +0000345
Emil Velikovf9b18d52017-02-01 08:42:14 +0000346 # Build check the tarballs (scons, linux)
347 tar -xaf mesa-$__version.tar.xz &amp;&amp; cd mesa-$__version
348 scons
349 cd .. &amp;&amp; rm -rf mesa-$__version
350
351 # Build check the tarballs (scons, windows/mingw)
352 tar -xaf mesa-$__version.tar.xz &amp;&amp; cd mesa-$__version
353 scons platform=windows toolchain=crossmingw
354 cd .. &amp;&amp; rm -rf mesa-$__version
Emil Velikov2edc29a2016-11-16 18:25:41 +0000355
356 # Test the automake binaries
Emil Velikovf9959ca2016-11-28 17:18:06 +0000357 tar -xaf mesa-$__version.tar.xz &amp;&amp; cd mesa-$__version
Emil Velikov2edc29a2016-11-16 18:25:41 +0000358 ./configure \
359 --with-dri-drivers=i965,swrast \
360 --with-gallium-drivers=swrast \
Emil Velikovf9959ca2016-11-28 17:18:06 +0000361 --with-vulkan-drivers=intel \
Emil Velikov2edc29a2016-11-16 18:25:41 +0000362 --enable-llvm-shared-libs \
Emil Velikovb3b41562017-02-07 15:53:14 +0000363 --enable-llvm \
Emil Velikovf9959ca2016-11-28 17:18:06 +0000364 --enable-glx-tls \
365 --enable-gbm \
366 --enable-egl \
367 --with-egl-platforms=x11,drm,wayland
Emil Velikov2edc29a2016-11-16 18:25:41 +0000368 make -j2 &amp;&amp; DESTDIR=`pwd`/test make -j6 install
Emil Velikov652e3672017-02-01 09:31:56 +0000369 __glxinfo_cmd='glxinfo 2>&amp;1 | egrep -o "Mesa.*|Gallium.*|.*dri\.so"'
370 __glxgears_cmd='glxgears 2>&amp;1 | grep -v "configuration file"'
371 __es2info_cmd='es2_info 2>&amp;1 | egrep "GL_VERSION|GL_RENDERER|.*dri\.so"'
372 __es2gears_cmd='es2gears_x11 2>&amp;1 | grep -v "configuration file"'
Emil Velikov2edc29a2016-11-16 18:25:41 +0000373 export LD_LIBRARY_PATH=`pwd`/test/usr/local/lib/
374 export LIBGL_DRIVERS_PATH=`pwd`/test/usr/local/lib/dri/
Emil Velikovf9959ca2016-11-28 17:18:06 +0000375 export LIBGL_DEBUG=verbose
Emil Velikov652e3672017-02-01 09:31:56 +0000376 eval $__glxinfo_cmd
377 eval $__glxgears_cmd
378 eval $__es2info_cmd
379 eval $__es2gears_cmd
Emil Velikov2edc29a2016-11-16 18:25:41 +0000380 export LIBGL_ALWAYS_SOFTWARE=1
Emil Velikov652e3672017-02-01 09:31:56 +0000381 eval $__glxinfo_cmd
382 eval $__glxgears_cmd
383 eval $__es2info_cmd
384 eval $__es2gears_cmd
Emil Velikov2edc29a2016-11-16 18:25:41 +0000385 export LIBGL_ALWAYS_SOFTWARE=1
386 export GALLIUM_DRIVER=softpipe
Emil Velikov652e3672017-02-01 09:31:56 +0000387 eval $__glxinfo_cmd
388 eval $__glxgears_cmd
389 eval $__es2info_cmd
390 eval $__es2gears_cmd
Emil Velikovf9959ca2016-11-28 17:18:06 +0000391 # Smoke test DOTA2
392 unset LD_LIBRARY_PATH
393 unset LIBGL_DRIVERS_PATH
394 unset LIBGL_DEBUG
395 unset LIBGL_ALWAYS_SOFTWARE
396 export VK_ICD_FILENAMES=`pwd`/src/intel/vulkan/dev_icd.json
397 steam steam://rungameid/570 -vconsole -vulkan
Emil Velikov2edc29a2016-11-16 18:25:41 +0000398</pre>
399
400<h3>Update version in file VERSION</h3>
401
402<p>
403Increment the version contained in the file VERSION at Mesa's top-level, then
404commit this change.
405</p>
406
407<h3>Create release notes for the new release</h3>
408
409<p>
410Create a new file docs/relnotes/X.Y.Z.html, (follow the style of the previous
411release notes). Note that the sha256sums section of the release notes should
412be empty (TBD) at this point.
413</p>
414
415<p>
416Two scripts are available to help generate portions of the release notes:
417
418<pre>
419 ./bin/bugzilla_mesa.sh
420 ./bin/shortlog_mesa.sh
421</pre>
422
423<p>
424The first script identifies commits that reference bugzilla bugs and obtains
425the descriptions of those bugs from bugzilla. The second script generates a
426log of all commits. In both cases, HTML-formatted lists are printed to stdout
427to be included in the release notes.
428</p>
429
430<p>
431Commit these changes and push the branch.
432</p>
433<pre>
434 git push origin HEAD
435</pre>
436
437
438<h3>Use the release.sh script from xorg util-macros</h3>
439
440<p>
Emil Velikov2edc29a2016-11-16 18:25:41 +0000441Ensure that the mesa git tree is clean via <code>git clean -fXd</code> and
442start the release process.
443</p>
444<pre>
445 ../relative/path/to/release.sh . # append --dist if you've already done distcheck above
446</pre>
447
448<p>
449Pay close attention to the prompts as you might be required to enter your GPG
450and SSH passphrase(s) to sign and upload the files, respectively.
451</p>
452
453<h3>Add the sha256sums to the release notes</h3>
454
455<p>
456Edit docs/relnotes/X.Y.Z.html to add the sha256sums as availabe in the mesa-X.Y.Z.announce template. Commit this change.
457</p>
458
459<h3>Back on mesa master, add the new release notes into the tree</h3>
460
461<p>
462Something like the following steps will do the trick:
463</p>
464
465<pre>
466 git cherry-pick -x X.Y~1
467 git cherry-pick -x X.Y
468</pre>
469
470<p>
471Also, edit docs/relnotes.html to add a link to the new release notes, and edit
472docs/index.html to add a news entry. Then commit and push:
473</p>
474
475<pre>
476 git commit -as -m "docs: add news item and link release notes for X.Y.Z"
477 git push origin master X.Y
478</pre>
479
480
481<h1 id="announce">Announce the release</h1>
482<p>
483Use the generated template during the releasing process.
484</p>
485
486
487<h1 id="website">Update the mesa3d.org website</h1>
488
489<p>
Emil Velikove280a6b2017-02-10 12:51:22 +0000490As the hosting was moved to freedesktop, git hooks are deployed to update the
491website. Manually check that it is updated 5-10 minutes after the final <code>git push</code>
Emil Velikov2edc29a2016-11-16 18:25:41 +0000492</p>
493
Emil Velikov2edc29a2016-11-16 18:25:41 +0000494<h1 id="bugzilla">Update Bugzilla</h1>
495
496<p>
497Parse through the bugreports as listed in the docs/relnotes/X.Y.Z.html
498document.
499<br>
500If there's outstanding action, close the bug referencing the commit ID which
501addresses the bug and mention the Mesa version that has the fix.
502</p>
503
504<p>
505Note: the above is not applicable to all the reports, so use common sense.
506</p>
507
508
509</div>
510</body>
511</html>