Skip to content

Commit 59d3a5b

Browse files
author
Jacob Hageman
committed
Fix #1177, Update version description per current design
1 parent 176e3df commit 59d3a5b

File tree

1 file changed

+40
-69
lines changed

1 file changed

+40
-69
lines changed

docs/src/cfs_versions.dox

Lines changed: 40 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -4,93 +4,64 @@
44
<H2> Version Number Semantics </H2>
55

66
The version number is a sequence of four numbers, generally separated by dots when written. These are, in order,
7-
the Major number, the Minor number, the Revision number, and the Mission Revision number. Missions may modify the Mission Revision information as needed to suit their needs.
7+
the Major number, the Minor number, the Revision number, and the Mission Revision number.
88

9-
It is important to note that Major, Minor, and Revision numbers are only updated upon official releases of tagged
10-
versions, \b NOT on development builds. We aim to follow the Semantic Versioning v2.0 specification with our versioning.
9+
It is important to note that version numbers are only updated upon official releases of tagged
10+
versions, \b NOT on development builds. We aim to follow the Semantic Versioning v2.0 specification
11+
with our versioning.
1112

12-
The MAJOR number shall be incremented on release to indicate when there is a change to an API
13+
The MAJOR number is incremented on release to indicate when there is a change to an API
1314
that may cause existing, correctly-written cFS components to stop working. It may also be incremented for a
1415
release that contains changes deemed to be of similar impact, even if there are no actual changes to the API.
1516

16-
The MINOR number shall be incremented on release to indicate the addition of features to the API
17+
The MINOR number is incremented on release to indicate the addition of features to the API
1718
which do not break the existing code. It may also be incremented for a release that contains changes deemed
1819
to be of similar impact, even if there are no actual updates to the API.
1920

20-
The REVISION number shall be incremented on changes that benefit from unique identification such as bug fixes or major documentation updates.
21-
The Revision number may also be updated if there are other changes contained within a release that make it desirable for applications to distinguish one release from another.
22-
WARNING: The revision number is set to the number 99 in development builds. To distinguish between development builds refer to the BUILD_NUMBER and BUILD_BASELINE detailed in the section "Identifying Development Builds".
21+
The REVISION number shall be incremented on changes that benefit from unique identification such as
22+
bug fixes or major documentation updates.
23+
The Revision number may also be updated if there are other changes contained within a release that make
24+
it desirable for applications to distinguish one release from another.
25+
WARNING: The revision number is set to the number 99 in development builds. To distinguish between development
26+
builds refer to the BUILD_NUMBER and BUILD_BASELINE detailed in the section "Identifying Development Builds".
2327

24-
The Major, Minor, and Revision numbers are provided in this header file as part of the API
25-
definition; this macro must expand to a simple integer value, so that it can be used in simple if directives by the macro preprocessor.
26-
27-
The Mission Version number shall be set to zero in all officially released packages, and is entirely reserved for the use of the mission. The Mission Version is provided as a simple macro defined in the cfe_platform_cfg.h header file.
28-
29-
<H2> Version Number Flexibility </H2>
30-
31-
The major number may increment when there is no breaking change to the API, if the changes are significant enough to
32-
warrant the same level of attention as a breaking API change.
33-
34-
The minor number may increment when there have been no augmentations to the API, if changes are as significant as
35-
additions to the public API.
36-
37-
The revision numbers may increment in implementations where no actual implementation-specific code has changed, if
38-
there are other changes within the release with similar significance.
28+
The Mission Version number is set to zero in all official releases, and is reserved for the mission use.
3929

4030
<H2> How and Where Defined </H2>
4131

42-
The Major, Minor, and Revision components of the version are provided as simple macros defined in the cfe_version.h header file as part of the API definition; these macros must expand to simple integer values, so that they can be used in simple if directives by the macro preprocessor.
32+
The version numbers are provided as simple macros defined in the cfe_version.h header file as part of the
33+
API definition; these macros must expand to simple integer values, so that they can be used in simple if
34+
directives by the macro preprocessor.
4335

44-
The Mission Version is provided as a simple macro defined in the cfe_platform_cfg.h header file. As delivered in official releases, these macros must expand to simple integer values, so that they can be used in simple macro preprocessor conditions, but delivered code should not prevent a mission from, for example, deciding that the Mission Version is actually a text string.
36+
Note the Mission Version number is provided for missions to be able to identify unique changes they
37+
have made to the released software (via clone and own).
4538

