release_process.rst 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. =========================
  2. Wagtail's release process
  3. =========================
  4. Official releases
  5. =================
  6. Release numbering works as follows:
  7. * Versions are numbered in the form ``A.B`` or ``A.B.C``.
  8. * ``A.B`` is the *feature release* version number. Each version will be mostly
  9. backwards compatible with the previous release. Exceptions to this rule will
  10. be listed in the release notes.
  11. * ``C`` is the *patch release* version number, which is incremented for bugfix
  12. and security releases. These releases will be 100% backwards-compatible with
  13. the previous patch release. The only exception is when a security or data
  14. loss issue can't be fixed without breaking backwards-compatibility. If this
  15. happens, the release notes will provide detailed upgrade instructions.
  16. * Before a new feature release, we'll make at least one release candidate
  17. release. These are of the form ``A.BrcN``, which means the
  18. ``Nth`` release candidate of version ``A.B``.
  19. In git, each Wagtail release will have a tag indicating its version number.
  20. Additionally, each release series has its
  21. own branch, called ``stable/A.B.x``, and bugfix/security releases will be
  22. issued from those branches.
  23. .. glossary::
  24. Feature release
  25. Feature releases (A.B, A.B+1, etc.) happen every three months
  26. -- see `release process <#release-process>`__ for details. These releases will contain new
  27. features and improvements to existing features.
  28. Patch release
  29. Patch releases (A.B.C, A.B.C+1, etc.) will be issued as needed, to fix
  30. bugs and/or security issues.
  31. These releases will be 100% compatible with the associated feature release,
  32. unless this is impossible for security reasons or to prevent data loss.
  33. So the answer to "should I upgrade to the latest patch release?" will always
  34. be "yes."
  35. Long-term support release
  36. Certain feature releases will be designated as long-term support (LTS)
  37. releases. These releases will get security and data loss fixes applied for
  38. a guaranteed period of time, typically six months.
  39. Release cadence
  40. ===============
  41. Wagtail uses a loose form of `semantic versioning <https://semver.org/>`_.
  42. SemVer makes it easier to see at a glance how compatible releases are with each
  43. other. It also helps to anticipate when compatibility shims will be removed.
  44. It's not a pure form of SemVer as each feature release will continue to have a
  45. few documented backwards incompatibilities where a deprecation path isn't
  46. possible or not worth the cost.
  47. Deprecation policy
  48. ==================
  49. A feature release may deprecate certain features from previous releases. If a
  50. feature is deprecated in feature release A.B, it will continue to work in
  51. the following version but raise warnings. Features deprecated in release A.B
  52. will be removed in the A.B+2 release to ensure deprecations are done
  53. over at least 2 feature releases.
  54. So, for example, if we decided to start the deprecation of a function in
  55. Wagtail 1.4:
  56. * Wagtail 1.4 will contain a backwards-compatible replica of the function which
  57. will raise a ``RemovedInWagtail16Warning``.
  58. * Wagtail 1.5 will still contain the backwards-compatible replica.
  59. * Wagtail 1.6 will remove the feature outright.
  60. The warnings are silent by default. You can turn on display of these warnings
  61. with the ``python -Wd`` option.
  62. Supported versions
  63. ==================
  64. At any moment in time, Wagtail's developer team will support a set of releases to
  65. varying levels.
  66. * The current development master will get new features and bug fixes
  67. requiring non-trivial refactoring.
  68. * Patches applied to the master branch must also be applied to the last feature
  69. release branch, to be released in the next patch release of that feature
  70. series, when they fix critical problems:
  71. * Security issues.
  72. * Data loss bugs.
  73. * Crashing bugs.
  74. * Major functionality bugs in newly-introduced features.
  75. * Regressions from older versions of Wagtail.
  76. The rule of thumb is that fixes will be backported to the last feature
  77. release for bugs that would have prevented a release in the first place
  78. (release blockers).
  79. * Security fixes and data loss bugs will be applied to the current master, the
  80. last feature release branch, and any other supported long-term
  81. support release branches.
  82. * Documentation fixes generally will be more freely backported to the last
  83. release branch. That's because it's highly advantageous to have the docs for
  84. the last release be up-to-date and correct, and the risk of introducing
  85. regressions is much less of a concern.
  86. As a concrete example, consider a moment in time halfway between the release of
  87. Wagtail 1.6 and 1.7. At this point in time:
  88. * Features will be added to ``master``, to be released as Wagtail 1.7.
  89. * Critical bug fixes will be applied to the ``stable/1.6.x`` branch, and
  90. released as 1.6.1, 1.6.2, etc.
  91. * Security fixes and bug fixes for data loss issues will be applied to
  92. ``master`` and to the ``stable/1.6.x`` and ``stable/1.4.x`` (LTS) branches.
  93. They will trigger the release of ``1.6.1``, ``1.4.8``, etc.
  94. * Documentation fixes will be applied to master, and, if easily backported, to
  95. the latest stable branch, ``1.6.x``.
  96. Supported versions of Django
  97. ============================
  98. Each release of Wagtail declares which versions of Django it supports.
  99. Typically, a new Wagtail feature release supports the last long-term support version and
  100. all following versions of Django.
  101. For example, consider a moment in time before release of Wagtail 1.5
  102. and after the following releases:
  103. * Django 1.8 (LTS)
  104. * Django 1.9
  105. * Wagtail 1.4 (LTS) - Released before Django 1.10 and supports Django 1.8 and 1.9
  106. * Django 1.10
  107. Wagtail 1.5 will support Django 1.8 (LTS), 1.9, 1.10.
  108. Wagtail 1.4 will still support only Django 1.8 (LTS) and 1.9.
  109. .. _release-process:
  110. Release process
  111. ===============
  112. Wagtail uses a `time-based release schedule <https://github.com/wagtail/wagtail/wiki/Release-schedule>`_,
  113. with feature releases every three months.
  114. After each feature release, the release manager will announce a timeline for
  115. the next feature release.
  116. Release cycle
  117. -------------
  118. Each release cycle consists of three parts:
  119. Phase one: feature proposal
  120. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  121. The first phase of the release process will include figuring out what major
  122. features to include in the next version. This should include a good deal of
  123. preliminary work on those features -- working code trumps grand design.
  124. Phase two: development
  125. ~~~~~~~~~~~~~~~~~~~~~~
  126. The second part of the release schedule is the "heads-down" working period.
  127. Using the roadmap produced at the end of phase one, we'll all work very hard to
  128. get everything on it done.
  129. At the end of phase two, any unfinished features will be postponed until the
  130. next release.
  131. At this point, the ``stable/A.B.x`` branch will be forked from ``master``.
  132. Phase three: bugfixes
  133. ~~~~~~~~~~~~~~~~~~~~~
  134. The last part of a release cycle is spent fixing bugs -- no new features will
  135. be accepted during this time.
  136. Once all known blocking bugs have been addressed, a release candidate will be
  137. made available for testing. The final release will usually follow two weeks later,
  138. although this period may be extended if the further release blockers are found.
  139. During this phase, committers will be more and more conservative with
  140. backports, to avoid introducing regressions. After the release candidate, only
  141. release blockers and documentation fixes should be backported.
  142. Developers should avoid adding any new translatable strings after the release
  143. candidate - this ensures that translators have the full period between the release
  144. candidate and the final release to bring translations up to date. Translations
  145. will be re-imported immediately before the final release.
  146. In parallel to this phase, ``master`` can receive new features, to be released
  147. in the ``A.B+1`` cycle.
  148. Bug-fix releases
  149. ----------------
  150. After a feature release (e.g. A.B), the previous release will go into bugfix
  151. mode.
  152. The branch for the previous feature release (e.g. ``stable/A.B-1.x``) will
  153. include bugfixes. Critical bugs fixed on master must *also* be fixed on the
  154. bugfix branch; this means that commits need to cleanly separate bug fixes from
  155. feature additions. The developer who commits a fix to master will be
  156. responsible for also applying the fix to the current bugfix branch.