release-process.txt 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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.2 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.2 will continue
  15. to work under Django 1.3. 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. * In some cases, we'll make alpha, beta, or release candidate releases.
  23. These are of the form ``A.B alpha/beta/rc N``, which means the ``Nth``
  24. alpha/beta/release candidate of version ``A.B``.
  25. In git, each Django release will have a tag indicating its version
  26. number, signed with the Django release key. Additionally, each release
  27. series (X.Y) has its own branch, and bugfix/security releases will be
  28. issued from those branches.
  29. For more information about how the Django project issues new releases
  30. for security purposes, please see :doc:`our security policies
  31. <security>`.
  32. Major releases
  33. --------------
  34. Major releases (1.0, 2.0, etc.) will happen very infrequently (think "years",
  35. not "months"), and will probably represent major, sweeping changes to Django.
  36. Minor releases
  37. --------------
  38. Minor release (1.1, 1.2, etc.) will happen roughly every nine months -- see
  39. `release process`_, below for details.
  40. .. _internal-release-deprecation-policy:
  41. These releases will contain new features, improvements to existing features, and
  42. such. A minor release may deprecate certain features from previous releases. If a
  43. feature in version ``A.B`` is deprecated, it will continue to work in version
  44. ``A.B+1``. In version ``A.B+2``, use of the feature will raise a
  45. ``DeprecationWarning`` but will continue to work. Version ``A.B+3`` will
  46. remove the feature entirely.
  47. So, for example, if we decided to remove a function that existed in Django 1.0:
  48. * Django 1.1 will contain a backwards-compatible replica of the function
  49. which will raise a ``PendingDeprecationWarning``. This warning is silent
  50. by default; you need to explicitly turn on display of these warnings.
  51. * Django 1.2 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.3 will remove the feature outright.
  55. Micro releases
  56. --------------
  57. Micro releases (1.0.1, 1.0.2, 1.1.1, etc.) will be issued at least once half-way
  58. between minor releases, and probably more often as needed.
  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. Each minor release of Django will have a "release maintainer" appointed. This
  63. person will be responsible for making sure that bug fixes are applied to both
  64. trunk and the maintained micro-release branch. This person will also work with
  65. the release manager to decide when to release the micro releases.
  66. .. _backwards-compatibility-policy:
  67. Supported versions
  68. ==================
  69. At any moment in time, Django's developer team will support a set of releases to
  70. varying levels:
  71. * The current development trunk will get new features and bug fixes
  72. requiring major refactoring.
  73. * Patches applied to the trunk will also be applied to the last minor
  74. release, to be released as the next micro release, when they fix critical
  75. problems:
  76. * Security issues.
  77. * Data-loss bugs.
  78. * Crashing bugs.
  79. * Major functionality bugs in newly-introduced features.
  80. The rule of thumb is that fixes will be backported to the last minor
  81. release for bugs that would have prevented a release in the first place.
  82. * Security fixes will be applied to the current trunk and the previous two
  83. minor releases.
  84. * Documentation fixes generally will be more freely backported to the last
  85. release branch, at the discretion of the committer, and they don't need to
  86. meet the "critical fixes only" bar. That's because it's highly advantageous
  87. to have the docs for the last release be up-to-date and correct, and the
  88. downside of backporting (risk of introducing regressions) is much less of a
  89. concern.
  90. As a concrete example, consider a moment in time halfway between the release of
  91. Django 1.3 and 1.4. At this point in time:
  92. * Features will be added to development trunk, to be released as Django 1.4.
  93. * Critical bug fixes will be applied to a ``1.3.X`` branch, and released as
  94. 1.3.1, 1.3.2, etc.
  95. * Security fixes will be applied to trunk, a ``1.3.X`` branch and a
  96. ``1.2.X`` branch. They will trigger the release of ``1.3.1``, ``1.2.1``,
  97. etc.
  98. * Documentation fixes will be applied to trunk, and, if easily backported, to
  99. the ``1.3.X`` branch.
  100. .. _release-process:
  101. Release process
  102. ===============
  103. Django uses a time-based release schedule, with minor (i.e. 1.1, 1.2, etc.)
  104. releases every nine months, or more, depending on features.
  105. After each release, and after a suitable cooling-off period of a few weeks, the
  106. core development team will examine the landscape and announce a timeline for the
  107. next release. Most releases will be scheduled in the 6-9 month range, but if we
  108. have bigger features to development we might schedule a longer period to allow
  109. for more ambitious work.
  110. Release cycle
  111. -------------
  112. Each release cycle will be split into three periods, each lasting roughly
  113. one-third of the cycle:
  114. Phase one: feature proposal
  115. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  116. The first phase of the release process will be devoted to figuring out what
  117. features to include in the next version. This should include a good deal of
  118. preliminary work on those features -- working code trumps grand design.
  119. At the end of part one, the core developers will propose a feature list for the
  120. upcoming release. This will be broken into:
  121. * "Must-have": critical features that will delay the release if not finished
  122. * "Maybe" features: that will be pushed to the next release if not finished
  123. * "Not going to happen": features explicitly deferred to a later release.
  124. Anything that hasn't got at least some work done by the end of the first third
  125. isn't eligible for the next release; a design alone isn't sufficient.
  126. Phase two: development
  127. ~~~~~~~~~~~~~~~~~~~~~~
  128. The second third of the release schedule is the "heads-down" working period.
  129. Using the roadmap produced at the end of phase one, we'll all work very hard to
  130. get everything on it done.
  131. Longer release schedules will likely spend more than a third of the time in this
  132. phase.
  133. At the end of phase two, any unfinished "maybe" features will be postponed until
  134. the next release. Though it shouldn't happen, any "must-have" features will
  135. extend phase two, and thus postpone the final release.
  136. Phase two will culminate with an alpha release.
  137. Phase three: bugfixes
  138. ~~~~~~~~~~~~~~~~~~~~~
  139. The last third of a release is spent fixing bugs -- no new features will be
  140. accepted during this time. We'll release a beta release about halfway through,
  141. and an rc complete with string freeze two weeks before the end of the schedule.
  142. Bug-fix releases
  143. ----------------
  144. After a minor release (e.g. 1.1), the previous release will go into bugfix
  145. mode.
  146. A branch will be created of the form ``branches/releases/1.0.X`` to track
  147. bugfixes to the previous release. Critical bugs fixed on trunk must
  148. *also* be fixed on the bugfix branch; this means that commits need to cleanly
  149. separate bug fixes from feature additions. The developer who commits a fix to
  150. trunk will be responsible for also applying the fix to the current bugfix
  151. branch. Each bugfix branch will have a maintainer who will work with the
  152. committers to keep them honest on backporting bug fixes.
  153. How this all fits together
  154. --------------------------
  155. Let's look at a hypothetical example for how this all first together. Imagine,
  156. if you will, a point about halfway between 1.1 and 1.2. At this point,
  157. development will be happening in a bunch of places:
  158. * On trunk, development towards 1.2 proceeds with small additions, bugs
  159. fixes, etc. being checked in daily.
  160. * On the branch "branches/releases/1.1.X", fixes for critical bugs found in
  161. the 1.1 release are checked in as needed. At some point, this branch will
  162. be released as "1.1.1", "1.1.2", etc.
  163. * On the branch "branches/releases/1.0.X", security fixes are made if
  164. needed and released as "1.0.2", "1.0.3", etc.
  165. * On feature branches, development of major features is done. These
  166. branches will be merged into trunk before the end of phase two.