CHECKLST.txt 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. Checklists for PuTTY administrative procedures
  2. ==============================================
  3. Going into pre-release stabilisation
  4. ------------------------------------
  5. When we begin to work towards a release and want to enable
  6. pre-releases on the website:
  7. - Make a branch whose tip will be the current state of the
  8. pre-release. Regardless of whether the branch is from master or
  9. from a prior release branch, the name of the branch must now be in
  10. the form 'pre-X.YZ', or else the website will fail to link to it
  11. properly in gitweb and the build script will check out the wrong
  12. thing.
  13. - Edit ~/adm/puttysnap.sh on my build machine to set $prerelver correctly.
  14. - Edit ~/adm/puttysnap.sh on the master machine to enable pre-release
  15. builds, by changing the 'if false' to 'if true'.
  16. - Put the website into pre-release mode, by defining prerel_version()
  17. in components/Base.mc to return the upcoming version number. Also
  18. add a news announcement in components/news. (Previous naming
  19. convention has been to name it in the form 'X.YZ-pre.mi'.)
  20. Things to do during the branch-stabilisation period:
  21. - Go through the source (including the documentation), and the
  22. website, and review anything tagged with a comment containing the
  23. word XXX-REVIEW-BEFORE-RELEASE. (Any such comments should state
  24. clearly what needs to be done.)
  25. - Do some testing of the Windows version with Minefield (you can
  26. build a Minefield version using 'bob . XFLAGS=-DMINEFIELD'), and of
  27. the Unix version with valgrind and/or Address Sanitiser. In
  28. particular, any headline features for the release should get a
  29. workout with memory checking enabled!
  30. Making a release candidate build
  31. --------------------------------
  32. - Make a directory to hold all the release paraphernalia. I usually
  33. call it ~/src/putty/X.YZ (where X.YZ will stand throughout for the
  34. version number).
  35. - Inside that directory, clone the PuTTY git repository to a
  36. subdirectory ~/src/putty/X.YZ/putty. Here you can make release-
  37. related commits and tags tentatively, and keep them out of the way
  38. of any 'git push' you might still be doing in other checkouts.
  39. - Double-check that we have removed anything tagged with a comment
  40. containing the words XXX-REMOVE-BEFORE-RELEASE or
  41. XXX-REVIEW-BEFORE-RELEASE. ('git grep XXX-RE' should only show up
  42. hits in this file itself.)
  43. - Now update the version numbers and the transcripts in the docs, by
  44. checking out the release branch in the release-specific checkout
  45. and running
  46. ./release.pl --version=X.YZ --setver
  47. Then check that the resulting automated git commit has updated the
  48. version number in the following places:
  49. * putty/LATEST.VER
  50. * putty/doc/plink.but
  51. * putty/doc/pscp.but
  52. and also check that it has reset the definition of 'Epoch' in
  53. Buildscr.
  54. - Make the release tag, pointing at the version-update commit we just
  55. generated.
  56. - If the release is on a branch (which I expect it generally will
  57. be), merge that branch to master.
  58. - Make a release-candidate build from the release tag, and put the
  59. build.out and build.log files somewhere safe. Normally I store
  60. these inside the ~/src/putty/X.YZ directory, alongside the git
  61. checkout at ~/src/putty/X.YZ/putty, so I'll sit in that checkout
  62. directory and run a command like
  63. bob -o ../build-X.YZ-rcN.out -l ../build-X.YZ-rcN.log -c X.YZ . RELEASE=X.YZ
  64. This should generate a basically valid release directory as
  65. `build-X.YZ-rcN.out/putty', and provide link maps and sign.sh
  66. alongside that.
  67. - Double-check in build-X.YZ-rcN.log that the release was built from
  68. the right git commit.
  69. - Make a preliminary gpg signature, but don't run the full release-
  70. signing procedure. (We use the presence of a full set of GPG
  71. signatures to distinguish _abandoned_ release candidates from the
  72. one that ended up being the release.) In the 'build.X.YZ-rcN.out'
  73. directory, run
  74. sh sign.sh -r -p putty
  75. which will generate a clearsigned file called
  76. sha512sums-preliminary.gpg _outside_ the 'putty' subdirectory.
  77. - For my own safety, make the release candidate build read-only.
  78. chmod -R a-w build-X.YZ-rcN.{out,log}
  79. - Now do some checking of the release binaries, and pass them to the
  80. rest of the team to do some as well. Do at least these things:
  81. * make sure they basically work
  82. * check they report the right version number
  83. * if there's any easily observable behaviour difference between
  84. the release branch and master, arrange to observe it
  85. * test that the Windows installer installs successfully
  86. + on x86 and Arm, and test that putty.exe runs in both cases
  87. * test that the Unix source tarball unpacks and builds
  88. + on at least a reasonably current stable Linux distro, and
  89. also try Debian sid
  90. + test-build with all of GTK 1, 2 and 3
  91. + test-build with -DNOT_X_WINDOWS
  92. * feed the release-candidate source to Coverity and make sure it
  93. didn't turn up any last-minute problems
  94. * make sure we have a clean run of sctest
  95. * do some testing on a system with a completely clean slate (no
  96. prior saved session data)
  97. Preparing to make the release
  98. -----------------------------
  99. - Write a release announcement (basically a summary of the changes
  100. since the last release). Check the draft version into the putty-aux
  101. repository, so the whole team can help wordsmith it if they want to.
  102. - Update the website, in a local checkout:
  103. * Write a release file in components/releases which identifies the
  104. new version, a section for the Changes page, and a news
  105. announcement for the front page.
  106. + The one thing this can't yet contain is the release date;
  107. that has to be put in at the last minute, when the release
  108. goes live. Fill in 'FIXME', for the moment.
  109. * Disable the pre-release sections of the website (if previously
  110. enabled), by editing prerel_version() in components/Base.mc to
  111. return undef.
  112. - Update the wishlist, in a local checkout:
  113. * If there are any last-minute wishlist entries (e.g. security
  114. vulnerabilities fixed in the new release), write entries for
  115. them.
  116. * If any other bug fixes have been cherry-picked to the release
  117. branch (so that the wishlist mechanism can't automatically mark
  118. them as fixed in the new release), add appropriate Fixed-in
  119. headers for those.
  120. - Sign the release in full. In the `build-X.YZ-rcN.out' directory,
  121. re-verify that the preliminary signed checksums file has a correct
  122. signature on it and also matches the files you're about to sign for real:
  123. gpg -d sha512sums-preliminary.gpg | (cd putty; grep -vF ' (installer version)' | grep . | sha512sum -c)
  124. If the combined output of that pipeline reports both a good
  125. signature (from the release key) and a successful verification of
  126. all the sha512sums, then all is well and you can do the full
  127. signing (not forgetting that the directory will have been readonly
  128. during the last-minute testing period):
  129. chmod -R u+w putty
  130. sh sign.sh -r putty # and enter the release key passphrase
  131. chmod -R a-w putty
  132. The actual release procedure
  133. ----------------------------
  134. Once all the above preparation is done and the release has been built
  135. locally, this is the procedure for putting it up on the web.
  136. - Make a final adjustment to your local website changes, filling in
  137. the release date in components/releases/X.YZ.mi.
  138. - Upload the release itself and its link maps to everywhere it needs
  139. to be, by running this in the build-X.YZ-rcN.out directory:
  140. ../putty/release.pl --version=X.YZ --upload
  141. - Check that downloads via version-numbered URLs all work:
  142. ../putty/release.pl --version=X.YZ --precheck
  143. If this has trouble accessing chiark's ftp server, that is
  144. unfortunately normal; add --no-ftp and try again.
  145. - Switch the 'latest' links over to the new release:
  146. * Update the HTTP redirect at the:www/putty/htaccess .
  147. * Update the FTP symlink at chiark:ftp/putty-latest .
  148. - Now verify that downloads via the 'latest' URLs are all redirected
  149. correctly and work:
  150. ../putty/release.pl --version=X.YZ --postcheck
  151. - Push all the git repositories:
  152. * run 'git push' in the website checkout
  153. * run 'git push' in the wishlist checkout
  154. * push from the main PuTTY checkout. Typically this one will be
  155. pushing both the release tag and an update to the master branch,
  156. plus removing the pre-release branch, so you'll want some
  157. commands along these lines:
  158. git push origin master # update the master branch
  159. git push origin --tags # should push the new release tag
  160. git push origin :pre-X.YZ # delete the pre-release branch
  161. - Run ~/adm/puttyweb.sh on thyestes to update the website after all
  162. those git pushes.
  163. - Check that the unpublished website on thyestes looks sensible.
  164. - Run webupdate, so that all the changes on thyestes propagate to
  165. chiark. Important to do this _before_ announcing that the release
  166. is available.
  167. - After running webupdate, run update-rsync on chiark and verify that
  168. the rsync mirror package (~/ftp/putty-website-mirror) contains a
  169. subdirectory for the new version and that the links from its
  170. latest.html point into that subdirectory.
  171. - Announce the release!
  172. + Construct a release announcement email whose message body is the
  173. announcement written above, and which includes the following
  174. headers:
  175. * Reply-To: <putty@projects.tartarus.org>
  176. * Subject: PuTTY X.YZ is released
  177. + Mail that release announcement to
  178. <putty-announce@lists.tartarus.org>.
  179. + Post it to comp.security.ssh.
  180. + Mention it in <TDHTT> on mono.
  181. - Edit the master ~/adm/puttysnap.sh to disable pre-release builds,
  182. if they were previously enabled.
  183. - Relax (slightly).