Bug 15621 - AB-INT: insane do_package_qa intermittent failures
Summary: AB-INT: insane do_package_qa intermittent failures
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 5.99
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 0.0.0
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2024-10-15 16:14 UTC by Mathieu Dubois-Briand
Modified: 2024-10-15 16:33 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Dubois-Briand 2024-10-15 16:14:30 UTC
ERROR: nativesdk-util-linux-2.40.2-r0 do_package_qa: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_package_qa(d)
     0003:
File: '/srv/pokybuild/yocto-worker/buildtools/build/meta/classes-global/insane.bbclass', lineno: 1168, function: do_package_qa
     1164:            oe.qa.handle_error("pkgname",
     1165:                    "%s doesn't match the [a-z0-9.+-]+ regex" % package, d)
     1166:
     1167:        checks = parse_test_matrix("QAPATHTEST", skip, d)
 *** 1168:        package_qa_walk(checks, package, d)
     1169:
     1170:        checks = parse_test_matrix("QAPKGTEST", skip, d)
     1171:        for func in checks:
     1172:            func(package, d)
File: '/srv/pokybuild/yocto-worker/buildtools/build/meta/classes-global/insane.bbclass', lineno: 810, function: package_qa_walk
     0806:        elf = elves.get(path)
     0807:        if elf:
     0808:            elf.open()
     0809:        for func in checkfuncs:
 *** 0810:            func(path, package, d, elf)
     0811:        if elf:
     0812:            elf.close()
     0813:
     0814:def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d):
File: '/srv/pokybuild/yocto-worker/buildtools/build/meta/classes-global/insane.bbclass', lineno: 438, function: package_qa_check_buildpaths
     0434:    explicitly ignored.
     0435:    """
     0436:    import stat
     0437:    # Ignore symlinks/devs/fifos
 *** 0438:    mode = os.lstat(path).st_mode
     0439:    if stat.S_ISLNK(mode) or stat.S_ISBLK(mode) or stat.S_ISFIFO(mode) or stat.S_ISCHR(mode) or stat.S_ISSOCK(mode):
     0440:        return
     0441:
     0442:    tmpdir = bytes(d.getVar('TMPDIR'), encoding="utf-8")
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/srv/pokybuild/yocto-worker/buildtools/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-util-linux/2.40.2/packages-split/nativesdk-util-linux-rfkill/DEBIAN'
Comment 1 Mathieu Dubois-Briand 2024-10-15 16:19:13 UTC
From RP:

Two levels of probems. The cachedpath code returns False instead of
exceptions so there was unexpected API changes. The recent insane
changes also stopped handling DEBIAN files correctly leading to races.
This is perhaps the best backtrace we have:

https://valkyrie.yoctoproject.org//#/builders/43/builds/246

Who/Plan: RP has a partial revert for the first part to fix builds.
Ross is aware and working on the second.
Comment 2 Ross Burton 2024-10-15 16:33:42 UTC
Fixed in oe-core 22e4486d65e4874bf48d89160d69118f318278e8.