<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/lib/oeqa/utils, branch styhead</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=styhead</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=styhead'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2025-02-12T14:29:34+00:00</updated>
<entry>
<title>oeqa/gitarchive: Fix syntax warning</title>
<updated>2025-02-12T14:29:34+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2024-12-03T13:43:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=e35b91ea4d49cad0fccacdbcdbe14bae020669ec'/>
<id>urn:sha1:e35b91ea4d49cad0fccacdbcdbe14bae020669ec</id>
<content type='text'>
The backslash characters cause syntax warnings, mark the strings are raw
to avoid this.

(From OE-Core rev: abbe836162a24de5f22b38e8a2e547607e429820)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Mathieu Dubois-Briand &lt;mathieu.dubois-briand@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
(cherry picked from commit f717f61a37ed83618d054fc4017b5f5386fb2e3c)
Signed-off-by: Steve Sakoman &lt;steve@sakoman.com&gt;
</content>
</entry>
<entry>
<title>oeqa/utils/gitarchive: Return tag name and improve exclude handling</title>
<updated>2024-12-09T14:25:53+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2024-11-22T16:06:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=8cd1a180d63c54365830bdefd7f96286969d920b'/>
<id>urn:sha1:8cd1a180d63c54365830bdefd7f96286969d920b</id>
<content type='text'>
Tweak the gitarchive exclude handling not to error if excluded files
don't match.

Also return the tagname created so that other code can then use it.

(From OE-Core rev: bde2cf92e1a968e7272a194b887c331742f94d5b)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
(cherry picked from commit 1adba3430faffdf6217b6a00533a3b48a9388abc)
Signed-off-by: Steve Sakoman &lt;steve@sakoman.com&gt;
</content>
</entry>
<entry>
<title>qemurunner: Clean up serial_lock handling</title>
<updated>2024-11-26T13:37:09+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2024-10-13T07:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=ae0db85f2cf5741af127f1a2380787b2d6e856ec'/>
<id>urn:sha1:ae0db85f2cf5741af127f1a2380787b2d6e856ec</id>
<content type='text'>
Avoid "RuntimeError: release unlocked lock" since the lock shouldn't
be locked even in the error path. Add a try/finally path to ensure
this.

(From OE-Core rev: 0d08aab2e1c1ff1a8cb41b62b2e763bb88ca8b5a)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
(cherry picked from commit b0732ee009ca47580d1d2ad75334f4aa50e6efd5)
Signed-off-by: Steve Sakoman &lt;steve@sakoman.com&gt;
</content>
</entry>
<entry>
<title>oeqa/postactions: Fix archive retrieval from target</title>
<updated>2024-09-20T15:00:27+00:00</updated>
<author>
<name>Mathieu Dubois-Briand</name>
<email>mathieu.dubois-briand@bootlin.com</email>
</author>
<published>2024-09-20T09:48:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=a5eb89bdc9fc3531a179ddee495769724f8898fd'/>
<id>urn:sha1:a5eb89bdc9fc3531a179ddee495769724f8898fd</id>
<content type='text'>
A previous patch broke archive retrieval because of an undeclared
variable. Declare the archive_name variable as expected.

(From OE-Core rev: 0d0f3541552b073f3536176e2caf847bec24548d)

Signed-off-by: Mathieu Dubois-Briand &lt;mathieu.dubois-briand@bootlin.com&gt;
Reported-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
CC: Alexis Lothoré &lt;alexis.lothore@bootlin.com&gt;
CC: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>oeqa/postactions: do not uncompress retrieved archive on host</title>
<updated>2024-08-13T08:29:15+00:00</updated>
<author>
<name>Alexis Lothoré</name>
<email>alexis.lothore@bootlin.com</email>
</author>
<published>2024-08-12T15:14:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=292e17315e82aa7a63a93cc6e8671f495217f14e'/>
<id>urn:sha1:292e17315e82aa7a63a93cc6e8671f495217f14e</id>
<content type='text'>
Current postaction module executes a remote tar command, pipe it in a SSH
connection, and uncompress the raw stream with another tar command. With
this command, the whole artifacts tree is directly available on the host
executing the test, but it is not very convenient if we want to download
the whole retrieved ptests directory.

Stop uncompressing the retrieved ptests archive onto host, just save the
archive as it is. The new output then looks like the following:

tmp/log/oeqa-artefacts
└── oeqa-target-artefacts-20240812-juzqdb80
    ├── host_disk_usage.txt
    ├── target_disk_usage.txt
    └── tests_artifacts.tar.gz

Suggested-By: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
(From OE-Core rev: f90894d996c8a8f980e46c87b7968b176793b3fe)

