<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/classes-global/insane.bbclass, branch nanbield-4.3.2</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=nanbield-4.3.2</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=nanbield-4.3.2'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2023-10-17T10:41:34+00:00</updated>
<entry>
<title>insane: unimplemented-ptest: ignore source file errors</title>
<updated>2023-10-17T10:41:34+00:00</updated>
<author>
<name>Yoann Congal</name>
<email>yoann.congal@smile.fr</email>
</author>
<published>2023-10-16T15:51:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=07546cc63f5e2a1a74bd7f5cac6ad1c9948264d4'/>
<id>urn:sha1:07546cc63f5e2a1a74bd7f5cac6ad1c9948264d4</id>
<content type='text'>
In some cases, pathlib.Path.glob() might throw FileNotFoundError when
file/directory disappear while it is iterating over them.

This "warning" is not important enough to crash build in this case so
just take a bb.note of the problem and move on.

(From OE-Core rev: 85ddbb67f0f6f823cac0966db78e5b74c5a54c4c)

Signed-off-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Reported-by: Mark Hatle &lt;mark.hatle@amd.com&gt;
Closes: https://lists.openembedded.org/g/openembedded-core/message/189254
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane: skip unimplemented-ptest on S=WORKDIR recipes</title>
<updated>2023-10-17T10:41:34+00:00</updated>
<author>
<name>Yoann Congal</name>
<email>yoann.congal@smile.fr</email>
</author>
<published>2023-10-16T15:51:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=11bab63ca8f7f0350e519d62282e4fcdc3a470ce'/>
<id>urn:sha1:11bab63ca8f7f0350e519d62282e4fcdc3a470ce</id>
<content type='text'>
On S=WORKDIR recipes, the unimplemented-ptest check will scan the whole
WORKDIR and "see" disappearing file and directory.

(From OE-Core rev: 9a2d2f7c2b7236667a6d80355f73db4c27e6582e)

Signed-off-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Reported-by: Mark Hatle &lt;mark.hatle@amd.com&gt;
Closes: https://lists.openembedded.org/g/openembedded-core/message/189254
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane: Add a naive heuristic to detect test subdirectories</title>
<updated>2023-10-15T08:11:47+00:00</updated>
<author>
<name>Jérémy Rosen</name>
<email>jeremy.rosen@smile.fr</email>
</author>
<published>2023-10-10T13:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b233e2f8c2d756010fd4fae5b8173b1fddf39693'/>
<id>urn:sha1:b233e2f8c2d756010fd4fae5b8173b1fddf39693</id>
<content type='text'>
if there is a "test" or "tests" subdirectory at toplevel, this usually
means we have some unit tests available.

This test is very good at detecting handcrafted tests and I was not able
to find any false positive.

False positive can be dealt with the usual INSANE_SKIP mechanism

(From OE-Core rev: 0c91ad29f7ea313bc25481be9d40f216c0770b98)

Signed-off-by: Jérémy Rosen &lt;jeremy.rosen@smile.fr&gt;
Reviewed-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane: Detect build-system test harnesses</title>
<updated>2023-10-15T08:11:47+00:00</updated>
<author>
<name>Jérémy Rosen</name>
<email>jeremy.rosen@smile.fr</email>
</author>
<published>2023-10-10T13:49:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f4b039cae0833634487607a4c6ade441dbe94cbf'/>
<id>urn:sha1:f4b039cae0833634487607a4c6ade441dbe94cbf</id>
<content type='text'>
most build-systems have a way to implement a "make check" or equivalent
command that will run tests in the source directory.

This heuristic will detect the keywords in the build-system configuration
that activates tests.

Note that in the case of autotools, we use Makefile.in as our source
instead of Makefile.am to easily follow includes. Filenaming conventions
for autotools files are not reliable enough to do naive matching.

(From OE-Core rev: bc9013295256443e877f29b7e00605ffa5177efa)

Signed-off-by: Jérémy Rosen &lt;jeremy.rosen@smile.fr&gt;
Reviewed-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane: Detect python and perl based tests</title>
<updated>2023-10-15T08:11:47+00:00</updated>
<author>
<name>Jérémy Rosen</name>
<email>jeremy.rosen@smile.fr</email>
</author>
<published>2023-10-10T13:49:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=18bd65d241d2ca2d14541b9c6dd0d9f3f1cdba35'/>
<id>urn:sha1:18bd65d241d2ca2d14541b9c6dd0d9f3f1cdba35</id>
<content type='text'>
match_line_in_files will look for a regex in all files matching a glob.

we use iglob to avoid a complete, recursive scan of all source. iglob is
based on python iterators and will scan as we walk through the directories

pytest are detected by looking for "import pytest" or "from pytest" in any
python file.

