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 | Project Testing and Release Process |
| 5 | *********************************** |
| 6 | |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 7 | Day to Day Development |
| 8 | ====================== |
| 9 | |
| 10 | This section details how the project tests changes, through automation |
| 11 | on the Autobuilder or with the assistance of QA teams, through to making |
| 12 | releases. |
| 13 | |
| 14 | The project aims to test changes against our test matrix before those |
| 15 | changes are merged into the master branch. As such, changes are queued |
| 16 | up in batches either in the ``master-next`` branch in the main trees, or |
| 17 | in user trees such as ``ross/mut`` in ``poky-contrib`` (Ross Burton |
| 18 | helps review and test patches and this is his testing tree). |
| 19 | |
| 20 | We have two broad categories of test builds, including "full" and |
| 21 | "quick". On the Autobuilder, these can be seen as "a-quick" and |
| 22 | "a-full", simply for ease of sorting in the UI. Use our Autobuilder |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 23 | :yocto_ab:`console view </typhoon/#/console>` to see where we manage most |
| 24 | test-related items. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 25 | |
| 26 | Builds are triggered manually when the test branches are ready. The |
| 27 | builds are monitored by the SWAT team. For additional information, see |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 28 | :yocto_wiki:`/Yocto_Build_Failure_Swat_Team`. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 29 | If successful, the changes would usually be merged to the ``master`` |
| 30 | branch. If not successful, someone would respond to the changes on the |
| 31 | mailing list explaining that there was a failure in testing. The choice |
| 32 | of quick or full would depend on the type of changes and the speed with |
| 33 | which the result was required. |
| 34 | |
| 35 | The Autobuilder does build the ``master`` branch once daily for several |
| 36 | reasons, in particular, to ensure the current ``master`` branch does |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 37 | build, but also to keep (:yocto_git:`yocto-testresults </yocto-testresults/>`), |
| 38 | (:yocto_git:`buildhistory </poky-buildhistory/>`), and |
| 39 | our sstate up to date. On the weekend, there is a ``master-next`` build |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 40 | instead to ensure the test results are updated for the less frequently |
| 41 | run targets. |
| 42 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 43 | Performance builds (``buildperf-\*`` targets in the console) are triggered |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 44 | separately every six hours and automatically push their results to the |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 45 | :yocto_git:`buildstats </yocto-buildstats/>` repository. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 46 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 47 | The "quick" targets have been selected to be the ones which catch the |
| 48 | most failures or give the most valuable data. We run "fast" ptests in |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 49 | this case for example but not the ones which take a long time. The quick |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 50 | target doesn't include ``\*-lsb`` builds for all architectures, some ``world`` |
| 51 | builds and doesn't trigger performance tests or ``ltp`` testing. The full |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 52 | build includes all these things and is slower but more comprehensive. |
| 53 | |
| 54 | Release Builds |
| 55 | ============== |
| 56 | |
| 57 | The project typically has two major releases a year with a six month |
| 58 | cadence in April and October. Between these there would be a number of |
Andrew Geissler | 3b8a17c | 2021-04-15 15:55:55 -0500 | [diff] [blame] | 59 | milestone releases (usually four) with the final one being stabilization |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 60 | only along with point releases of our stable branches. |
| 61 | |
| 62 | The build and release process for these project releases is similar to |
Andrew Geissler | 3b8a17c | 2021-04-15 15:55:55 -0500 | [diff] [blame] | 63 | that in :ref:`test-manual/test-process:day to day development`, in that the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 64 | a-full target of the Autobuilder is used but in addition the form is |
Andrew Geissler | 3b8a17c | 2021-04-15 15:55:55 -0500 | [diff] [blame] | 65 | configured to generate and publish artifacts and the milestone number, |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 66 | version, release candidate number and other information is entered. The |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 67 | box to "generate an email to QA" is also checked. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 68 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 69 | When the build completes, an email is sent out using the ``send-qa-email`` |
| 70 | script in the :yocto_git:`yocto-autobuilder-helper </yocto-autobuilder-helper>` |
| 71 | repository to the list of people configured for that release. Release builds |
| 72 | are placed into a directory in https://autobuilder.yocto.io/pub/releases on the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 73 | Autobuilder which is included in the email. The process from here is |
| 74 | more manual and control is effectively passed to release engineering. |
| 75 | The next steps include: |
| 76 | |
| 77 | - QA teams respond to the email saying which tests they plan to run and |
| 78 | when the results will be available. |
| 79 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 80 | - QA teams run their tests and share their results in the |
| 81 | :yocto_git:`yocto-testresults-contrib </yocto-testresults-contrib>` |
| 82 | repository, along with a summary of their findings. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 83 | |
| 84 | - Release engineering prepare the release as per their process. |
| 85 | |
| 86 | - Test results from the QA teams are included into the release in |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 87 | separate directories and also uploaded to the |
| 88 | :yocto_git:`yocto-testresults </yocto-testresults>` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 89 | repository alongside the other test results for the given revision. |
| 90 | |
| 91 | - The QA report in the final release is regenerated using resulttool to |
| 92 | include the new test results and the test summaries from the teams |
| 93 | (as headers to the generated report). |
| 94 | |
| 95 | - The release is checked against the release checklist and release |
| 96 | readiness criteria. |
| 97 | |
| 98 | - A final decision on whether to release is made by the YP TSC who have |
| 99 | final oversight on release readiness. |