Bug 16420 - AB-INT: bitbake-selftest: error: unrecognized arguments: --durations=0
Summary: AB-INT: bitbake-selftest: error: unrecognized arguments: --durations=0
Status: RESOLVED FIXED
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 6.1 M4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2026-09-10 07:28 UTC by Mathieu Dubois-Briand
Modified: 2026-09-10 17:44 UTC (History)
4 users (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 2026-09-10 07:28:15 UTC
We recently started to use bitbake-selftest with "--durations=0" parameter, but the --duration parameter support on unittest python module was introduced in python 3.12. As a consequence, this fails on workers using an older python version.

https://git.yoctoproject.org/yocto-autobuilder-helper/commit/?id=8c4f8da75959
https://github.com/python/cpython/commit/6883007a86bd

Poky - The Yocto Project testing distribution
Running '. ./init-build-env; bitbake-selftest --durations=0 -v' with output to /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build/command-1-cmds.log in /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build
usage: bitbake-selftest [-h] [-v] [-q] [--locals] [-f] [-c]
                        [-k TESTNAMEPATTERNS]
                        [tests ...]
bitbake-selftest: error: unrecognized arguments: --durations=0
Comment 1 Mathieu Dubois-Briand 2026-09-10 07:44:43 UTC
oe-selftest-debian ubuntu2204-vk-1 master completed at 2026-09-10 02:30:18+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4822/steps/14/logs/stdio

oe-selftest-debian debian12-vk-8 mathieu/master-next completed at 2026-09-09 07:58:35+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4811/steps/14/logs/stdio

oe-selftest-debian debian12-vk-6 mathieu/master-next completed at 2026-09-09 12:21:09+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4815/steps/14/logs/stdio

oe-selftest-debian debian12-vk-6 master-next&master completed at 2026-09-09 16:48:14+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4816/steps/14/logs/stdio

oe-selftest-debian debian12-vk-2 master-next&master completed at 2026-09-10 00:22:15+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4821/steps/14/logs/stdio