perl Test:: is detetected by looking for any t/*.t in the toplevel source
directory.

(From OE-Core rev: 00d64ac38ae4af6193fae3b02375a16b1821f29e)

Signed-off-by: Jérémy Rosen &lt;jeremy.rosen@smile.fr&gt;
Reviewed-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane: Add unimplemented-ptest infrastructure</title>
<updated>2023-10-15T08:11:47+00:00</updated>
<author>
<name>Jérémy Rosen</name>
<email>jeremy.rosen@smile.fr</email>
</author>
<published>2023-10-10T13:49:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=5330065f51fc0dcc2b74360220b2c97c4b80e622'/>
<id>urn:sha1:5330065f51fc0dcc2b74360220b2c97c4b80e622</id>
<content type='text'>
This infrastructure will use heuristics to detect when package sources seem
to have unit tests implemented but no ptest have been implemented in the
recipe.

No heuristics have been implemented at this point, only the infrastructure
to skip the test when ptest are implemented.

This is part of python_do_qa_patch since we need the sources in their final
state but do not need any configuration done

A missing-ptest QA test already existed but it was used for a different
purpose and overridden by ptest.bbclass. Thus, a new QA keyword was added

Note: The QA test is not enabled by default and may be enabled to hunt
down potential ptests with:
  WARN_QA += "unimplemented-ptest"

(From OE-Core rev: 282ae38543e22cbdcbf69c64eace551997927ce3)

Signed-off-by: Jérémy Rosen &lt;jeremy.rosen@smile.fr&gt;
Reviewed-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane.bbclass: Count raw bytes in shebang-size</title>
<updated>2023-09-22T06:45:17+00:00</updated>
<author>
<name>Jan Garcia</name>
<email>j@n-garcia.com</email>
</author>
<published>2023-09-20T19:51:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=c94c1ba7c77b2f7c599b4c0f24bab0c3b07ab6d3'/>
<id>urn:sha1:c94c1ba7c77b2f7c599b4c0f24bab0c3b07ab6d3</id>
<content type='text'>
Operating systems limit the shebang to a maximum number of bytes.
This patch makes the shebang-size check count raw bytes instead of UTF-8 characters.

(From OE-Core rev: d4ac66c5cdaf971fb717cc5c5bf9aa51a787d412)

Signed-off-by: Jan Garcia &lt;j@n-garcia.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane.bbclass: Remove an unused variable</title>
<updated>2023-08-24T15:50:24+00:00</updated>
<author>
<name>Peter Kjellerstedt</name>
<email>peter.kjellerstedt@axis.com</email>
</author>
<published>2023-08-23T10:08:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=d0ddefc7b7600f67d957e6467a1eca4f79a2d35a'/>
<id>urn:sha1:d0ddefc7b7600f67d957e6467a1eca4f79a2d35a</id>
<content type='text'>
The use of coremeta_path was removed with commit 61a881fdbe (insane:
Improve patch-status layer filtering) when the patch-status QA test was
generalized.

(From OE-Core rev: 71a2c7b2608640dfa45d065692541d537149052e)

Signed-off-by: Peter Kjellerstedt &lt;peter.kjellerstedt@axis.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane.bbclass: add a RECIPE_MAINTAINER check (oe-core recipes only)</title>
<updated>2023-07-30T08:16:52+00:00</updated>
<author>
<name>Alexander Kanavin</name>
<email>alex.kanavin@gmail.com</email>
</author>
<published>2023-07-27T14:36:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f6bd6b72f82bdc0aed4c08d2bbe41f1cd4bb4335'/>
<id>urn:sha1:f6bd6b72f82bdc0aed4c08d2bbe41f1cd4bb4335</id>
<content type='text'>
Absent maintainer entries are as well a frequent source of friction, as they are checked
only in selftest, and so aren't revealed until autobuilder runs.

The selftest is retained as it also checks for obsolete entries in maintainers.inc
(not possible to do in insane class).

(From OE-Core rev: 675dff0e37666c1cffa10a83f6f1f67d5fadd204)

Signed-off-by: Alexander Kanavin &lt;alex@linutronix.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane.bbclass: add a SUMMARY/HOMEPAGE check (oe-core recipes only)</title>
<updated>2023-07-30T08:16:52+00:00</updated>
<author>
<name>Alexander Kanavin</name>
<email>alex.kanavin@gmail.com</email>
</author>
<published>2023-07-27T14:36:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=ba961128e2d7d1b4c15daf749ea878efa5cf5da6'/>
<id>urn:sha1:ba961128e2d7d1b4c15daf749ea878efa5cf5da6</id>
<content type='text'>
This was done in a selftest, but that is too late and creates
friction in integration as errors are not seen until autobuilder fails.

Bonus fix: SUMMARY check wasn't even working, as in the absence
of one set in the recipe there is a default value set from bitbake.conf.

I left DESCRIPTION check out for now, as many recipes don't actually
have it, and it's set from SUMMARY (plus a dot) if absent.

(From OE-Core rev: 4144c2f43da39336b03cfd612cbe1694cbf8c7bd)

Signed-off-by: Alexander Kanavin &lt;alex@linutronix.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
