<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16420</bug_id>
          
          <creation_ts>2026-09-10 07:28:15 +0000</creation_ts>
          <short_desc>AB-INT: bitbake-selftest: error: unrecognized arguments: --durations=0</short_desc>
          <delta_ts>2026-09-10 17:44:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>paul</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106772</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-09-10 07:28:15 +0000</bug_when>
    <thetext>We recently started to use bitbake-selftest with &quot;--durations=0&quot; 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 &apos;. ./init-build-env; bitbake-selftest --durations=0 -v&apos; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106776</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-09-10 07:44:43 +0000</bug_when>
    <thetext>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&amp;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&amp;master completed at 2026-09-10 00:22:15+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/4821/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106805</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-09-10 17:44:05 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/yocto-autobuilder-helper/commit/?id=4e83aa5617eb01342b90eee1dcf1003dfbdee06e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>