4639
<H2> Identifying Development Builds </H2>
4740

4841
In order to distinguish between development versions, we also provide a BUILD_NUMBER.
4942

5043
The BUILD_NUMBER reflects the number of commits since the BUILD_BASELINE, a baseline git tag, for each particular
51-
component. The BUILD_NUMBER integer increases monotonically for a given development cycle. The BUILD_BASELINE identifies the current development cycle and is a git tag with format vX.Y.Z. The Codename used in the version string also refers to the current development cycle. When a new baseline tag and codename are created, the the BUILD_NUMBER resets to zero and begins increasing
52-
from a new baseline.
53-
54-
<H2> Templates for the version and version string </H2>
55-
56-
The following templates are the code to be used in cfe_version.h for either official releases or development builds. The apps and repositories follow the same pattern by replacing the CFE_ prefix with the appropriate name; for example, osal uses OS_, psp uses CFE_PSP_IMPL, and so on.
57-
58-
<H3> Template for Official Releases </H3>
59-
60-
\verbatim
61-
62-
/*<! Official Release Version Number */
63-
#define CFE_SRC_VERSION \
64-
CFE_STR(CFE_MAJOR_VERSION) "." \
65-
CFE_STR(CFE_MINOR_VERSION) "." \
66-
CFE_STR(CFE_REVISION) "." \
67-
CFE_STR(CFE_MISSION_REV)
68-
69-
#define CFE_VERSION_STRING \
70-
"cFE version " CFE_SRC_VERSION
71-
72-
\endverbatim
73-
74-
<H3> Template for Development Builds </H3>
75-
76-
\verbatim
77-
78-
/*! @brief Development Build Version Number.
79-
* Baseline git tag + Number of commits since baseline. @n
80-
* See cfs_versions.dox for format differences between development and release versions.
81-
*/
82-
#define CFE_SRC_VERSION \
83-
CFE_BUILD_BASELINE CFE_STR(CFE_BUILD_NUMBER)
84-
85-
/*! @brief Development Build Version String.
86-
* Reports the current development build's baseline, number, and name. Also includes a note about the latest official version. @n
87-
* See cfs_versions.dox for format differences between development and release versions.
88-
*/
89-
#define CFE_VERSION_STRING \
90-
" cFE Development Build " \
91-
CFE_SRC_VERSION " (Codename: CONSTELLATION_NAME)" /* Codename for current development */ \
92-
", Last Official Release: cfe vX.Y.Z" /* For full support please use this version */
93-
94-
\endverbatim
44+
component. The BUILD_NUMBER integer increases monotonically for a given development cycle. The BUILD_BASELINE
45+
identifies the current development cycle and is a git tag with format vX.Y.Z. The Codename used in the version
46+
string also refers to the current development cycle. When a new baseline tag and codename are created, the the
47+
BUILD_NUMBER resets to zero and begins increasing from a new baseline.
48+
49+
<H2> Templates for the short and long version string </H2>
50+
51+
See cfe_version.h for the standard layout and definition of version information.
52+
The apps and repositories follow the same pattern by replacing the CFE_ prefix with the appropriate
53+
name; for example, osal uses OS_, psp uses CFE_PSP_IMPL, and so on.
54+
55+
Suggested pattern for development:
56+
- XXX_SRC_VERSION: REFRENCE_GIT_TAG"+dev"BUILD_NUMBER
57+
- Example: "v6.8.0-rc1+dev123"
58+
- XXX_VERSION_STRING: "XXX DEVELOPMENT BUILD "XXX_SRC_VERSION" (Codename: YYY), Last Official Release: ZZZ"
59+
- Example: "cFE DEVELOPMENT BUILD v6.8.0-rc1+dev123 (Codename: Bootes), Last Official Release: cfe v6.7.0"
60+
61+
Suggested pattern for official releases:
62+
- XXX_SRC_VERSION: OFFICIAL_GIT_TAG
63+
- Example: "v7.0.0"
64+
- XXX_VERSION_STRING: "XXX OFFICIAL RELEASE "XXX_SRC_VERSION" (Codename: YYY)"
65+
- Example: "cFE OFFICIAL RELEASE v7.0.0 (Codename: Caelum)"
9566

9667
**/

0 commit comments

Comments
 (0)