2015-09-17 15:23:24 +00:00
|
|
|
:orphan:
|
|
|
|
|
2016-12-15 23:09:27 +00:00
|
|
|
.. _version-numbers:
|
|
|
|
|
2014-06-27 17:45:13 +00:00
|
|
|
===============
|
|
|
|
Version Numbers
|
|
|
|
===============
|
|
|
|
|
|
|
|
Salt uses a date based system for version numbers. Version numbers are in the
|
|
|
|
format ``YYYY.MM.R``. The year (``YYYY``) and month (``MM``) reflect when the
|
|
|
|
release was created. The bugfix release number (``R``) increments within that
|
|
|
|
feature release.
|
|
|
|
|
2017-06-14 17:36:06 +00:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
Prior to the ``2014.1.0`` release, the typical semantic versioning was
|
|
|
|
still being used. Because of the rolling nature of the project, this did not
|
|
|
|
make sense. The ``0.17`` release was the last of that style.
|
2014-06-27 17:45:13 +00:00
|
|
|
|
|
|
|
Code Names
|
|
|
|
----------
|
|
|
|
|
|
|
|
To distinguish future releases from the current release, code names are used.
|
|
|
|
The periodic table is used to derive the next codename. The first release in
|
|
|
|
the date based system was code named ``Hydrogen``, each subsequent release will
|
2014-10-22 15:20:40 +00:00
|
|
|
go to the next `atomic number <https://en.wikipedia.org/wiki/List_of_elements>`.
|
|
|
|
|
|
|
|
Assigned codenames:
|
|
|
|
|
|
|
|
- Hydrogen: ``2014.1.0``
|
|
|
|
- Helium: ``2014.7.0``
|
2015-06-17 03:49:43 +00:00
|
|
|
- Lithium: ``2015.5.0``
|
2015-07-08 17:17:01 +00:00
|
|
|
- Beryllium: ``2015.8.0``
|
2016-02-10 22:45:28 +00:00
|
|
|
- Boron: ``2016.3.0``
|
2016-10-31 17:46:00 +00:00
|
|
|
- Carbon: ``2016.11.0``
|
2017-06-14 17:36:06 +00:00
|
|
|
- Nitrogen: ``2017.7.0``
|
2016-10-31 17:46:00 +00:00
|
|
|
- Oxygen: ``TBD``
|
2017-06-14 17:36:06 +00:00
|
|
|
- Fluorine: ``TBD``
|
2014-06-27 17:45:13 +00:00
|
|
|
|
|
|
|
Example
|
|
|
|
-------
|
|
|
|
|
|
|
|
An example might help clarify how this all works.
|
|
|
|
|
|
|
|
It is the year ``2020`` and the current code name is ``Iodine``. A release is ready
|
|
|
|
to be cut and the month is ``June``. This would make the new release number
|
|
|
|
``2020.6.0``. After three bug fix releases, the release number would be
|
|
|
|
``2020.6.3``.
|
|
|
|
|
|
|
|
After the release is cut, new features would be worked on under the ``Xenon``
|
2015-06-17 01:09:17 +00:00
|
|
|
code name and the process repeats itself.
|
2017-01-26 16:21:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
Version numbers, Git and salt --version
|
2017-06-14 17:36:06 +00:00
|
|
|
---------------------------------------
|
|
|
|
|
2017-01-26 16:21:16 +00:00
|
|
|
The salt version, for programmers, is based on `git describe` and presented to end-users with `salt --version`.
|
|
|
|
|
2017-06-14 17:36:06 +00:00
|
|
|
Example arguments for `git checkout`:
|
|
|
|
|
2017-01-26 16:21:16 +00:00
|
|
|
+------------+----------------------------------------------------------------------------+
|
|
|
|
| Argument | Comment |
|
|
|
|
+============+============================================================================+
|
|
|
|
| develop | **Develop branch** Actively developed new features |
|
|
|
|
+------------+----------------------------------------------------------------------------+
|
|
|
|
| 2016.11 | **Release branch** Actively developed bug-fixes for 2016.11.* releases |
|
|
|
|
+------------+----------------------------------------------------------------------------+
|
|
|
|
| v2016.11 | Tag signaling the commit that the 2016.11.* releases are based on. |
|
|
|
|
+------------+----------------------------------------------------------------------------+
|
|
|
|
| v2016.11.1 | Tag signaling the commit that the 2016.11.1 release is based on. |
|
|
|
|
+------------+----------------------------------------------------------------------------+
|
|
|
|
|
|
|
|
Further reading on `release branch and develop branch
|
|
|
|
<https://docs.saltstack.com/en/latest/topics/development/contributing.html#which-salt-branch>`_.
|
|
|
|
|
2017-06-14 17:36:06 +00:00
|
|
|
Influence of the `git checkout` argument on `git describe`:
|
|
|
|
|
2017-02-10 11:33:57 +00:00
|
|
|
+------------+----------------------------+-----------------------------------------------+
|
2017-01-26 16:21:16 +00:00
|
|
|
| Checkout | Describe | Comment |
|
2017-02-10 11:33:57 +00:00
|
|
|
+============+============================+===============================================+
|
2017-01-26 16:21:16 +00:00
|
|
|
| v2016.11 | v2016.11 | (tag is fixed point in time) |
|
2017-02-10 11:33:57 +00:00
|
|
|
+------------+----------------------------+-----------------------------------------------+
|
2017-01-26 16:21:16 +00:00
|
|
|
| 2016.11 | v2016.11.1-220-g9a1550d | Commit of most recent tag in 2016.11 |
|
2017-02-10 11:33:57 +00:00
|
|
|
+------------+----------------------------+-----------------------------------------------+
|
2017-01-26 16:21:16 +00:00
|
|
|
| v2016.11.1 | 2016.11.1 | (tag is fixed point in time) |
|
2017-02-10 11:33:57 +00:00
|
|
|
+------------+----------------------------+-----------------------------------------------+
|
2017-01-26 16:21:16 +00:00
|
|
|
| develop | v2016.11.1-1741-g10d5dec | Commit of most recent tag in develop |
|
2017-02-10 11:33:57 +00:00
|
|
|
+------------+----------------------------+-----------------------------------------------+
|
2017-01-26 16:21:16 +00:00
|
|
|
|
2017-06-14 17:36:06 +00:00
|
|
|
Some details of v2016.11.1-220-g9a1550d (from `git describe` after `git checkout 2016.11`):
|
|
|
|
|
2017-01-26 16:21:16 +00:00
|
|
|
+---------------+-------------------------------------------------------------------------+
|
|
|
|
| Part | Comment |
|
|
|
|
+===============+=========================================================================+
|
|
|
|
|v2016.11.1 | git describe finds the most recent tag on the 2016.11 branch |
|
|
|
|
+---------------+-------------------------------------------------------------------------+
|
|
|
|
|220 | Commits on top of the most recent tag, relative to your local git fetch |
|
|
|
|
+---------------+-------------------------------------------------------------------------+
|
|
|
|
|gf2eb3dc | 'g' + git SHA ("abbreviated name") of the most recent commit |
|
|
|
|
+---------------+-------------------------------------------------------------------------+
|