CHECKLST.txt 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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 main 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. - Wait for a nightly build to run, so that the first pre-release
  17. snapshot actually exists.
  18. - Put the website into pre-release mode, by defining prerel_version()
  19. in components/Base.mc to return the upcoming version number. Also
  20. add a news announcement in components/news. (Previous naming
  21. convention has been to name it in the form 'X.YZ-pre.mi'.)
  22. - Optionally: write an announcement email for the availability of
  23. pre-releases, and send it out to <putty-announce@lists.tartarus.org>.
  24. Things to do during the branch-stabilisation period:
  25. - Go through the source (including the documentation), and the
  26. website, and review anything tagged with a comment containing the
  27. word XXX-REVIEW-BEFORE-RELEASE. (Any such comments should state
  28. clearly what needs to be done.)
  29. - Test the Unix build with Address Sanitiser. In particular, any
  30. headline features for the release should get a workout with memory
  31. checking enabled!
  32. - Test the Windows build with Address Sanitiser too (as of VS 2022).
  33. + In the course of that, give a recent Windows pterm a try, to
  34. make sure that still works.
  35. - Test building and running on old platforms:
  36. + build on Debian stretch (containing CMake 3.7, the earliest
  37. CMake we claim support for)
  38. + build with all three major versions of GTK
  39. + build the old-Windows binaries and test-run them on Win95 (PuTTY
  40. proper even without WinSock2)
  41. - Check Coverity is happy.
  42. - Check the side-channel tester is happy.
  43. - Check all the non-SSH network backends still basically work.
  44. Making a release candidate build
  45. --------------------------------
  46. - Make a directory to hold all the release paraphernalia. I usually
  47. call it ~/src/putty/X.YZ (where X.YZ will stand throughout for the
  48. version number).
  49. - Inside that directory, clone the PuTTY git repository to a
  50. subdirectory ~/src/putty/X.YZ/putty. Here you can make release-
  51. related commits and tags tentatively, and keep them out of the way
  52. of any 'git push' you might still be doing in other checkouts.
  53. - Double-check that we have removed anything tagged with a comment
  54. containing the words XXX-REMOVE-BEFORE-RELEASE or
  55. XXX-REVIEW-BEFORE-RELEASE. ('git grep XXX-RE' should only show up
  56. hits in this file itself.)
  57. - Now update the version numbers and the transcripts in the docs, by
  58. checking out the release branch in the release-specific checkout
  59. and running
  60. ./release.pl --version=X.YZ --setver
  61. Then check that the resulting automated git commit has updated the
  62. version number in the following places:
  63. * putty/LATEST.VER
  64. * putty/doc/plink.but
  65. * putty/doc/pscp.but
  66. and also check that it has reset the definition of 'Epoch' in
  67. Buildscr.
  68. - Make the release tag, pointing at the version-update commit we just
  69. generated.
  70. - Make a release-candidate build from the release tag, and put the
  71. build.out and build.log files somewhere safe. Normally I store
  72. these inside the ~/src/putty/X.YZ directory, alongside the git
  73. checkout at ~/src/putty/X.YZ/putty, so I'll sit in that checkout
  74. directory and run a command like
  75. bob -o ../build-X.YZ-rcN.out -l ../build-X.YZ-rcN.log -c X.YZ . RELEASE=X.YZ
  76. This should generate a basically valid release directory as
  77. `build-X.YZ-rcN.out/putty', and provide link maps and sign.sh
  78. alongside that.
  79. - Double-check in build-X.YZ-rcN.log that the release was built from
  80. the right git commit.
  81. - Make a preliminary gpg signature, but don't run the full release-
  82. signing procedure. (We use the presence of a full set of GPG
  83. signatures to distinguish _abandoned_ release candidates from the
  84. one that ended up being the release.) In the 'build.X.YZ-rcN.out'
  85. directory, run
  86. sh sign.sh -r -p putty
  87. which will generate a clearsigned file called
  88. sha512sums-preliminary.gpg _outside_ the 'putty' subdirectory.
  89. - For my own safety, make the release candidate build read-only.
  90. chmod -R a-w build-X.YZ-rcN.{out,log}
  91. - Now do some checking of the release binaries, and pass them to the
  92. rest of the team to do some as well. Do at least these things:
  93. * make sure they basically work
  94. * check they report the right version number
  95. * if there's any easily observable behaviour difference between
  96. the release branch and main, arrange to observe it
  97. * test that the Windows installer installs successfully
  98. + on x86 and Arm, and test that putty.exe runs in both cases
  99. * test that the Unix source tarball unpacks and builds
  100. + on at least a reasonably current stable Linux distro, and
  101. also try Debian sid
  102. + test-build with all of GTK 1, 2 and 3
  103. + test-build with -DNOT_X_WINDOWS
  104. * test that the Windows source builds with Visual Studio (just in
  105. case there's an unguarded clangism that would prevent it)
  106. * quick check of the outlying network protocols (Telnet, SUPDUP
  107. etc)
  108. * feed the release-candidate source to Coverity and make sure it
  109. didn't turn up any last-minute problems
  110. * make sure we have a clean run of testsc
  111. * do some testing on a system with a completely clean slate (no
  112. prior saved session data)
  113. Preparing to make the release
  114. -----------------------------
  115. - Write a release announcement (basically a summary of the changes
  116. since the last release). Check the draft version into the putty-aux
  117. repository, so the whole team can help wordsmith it if they want to.
  118. - Update the website, in a local checkout:
  119. * Write a release file in components/releases which identifies the
  120. new version, a section for the Changes page, and a news
  121. announcement for the front page.
  122. + The one thing this can't yet contain is the release date;
  123. that has to be put in at the last minute, when the release
  124. goes live. Fill in 'FIXME', for the moment.
  125. * Disable the pre-release sections of the website (if previously
  126. enabled), by editing prerel_version() in components/Base.mc to
  127. return undef.
  128. - Prepare some 'what's new in this release' blurb for the Windows
  129. Store. This should be very brief - even briefer than the website
  130. news item. Keep it to a couple of sentences in a single paragraph,
  131. templated along the lines of 'X.YZ adds support for this, that and
  132. the other, and fixes bugs including this and that', or 'X.YZ is a
  133. bug-fix release, mostly in the area of Foo, with one important fix
  134. to Bar'.
  135. * Might as well check this into putty-aux too.
  136. - Update the wishlist, in a local checkout:
  137. * If there are any last-minute wishlist entries (e.g. security
  138. vulnerabilities fixed in the new release), write entries for
  139. them.
  140. * If any other bug fixes have been cherry-picked to the release
  141. branch (so that the wishlist mechanism can't automatically mark
  142. them as fixed in the new release), add appropriate Fixed-in
  143. headers for those.
  144. - Sign the release in full. In the `build-X.YZ-rcN.out' directory,
  145. re-verify that the preliminary signed checksums file has a correct
  146. signature on it and also matches the files you're about to sign for real:
  147. gpg -d sha512sums-preliminary.gpg | (cd putty; grep -vF ' (installer version)' | grep . | sha512sum -c)
  148. If the combined output of that pipeline reports both a good
  149. signature (from the release key) and a successful verification of
  150. all the sha512sums, then all is well and you can do the full
  151. signing (not forgetting that the directory will have been readonly
  152. during the last-minute testing period):
  153. chmod -R u+w putty
  154. sh sign.sh -r putty # and enter the release key passphrase
  155. chmod -R a-w putty
  156. The actual release procedure
  157. ----------------------------
  158. Once all the above preparation is done and the release has been built
  159. locally, this is the procedure for putting it up on the web.
  160. - Make a final adjustment to your local website changes, filling in
  161. the release date in components/releases/X.YZ.mi.
  162. - Upload the release itself and its link maps to everywhere it needs
  163. to be, by running this in the build-X.YZ-rcN.out directory:
  164. ../putty/release.pl --version=X.YZ --upload
  165. - Check that downloads via version-numbered URLs all work:
  166. ../putty/release.pl --version=X.YZ --precheck
  167. - Switch the 'latest' links over to the new release:
  168. * Update the HTTP redirect at the:www/putty/htaccess .
  169. - Now verify that downloads via the 'latest' URLs are all redirected
  170. correctly and work:
  171. ../putty/release.pl --version=X.YZ --postcheck
  172. - If the release is on a branch (which I expect it generally will
  173. be), merge that branch to main, so that the 'update version number'
  174. change appears on main and the snapshots start announcing
  175. themselves as post-X.YZ.
  176. - Push all the git repositories:
  177. * run 'git push' in the website checkout
  178. * run 'git push' in the wishlist checkout
  179. * push from the main PuTTY checkout. Typically this one will be
  180. pushing both the release tag and the merge we just made to the
  181. main branch, plus removing the pre-release branch, so you'll
  182. want some
  183. commands along these lines:
  184. git push origin main # update the main branch
  185. git push origin --tags # should push the new release tag
  186. git push origin :pre-X.YZ # delete the pre-release branch
  187. - Run ~/adm/puttyweb.sh on thyestes to update the website after all
  188. those git pushes.
  189. - Check that the unpublished website on thyestes looks sensible.
  190. - Run webupdate, so that all the changes on thyestes propagate to
  191. chiark. Important to do this _before_ announcing that the release
  192. is available.
  193. - After running webupdate, run update-rsync on chiark and verify that
  194. the rsync mirror package (~/ftp/putty-website-mirror) contains a
  195. subdirectory for the new version and that the links from its
  196. latest.html point into that subdirectory.
  197. - Start the process of updating our Windows Store entry:
  198. + log into partner.microsoft.com and go to Partner Center
  199. + start editing the existing app submission, which should
  200. automatically create a new submission
  201. * provide a new set of installer URLs, then click "save all"
  202. which actually uploads them
  203. + be careful to use URLs without "latest" in the pathname!
  204. Just copying from the links on the download page is wrong.
  205. Change "latest" to the version number, and test-download
  206. via those URLs to check you didn't make a typo.
  207. * change the "what's new in this release" text in the store
  208. listing
  209. * upload revised screenshots, if necessary
  210. * update the URL in the "Applicable license terms" box
  211. + press Publish or Submit (or whatever the button is called this
  212. time) to submit that to the actual upload process
  213. - Announce the release!
  214. + Construct a release announcement email whose message body is the
  215. announcement written above, and which includes the following
  216. headers:
  217. * Reply-To: <putty@projects.tartarus.org>
  218. * Subject: PuTTY X.YZ is released
  219. + Mail that release announcement to
  220. <putty-announce@lists.tartarus.org>.
  221. + Post it to comp.security.ssh.
  222. + Mention it in <TDHTT> on mono.
  223. - Edit the master ~/adm/puttysnap.sh to disable pre-release builds,
  224. if they were previously enabled.
  225. - Relax (slightly).