release-process.txt 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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.B`` is the *major version* number. Each version will be mostly backwards
  10. compatible with the previous release. Exceptions to this rule will be listed
  11. in the release notes. When ``B == 9``, the next major release will be
  12. ``A+1.0``. For example, Django 2.0 will follow Django 1.9. There won't be
  13. anything special about "dot zero" releases.
  14. * ``C`` is the *minor version* number, which is incremented for bug and
  15. security fixes. A new minor release will be 100% backwards-compatible with
  16. the previous minor release. The only exception is when a security or data loss
  17. issue can't be fixed without breaking backwards-compatibility. If this
  18. happens, the release notes will provide detailed upgrade instructions.
  19. * Before a new major release, we'll make alpha, beta, and release candidate
  20. releases. These are of the form ``A.B alpha/beta/rc N``, which means the
  21. ``Nth`` alpha/beta/release candidate of version ``A.B``.
  22. In git, each Django release will have a tag indicating its version number,
  23. signed with the Django release key. Additionally, each release series has its
  24. own branch, called ``stable/A.B.x``, and bugfix/security releases will be
  25. issued from those branches.
  26. For more information about how the Django project issues new releases for
  27. security purposes, please see :doc:`our security policies <security>`.
  28. .. glossary::
  29. Major release
  30. Major releases (1.5, 1.6, etc.) will happen roughly every nine months -- see
  31. `release process`_, below for details. These releases will contain new
  32. features, improvements to existing features, and such.
  33. .. _internal-release-deprecation-policy:
  34. A major release may deprecate certain features from previous releases. If a
  35. feature is deprecated in version ``A.B``, it will continue to work in versions
  36. ``A.B`` and ``A.B+1`` but raise warnings. It will be removed in version
  37. ``A.B+2``.
  38. So, for example, if we decided to start the deprecation of a function in
  39. Django 1.7:
  40. * Django 1.7 will contain a backwards-compatible replica of the function which
  41. will raise a ``RemovedInDjango19Warning``. This warning is silent by
  42. default; you can turn on display of these warnings with the ``-Wd`` option
  43. of Python.
  44. * Django 1.8 will still contain the backwards-compatible replica. This
  45. warning becomes *loud* by default, and will likely be quite annoying.
  46. * Django 1.9 will remove the feature outright.
  47. Minor release
  48. Minor releases (1.5.1, 1.6.2, 1.6.1, etc.) will be issued as needed, often to
  49. fix security issues.
  50. These releases will be 100% compatible with the associated major release,
  51. unless this is impossible for security reasons or to prevent data loss.
  52. So the answer to "should I upgrade to the latest minor release?" will always
  53. be "yes."
  54. .. _backwards-compatibility-policy:
  55. Supported versions
  56. ==================
  57. At any moment in time, Django's developer team will support a set of releases to
  58. varying levels:
  59. * The current development master will get new features and bug fixes
  60. requiring major refactoring.
  61. * Patches applied to the master branch must also be applied to the last major
  62. release, to be released as the next minor release, when they fix critical
  63. problems:
  64. * Security issues.
  65. * Data loss bugs.
  66. * Crashing bugs.
  67. * Major functionality bugs in newly-introduced features.
  68. The rule of thumb is that fixes will be backported to the last major release
  69. for bugs that would have prevented a release in the first place (release
  70. blockers).
  71. * Security fixes and data loss bugs will be applied to the current master, the
  72. last two major releases, and the current :ref:`LTS release <lts-releases>`.
  73. * Documentation fixes generally will be more freely backported to the last
  74. release branch. That's because it's highly advantageous to have the docs for
  75. the last release be up-to-date and correct, and the risk of introducing
  76. regressions is much less of a concern.
  77. As a concrete example, consider a moment in time halfway between the release of
  78. Django 1.6 and 1.7. At this point in time:
  79. * Features will be added to development master, to be released as Django 1.7.
  80. * Critical bug fixes will be applied to the ``stable/1.6.x`` branch, and
  81. released as 1.6.1, 1.6.2, etc.
  82. * Security fixes and bug fixes for data loss issues will be applied to
  83. ``master`` and to the ``stable/1.6.x``, ``stable/1.5.x``, and
  84. ``stable/1.4.x`` (LTS) branches. They will trigger the release of ``1.6.1``,
  85. ``1.5.1``, ``1.4.1``, etc.
  86. * Documentation fixes will be applied to master, and, if easily backported, to
  87. the ``1.6.x`` branch.
  88. .. _lts-releases:
  89. Long-term support (LTS) releases
  90. ================================
  91. Additionally, the Django team will occasionally designate certain releases
  92. to be "Long-term support" (LTS) releases. LTS releases will get security and
  93. data loss fixes applied for a guaranteed period of time, typically 3+ years,
  94. regardless of the pace of releases afterwards.
  95. The follow releases have been designated for long-term support:
  96. * Django 1.4, supported until at least March 2015.
  97. .. _release-process:
  98. Release process
  99. ===============
  100. Django uses a time-based release schedule, with major (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 cycle is spent fixing bugs -- no new features will
  138. be accepted during this time. We'll try to release a beta release after one
  139. month 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 major release (e.g. 1.6), the previous release will go into bugfix
  151. mode.
  152. The branch for the previous major release (e.g. ``stable/1.5.x``) will include
  153. bugfixes. Critical bugs fixed on master must *also* be fixed on the bugfix
  154. branch; this means that commits need to cleanly separate bug fixes from feature
  155. additions. The developer who commits a fix to master will be responsible for
  156. also applying the fix to the current bugfix branch.