Signed-off-by: Alexis Lothoré &lt;alexis.lothore@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>oeqa/postactions: fix exception handling</title>
<updated>2024-08-13T08:29:15+00:00</updated>
<author>
<name>Alexis Lothoré</name>
<email>alexis.lothore@bootlin.com</email>
</author>
<published>2024-08-12T15:14:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=3ce0e9b058aaf1ee94dbf956d52d3af77db0034e'/>
<id>urn:sha1:3ce0e9b058aaf1ee94dbf956d52d3af77db0034e</id>
<content type='text'>
The current exception handler in list_and_fetch_failed_tests_artifacts
expects a non-exisiting variable and then fail to display the original
exception message since it raises a new one. The issue has been introduced
with commit 6e80b2ab660e ("oeqa/utils/postactions: transfer whole archive
over ssh instead of doing individual copies"). Now that tests artifacts are
now handled individually, there's no point of trying to print individual
names in the exception.

(From OE-Core rev: a50e72bb64fb8b0d14c23164eaeeabd9c271ac19)

Signed-off-by: Alexis Lothoré &lt;alexis.lothore@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>oeqa/postactions: Separate artefact collection from test result collection</title>
<updated>2024-07-18T16:21:39+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2024-07-17T13:29:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=fdcaf1cce908bf92fef2f64421c7331c1f4228a4'/>
<id>urn:sha1:fdcaf1cce908bf92fef2f64421c7331c1f4228a4</id>
<content type='text'>
Combining the test result collection and artefact collection hasn't worked out
well as the data has different life cycles, the artefacts can be large and
we need to be able to clean them up on a different timescale.

Separate them out to be controlled by a separate variable, OEQA_ARTEFACT_DIR.
Also rework the code to inject a directory with a date/time and random component
to allow builds to run in parallel. Pass function arguments to avoid re-reading
variables.

(From OE-Core rev: e1cf7e94c3fcbe7dbc29e4286f0e1014b95964a9)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>testimage/postactions: Allow artifact collection to be skipped</title>
<updated>2024-07-10T09:52:20+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2024-07-08T16:54:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=665fdc4ea9bc00767718a46f230d3200262b1137'/>
<id>urn:sha1:665fdc4ea9bc00767718a46f230d3200262b1137</id>
<content type='text'>
It does not always make sense to collect artifacts and data from the
target on failure, e.g. if testing firmware or if the target is not
running an SSH server.

Allow this by setting TESTIMAGE_FAILED_QA_ARTIFACTS to an empty
value.

(From OE-Core rev: 7036f814baa6550e0b1ac2db37fcd51960ee9e48)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>oeqa/utils/postactions: transfer whole archive over ssh instead of doing individual copies</title>
<updated>2024-07-08T08:17:09+00:00</updated>
<author>
<name>Alexis Lothoré</name>
<email>alexis.lothore@bootlin.com</email>
</author>
<published>2024-07-05T14:46:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=6e80b2ab660e60135b52bd7358f0ce7612226f06'/>
<id>urn:sha1:6e80b2ab660e60135b52bd7358f0ce7612226f06</id>
<content type='text'>
Fixes [YOCTO 15536]

The postactions retrieval actions currently rely on scp executed
individually on any file or directory expanded from
TESTIMAGE_FAILED_QA_ARTIFACTS. Unfortunately, symlinks are not preserved
with this mechanism, which lead to big storage space consumption. Things
may go even worse if those symlinks create some circular chains. This
mechanism then needs to be updated to preserve symlinks instead of
following them during copy. There are multiple ways to do it:
- create a local archive on the target and execute scp on this file
- use rsync instead of scp for all files
- create an archive and pipe it to ssh instead of storing it onto the
  target

The first solution may create pressure on targets storage space, while the
second assumes that rsync is installed on the target, which may not be
true. So the third one is a compromise: tar is very likely present, at
least through busybox, and no disk space is used on the target.

Replace the current per-file scp call by a single call to tar run on the
target. Retrieve the generated compressed archive directly from SSH output,
and feed it to another tar process but on host, to uncompress and extract
it at the same place as before.

(From OE-Core rev: 4aeb10aa38efc6768928fbb74985e36e972b8e46)

Signed-off-by: Alexis Lothoré &lt;alexis.lothore@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>oeqa/utils/commands: extend docstring for runqemu context manager</title>
<updated>2024-06-06T10:56:04+00:00</updated>
<author>
<name>Enrico Jorns</name>
<email>ejo@pengutronix.de</email>
</author>
<published>2024-06-04T08:16:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=03cad9cc19e4477f0373a5b5d64879e8d85f1cb6'/>
<id>urn:sha1:03cad9cc19e4477f0373a5b5d64879e8d85f1cb6</id>
<content type='text'>
Usage and arguments are not necessarily self-explaining, thus add a bit
of documentation here.

(From OE-Core rev: 62343333d50b75ad04a4220bcf0990e0a89996a0)

Signed-off-by: Enrico Jorns &lt;ejo@pengutronix.de&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
