git.iko.soy/typeable/nixpkgs
on master help sign in
Document NixOS release process #4442
commited6ea7416aafdf96aa6cc87e165569bb79c42be0 authorDomen Kožar <domen@dev.si> dateSun 28 Aug 2016, 19:59 (10 years ago) parentb2c9402
2 files changed+242
nixos/doc/manual/development/development.xml+1 nixos/doc/manual/development/releases.xml+241
nixos/doc/manual/development/development.xml+1
@@ -18,5 +18,6 @@ NixOS.</para>
1818<xi:include href="nixos-tests.xml" />
1919<xi:include href="testing-installer.xml" />
2020<xi:include href="reviewing-contributions.xml" />
21+<xi:include href="releases.xml" />
2122
2223</part>
nixos/doc/manual/development/releases.xmlnew file+241
@@ -0,0 +1,241 @@
1+<chapter xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xmlns:xi="http://www.w3.org/2001/XInclude"
4+ version="5.0"
5+ xml:id="ch-releases">
6+
7+<title>Releases</title>
8+
9+<section xml:id="release-process">
10+ <title>Release process</title>
11+
12+ <para>
13+ Going through an example of releasing NixOS 15.09:
14+ </para>
15+
16+ <section xml:id="one-month-before-the-beta">
17+ <title>One month before the beta</title>
18+ <itemizedlist spacing="compact">
19+ <listitem>
20+ <para>
21+ Send an email to nix-dev mailinglist as a warning about upcoming beta "feature freeze" in a month.
22+ </para>
23+ </listitem>
24+ <listitem>
25+ <para>
26+ Discuss with Eelco Dolstra and the community (via IRC, ML) about what will reach the deadline.
27+ Any issue or Pull Request targeting the release should have assigned milestone.
28+ </para>
29+ </listitem>
30+ </itemizedlist>
31+ </section>
32+ <section xml:id="at-beta-release-time">
33+ <title>At beta release time</title>
34+ <itemizedlist spacing="compact">
35+ <listitem>
36+ <para>
37+ Rename <literal>rl-unstable.xml</literal> -&gt;
38+ <literal>rl-1509.xml</literal>.
39+ </para>
40+ </listitem>
41+ <listitem>
42+ <para>
43+ <literal>git tag -a -m &quot;Release 15.09-beta&quot; 15.09-beta &amp;&amp; git push --tags</literal>
44+ </para>
45+ </listitem>
46+ <listitem>
47+ <para>
48+ From the master branch run <literal>git checkout -B release-15.09</literal>.
49+ </para>
50+ </listitem>
51+ <listitem>
52+ <para>
53+ <link xlink:href="https://github.com/NixOS/nixos-org-configurations/pull/18">
54+ Make sure channel is created at http://nixos.org/channels/.
55+ </link>
56+ </para>
57+ </listitem>
58+ <listitem>
59+ <para>
60+ <link xlink:href="https://github.com/NixOS/nixpkgs/settings/branches">
61+ Lock the branch on github (so developers can’t force push)
62+ </link>
63+ </para>
64+ </listitem>
65+ <listitem>
66+ <para>
67+ <link xlink:href="https://github.com/NixOS/nixpkgs/compare/bdf161ed8d21...6b63c4616790">bump
68+ <literal>system.defaultChannel</literal> attribute in
69+ <literal>nixos/modules/misc/version.nix</literal></link>
70+ </para>
71+ </listitem>
72+ <listitem>
73+ <para>
74+ <link xlink:href="https://github.com/NixOS/nixpkgs/commit/d6b08acd1ccac0d9d502c4b635e00b04d3387f06">update
75+ <literal>versionSuffix</literal> in
76+ <literal>nixos/release.nix</literal></link>, use
77+ <literal>git log --format=%an|wc -l</literal> to get commit
78+ count
79+ </para>
80+ </listitem>
81+ <listitem>
82+ <para>
83+ <literal>echo -n &quot;16.03&quot; &gt; .version</literal> in
84+ master.
85+ </para>
86+ </listitem>
87+ <listitem>
88+ <para>
89+ <link xlink:href="https://github.com/NixOS/nixpkgs/commit/b8a4095003e27659092892a4708bb3698231a842">pick
90+ a new name for unstable branch.</link>
91+ </para>
92+ </listitem>
93+ <listitem>
94+ <para>
95+ <link xlink:href="https://github.com/NixOS/nixpkgs/issues/13559">Create
96+ an issue for tracking Zero Hydra Failures progress. ZHF is an effort
97+ to get build failures down to zero.</link>
98+ </para>
99+ </listitem>
100+ <listitem>
101+ <para>
102+ Use https://lwn.net/Vulnerabilities/ and
103+ <link xlink:href="https://github.com/NixOS/nixpkgs/search?utf8=%E2%9C%93&q=vulnerabilities&type=Issues">triage vulnerabilities in an issue</link>.
104+ </para>
105+ </listitem>
106+ <listitem>
107+ <para>
108+ Create two Hydra jobsets: release-15.09 and release-15.09-small with <literal>stableBranch</literal> set to false
109+ </para>
110+ </listitem>
111+ <listitem>
112+ <para>
113+ Edit changelog at
114+ <literal>nixos/doc/manual/release-notes/rl-1509.xml</literal>
115+ (double check desktop versions are noted)
116+ </para>
117+ <itemizedlist spacing="compact">
118+ <listitem>
119+ <para>
120+ Get all new NixOS modules
121+ <literal>git diff release-14.12..release-15.09 nixos/modules/module-list.nix|grep ^+</literal>
122+ </para>
123+ </listitem>
124+ <listitem>
125+ <para>
126+ Note systemd, kernel, glibc and Nix upgrades.
127+ </para>
128+ </listitem>
129+ </itemizedlist>
130+ </listitem>
131+ </itemizedlist>
132+ </section>
133+ <section xml:id="before-the-final-release">
134+ <title>Before the final release</title>
135+ <itemizedlist spacing="compact">
136+ <listitem>
137+ <para>
138+ Release Nix (currently only Eelco Dolstra can do that).
139+ <link xlink:href="https://github.com/NixOS/nixpkgs/commit/53710c752a85f00658882531bc90a23a3d1287e4">
140+ Make sure fallback is updated.
141+ </link>
142+ </para>
143+ </listitem>
144+ <listitem>
145+ <para>
146+ <link xlink:href="https://github.com/NixOS/nixpkgs/commit/40fd9ae3ac8048758abdcfc7d28a78b5f22fe97e">
147+ Update README.md with new stable NixOS version information.
148+ </link>
149+ </para>
150+ </listitem>
151+ <listitem>
152+ <para>
153+ Change <literal>stableBranch</literal> to true and wait for channel to update.
154+ </para>
155+ </listitem>
156+ </itemizedlist>
157+ </section>
158+ <section xml:id="at-final-release-time">
159+ <title>At final release time</title>
160+ <itemizedlist spacing="compact">
161+ <listitem>
162+ <para>
163+ <literal>git tag -s -a -m &quot;Release 15.09&quot; 15.09</literal>
164+ </para>
165+ </listitem>
166+ <listitem>
167+ <para>
168+ Update http://nixos.org/nixos/download.html and http://nixos.org/nixos/manual in https://github.com/NixOS/nixos-org-configurations
169+ </para>
170+ </listitem>
171+ <listitem>
172+ <para>
173+ Get number of commits for the release:
174+ <literal>git log release-14.04..release-14.12 --format=%an|wc -l</literal>
175+ </para>
176+ </listitem>
177+ <listitem>
178+ <para>
179+ Commits by contributor:
180+ <literal>git log release-14.04..release-14.12 --format=%an|sort|uniq -c|sort -rn</literal>
181+ </para>
182+ </listitem>
183+ <listitem>
184+ <para>
185+ Send an email to nix-dev to announce the release with above information. Best to check how previous email was formulated
186+ to see what needs to be included.
187+ </para>
188+ </listitem>
189+ </itemizedlist>
190+ </section>
191+</section>
192+
193+<section xml:id="release-schedule">
194+ <title>Release schedule</title>
195+
196+ <informaltable>
197+ <tgroup cols="2">
198+ <colspec align="left" />
199+ <colspec align="left" />
200+ <thead>
201+ <row>
202+ <entry>
203+ Date
204+ </entry>
205+ <entry>
206+ Event
207+ </entry>
208+ </row>
209+ </thead>
210+ <tbody>
211+ <row>
212+ <entry>
213+ 2016-07-25
214+ </entry>
215+ <entry>
216+ Send email to nix-dev about upcoming branch-off
217+ </entry>
218+ </row>
219+ <row>
220+ <entry>
221+ 2016-09-01
222+ </entry>
223+ <entry>
224+ <literal>release-16.09</literal> branch and corresponding jobsets are created,
225+ change freeze
226+ </entry>
227+ </row>
228+ <row>
229+ <entry>
230+ 2016-09-30
231+ </entry>
232+ <entry>
233+ NixOS 16.09 released
234+ </entry>
235+ </row>
236+ </tbody>
237+ </tgroup>
238+ </informaltable>
239+</section>
240+
241+</chapter>