release-process.txt 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. Major releases
  32. --------------
  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 releases
  36. --------------
  37. Minor release (1.5, 1.6, etc.) will happen roughly every nine months -- see
  38. `release process`_, below for details. These releases will contain new
  39. features, improvements to existing features, and such.
  40. .. _internal-release-deprecation-policy:
  41. A minor release may deprecate certain features from previous releases. If a
  42. feature is deprecated in version ``A.B``, it will continue to work in versions
  43. ``A.B`` and ``A.B+1`` but raise warnings. It will be removed in version
  44. ``A.B+2``.
  45. So, for example, if we decided to start the deprecation of a function in
  46. Django 1.5:
  47. * Django 1.5 will contain a backwards-compatible replica of the function which
  48. will raise a ``PendingDeprecationWarning``. This warning is silent by
  49. default; you can turn on display of these warnings with the ``-Wd`` option
  50. of Python.
  51. * Django 1.6 will contain the backwards-compatible replica, but the warning
  52. will be promoted to a full-fledged ``DeprecationWarning``. This warning is
  53. *loud* by default, and will likely be quite annoying.
  54. * Django 1.7 will remove the feature outright.
  55. Micro releases
  56. --------------
  57. Micro releases (1.5.1, 1.6.2, 1.6.1, etc.) will be issued as needed, often to
  58. fix security issues.
  59. These releases will be 100% compatible with the associated minor release, unless
  60. this is impossible for security reasons. So the answer to "should I upgrade to
  61. the latest micro release?" will always be "yes."
  62. .. _backwards-compatibility-policy:
  63. Supported versions
  64. ==================
  65. At any moment in time, Django's developer team will support a set of releases to
  66. varying levels:
  67. * The current development master will get new features and bug fixes
  68. requiring major refactoring.
  69. * Patches applied to the master branch must also be applied to the last minor
  70. release, to be released as the next micro release, when they fix critical
  71. problems:
  72. * Security issues.
  73. * Data-loss bugs.
  74. * Crashing bugs.
  75. * Major functionality bugs in newly-introduced features.
  76. The rule of thumb is that fixes will be backported to the last minor release
  77. for bugs that would have prevented a release in the first place (release
  78. blockers).
  79. * Security fixes will be applied to the current master and the previous two
  80. minor releases.
  81. * Committers may choose to backport bugfixes at their own discretion,
  82. provided they do not introduce backwards incompatibilities.
  83. * Documentation fixes generally will be more freely backported to the last
  84. release branch. That's because it's highly advantageous to have the docs for
  85. the last release be up-to-date and correct, and the risk of introducing
  86. regressions is much less of a concern.
  87. As a concrete example, consider a moment in time halfway between the release of
  88. Django 1.6 and 1.7. At this point in time:
  89. * Features will be added to development master, to be released as Django 1.7.
  90. * Critical bug fixes will be applied to the ``stable/1.6.X`` branch, and
  91. released as 1.6.1, 1.6.2, etc.
  92. * Security fixes will be applied to ``master``, to the ``stable/1.6.X``
  93. branch, and to the ``stable/1.5.X`` branch. They will trigger the release of
  94. ``1.6.1``, ``1.5.1``, etc.
  95. * Documentation fixes will be applied to master, and, if easily backported, to
  96. the ``1.6.X`` branch. Bugfixes may also be backported.
  97. .. _release-process:
  98. Release process
  99. ===============
  100. Django uses a time-based release schedule, with minor (i.e. 1.6, 1.7, etc.)
  101. releases every nine months, or more, depending on features.
  102. After each release, and after a suitable cooling-off period of a few weeks, the
  103. core development team will examine the landscape and announce a timeline for the
  104. next release. Most releases will be scheduled in the 6-9 month range, but if we
  105. have bigger features to development we might schedule a longer period to allow
  106. for more ambitious work.
  107. Release cycle
  108. -------------
  109. Each release cycle will be split into three periods, each lasting roughly
  110. one-third of the cycle:
  111. Phase one: feature proposal
  112. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  113. The first phase of the release process will be devoted to figuring out what
  114. features to include in the next version. This should include a good deal of
  115. preliminary work on those features -- working code trumps grand design.
  116. At the end of part one, the core developers will propose a feature list for the
  117. upcoming release. This will be broken into:
  118. * "Must-have": critical features that will delay the release if not finished
  119. * "Maybe" features: that will be pushed to the next release if not finished
  120. * "Not going to happen": features explicitly deferred to a later release.
  121. Anything that hasn't got at least some work done by the end of the first third
  122. isn't eligible for the next release; a design alone isn't sufficient.
  123. Phase two: development
  124. ~~~~~~~~~~~~~~~~~~~~~~
  125. The second third of the release schedule is the "heads-down" working period.
  126. Using the roadmap produced at the end of phase one, we'll all work very hard to
  127. get everything on it done.
  128. Longer release schedules will likely spend more than a third of the time in this
  129. phase.
  130. At the end of phase two, any unfinished "maybe" features will be postponed until
  131. the next release. Though it shouldn't happen, any "must-have" features will
  132. extend phase two, and thus postpone the final release.
  133. Phase two will culminate with an alpha release. At this point, the
  134. ``stable/A.B.x`` branch will be forked from ``master``.
  135. Phase three: bugfixes
  136. ~~~~~~~~~~~~~~~~~~~~~
  137. The last third of a release is spent fixing bugs -- no new features will be
  138. accepted during this time. We'll try to release a beta release after one month
  139. and a release candidate after two months.
  140. The release candidate marks the string freeze, and it happens at least two
  141. weeks before the final release. After this point, new translatable strings
  142. must not be added.
  143. During this phase, committers will be more and more conservative with
  144. backports, to avoid introducing regressions. After the release candidate, only
  145. release blockers and documentation fixes should be backported.
  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 minor release (e.g. 1.6), the previous release will go into bugfix
  151. mode.
  152. A branch will be created of the form ``stable/1.5.x`` to track bugfixes to the
  153. previous release. 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.
  157. How this all fits together
  158. --------------------------
  159. Let's look at a hypothetical example for how this all first together. Imagine,
  160. if you will, a point about halfway between 1.5 and 1.6. At this point,
  161. development will be happening in a bunch of places:
  162. * On master, development towards 1.6 proceeds with small additions, bugs
  163. fixes, etc. being checked in daily.
  164. * On the branch ``stable/1.5.x``, fixes for critical bugs found in
  165. the 1.5 release are checked in as needed. At some point, this branch will
  166. be released as "1.5.1", "1.5.2", etc.
  167. * On the branch ``stable/1.4.x``, security fixes are made if
  168. needed and released as "1.4.2", "1.4.3", etc.
  169. * Development of major features is done in branches in forks of the main
  170. repository. These branches will be merged into ``master`` before "1.6
  171. alpha 1".