CHECKLST.txt 13 KB

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