source: installer/resources/checklist.md @ 07c9ddb

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

Blockquote formatting part 2

  • 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    >     ```
89    >     ant pkg
90    >     ```
91    >
92    > Create signed update files with:
93    >
94    >     ```
95    >     export I2P=~/i2p
96    >     java -cp $I2P/lib/i2p.jar net.i2p.crypto.TrustedUpdate sign i2pupdate.zip i2pupdate.sud /path/to/private.key 0.x.xx
97    >     java -cp $I2P/lib/i2p.jar net.i2p.crypto.TrustedUpdate sign i2pupdate200.zip i2pupdate.su2 /path/to/private.key 0.x.xx
98    >     ```
99    >
100    > Verify signed update files with:
101    >
102    >     ```
103    >     java -cp $I2P/lib/i2p.jar net.i2p.crypto.TrustedUpdate showversion i2pupdate.sud
104    >     java -cp $I2P/lib/i2p.jar net.i2p.crypto.TrustedUpdate verifysig i2pupdate.sud
105    >     ```
106    >
107    > Make the source tarball:
108    >
109    >     ```
110    >     Start with a clean checkout mtn -d i2p.mtn co --branch=i2p.i2p i2p-0.x.xx
111    >     Double-check trust list
112    >     tar cjf i2psource-0.x.xx.tar.bz2 --exclude i2p-0.x.xx/_MTN i2p-0.x.xx
113    >     mv i2p-0.x.xx.tar.bz2 i2p.i2p
114    >     ```
115    >
116    > Rename some files:
117    >
118    >     ```
119    >     mv i2pinstall.exe i2pinstall-0.x.xx.exe
120    >     mv i2pupdate.zip i2pupdate-0.x.xx.zip
121    >     ```
122    >
123    > Generate hashes:
124    >
125    >     ```
126    >     sha256sum i2p*0.x.xx.*
127    >     sha256sum i2pupdate.sud
128    >     sha256sum i2pupdate.su2
129    >     ```
130    >
131    > Generate PGP signatures:
132    >
133    >     ```
134    >     gpg -b i2pinstall-0.x xx.exe
135    >     gpg -b i2psource-0.x.xx.tar.bz2
136    >     gpg -b i2pupdate-0.x.xx.zip
137    >     gpg -b i2pupdate.sud
138    >     gpg -b i2pupdate.su2
139    >     ```
140    >
141    > (end of tasks automated by 'ant release')
142
1432. Now test:
144  - Save the output about checksums, sizes, and torrents to a file
145    (traditionally `shasums.txt`)
146    - (edit timestamps to UTC if you care)
147  - Copy all the release files somewhere, make sure you have the same ones as last release
148  - Verify sha256sums for release files
149  - Check file sizes vs. previous release, shouldn't be smaller
150    - If the update includes GeoIP, it will be about 1MB bigger
151  - Unzip or list files from `i2pupdate.zip`, see if it looks right
152  - For either windows or linux installer: (probably should do both the first time)
153    - Rename any existing config dir (e.g. mv .i2p .i2p-save)
154    - Run installer, install to temp dir
155    - Look in temp dir, see if all the files are there
156    - Unplug ethernet / turn off wifi so RI doesn't leak
157    - `i2prouter start`
158    - Verify release number in console
159    - Verify welcome news
160    - Click through all the app, status, eepsite, and config pages, see if they look right
161    - Click through each of the translations, see if /console looks right
162    - Look for errors in /log (other than can't reseed errors)
163    - Look in config dir, see if all the files are there
164    - Shutdown
165    - Delete config dir
166    - Move saved config dir back
167    - Reconnect ethernet / turn wifi back on
168  - Load torrents in i2psnark on your production router, verify infohashes
169
1703. If all goes well, tag and sync the release:
171
172    ```
173    mtn tag h: i2p-0.x.xx
174    mtn cert t:i2p-0.x.xx branch i2p.i2p.release
175    mtn sync (with e.g. mtn.killyourtv.i2p)
176    ```
177
178### Distribute updates
179
1801. Update news with new version:
181  - Add magnet links, change release dates and release number in to old-format
182    news.xml, and distribute to news hosts
183  - In the i2p.newsxml branch, edit magnet links, release dates and release
184    number in data/releases.json, and check in
185
1862. Add update torrents to tracker2.postman.i2p and start seeding (su2 and su3)
187
1883. Notify the following people:
189  - All in-network update hosts
190  - PPA maintainer
191  - news.xml maintainer
192  - backup news.xml maintainer
193  - website files maintainer
194
1954. Update Trac:
196  - Add milestone and version dates
197  - Increment milestone and version defaults
198
1995. Wait for a few update hosts to be ready
200
2016. Tell news hosts to flip the switch
202
203### Notify release
204
2051. Wait for files to be updated on download server
206
2072. Website files to change:
208  - Sync with mtn.i2p-projekt.i2p
209  - `i2p2www/static/hosts.txt` if it changed (copy from i2p.i2p mtn branch)
210  - `i2p2www/__init__.py` (release number)
211  - `i2p2www/pages/downloads/list.html` (release signer)
212  - `i2p2www/pages/downloads/macros` (checksums)
213  - `i2p2www/static/news/news.xml`
214  - Sync with mtn.i2p-projekt.i2p
215
2163. Wait for debian packages to be ready
217
2184. Announce on:
219  - #i2p, #i2p-dev (also on Freenode side)
220  - forum.i2p
221  - Twitter
Note: See TracBrowser for help on using the repository browser.