<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.yoctoproject.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jussi+Kukkonen</id>
	<title>Yocto Project - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.yoctoproject.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jussi+Kukkonen"/>
	<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/Special:Contributions/Jussi_Kukkonen"/>
	<updated>2026-11-24T14:02:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://wiki.yoctoproject.org/wiki/index.php?title=Yocto_Build_Failure_Swat_Team&amp;diff=31158</id>
		<title>Yocto Build Failure Swat Team</title>
		<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/index.php?title=Yocto_Build_Failure_Swat_Team&amp;diff=31158"/>
		<updated>2017-08-31T06:50:07Z</updated>

		<summary type="html">&lt;p&gt;Jussi Kukkonen: Members: removing myself&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| style=&amp;quot;color:black; background-color:#b8ddff&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;10&amp;quot; class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Note&#039;&#039;&#039;: The SWAT process has changed. Please read the new process information (up to, and including, section 6). If you&#039;re already au-fait with the new process you may want the [[#Process_summary|summary bullets]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The role of the SWAT team is to monitor the autobuilder and investigate all failures to ensure they are logged and brought to the attention of a suitable owner.&lt;br /&gt;
&lt;br /&gt;
== Scope ==&lt;br /&gt;
&lt;br /&gt;
All builds run on the public autobuilder are important for the Yocto Project, whether they be a post-merge validation run (for master or a release branch) or a pre-merge test build (for master-next, ross/mut and others). Any build should be monitored by the SWAT team unless the [[BuildLog]] entry for that build indicates otherwise. That is; SWAT is opt-out by whomever triggers a build on the Autobuilder, not opt-in.&lt;br /&gt;
&lt;br /&gt;
== Pre-triage ==&lt;br /&gt;
&lt;br /&gt;
SWAT isn&#039;t responsible for resolving issues encountered on the Autobuilder. Their focus is on performing minimal analysis of a failure in order to ensure that it is logged and brought to the attention of a suitable owner, a process we&#039;ll refer to as pre-triage.&lt;br /&gt;
&lt;br /&gt;
== Rotation Process ==&lt;br /&gt;
&lt;br /&gt;
The active member rotation takes place weekly at the end of Friday. Usually, this will take a simple round robin order through the members list. In case the next person cannot take the role due to tight schedule, vacation or some other reasons, the role will be passed to the next person.&lt;br /&gt;
&lt;br /&gt;
=== Roles ===&lt;br /&gt;
&#039;&#039;&#039;Active member&#039;&#039;&#039;: the currently active member of the SWAT team is expected to monitor the Autobuilder and pre-triage failures in a timely fashion. Team members are active for one week at a time.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SWAT Chair&#039;&#039;&#039;: the SWAT chair provides backup cover for the active member and is a first point of contact for SWAT. [[User:Tracy_Graydon| Tracy Graydon]] is the current SWAT Chair.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SWAT Facilitator&#039;&#039;&#039;: the SWAT facilitator is responsible for managing the rotation process. [[User:Stephen_K._Jolley| Stephen Jolley]] is the current SWAT Facilitator.&lt;br /&gt;
&lt;br /&gt;
== Process ==&lt;br /&gt;
&lt;br /&gt;
The [[BuildLog]] wiki page is automatically updated by the autobuilder when a new build is triggered. An entry should include a reason for triggering the build (as entered in the &amp;quot;Reason&amp;quot; field of the autobuilder &amp;quot;Force build&amp;quot; page when triggering a build) and may also include detail on what the expectations for the build are.&lt;br /&gt;
For each build failure that occurs the active SWAT member is responsible for pre-triaging the failure.&lt;br /&gt;
&lt;br /&gt;
The pre-triage of failures takes two forms:&lt;br /&gt;
&lt;br /&gt;
* for builds against a master or release branch of the poky repo any issues observed should be [[#Filing_bugs | filed in bugzilla]].&lt;br /&gt;
* for builds against other branches (master-next, ross/mut, -next branches for stable releases, etc.), where an issue is caused by a patch not in the master branch, the relevant unmerged patch causing the problem should be replied to on the mailing list. &lt;br /&gt;
** When it isn&#039;t obvious which patch caused the failure file an issue in bugzilla and alert the branch owner (CC or assignment on the bug should suffice). &lt;br /&gt;
** &#039;&#039;&#039;If in doubt file a bug&#039;&#039;&#039;, &#039;&#039;all&#039;&#039; observed errors must be actioned unless a patch has already been sent for the issue (in which case please make note of this in the [[BuildLog]]).&lt;br /&gt;
** Infrastructure issues can be filed in bugzilla, where they will be assigned to [[User:Halstead| Michael Halstead]] (&#039;&#039;halstead&#039;&#039; on irc) by default.&lt;br /&gt;
** Autobuilder logic bugs also go into bugzilla, where they will be assigned to [[User:Joshua_Lock| Joshua Lock]] by default.&lt;br /&gt;
&lt;br /&gt;
The results of pre-triage for an issue should be added to the corresponding entry in the [[BuildLog]], including a link to the pre-triage outcome (bugzilla entry, mailing list post in the archive, etc) and a brief summary of the issue.&lt;br /&gt;
&lt;br /&gt;
Every build failure should be addressed in the [[BuildLog]]. If it is a known issue, an entry with a single line containing &amp;quot;Known Issue&amp;quot; is sufficient (a link to further detail is, of course, much better). This assures others that the failure has been looked at and is being worked on.&lt;br /&gt;
&lt;br /&gt;
=== Filing bugs ===&lt;br /&gt;
&lt;br /&gt;
When filing the bug, please:&lt;br /&gt;
* cut and paste the relevant error in the bug comment, and include the log file as an attachment&lt;br /&gt;
* include the log from the &#039;&#039;CreateAutoConf&#039;&#039; step as an attachment (this ensures the assignee and triage team can quickly asses this issue)&lt;br /&gt;
* include a pointer to the [http://errors.yoctoproject.org ErrorLog] page associated with the failure (as ErrorLog)&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;color:black; background-color:#b8ddff&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;10&amp;quot; class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Note&#039;&#039;&#039;: Autobuilder logs are non-persistent, feel free to include a link to the log in a bug report but be sure to &#039;&#039;also&#039;&#039; attach a copy of the log and include relevant sections copy/pasted into the bug.&lt;br /&gt;
|}&lt;br /&gt;
{| style=&amp;quot;color:black; background-color:#b8ddff&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;10&amp;quot; class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Note&#039;&#039;&#039;: Sometimes, failures occur on autobuilders on private company networks. Do not post links into the bugzilla for these failures as nobody else can access them.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Process summary ===&lt;br /&gt;
&lt;br /&gt;
* Monitor builds via one (or more) of:&lt;br /&gt;
** the autobuilder [https://autobuilder.yoctoproject.org/main/tgrid tgrid], [https://autobuilder.yoctoproject.org/main/grid grid], [https://autobuilder.yoctoproject.org/main/waterfall waterfall]&lt;br /&gt;
** the [[BuildLog]] wiki page&lt;br /&gt;
** the [https://lists.yoctoproject.org/listinfo/yocto-builds yocto-builds] mailing list&lt;br /&gt;
* Pre-triage each failure:&lt;br /&gt;
** File a bugzilla ticket &#039;&#039;OR&#039;&#039; respond to a patch &#039;&#039;OR&#039;&#039; note known issues&lt;br /&gt;
** Update the [[BuildLog]] with the result of pre-triage, linking to issues/mail archives when possible&lt;br /&gt;
&lt;br /&gt;
== Questions / Contact ==&lt;br /&gt;
&lt;br /&gt;
If you have queries about the SWAT process you may reach out to the SWAT Facilitator [[User:Stephen_K._Jolley| Stephen Jolley]] and the SWAT Chair [[User:Tracy_Graydon| Tracy Graydon]].&lt;br /&gt;
&lt;br /&gt;
== Members ==&lt;br /&gt;
&lt;br /&gt;
* Saul Wold (US)&lt;br /&gt;
* Ross Burton (UK)&lt;br /&gt;
* [[User:Leonardo_Sandoval| Leo Sandoval]] (MX)&lt;br /&gt;
* Juro Bystricky (US)&lt;br /&gt;
* Paul Eggleton (NZ)&lt;br /&gt;
* Todor Minchev (US)&lt;br /&gt;
* [[User:Tracy_Graydon| Tracy Graydon]] (US) (SWAT Chair)&lt;br /&gt;
* Alejandro Hernandez (MX)&lt;br /&gt;
* Stephano Cetola (US)&lt;br /&gt;
* Maxin John (FI)&lt;br /&gt;
* California (Cal) Sullivan (US)&lt;br /&gt;
* [[User:Joshua_Lock| Joshua Lock]] (UK) (Autobuilder Maintainer)&lt;br /&gt;
* Armin Kuster (California)&lt;/div&gt;</summary>
		<author><name>Jussi Kukkonen</name></author>
	</entry>
	<entry>
		<id>https://wiki.yoctoproject.org/wiki/index.php?title=Oe-selftest&amp;diff=18586</id>
		<title>Oe-selftest</title>
		<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/index.php?title=Oe-selftest&amp;diff=18586"/>
		<updated>2016-05-17T12:52:42Z</updated>

		<summary type="html">&lt;p&gt;Jussi Kukkonen: use hyphens not dashes for command line&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Oe-selftest is a test framework used for testing the OpenEmbedded build system. Following are some key points in describing oe-selftest:&lt;br /&gt;
* based on Python [http://docs.python.org/2/library/unittest.html unittest]&lt;br /&gt;
* designed to simulate normal usage patterns &lt;br /&gt;
* does not cover image run-time testing&lt;br /&gt;
* implements a new layer that contains generic/specific metadata used only by tests&lt;br /&gt;
&lt;br /&gt;
=How to use=&lt;br /&gt;
&lt;br /&gt;
In order to use oe-selftest, you need the following(in this specific order):&lt;br /&gt;
# Download poky / openembedded-core (dora or newer branch)&lt;br /&gt;
# source the build environment setup script&lt;br /&gt;
# add the meta-selftest layer in conf/bblayers.conf&lt;br /&gt;
&lt;br /&gt;
== Running all (except hidden) tests ==&lt;br /&gt;
To run all oe-selftest tests simply issue: &lt;br /&gt;
 $ oe-selftest --run-all-tests&lt;br /&gt;
&lt;br /&gt;
==Listing tests==&lt;br /&gt;
#--list-modules: lists all available modules.&lt;br /&gt;
#--list-classes: lists all available classes and the tests they contain.&lt;br /&gt;
#--list-tests-by &amp;lt;name|class|module|id|tag&amp;gt;: will list the tests that match the searching criteria and provide additional details like: id, tag, name, class, module for each found test.&lt;br /&gt;
&lt;br /&gt;
Listing used tags: &lt;br /&gt;
 --list-tags&lt;br /&gt;
&lt;br /&gt;
Listing all tests:&lt;br /&gt;
 --list-tests&lt;br /&gt;
&lt;br /&gt;
== Running specific tests ==&lt;br /&gt;
First you need to identify the test(s) that you want to run. You will need the following information: test module, test class, test method name.&lt;br /&gt;
Look for the test modules inside /meta/lib/oeqa/selftest/ .&lt;br /&gt;
After you have obtained the above information, issue from the command line: &#039;oe-selftest module1.Class1.test_1 module1.Class1.test_2 module2.Class2.test_3 ...&#039; .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are 2 methods for running specific tests:&lt;br /&gt;
&lt;br /&gt;
Note:  &lt;br /&gt;
*Keep in mind this structure: module.class.test&lt;br /&gt;
*The order the tests are running is alphabetical.&lt;br /&gt;
#--run-tests:&lt;br /&gt;
#;-–run-tests moduleA moduleB: will run all tests from this two modules&lt;br /&gt;
#;–-run-tests moduleA.classA module.classB: will run all tests from this two classes&lt;br /&gt;
#;–-run-tests moduleA.classA.test_A module.classB.test_B: will run these two tests&lt;br /&gt;
#:You can mix and match modules, classes and test names:&lt;br /&gt;
#;-–run-tests moduleA moduleB.classB moduleC.classC.testC: will run all tests from moduleA, all tests from moduleB.classB and testC from moduleC.classC&lt;br /&gt;
#-–run-tests-by  &amp;lt;name|class|module|id|tag&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
#;name: --run-tests-by name testA testB testC: simply specify test names and it will determine automatically where they are located.&lt;br /&gt;
#;class: --run-tests-by class classA classB classC: simply specify class names and it will determine automatically what tests they contain and  where they are located.&lt;br /&gt;
#;module: --run-tests-by module moduleA moduleB: simply specify module names and it will determine automatically what tests they contain. &lt;br /&gt;
#;id: --run-tests-by id id1 id2 id3: simply specify test ids and it will determine automatically what tests the ids point to.&lt;br /&gt;
#;tag: --run-tests-by tag tag1 tag2: if tests are tagged with @tag(feature=&amp;lt;&amp;gt;) you can run them like this also.&lt;br /&gt;
&lt;br /&gt;
For the previous running methods you can specify the –-machine option to tell oe-selftest to run tests with custom MACHINE:&lt;br /&gt;
*-–machine random: will run tests switching to a random MACHINE for each test.&lt;br /&gt;
*-–machine all: will run every test from the list against all available MACHINES.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running hidden tests ==&lt;br /&gt;
Hidden tests are located in test modules whose names begin with an underscore &#039;_&#039; . Example: &#039;_test_hidden_module.py&#039;. These tests can be run by specifying them as arguments like the above.&lt;br /&gt;
Example: &#039;oe-selftest _test_hidden_module.Class_1.test_1&#039;&lt;br /&gt;
&lt;br /&gt;
=Important file locations=&lt;br /&gt;
The following files and locations are relevant to oe-selftest:&lt;br /&gt;
* the script itself: oe-selftest&lt;br /&gt;
is located in the /scripts directory under the main OE-Core tree. &lt;br /&gt;
* the base.py module&lt;br /&gt;
is located in the meta/lib/oeqa/selftest directory and contains the base oeSelfTest class that extends unittest.TestCase and adds extra functionality.&lt;br /&gt;
* the test modules&lt;br /&gt;
are located in the meta/lib/oeqa/selftest directory and contain either test classes with test methods or evolved versions of the oeSelfTest class with added specific functionality and being used by the aforementioned test classes.&lt;br /&gt;
* the &#039;utils&#039; library&lt;br /&gt;
is located at meta/lib/oeqa/utils and contains modules with helper methods that are used and imported by the test modules.&lt;br /&gt;
&lt;br /&gt;
=Basic architecture information=&lt;br /&gt;
&lt;br /&gt;
When designing oe-selftest we wanted to be less intrusive as possible. Doing so we have implemented the following conventions, using the extended oeSelfTest class:&lt;br /&gt;
== appending to the build&#039;s global configuration ==&lt;br /&gt;
In order to keep appending to existing global configuration files(local.conf, auto.conf, site.conf) to a minimum, when oe-selftest starts it adds &#039;include selftest.inc&#039; to local.conf and removes it at the end. The tests manipulate the global configuration by manipulating selftest.inc using the built-in methods write_config(), append_config(), remove_config().  Also the file selftest.inc is deleted before each test; this way all tests are independent from a global configuration point of view.&lt;br /&gt;
== adding test files(like test classes) to the build ==&lt;br /&gt;
In order not to modify the existing metadata structure, a new layer &#039;meta-selftest&#039; has been created for testing purposes. This layer can be used to store files used for testing and thus remove the need to modify the structure of the existing metadata or the need to create them at runtime.&lt;br /&gt;
== appending to a recipe ==&lt;br /&gt;
In order to avoid modifying existing recipes and related files (.inc, .bbappend) a select list of recipes has a corresponding &amp;lt;recipe_name&amp;gt;.bbappend in the meta-selftest layer that contains only 1 passable line: &amp;quot;include test_recipe.inc&amp;quot;. If a test needs to append configuration to a specific recipe, it only needs to manipulate the recipe&#039;s test_recipe.inc using the built-in methods write_recipeinc(), append_recipeinc(), remove_recipeinc() and delete_recipeinc(). Note that before each test starts all test_recipe.inc files are removed from the meta-selftest layer in order to keep all tests independent from a recipe-level configuration point of view.&lt;br /&gt;
&lt;br /&gt;
== Cleaning up ==&lt;br /&gt;
&lt;br /&gt;
We also wanted to make cleanup and post-test actions simple so we added the following helper methods, using the extended oeSelfTest class:&lt;br /&gt;
* add_command_to_tearDown(command)&lt;br /&gt;
Adds &amp;lt;command&amp;gt; as a shell command to be run after the test ends, no matter how the test exits (error or fail).&lt;br /&gt;
* track_for_cleanup(path)&lt;br /&gt;
Adds &amp;lt;path&amp;gt; to a list of paths to be cleaned up (deleted) after the test ends, no matter how the test exits (error or fail).&lt;br /&gt;
&lt;br /&gt;
Please be careful when using these methods as they have no safety checks.&lt;br /&gt;
&lt;br /&gt;
=You should be aware of the following=&lt;br /&gt;
* oe-selftest uses the settings in conf/local.conf as a base for all test configurations. Any modifications made (such as DISTRO) or not made here (e.g. BB_NUMBER_THREADS) will impact all tests if the modifications are not overwritten specifically by a test.&lt;br /&gt;
* running all tests can take a long time!&lt;br /&gt;
&lt;br /&gt;
=How to contribute=&lt;br /&gt;
You can send patches containing either improvements or tests to the openembedded-core mailing list: openembedded-core@lists.openembedded.org . Here is a [http://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded guide on submitting changes].&lt;/div&gt;</summary>
		<author><name>Jussi Kukkonen</name></author>
	</entry>
</feed>