| 1 |
= Versioning |
| 2 |
|
| 3 |
OpenSCAP release versions have the common *$major.$minor.$patch* format. |
| 4 |
|
| 5 |
Most of the bleeding edge unstable development happens in the *main* branch. |
| 6 |
This branch is likely to break API and ABI and is likely not suitable for anyone |
| 7 |
but the developers. Only release candidates or other test releases are tagged |
| 8 |
from the main branch. |
| 9 |
|
| 10 |
*$major.$minor* together (e.g.: `1.2`) are called *feature releases*. As the |
| 11 |
name suggests, once a feature release is made, no new features are added to it. |
| 12 |
For example once `1.2.0` is released, `1.2.1`, `1.2.2`, `1.2.3`, etc. shall not |
| 13 |
have more features than `1.2.0`. Patch version 0 (e.g.: `1.2.0`) establishes |
| 14 |
the feature set. |
| 15 |
|
| 16 |
Feature releases form a maintenance branch that we call *maint-$major.$minor*. |
| 17 |
For example the maintenance branch for `1.2.x` is called `maint-1.2` in the git |
| 18 |
repository. This means that all releases with version `1.2.x` shall be tagged |
| 19 |
from the `maint-1.2` branch. |
| 20 |
|
| 21 |
Releases from the same maintenance branch are called *sibling releases*. |
| 22 |
|
| 23 |
== Maintenance branch rules |
| 24 |
|
| 25 |
Library users tend to use released versions, because that is the only sure way |
| 26 |
to avoid rebuilds, breakages and/or mysterious bugs caused by ABI |
| 27 |
incompatibility. To make sure our released versions do not suffer from these we |
| 28 |
maintain them in a separate branch and only allow commits that pass very strict |
| 29 |
rules. |
| 30 |
|
| 31 |
=== No API/ABI breaks! |
| 32 |
|
| 33 |
Only changes that do not break API and ABI can be applied to the maintenance |
| 34 |
branch. This is a non-negotiable rule! If a breaking change is applied |
| 35 |
to a maintenance branch by mistake it has to be reverted. ABI checking should |
| 36 |
be done before releases using abi-compliance-checker. |
| 37 |
|
| 38 |
=== No changes to documented behavior |
| 39 |
|
| 40 |
If a certain behavior of the library or tools is documented it cannot be changed |
| 41 |
in the maintenance branch even if it is considered broken or wrong. Only changes |
| 42 |
that make the implementation more compliant to documentation can be considered |
| 43 |
- these changes are most commonly bugfixes. |
| 44 |
|
| 45 |
Incompatible improvements shall always be done in the development (`main`) |
| 46 |
branch if they are done at all. The commits should be accompanied with |
| 47 |
appropriate changes in documentation. |
| 48 |
|
| 49 |
Of course there is a gray area in this rule. In cases where the documentation |
| 50 |
is vague and permits multiple interpretations we prefer to make the |
| 51 |
documentation explicit and consistent with established behavior. In other |
| 52 |
words: changing documentation is preferred to changing behavior. |
| 53 |
|
| 54 |
=== Only careful changes of supporting files (XSD schemas, XSLT) |
| 55 |
|
| 56 |
Only small non-invasive changes should be considered. Make sure old use-cases |
| 57 |
aren't broken. |
| 58 |
|
| 59 |
As an example the report XSLT may get a small usability improvement - it will |
| 60 |
show number of notchecked rules along with all the other information. However |
| 61 |
we may not remove or replace information from it in the maintenance branch |
| 62 |
- users may be relying on it being there. Radically moving information around |
| 63 |
in the report is also discouraged. It's very hard to lay formal rules |
| 64 |
surrounding this so please use your best judgement. |
| 65 |
|
| 66 |
=== All applied changes must be propagated |
| 67 |
|
| 68 |
Bugfixes applied to maintenance branches must be merged up. For example, |
| 69 |
a bugfix applied to `maint-1.2` shall be merged to `maint-1.x` (where `x > 2`) |
| 70 |
which then shall be merged to `main`. |
| 71 |
|
| 72 |
This rule makes sure we always carry bugfixes to new feature releases. |
| 73 |
|
| 74 |
In cases where the bugfix does not make sense in newer feature releases, a noop |
| 75 |
merge shall be done. For example, a fix for functionality that was removed in |
| 76 |
a newer feature release. |
| 77 |
|
| 78 |
== Frozen branches |
| 79 |
|
| 80 |
Maintenance branches can be frozen which further restricts the changes that can |
| 81 |
be applied to them. Only bugfixes are permitted in frozen branches. |
| 82 |
|
| 83 |
== Maintenance status |
| 84 |
|
| 85 |
* 1.3.x: supported |
| 86 |
* 1.2.x: supported |
| 87 |
* 1.1.x: unsupported since 2015-10-16 |
| 88 |
* 1.0.x: unsupported since 2017-06-01 |
| 89 |
|
| 90 |
== Feature release |
| 91 |
|
| 92 |
A new feature release will typically contain new symbols and ABI breaking |
| 93 |
changes in existing symbols, although this is not a rule. Therefore it will |
| 94 |
likely but not necessarily have incompatible ABI (and thus different soname). |
| 95 |
|
| 96 |
Deprecated symbols from feature release `N` shall be removed in feature release |
| 97 |
`N + 1`. For example, deprecated symbols from `1.1.x` shall be removed from |
| 98 |
`1.2.x`. In other words, deprecated symbols shall not be carried to the future |
| 99 |
feature releases. |
| 100 |
|