release-process.txt 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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 (A.B, A.B+1, etc.) will happen roughly every nine months --
  31. see `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 (A.B.C, etc.) will be issued as needed, often to fix security
  49. 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. See `the download page`_ for the current state of support for
  59. each version.
  60. * The current development master will get new features and bug fixes
  61. requiring major refactoring.
  62. * Patches applied to the master branch must also be applied to the last major
  63. release, to be released as the next minor release, when they fix critical
  64. problems:
  65. * Security issues.
  66. * Data loss bugs.
  67. * Crashing bugs.
  68. * Major functionality bugs in newly-introduced features.
  69. The rule of thumb is that fixes will be backported to the last major release
  70. for bugs that would have prevented a release in the first place (release
  71. blockers).
  72. * Security fixes and data loss bugs will be applied to the current master, the
  73. last two major releases, and the current :ref:`LTS release <lts-releases>`.
  74. * Documentation fixes generally will be more freely backported to the last
  75. release branch. That's because it's highly advantageous to have the docs for
  76. the last release be up-to-date and correct, and the risk of introducing
  77. regressions is much less of a concern.
  78. As a concrete example, consider a moment in time halfway between the release of
  79. Django 1.7 and 1.8. At this point in time:
  80. * Features will be added to development master, to be released as Django 1.8.
  81. * Critical bug fixes will be applied to the ``stable/1.7.x`` branch, and
  82. released as 1.7.1, 1.7.2, etc.
  83. * Security fixes and bug fixes for data loss issues will be applied to
  84. ``master`` and to the ``stable/1.7.x``, ``stable/1.6.x``, and
  85. ``stable/1.4.x`` (LTS) branches. They will trigger the release of ``1.7.1``,
  86. ``1.6.1``, ``1.4.1``, etc.
  87. * Documentation fixes will be applied to master, and, if easily backported, to
  88. the ``1.7.x`` and ``1.6.x`` branches.
  89. .. _lts-releases:
  90. Long-term support (LTS) releases
  91. ================================
  92. Additionally, the Django team will occasionally designate certain releases
  93. to be "Long-term support" (LTS) releases. LTS releases will get security and
  94. data loss fixes applied for a guaranteed period of time, typically 3+ years,
  95. regardless of the pace of releases afterwards.
  96. See `the download page`_ for the releases that have been designated for
  97. long-term support.
  98. .. _the download page: https://www.djangoproject.com/download/
  99. .. _release-process:
  100. Release process
  101. ===============
  102. Django uses a time-based release schedule, with major (i.e. 1.8, 1.9, 2.0,
  103. etc.) releases every nine months, or more, depending on features.
  104. After each release, and after a suitable cooling-off period of a few weeks,
  105. core developers will examine the landscape and announce a timeline for the
  106. next release. Most releases will be scheduled in the 6-9 month range, but if
  107. we have bigger features to develop we might schedule a longer period to
  108. allow for more ambitious work.
  109. Release cycle
  110. -------------
  111. Each release cycle will be split into three periods, each lasting roughly
  112. one-third of the cycle:
  113. Phase one: feature proposal
  114. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  115. The first phase of the release process will be devoted to figuring out what
  116. features to include in the next version. This should include a good deal of
  117. preliminary work on those features -- working code trumps grand design.
  118. At the end of part one, the core developers will propose a feature list for the
  119. upcoming release. This will be broken into:
  120. * "Must-have": critical features that will delay the release if not finished
  121. * "Maybe" features: that will be pushed to the next release if not finished
  122. * "Not going to happen": features explicitly deferred to a later release.
  123. Anything that hasn't got at least some work done by the end of the first third
  124. isn't eligible for the next release; a design alone isn't sufficient.
  125. Phase two: development
  126. ~~~~~~~~~~~~~~~~~~~~~~
  127. The second third of the release schedule is the "heads-down" working period.
  128. Using the roadmap produced at the end of phase one, we'll all work very hard to
  129. get everything on it done.
  130. Longer release schedules will likely spend more than a third of the time in this
  131. phase.
  132. At the end of phase two, any unfinished "maybe" features will be postponed until
  133. the next release. Though it shouldn't happen, any "must-have" features will
  134. extend phase two, and thus postpone the final release.
  135. Phase two will culminate with an alpha release. At this point, the
  136. ``stable/A.B.x`` branch will be forked from ``master``.
  137. Phase three: bugfixes
  138. ~~~~~~~~~~~~~~~~~~~~~
  139. The last third of a release cycle is spent fixing bugs -- no new features will
  140. be accepted during this time. We'll try to release a beta release after one
  141. month and a release candidate after two months.
  142. The release candidate marks the string freeze, and it happens at least two
  143. weeks before the final release. After this point, new translatable strings
  144. must not be added.
  145. During this phase, committers will be more and more conservative with
  146. backports, to avoid introducing regressions. After the release candidate, only
  147. release blockers and documentation fixes should be backported.
  148. In parallel to this phase, ``master`` can receive new features, to be released
  149. in the ``A.B+1`` cycle.
  150. Bug-fix releases
  151. ----------------
  152. After a major release (e.g. A.B), the previous release will go into bugfix
  153. mode.
  154. The branch for the previous major release (e.g. ``stable/A.B-1.x``) will include
  155. bugfixes. Critical bugs fixed on master must *also* be fixed on the bugfix
  156. branch; this means that commits need to cleanly separate bug fixes from feature
  157. additions. The developer who commits a fix to master will be responsible for
  158. also applying the fix to the current bugfix branch.