test-process.rst 4.6 KB

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