source: installer/resources/checklist.md @ be498ea

Last change on this file since be498ea was be498ea, checked in by str4d <str4d@…>, 5 years ago

Blockquote formatting

  • Property mode set to 100644
File size: 6.4 KB
Line 
1# Release checklist
2
3## One week before
4
5- Make announcement on Transifex with checkin deadline
6
7
8## A day or two before
9
101. Write the release announcement and push to Transifex:
11
12  - Checkout i2p.newsxml branch
13    - See README for setup
14  - `./create_new_entry.sh`
15    - Entry href should be the in-net link to the release blog post
16  - `tx push -s`
17  - `mtn ci`
18
192. Write the draft blog post and push to Transifex:
20
21  - Checkout i2p.www branch
22  - Write draft release announcement - see i2p2www/blog/README for instructions
23    - Top content should be the same as the news entry
24  - `tx push -s`
25  - `mtn ci`
26
273. Make announcement on Transifex asking for news translation
28
29
30## On release day
31
32### Preparation
33
341. Ensure all translation updates are imported from Transifex
35
362. Sync with mtn.i2p2.i2p
37
383. Start with a clean checkout:
39
40    ```
41    mtn -d i2p.mtn co --branch=i2p.i2p /path/to/releasedir
42    ```
43
44  - You may build with Java 7 or higher, but ensure you have the Java 6 JRE installed for the bootclasspath
45
464. Create override.properties with (adjust as necessary):
47
48    ```
49    release.privkey.su3=/path/to/su3keystore.ks
50    release.gpg.keyid=0xnnnnnnnn
51    release.signer.su3=xxx@mail.i2p
52    build.built-by=xxx
53    javac.compilerargs=-bootclasspath /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/jce.jar
54    ```
55
565. Copy latest trust list _MTN/monotonerc from website or some other workspace
57
586. Change revision in:
59  - `history.txt`
60  - `installer/install.xml`
61  - `core/java/src/net/i2p/CoreVersion.java`
62  - `router/java/src/net/i2p/router/RouterVersion.java`
63    - (change to BUILD = 0 and EXTRA = "")
64
657. `mtn ci`
66
678. Review the complete diff from the last release:
68
69    ```
70    mtn diff -r t:i2p-0.9.(xx-1) > out.diff
71    vi out.diff
72    ```
73
749. Verify that no untrusted revisions were inadvertently blessed by a trusted party:
75
76    ```
77    mtn log --brief --no-graph --to t:i2p-0.9.(xx-1) | cut -d ' ' -f 2 | sort | uniq -c
78    ```
79
80### Build and test
81
821. `ant release`
83
84    > NOTE: These tasks are now automated by `ant release`
85    >
86    > Build and tag:
87    >     ```
88    >     ant pkg
89    >     ```
90    >
91    > Create signed update files with:
92    >     ```
93    >     export I2P=~/i2p
94    >     java -cp $I2P/lib/i2p.jar net.i2p.crypto.TrustedUpdate sign i2pupdate.zip i2pupdate.sud /path/to/private.key 0.x.xx
95    >     java -cp $I2P/lib/i2p.jar net.i2p.crypto.TrustedUpdate sign i2pupdate200.zip i2pupdate.su2 /path/to/private.key 0.x.xx
96    >     ```
97    >
98    > Verify signed update files with:
99    >     ```
100    >     java -cp $I2P/lib/i2p.jar net.i2p.crypto.TrustedUpdate showversion i2pupdate.sud
101    >     java -cp $I2P/lib/i2p.jar net.i2p.crypto.TrustedUpdate verifysig i2pupdate.sud
102    >     ```
103    >
104    > Make the source tarball:
105    >     ```
106    >     Start with a clean checkout mtn -d i2p.mtn co --branch=i2p.i2p i2p-0.x.xx
107    >     Double-check trust list
108    >     tar cjf i2psource-0.x.xx.tar.bz2 --exclude i2p-0.x.xx/_MTN i2p-0.x.xx
109    >     mv i2p-0.x.xx.tar.bz2 i2p.i2p
110    >     ```
111    >
112    > Rename some files:
113    >     ```
114    >     mv i2pinstall.exe i2pinstall-0.x.xx.exe
115    >     mv i2pupdate.zip i2pupdate-0.x.xx.zip
116    >     ```
117    >
118    > Generate hashes:
119    >     ```
120    >     sha256sum i2p*0.x.xx.*
121    >     sha256sum i2pupdate.sud
122    >     sha256sum i2pupdate.su2
123    >     ```
124    >
125    > Generate PGP signatures:
126    >     ```
127    >     gpg -b i2pinstall-0.x xx.exe
128    >     gpg -b i2psource-0.x.xx.tar.bz2
129    >     gpg -b i2pupdate-0.x.xx.zip
130    >     gpg -b i2pupdate.sud
131    >     gpg -b i2pupdate.su2
132    >     ```
133    >
134    > (end of tasks automated by 'ant release')
135
1362. Now test:
137  - Save the output about checksums, sizes, and torrents to a file
138    (traditionally `shasums.txt`)
139    - (edit timestamps to UTC if you care)
140  - Copy all the release files somewhere, make sure you have the same ones as last release
141  - Verify sha256sums for release files
142  - Check file sizes vs. previous release, shouldn't be smaller
143    - If the update includes GeoIP, it will be about 1MB bigger
144  - Unzip or list files from `i2pupdate.zip`, see if it looks right
145  - For either windows or linux installer: (probably should do both the first time)
146    - Rename any existing config dir (e.g. mv .i2p .i2p-save)
147    - Run installer, install to temp dir
148    - Look in temp dir, see if all the files are there
149    - Unplug ethernet / turn off wifi so RI doesn't leak
150    - `i2prouter start`
151    - Verify release number in console
152    - Verify welcome news
153    - Click through all the app, status, eepsite, and config pages, see if they look right
154    - Click through each of the translations, see if /console looks right
155    - Look for errors in /log (other than can't reseed errors)
156    - Look in config dir, see if all the files are there
157    - Shutdown
158    - Delete config dir
159    - Move saved config dir back
160    - Reconnect ethernet / turn wifi back on
161  - Load torrents in i2psnark on your production router, verify infohashes
162
1633. If all goes well, tag and sync the release:
164
165    ```
166    mtn tag h: i2p-0.x.xx
167    mtn cert t:i2p-0.x.xx branch i2p.i2p.release
168    mtn sync (with e.g. mtn.killyourtv.i2p)
169    ```
170
171### Distribute updates
172
1731. Update news with new version:
174  - Add magnet links, change release dates and release number in to old-format
175    news.xml, and distribute to news hosts
176  - In the i2p.newsxml branch, edit magnet links, release dates and release
177    number in data/releases.json, and check in
178
1792. Add update torrents to tracker2.postman.i2p and start seeding (su2 and su3)
180
1813. Notify the following people:
182  - All in-network update hosts
183  - PPA maintainer
184  - news.xml maintainer
185  - backup news.xml maintainer
186  - website files maintainer
187
1884. Update Trac:
189  - Add milestone and version dates
190  - Increment milestone and version defaults
191
1925. Wait for a few update hosts to be ready
193
1946. Tell news hosts to flip the switch
195
196### Notify release
197
1981. Wait for files to be updated on download server
199
2002. Website files to change:
201  - Sync with mtn.i2p-projekt.i2p
202  - `i2p2www/static/hosts.txt` if it changed (copy from i2p.i2p mtn branch)
203  - `i2p2www/__init__.py` (release number)
204  - `i2p2www/pages/downloads/list.html` (release signer)
205  - `i2p2www/pages/downloads/macros` (checksums)
206  - `i2p2www/static/news/news.xml`
207  - Sync with mtn.i2p-projekt.i2p
208
2093. Wait for debian packages to be ready
210
2114. Announce on:
212  - #i2p, #i2p-dev (also on Freenode side)
213  - forum.i2p
214  - Twitter
Note: See TracBrowser for help on using the repository browser.