summaryrefslogtreecommitdiffstats
path: root/documentation/test-manual/test-manual-test-process.rst
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2020-06-26 19:10:51 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-17 10:09:33 +0100
commit9bd69b1f1d71a9692189beeac75af9dfbad816cc (patch)
tree305347fca899074aed5610e0e82eaec180bf630c /documentation/test-manual/test-manual-test-process.rst
parentc40a8d5904c29046f1cbbeb998e6cd7c24f9b206 (diff)
downloadpoky-9bd69b1f1d71a9692189beeac75af9dfbad816cc.tar.gz
sphinx: initial sphinx support
This commit is autogenerated pandoc to generate an inital set of reST files based on DocBook XML files. A .rst file is generated for each .xml files in all manuals with this command: cd <manual> for i in *.xml; do \ pandoc -f docbook -t rst --shift-heading-level-by=-1 \ $i -o $(basename $i .xml).rst \ done The conversion was done with: pandoc 2.9.2.1-91 (Arch Linux). Also created an initial top level index file for each document, and added all 'books' to the top leve index.rst file. The YP manuals layout is organized as: Book Chapter Section Section Section Sphinx uses section headers to create the document structure. ReStructuredText defines sections headers like that: To break longer text up into sections, you use section headers. These are a single line of text (one or more words) with adornment: an underline alone, or an underline and an overline together, in dashes "-----", equals "======", tildes "~~~~~~" or any of the non-alphanumeric characters = - ` : ' " ~ ^ _ * + # < > that you feel comfortable with. An underline-only adornment is distinct from an overline-and-underline adornment using the same character. The underline/overline must be at least as long as the title text. Be consistent, since all sections marked with the same adornment style are deemed to be at the same level: Let's define the following convention when converting from Docbook: Book => overline === (Title) Chapter => overline *** (1.) Section => ==== (1.1) Section => ---- (1.1.1) Section => ~~~~ (1.1.1.1) Section => ^^^^ (1.1.1.1.1) During the conversion with pandoc, we used --shift-heading-level=-1 to convert most of DocBook headings automatically. However with this setting, the Chapter header was removed, so I added it back manually. Without this setting all headings were off by one, which was more difficult to manually fix. At least with this change, we now have the same TOC with Sphinx and DocBook. (From yocto-docs rev: 3c73d64a476d4423ee4c6808c685fa94d88d7df8) Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/test-manual/test-manual-test-process.rst')
-rw-r--r--documentation/test-manual/test-manual-test-process.rst103
1 files changed, 103 insertions, 0 deletions
diff --git a/documentation/test-manual/test-manual-test-process.rst b/documentation/test-manual/test-manual-test-process.rst
new file mode 100644
index 0000000000..19c9b565de
--- /dev/null
+++ b/documentation/test-manual/test-manual-test-process.rst
@@ -0,0 +1,103 @@
1***********************************
2Project Testing and Release Process
3***********************************
4
5.. _test-daily-devel:
6
7Day to Day Development
8======================
9
10This section details how the project tests changes, through automation
11on the Autobuilder or with the assistance of QA teams, through to making
12releases.
13
14The project aims to test changes against our test matrix before those
15changes are merged into the master branch. As such, changes are queued
16up in batches either in the ``master-next`` branch in the main trees, or
17in user trees such as ``ross/mut`` in ``poky-contrib`` (Ross Burton
18helps review and test patches and this is his testing tree).
19
20We 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
23console view to see where me manage most test-related items, available
24at: `https://autobuilder.yoctoproject.org/typhoon/#/console <#>`__.
25
26Builds are triggered manually when the test branches are ready. The
27builds are monitored by the SWAT team. For additional information, see
28`https://wiki.yoctoproject.org/wiki/Yocto_Build_Failure_Swat_Team <#>`__.
29If successful, the changes would usually be merged to the ``master``
30branch. If not successful, someone would respond to the changes on the
31mailing list explaining that there was a failure in testing. The choice
32of quick or full would depend on the type of changes and the speed with
33which the result was required.
34
35The Autobuilder does build the ``master`` branch once daily for several
36reasons, in particular, to ensure the current ``master`` branch does
37build, but also to keep ``yocto-testresults``
38(`http://git.yoctoproject.org/cgit.cgi/yocto-testresults/ <#>`__),
39buildhistory
40(`http://git.yoctoproject.org/cgit.cgi/poky-buildhistory/ <#>`__), and
41our sstate up to date. On the weekend, there is a master-next build
42instead to ensure the test results are updated for the less frequently
43run targets.
44
45Performance builds (buildperf-\* targets in the console) are triggered
46separately every six hours and automatically push their results to the
47buildstats repository at:
48`http://git.yoctoproject.org/cgit.cgi/yocto-buildstats/ <#>`__.
49
50The 'quick' targets have been selected to be the ones which catch the
51most failures or give the most valuable data. We run 'fast' ptests in
52this case for example but not the ones which take a long time. The quick
53target doesn't include \*-lsb builds for all architectures, some world
54builds and doesn't trigger performance tests or ltp testing. The full
55build includes all these things and is slower but more comprehensive.
56
57.. _test-yocto-project-autobuilder-overview:
58
59Release Builds
60==============
61
62The project typically has two major releases a year with a six month
63cadence in April and October. Between these there would be a number of
64milestone releases (usually four) with the final one being stablization
65only along with point releases of our stable branches.
66
67The build and release process for these project releases is similar to
68that in `Day to Day Development <#test-daily-devel>`__, in that the
69a-full target of the Autobuilder is used but in addition the form is
70configured to generate and publish artefacts and the milestone number,
71version, release candidate number and other information is entered. The
72box to "generate an email to QA"is also checked.
73
74When the build completes, an email is sent out using the send-qa-email
75script in the ``yocto-autobuilder-helper`` repository to the list of
76people configured for that release. Release builds are placed into a
77directory in `https://autobuilder.yocto.io/pub/releases <#>`__ on the
78Autobuilder which is included in the email. The process from here is
79more manual and control is effectively passed to release engineering.
80The next steps include:
81
82- QA teams respond to the email saying which tests they plan to run and
83 when the results will be available.
84
85- QA teams run their tests and share their results in the yocto-
86 testresults-contrib repository, along with a summary of their
87 findings.
88
89- Release engineering prepare the release as per their process.
90
91- Test results from the QA teams are included into the release in
92 separate directories and also uploaded to the yocto-testresults
93 repository alongside the other test results for the given revision.
94
95- The QA report in the final release is regenerated using resulttool to
96 include the new test results and the test summaries from the teams
97 (as headers to the generated report).
98
99- The release is checked against the release checklist and release
100 readiness criteria.
101
102- A final decision on whether to release is made by the YP TSC who have
103 final oversight on release readiness.