release-process.txt 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. ========================
  2. Django's release process
  3. ========================
  4. .. _official-releases:
  5. Official releases
  6. =================
  7. Since version 1.0, Django's release numbering works as follows:
  8. * Versions are numbered in the form ``A.B`` or ``A.B.C``.
  9. * ``A`` is the *major version* number, which is only incremented for major
  10. changes to Django, and these changes are not necessarily
  11. backwards-compatible. That is, code you wrote for Django 1.6 may break
  12. when we release Django 2.0.
  13. * ``B`` is the *minor version* number, which is incremented for large yet
  14. backwards compatible changes. Code written for Django 1.6 will continue
  15. to work under Django 1.7. Exceptions to this rule will be listed in the
  16. release notes.
  17. * ``C`` is the *micro version* number, which is incremented for bug and
  18. security fixes. A new micro-release will be 100% backwards-compatible with
  19. the previous micro-release. The only exception is when a security issue
  20. can't be fixed without breaking backwards-compatibility. If this happens,
  21. the release notes will provide detailed upgrade instructions.
  22. * Before a new minor release, we'll make alpha, beta, and release candidate
  23. releases. These are of the form ``A.B alpha/beta/rc N``, which means the
  24. ``Nth`` alpha/beta/release candidate of version ``A.B``.
  25. In git, each Django release will have a tag indicating its version number,
  26. signed with the Django release key. Additionally, each release series has its
  27. own branch, called ``stable/A.B.x``, and bugfix/security releases will be
  28. issued from those branches.
  29. For more information about how the Django project issues new releases for
  30. security purposes, please see :doc:`our security policies <security>`.
  31. .. glossary::
  32. Major release
  33. Major releases (1.0, 2.0, etc.) will happen very infrequently (think "years",
  34. not "months"), and may represent major, sweeping changes to Django.
  35. Minor release
  36. Minor release (1.5, 1.6, etc.) will happen roughly every nine months -- see
  37. `release process`_, below for details. These releases will contain new
  38. features, improvements to existing features, and such.
  39. .. _internal-release-deprecation-policy:
  40. A minor release may deprecate certain features from previous releases. If a
  41. feature is deprecated in version ``A.B``, it will continue to work in versions
  42. ``A.B`` and ``A.B+1`` but raise warnings. It will be removed in version
  43. ``A.B+2``.
  44. So, for example, if we decided to start the deprecation of a function in
  45. Django 1.5:
  46. * Django 1.5 will contain a backwards-compatible replica of the function which
  47. will raise a ``PendingDeprecationWarning``. This warning is silent by
  48. default; you can turn on display of these warnings with the ``-Wd`` option
  49. of Python.
  50. * Django 1.6 will contain the backwards-compatible replica, but the warning
  51. will be promoted to a full-fledged ``DeprecationWarning``. This warning is
  52. *loud* by default, and will likely be quite annoying.
  53. * Django 1.7 will remove the feature outright.
  54. Micro release
  55. Micro releases (1.5.1, 1.6.2, 1.6.1, etc.) will be issued as needed, often to
  56. fix security issues.
  57. These releases will be 100% compatible with the associated minor release, unless
  58. this is impossible for security reasons. So the answer to "should I upgrade to
  59. the latest micro release?" will always be "yes."
  60. .. _backwards-compatibility-policy:
  61. Supported versions
  62. ==================
  63. At any moment in time, Django's developer team will support a set of releases to
  64. varying levels:
  65. * The current development master will get new features and bug fixes
  66. requiring major refactoring.
  67. * Patches applied to the master branch must also be applied to the last minor
  68. release, to be released as the next micro release, when they fix critical
  69. problems:
  70. * Security issues.
  71. * Data-loss bugs.
  72. * Crashing bugs.
  73. * Major functionality bugs in newly-introduced features.
  74. The rule of thumb is that fixes will be backported to the last minor release
  75. for bugs that would have prevented a release in the first place (release
  76. blockers).
  77. * Security fixes will be applied to the current master and the previous two
  78. minor releases.
  79. * Committers may choose to backport bugfixes at their own discretion,
  80. provided they do not introduce backwards incompatibilities.
  81. * Documentation fixes generally will be more freely backported to the last
  82. release branch. That's because it's highly advantageous to have the docs for
  83. the last release be up-to-date and correct, and the risk of introducing
  84. regressions is much less of a concern.
  85. As a concrete example, consider a moment in time halfway between the release of
  86. Django 1.6 and 1.7. At this point in time:
  87. * Features will be added to development master, to be released as Django 1.7.
  88. * Critical bug fixes will be applied to the ``stable/1.6.x`` branch, and
  89. released as 1.6.1, 1.6.2, etc.
  90. * Security fixes will be applied to ``master``, to the ``stable/1.6.x``
  91. branch, and to the ``stable/1.5.x`` branch. They will trigger the release of
  92. ``1.6.1``, ``1.5.1``, etc.
  93. * Documentation fixes will be applied to master, and, if easily backported, to
  94. the ``1.6.x`` branch. Bugfixes may also be backported.
  95. .. _lts-releases:
  96. Long-term support (LTS) releases
  97. ================================
  98. Additionally, the Django team will occasionally designate certain releases
  99. to be "Long-term support" (LTS) releases. LTS releases will get security fixes
  100. applied for a guaranteed period of time, typically 3+ years, regardless of
  101. the pace of releases afterwards.
  102. The follow releases have been designated for long-term support:
  103. * Django 1.4, supported until at least March 2015.
  104. .. _release-process:
  105. Release process
  106. ===============
  107. Django uses a time-based release schedule, with minor (i.e. 1.6, 1.7, etc.)
  108. releases every nine months, or more, depending on features.
  109. After each release, and after a suitable cooling-off period of a few weeks, the
  110. core development team will examine the landscape and announce a timeline for the
  111. next release. Most releases will be scheduled in the 6-9 month range, but if we
  112. have bigger features to development we might schedule a longer period to allow
  113. for more ambitious work.
  114. Release cycle
  115. -------------
  116. Each release cycle will be split into three periods, each lasting roughly
  117. one-third of the cycle:
  118. Phase one: feature proposal
  119. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  120. The first phase of the release process will be devoted to figuring out what
  121. features to include in the next version. This should include a good deal of
  122. preliminary work on those features -- working code trumps grand design.
  123. At the end of part one, the core developers will propose a feature list for the
  124. upcoming release. This will be broken into:
  125. * "Must-have": critical features that will delay the release if not finished
  126. * "Maybe" features: that will be pushed to the next release if not finished
  127. * "Not going to happen": features explicitly deferred to a later release.
  128. Anything that hasn't got at least some work done by the end of the first third
  129. isn't eligible for the next release; a design alone isn't sufficient.
  130. Phase two: development
  131. ~~~~~~~~~~~~~~~~~~~~~~
  132. The second third of the release schedule is the "heads-down" working period.
  133. Using the roadmap produced at the end of phase one, we'll all work very hard to
  134. get everything on it done.
  135. Longer release schedules will likely spend more than a third of the time in this
  136. phase.
  137. At the end of phase two, any unfinished "maybe" features will be postponed until
  138. the next release. Though it shouldn't happen, any "must-have" features will
  139. extend phase two, and thus postpone the final release.
  140. Phase two will culminate with an alpha release. At this point, the
  141. ``stable/A.B.x`` branch will be forked from ``master``.
  142. Phase three: bugfixes
  143. ~~~~~~~~~~~~~~~~~~~~~
  144. The last third of a release cycle is spent fixing bugs -- no new features will
  145. be accepted during this time. We'll try to release a beta release after one
  146. month and a release candidate after two months.
  147. The release candidate marks the string freeze, and it happens at least two
  148. weeks before the final release. After this point, new translatable strings
  149. must not be added.
  150. During this phase, committers will be more and more conservative with
  151. backports, to avoid introducing regressions. After the release candidate, only
  152. release blockers and documentation fixes should be backported.
  153. In parallel to this phase, ``master`` can receive new features, to be released
  154. in the ``A.B+1`` cycle.
  155. Bug-fix releases
  156. ----------------
  157. After a minor release (e.g. 1.6), the previous release will go into bugfix
  158. mode.
  159. A branch will be created of the form ``stable/1.5.x`` to track bugfixes to the
  160. previous release. Critical bugs fixed on master must *also* be fixed on the
  161. bugfix branch; this means that commits need to cleanly separate bug fixes from
  162. feature additions. The developer who commits a fix to master will be
  163. responsible for also applying the fix to the current bugfix branch.
  164. How this all fits together
  165. --------------------------
  166. Let's look at a hypothetical example for how this all first together. Imagine,
  167. if you will, a point about halfway between 1.5 and 1.6. At this point,
  168. development will be happening in a bunch of places:
  169. * On master, development towards 1.6 proceeds with small additions, bugs
  170. fixes, etc. being checked in daily.
  171. * On the branch ``stable/1.5.x``, fixes for critical bugs found in
  172. the 1.5 release are checked in as needed. At some point, this branch will
  173. be released as "1.5.1", "1.5.2", etc.
  174. * On the branch ``stable/1.4.x``, security fixes are made if
  175. needed and released as "1.4.2", "1.4.3", etc.
  176. * Development of major features is done in branches in forks of the main
  177. repository. These branches will be merged into ``master`` before "1.6
  178. alpha 1".