Andrew Geissler | f034379 | 2020-11-18 10:42:21 -0600 | [diff] [blame] | 1 | .. SPDX-License-Identifier: CC-BY-SA-2.0-UK |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 2 | |
| 3 | ***************************************************** |
| 4 | Yocto Project Releases and the Stable Release Process |
| 5 | ***************************************************** |
| 6 | |
| 7 | The Yocto Project release process is predictable and consists of both |
| 8 | major and minor (point) releases. This brief chapter provides |
| 9 | information on how releases are named, their life cycle, and their |
| 10 | stability. |
| 11 | |
| 12 | Major and Minor Release Cadence |
| 13 | =============================== |
| 14 | |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 15 | The Yocto Project delivers major releases (e.g. &DISTRO;) using a six |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 16 | month cadence roughly timed each April and October of the year. |
| 17 | Following are examples of some major YP releases with their codenames |
Andrew Geissler | 3b8a17c | 2021-04-15 15:55:55 -0500 | [diff] [blame] | 18 | also shown. See the ":ref:`ref-manual/release-process:major release codenames`" |
| 19 | section for information on codenames used with major releases. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 20 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 21 | - 4.1 ("Langdale") |
| 22 | - 4.0 ("Kirkstone") |
| 23 | - 3.4 ("Honister") |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 24 | |
| 25 | While the cadence is never perfect, this timescale facilitates |
| 26 | regular releases that have strong QA cycles while not overwhelming users |
| 27 | with too many new releases. The cadence is predictable and avoids many |
| 28 | major holidays in various geographies. |
| 29 | |
| 30 | The Yocto project delivers minor (point) releases on an unscheduled |
| 31 | basis and are usually driven by the accumulation of enough significant |
| 32 | fixes or enhancements to the associated major release. Following are |
| 33 | some example past point releases: |
| 34 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 35 | - 4.1.3 |
| 36 | - 4.0.8 |
| 37 | - 3.4.4 |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 38 | |
| 39 | The point release |
| 40 | indicates a point in the major release branch where a full QA cycle and |
| 41 | release process validates the content of the new branch. |
| 42 | |
| 43 | .. note:: |
| 44 | |
| 45 | Realize that there can be patches merged onto the stable release |
| 46 | branches as and when they become available. |
| 47 | |
| 48 | Major Release Codenames |
| 49 | ======================= |
| 50 | |
| 51 | Each major release receives a codename that identifies the release in |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 52 | the :ref:`overview-manual/development-environment:yocto project source repositories`. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 53 | The concept is that branches of :term:`Metadata` with the same |
| 54 | codename are likely to be compatible and thus work together. |
| 55 | |
| 56 | .. note:: |
| 57 | |
| 58 | Codenames are associated with major releases because a Yocto Project |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 59 | release number (e.g. &DISTRO;) could conflict with a given layer or |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 60 | company versioning scheme. Codenames are unique, interesting, and |
| 61 | easily identifiable. |
| 62 | |
| 63 | Releases are given a nominal release version as well but the codename is |
| 64 | used in repositories for this reason. You can find information on Yocto |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 65 | Project releases and codenames at :yocto_wiki:`/Releases`. |
| 66 | |
| 67 | Our :doc:`/migration-guides/index` detail how to migrate from one release of |
| 68 | the Yocto Project to the next. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 69 | |
| 70 | Stable Release Process |
| 71 | ====================== |
| 72 | |
| 73 | Once released, the release enters the stable release process at which |
| 74 | time a person is assigned as the maintainer for that stable release. |
| 75 | This maintainer monitors activity for the release by investigating and |
| 76 | handling nominated patches and backport activity. Only fixes and |
| 77 | enhancements that have first been applied on the "master" branch (i.e. |
| 78 | the current, in-development branch) are considered for backporting to a |
| 79 | stable release. |
| 80 | |
| 81 | .. note:: |
| 82 | |
| 83 | The current Yocto Project policy regarding backporting is to consider |
| 84 | bug fixes and security fixes only. Policy dictates that features are |
| 85 | not backported to a stable release. This policy means generic recipe |
| 86 | version upgrades are unlikely to be accepted for backporting. The |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 87 | exception to this policy occurs when there is a strong reason such as |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 88 | the fix happens to also be the preferred upstream approach. |
| 89 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 90 | .. _ref-long-term-support-releases: |
| 91 | |
| 92 | Long Term Support Releases |
| 93 | ========================== |
| 94 | |
| 95 | While stable releases are supported for a duration of seven months, |
| 96 | some specific ones are now supported for a longer period by the Yocto |
| 97 | Project, and are called Long Term Support (:term:`LTS`) releases. |
| 98 | |
| 99 | This started with version 3.1 ("Dunfell"), released in April 2020, that |
| 100 | the project committed to supporting until the next :term:`LTS` release was out. |
| 101 | This next :term:`LTS` release, version 4.0 ("Kirkstone"), was released in May 2022 |
| 102 | and offered with two years of support too. |
| 103 | |
| 104 | However, as an experiment, support for "Dunfell" was extended to four years, until |
| 105 | April 2024, therefore offering more stability to projects and leaving more time |
| 106 | to upgrade to the latest :term:`LTS` release. The project hasn't made any commitment to |
| 107 | extending "Kirkstone" support too, as this will also depend on available funding |
| 108 | for such an effort. |
| 109 | |
| 110 | When significant issues are found, :term:`LTS` releases allow to publish |
| 111 | fixes not only for the current stable release, but also to the |
| 112 | :term:`LTS` releases that are still supported. Older stable releases which |
| 113 | have reached their End of Life (EOL) won't receive such updates. |
| 114 | |
| 115 | See :yocto_wiki:`/Stable_Release_and_LTS` for details about the management |
| 116 | of stable and :term:`LTS` releases. |
| 117 | |
| 118 | .. image:: svg/releases.* |
| 119 | :width: 100% |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 120 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 121 | .. note:: |
| 122 | |
| 123 | In some circumstances, a layer can be created by the community in order to |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 124 | add a specific feature or support a new version of some package for an :term:`LTS` |
| 125 | release. This is called a :term:`Mixin` layer. These are thin and specific |
| 126 | purpose layers which can be stacked with an :term:`LTS` release to "mix" a specific |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 127 | feature into that build. These are created on an as-needed basis and |
| 128 | maintained by the people who need them. |
| 129 | |
| 130 | Policies on testing these layers depend on how widespread their usage is and |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 131 | determined on a case-by-case basis. You can find some :term:`Mixin` layers in the |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 132 | :yocto_git:`meta-lts-mixins </meta-lts-mixins>` repository. While the Yocto |
| 133 | Project provides hosting for those repositories, it does not provides |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 134 | testing on them. Other :term:`Mixin` layers may be released elsewhere by the wider |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 135 | community. |
| 136 | |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 137 | Testing and Quality Assurance |
| 138 | ============================= |
| 139 | |
| 140 | Part of the Yocto Project development and release process is quality |
| 141 | assurance through the execution of test strategies. Test strategies |
| 142 | provide the Yocto Project team a way to ensure a release is validated. |
| 143 | Additionally, because the test strategies are visible to you as a |
| 144 | developer, you can validate your projects. This section overviews the |
| 145 | available test infrastructure used in the Yocto Project. For information |
| 146 | on how to run available tests on your projects, see the |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 147 | ":ref:`dev-manual/runtime-testing:performing automated runtime testing`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 148 | section in the Yocto Project Development Tasks Manual. |
| 149 | |
| 150 | The QA/testing infrastructure is woven into the project to the point |
| 151 | where core developers take some of it for granted. The infrastructure |
| 152 | consists of the following pieces: |
| 153 | |
| 154 | - ``bitbake-selftest``: A standalone command that runs unit tests on |
| 155 | key pieces of BitBake and its fetchers. |
| 156 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 157 | - :ref:`ref-classes-sanity`: This automatically |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 158 | included class checks the build environment for missing tools (e.g. |
| 159 | ``gcc``) or common misconfigurations such as |
| 160 | :term:`MACHINE` set incorrectly. |
| 161 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 162 | - :ref:`ref-classes-insane`: This class checks the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 163 | generated output from builds for sanity. For example, if building for |
| 164 | an ARM target, did the build produce ARM binaries. If, for example, |
| 165 | the build produced PPC binaries then there is a problem. |
| 166 | |
Patrick Williams | 975a06f | 2022-10-21 14:42:47 -0500 | [diff] [blame] | 167 | - :ref:`ref-classes-testimage`: This class |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 168 | performs runtime testing of images after they are built. The tests |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 169 | are usually used with :doc:`QEMU </dev-manual/qemu>` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 170 | to boot the images and check the combined runtime result boot |
| 171 | operation and functions. However, the test can also use the IP |
| 172 | address of a machine to test. |
| 173 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 174 | - :ref:`ptest <dev-manual/packages:testing packages with ptest>`: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 175 | Runs tests against packages produced during the build for a given |
Andrew Geissler | 3b8a17c | 2021-04-15 15:55:55 -0500 | [diff] [blame] | 176 | piece of software. The test allows the packages to be run within a |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 177 | target image. |
| 178 | |
| 179 | - ``oe-selftest``: Tests combination BitBake invocations. These tests |
| 180 | operate outside the OpenEmbedded build system itself. The |
| 181 | ``oe-selftest`` can run all tests by default or can run selected |
| 182 | tests or test suites. |
| 183 | |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 184 | Originally, much of this testing was done manually. However, significant |
| 185 | effort has been made to automate the tests so that more people can use |
| 186 | them and the Yocto Project development team can run them faster and more |
| 187 | efficiently. |
| 188 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 189 | The Yocto Project's main Autobuilder (&YOCTO_AB_URL;) publicly tests each Yocto |
| 190 | Project release's code in the :oe_git:`openembedded-core </openembedded-core>`, |
| 191 | :yocto_git:`poky </poky>` and :oe_git:`bitbake </bitbake>` repositories. The |
| 192 | testing occurs for both the current state of the "master" branch and also for |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 193 | submitted patches. Testing for submitted patches usually occurs in the |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 194 | in the "master-next" branch in the :yocto_git:`poky </poky>` repository. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 195 | |
| 196 | .. note:: |
| 197 | |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 198 | You can find all these branches in the |
| 199 | :ref:`overview-manual/development-environment:yocto project source repositories`. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 200 | |
| 201 | Testing within these public branches ensures in a publicly visible way |
| 202 | that all of the main supposed architectures and recipes in OE-Core |
| 203 | successfully build and behave properly. |
| 204 | |
| 205 | Various features such as ``multilib``, sub architectures (e.g. ``x32``, |
| 206 | ``poky-tiny``, ``musl``, ``no-x11`` and and so forth), |
| 207 | ``bitbake-selftest``, and ``oe-selftest`` are tested as part of the QA |
| 208 | process of a release. Complete testing and validation for a release |
| 209 | takes the Autobuilder workers several hours. |
| 210 | |
| 211 | .. note:: |
| 212 | |
| 213 | The Autobuilder workers are non-homogeneous, which means regular |
| 214 | testing across a variety of Linux distributions occurs. The |
| 215 | Autobuilder is limited to only testing QEMU-based setups and not real |
| 216 | hardware. |
| 217 | |
| 218 | Finally, in addition to the Autobuilder's tests, the Yocto Project QA |
| 219 | team also performs testing on a variety of platforms, which includes |
| 220 | actual hardware, to ensure expected results. |