blob: 655a6e8695058078e7ac5aa191aa685fde7bd710 [file] [log] [blame]
Erik Faye-Lund4d066832020-06-12 20:09:42 +02001Releasing Process
2=================
3
Erik Faye-Lund4d066832020-06-12 20:09:42 +02004Overview
5--------
6
7This document uses the convention X.Y.Z for the release number with X.Y
8being the stable branch name.
9
10Mesa provides feature and bugfix releases. Former use zero as patch
11version (Z), while the latter have a non-zero one.
12
13For example:
14
15::
16
17 Mesa 10.1.0 - 10.1 branch, feature
18 Mesa 10.1.4 - 10.1 branch, bugfix
19 Mesa 12.0.0 - 12.0 branch, feature
20 Mesa 12.0.2 - 12.0 branch, bugfix
21
22.. _schedule:
23
24Release schedule
25----------------
26
27Releases should happen on Wednesdays. Delays can occur although those
28should be kept to a minimum.
29
Erik Faye-Lund9be0e2d2020-06-15 12:31:36 +020030See our :doc:`calendar <release-calendar>` for information about how
Erik Faye-Lund4d066832020-06-12 20:09:42 +020031the release schedule is planned, and the date and other details for
32individual releases.
33
34Feature releases
35----------------
36
37- Available approximately every three months.
Erik Faye-Lund2dccdb12020-09-25 15:00:39 +020038- Initial time plan available 2-4 weeks before the planned branchpoint
Erik Faye-Lund4d066832020-06-12 20:09:42 +020039 (rc1) on the mesa-announce@ mailing list.
40- Typically, the final release will happen after 4 candidates.
41 Additional ones may be needed in order to resolve blocking
42 regressions, though.
43
44Stable releases
45---------------
46
47- Normally available once every two weeks.
48- Only the latest branch has releases. See note below.
49
Erik Faye-Lundbf3f0f72019-06-04 10:39:58 +020050.. note::
Erik Faye-Lund4d066832020-06-12 20:09:42 +020051
Erik Faye-Lundbf3f0f72019-06-04 10:39:58 +020052 There is one or two releases overlap when changing branches. For
53 example:
Erik Faye-Lund4d066832020-06-12 20:09:42 +020054
Erik Faye-Lundbf3f0f72019-06-04 10:39:58 +020055 The final release from the 12.0 series Mesa 12.0.5 will be out around
56 the same time (or shortly after) 13.0.1 is out.
57
58 This also involves that, as a final release may be delayed due to the
59 need of additional candidates to solve some blocking regression(s), the
60 release manager might have to update the
Erik Faye-Lund9be0e2d2020-06-15 12:31:36 +020061 :doc:`calendar <release-calendar>` with additional bug fix releases of
Erik Faye-Lundbf3f0f72019-06-04 10:39:58 +020062 the current stable branch.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020063
64.. _pickntest:
65
66Cherry-picking and testing
67--------------------------
68
69Commits nominated for the active branch are picked as based on the
Erik Faye-Lund9be0e2d2020-06-15 12:31:36 +020070:ref:`criteria <criteria>` as described in the same
Erik Faye-Lund4d066832020-06-12 20:09:42 +020071section.
72
73Nominations happen via special tags in the commit messages, and via
74gitlab merge requests against the staging branches. There are special
75scripts used to read the tags.
76
77The maintainer should watch or be in contact with the Intel CI team, as
78well as watch the gitlab CI for regressions.
79
80Cherry picking should be done with the '-x' switch (to automatically add
81"cherry picked from ..." to the commit message):
82
83``git cherry-pick -x abcdef12345667890``
84
85Developers can request, *as an exception*, patches to be applied up-to
86the last one hour before the actual release. This is made **only** with
87explicit permission/request, and the patch **must** be very well
88contained. Thus it cannot affect more than one driver/subsystem.
89
90Following developers have requested permanent exception
91
92- *Ilia Mirkin*
93- *AMD team*
94
95The gitlab CI must pass.
96
97For Windows related changes, the main contact point is Brian Paul. Jose
98Fonseca can also help as a fallback contact.
99
100For Android related changes, the main contact is Tapani Pรคlli. Mauro
101Rossi is collaborating with android-x86 and may provide feedback about
102the build status in that project.
103
104For MacOSX related changes, Jeremy Huddleston Sequoia is currently a
105good contact point.
106
Erik Faye-Lundbf3f0f72019-06-04 10:39:58 +0200107.. note::
108
109 If a patch in the current queue needs any additional fix(es),
110 then they should be squashed together. The commit messages and the
111 "``cherry picked from``"-tags must be preserved.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200112
113::
114
115 git show b10859ec41d09c57663a258f43fe57c12332698e
116
117 commit b10859ec41d09c57663a258f43fe57c12332698e
118 Author: Jonas Pfeil <pfeiljonas@gmx.de>
119 Date: Wed Mar 1 18:11:10 2017 +0100
120
121 ralloc: Make sure ralloc() allocations match malloc()'s alignment.
122
123 The header of ralloc needs to be aligned, because the compiler assumes
124 ...
125
126 (cherry picked from commit cd2b55e536dc806f9358f71db438dd9c246cdb14)
127
128 Squashed with commit:
129
130 ralloc: don't leave out the alignment factor
131
132 Experimentation shows that without alignment factor gcc and clang choose
133 ...
134
135 (cherry picked from commit ff494fe999510ea40e3ed5827e7818550b6de126)
136
137Regression/functionality testing
138--------------------------------
139
140- *no regressions should be observed for Piglit/dEQP/CTS/Vulkan on
141 Intel platforms*
142- *no regressions should be observed for Piglit using the swrast,
143 softpipe and llvmpipe drivers*
144
145.. _stagingbranch:
146
147Staging branch
148--------------
149
150A live branch, which contains the currently merge/rejected patches is
151available in the main repository under ``staging/X.Y``. For example:
152
153::
154
155 staging/18.1 - WIP branch for the 18.1 series
156 staging/18.2 - WIP branch for the 18.2 series
157
158Notes:
159
160- People are encouraged to test the staging branch and report
161 regressions.
162- The branch history is not stable and it **will** be rebased,
163
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200164Making a branchpoint
165--------------------
166
167A branchpoint is made such that new development can continue in parallel
168to stabilisation and bugfixing.
169
Erik Faye-Lundbf3f0f72019-06-04 10:39:58 +0200170.. note::
171
172 Before doing a branch ensure that basic build and ``meson test``
173 testing is done and there are little to-no issues. Ideally all of those
174 should be tackled already.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200175
176Check if the version number is going to remain as, alternatively
Erik Faye-Lundf1fe74a2020-04-20 13:10:12 +0200177``git mv docs/relnotes/{current,new}.rst`` as appropriate.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200178
179To setup the branchpoint:
180
181::
182
183 git checkout master # make sure we're in master first
184 git tag -s X.Y-branchpoint -m "Mesa X.Y branchpoint"
185 git checkout -b X.Y
186 git checkout master
187 $EDITOR VERSION # bump the version number
188 git commit -as
189 truncate docs/relnotes/new_features.txt
190 git commit -a
191 git push origin X.Y-branchpoint X.Y
192
193Now go to
194`gitlab <https://gitlab.freedesktop.org/mesa/mesa/-/milestones>`__ and
195add the new Mesa version X.Y.
196
197Check that there are no distribution breaking changes and revert them if
198needed. For example: files being overwritten on install, etc. Happens
199extremely rarely - we had only one case so far (see commit
2002ced8eb136528914e1bf4e000dea06a9d53c7e04).
201
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200202Making a new release
203--------------------
204
205These are the instructions for making a new Mesa release.
206
207Get latest source files
208~~~~~~~~~~~~~~~~~~~~~~~
209
210Ensure the latest code is available - both in your local master and the
211relevant branch.
212
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200213Perform basic testing
214~~~~~~~~~~~~~~~~~~~~~
215
216Most of the testing should already be done during the
Erik Faye-Lund9be0e2d2020-06-15 12:31:36 +0200217:ref:`cherry-pick <pickntest>` So we do a quick 'touch test'
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200218
219- meson dist
220- scons (from release tarball)
221- the produced binaries work
222
223Here is one solution:
224
225::
226
227 __glxgears_cmd='glxgears 2>&1 | grep -v "configuration file"'
228 __es2info_cmd='es2_info 2>&1 | egrep "GL_VERSION|GL_RENDERER|.*dri\.so"'
229 __es2gears_cmd='es2gears_x11 2>&1 | grep -v "configuration file"'
230 test "x$LD_LIBRARY_PATH" != 'x' && __old_ld="$LD_LIBRARY_PATH"
231 export LD_LIBRARY_PATH=`pwd`/test/usr/local/lib/:"${__old_ld}"
232 export LIBGL_DRIVERS_PATH=`pwd`/test/usr/local/lib/dri/
233 export LIBGL_DEBUG=verbose
234 eval $__glxinfo_cmd
235 eval $__glxgears_cmd
236 eval $__es2info_cmd
237 eval $__es2gears_cmd
238 export LIBGL_ALWAYS_SOFTWARE=true
239 eval $__glxinfo_cmd
240 eval $__glxgears_cmd
241 eval $__es2info_cmd
242 eval $__es2gears_cmd
243 export LIBGL_ALWAYS_SOFTWARE=true
244 export GALLIUM_DRIVER=softpipe
245 eval $__glxinfo_cmd
246 eval $__glxgears_cmd
247 eval $__es2info_cmd
248 eval $__es2gears_cmd
249 # Smoke test DOTA2
250 unset LD_LIBRARY_PATH
251 test "x$__old_ld" != 'x' && export LD_LIBRARY_PATH="$__old_ld" && unset __old_ld
252 unset LIBGL_DRIVERS_PATH
253 unset LIBGL_DEBUG
254 unset LIBGL_ALWAYS_SOFTWARE
255 unset GALLIUM_DRIVER
256 export VK_ICD_FILENAMES=`pwd`/test/usr/local/share/vulkan/icd.d/intel_icd.x86_64.json
257 steam steam://rungameid/570 -vconsole -vulkan
258 unset VK_ICD_FILENAMES
259
260Create release notes for the new release
261~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
262
263The release notes are completely generated by the
Eric Engestrom0338db52020-07-09 01:26:31 +0200264``bin/gen_release_notes.py`` script. Simply run this script **before**
265bumping the version. You'll need to come back to this file once the
266tarball is generated to add its ``sha256sum``.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200267
Eric Engestrom0338db52020-07-09 01:26:31 +0200268Increment the version contained in the file ``VERSION`` at Mesa's top-level,
269then commit this change and **push the branch** (if you forget to do
270this, ``release.sh`` below will fail).
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200271
272Use the release.sh script from xorg `util-modular <https://cgit.freedesktop.org/xorg/util/modular/>`__
273~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
274
275Start the release process.
276
277::
278
279 ../relative/path/to/release.sh . # append --dist if you've already done distcheck above
280
281Pay close attention to the prompts as you might be required to enter
282your GPG and SSH passphrase(s) to sign and upload the files,
283respectively.
284
Eric Engestrom31a66cb2019-11-22 14:21:05 +0000285Ensure that you do sign the tarballs, that your key is mentioned in the
Eric Engestrom677c1bd2020-06-20 00:35:58 +0200286release notes, and is published in `release-maintainers-keys.asc
287<release-maintainers-keys.asc>`__.
Eric Engestrom31a66cb2019-11-22 14:21:05 +0000288
289
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200290Add the sha256sums to the release notes
291~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
292
Eric Engestrom0338db52020-07-09 01:26:31 +0200293Edit ``docs/relnotes/X.Y.Z.rst`` to add the ``sha256sum`` as available in the
294``mesa-X.Y.Z.announce`` template. Commit this change.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200295
296Back on mesa master, add the new release notes into the tree
297~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
298
299Something like the following steps will do the trick:
300
301::
302
303 git cherry-pick -x X.Y~1
304 git cherry-pick -x X.Y
305
306Then run the
307
308::
309
310 ./bin/post_version.py X.Y.Z
311
Eric Engestromf5353e02020-06-23 02:16:57 +0200312, where X.Y.Z is the version you just made. This will update
313docs/relnotes.rst and docs/release-calendar.rst. It will then generate
314a git commit automatically. Check that everything looks correct and
315push:
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200316
317::
318
319 git push origin master X.Y
320
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200321Announce the release
322--------------------
323
324Use the generated template during the releasing process.
325
326Again, pay attention to add a note to warn about a final release in a
327series, if that is the case.
328
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200329Update gitlab issues
330--------------------
331
Erik Faye-Lundf1fe74a2020-04-20 13:10:12 +0200332Parse through the bug reports as listed in the docs/relnotes/X.Y.Z.rst
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200333document. If there's outstanding action, close the bug referencing the
334commit ID which addresses the bug and mention the Mesa version that has
335the fix.
336
Erik Faye-Lundbf3f0f72019-06-04 10:39:58 +0200337.. note: the above is not applicable to all the reports, so use common sense.