CHECKLST.txt 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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 (compile flag)
  104. + test-build with -DPUTTY_GSSAPI=OFF (cmake flag)
  105. + test-build with -DPUTTY_IPV6=OFF (cmake flag)
  106. * test that the Windows source builds with Visual Studio (just in
  107. case there's an unguarded clangism that would prevent it)
  108. * quick check of the outlying network protocols (Telnet, SUPDUP
  109. etc)
  110. * feed the release-candidate source to Coverity and make sure it
  111. didn't turn up any last-minute problems
  112. * make sure we have a clean run of testsc
  113. * do some testing on a system with a completely clean slate (no
  114. prior saved session data)
  115. Preparing to make the release
  116. -----------------------------
  117. - Write a release announcement (basically a summary of the changes
  118. since the last release). Check the draft version into the putty-aux
  119. repository, so the whole team can help wordsmith it if they want to.
  120. - Update the website, in a local checkout:
  121. * Write a release file in components/releases which identifies the
  122. new version, a section for the Changes page, and a news
  123. announcement for the front page.
  124. + The one thing this can't yet contain is the release date;
  125. that has to be put in at the last minute, when the release
  126. goes live. Fill in 'FIXME', for the moment.
  127. * Disable the pre-release sections of the website (if previously
  128. enabled), by editing prerel_version() in components/Base.mc to
  129. return undef.
  130. - Prepare some 'what's new in this release' blurb for the Windows
  131. Store. This should be very brief - even briefer than the website
  132. news item.
  133. * Keep it to a couple of sentences in a single paragraph,
  134. templated along the lines of
  135. X.YZ adds support for this, that and the other, and fixes bugs
  136. including this and that.
  137. or
  138. X.YZ is a bug-fix release, mostly in the area of Foo, with one
  139. important fix to Bar.
  140. * Might as well check this into putty-aux too.
  141. - Prepare a toot! I'm on Mastodon, so I should announce the release
  142. there. This means writing a cut-down 500-char announcement, maybe
  143. more like the website news item than like the email.
  144. * Include any relevant hashtags. Refer to the software as #PuTTY;
  145. if you mention SSH then write it as #SSH; similarly if we're
  146. fixing a #vulnerability. That's how people will find the toot.
  147. * Again, commit to putty-aux for team review.
  148. - Update the wishlist, in a local checkout:
  149. * If there are any last-minute wishlist entries (e.g. security
  150. vulnerabilities fixed in the new release), write entries for
  151. them.
  152. * If any other bug fixes have been cherry-picked to the release
  153. branch (so that the wishlist mechanism can't automatically mark
  154. them as fixed in the new release), add appropriate Fixed-in
  155. headers for those.
  156. - Sign the release in full. In the `build-X.YZ-rcN.out' directory,
  157. re-verify that the preliminary signed checksums file has a correct
  158. signature on it and also matches the files you're about to sign for real:
  159. gpg -d sha512sums-preliminary.gpg | (cd putty; grep -vF ' (installer version)' | grep . | sha512sum -c)
  160. If the combined output of that pipeline reports both a good
  161. signature (from the release key) and a successful verification of
  162. all the sha512sums, then all is well and you can do the full
  163. signing (not forgetting that the directory will have been readonly
  164. during the last-minute testing period):
  165. chmod -R u+w putty
  166. sh sign.sh -r putty # and enter the release key passphrase
  167. chmod -R a-w putty
  168. - If the release is on a branch (which I expect it generally will
  169. be), prepare a merge of that branch to main. Even if the branch
  170. consists of nothing but cherry-picks _from_ main, this will mean
  171. that the 'update version number' change appears on main and the
  172. snapshots start announcing themselves as post-X.YZ. But also, if
  173. there's anything new on the branch, this is how it gets on to main
  174. as well.
  175. - Log in to the MS Partner Center and make sure everything is in
  176. order. If the UI has completely changed, make sure you can find
  177. your way around the new one; if it wants you to read an enormous
  178. document of revised T&Cs, get that out of the way in advance, so it
  179. doesn't suddenly become a delay in the middle of the actual
  180. release.
  181. The actual release procedure
  182. ----------------------------
  183. Once all the above preparation is done and the release has been built
  184. locally, this is the procedure for putting it up on the web.
  185. - Make a final adjustment to your local website changes, filling in
  186. the release date in components/releases/X.YZ.mi.
  187. - Upload the release itself and its link maps to everywhere it needs
  188. to be, by running this in the build-X.YZ-rcN.out directory:
  189. ../putty/release.pl --version=X.YZ --upload
  190. - Check that downloads via version-numbered URLs all work:
  191. ../putty/release.pl --version=X.YZ --precheck
  192. - Switch the 'latest' links over to the new release:
  193. * Update the HTTP redirect at the:www/putty/htaccess .
  194. - Now verify that downloads via the 'latest' URLs are all redirected
  195. correctly and work:
  196. ../putty/release.pl --version=X.YZ --postcheck
  197. - Push all the git repositories:
  198. * run 'git push' in the website checkout
  199. * run 'git push' in the wishlist checkout
  200. * push from the main PuTTY checkout. Typically this one will be
  201. pushing both the release tag and the merge to the main branch,
  202. plus removing the pre-release branch, so you'll want some
  203. commands along these lines:
  204. git push origin main # update the main branch
  205. git push origin --tags # should push the new release tag
  206. git push origin :pre-X.YZ # delete the pre-release branch
  207. - Run ~/adm/puttyweb.sh on thyestes to update the website after all
  208. those git pushes.
  209. - Check that the unpublished website on thyestes looks sensible.
  210. - Run webupdate, so that all the changes on thyestes propagate to
  211. chiark. Important to do this _before_ announcing that the release
  212. is available.
  213. - After running webupdate, run update-rsync on chiark and verify that
  214. the rsync mirror package (~/ftp/putty-website-mirror) contains a
  215. subdirectory for the new version and that the links from its
  216. latest.html point into that subdirectory.
  217. - Start the process of updating our Windows Store entry:
  218. + log into partner.microsoft.com and go to Partner Center
  219. + start editing the existing app submission, which should
  220. automatically create a new submission
  221. * provide a new set of installer URLs, then click "save all"
  222. which actually uploads them
  223. + be careful to use URLs without "latest" in the pathname!
  224. Just copying from the links on the download page is wrong.
  225. Change "latest" to the version number, and test-download
  226. via those URLs to check you didn't make a typo.
  227. * change the "what's new in this release" text in the store
  228. listing
  229. * upload revised screenshots, if necessary
  230. * update the URL in the "Applicable license terms" box
  231. + press Publish or Submit (or whatever the button is called this
  232. time) to submit that to the actual upload process
  233. - Announce the release!
  234. + Construct a release announcement email whose message body is the
  235. announcement written above, and which includes the following
  236. headers:
  237. * Reply-To: <putty@projects.tartarus.org>
  238. * Subject: PuTTY X.YZ is released
  239. + Mail that release announcement to
  240. <putty-announce@lists.tartarus.org>.
  241. + Post it to comp.security.ssh.
  242. + Post the prepared toot to Mastodon.
  243. + Mention it in <TDHTT> on mono.
  244. - Edit the master ~/adm/puttysnap.sh to disable pre-release builds,
  245. if they were previously enabled.
  246. - Relax (slightly).