<?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>15507</bug_id>
          
          <creation_ts>2024-06-06 14:26:57 +0000</creation_ts>
          <short_desc>AB-INT: wic.Wic.test_permissions failure: ImportError: Websockets version 9.1 is less than minimum required version 10.0</short_desc>
          <delta_ts>2025-06-02 18:10:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</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>5.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>mathieu.dubois-briand</cc>
    
    <cc>mhalstead</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>99132</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-06-06 14:26:57 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/3399/steps/14/logs/stdio

Initialising tasks...WARNING: /home/pokybuild/yocto-worker/oe-selftest-armhost/build/meta/recipes-core/images/core-image-minimal.bb:do_rootfs is tainted from a forced run
ERROR: An uncaught exception occurred in runqueue
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-armhost/build/bitbake/lib/hashserv/__init__.py&quot;, line 86, in create_client(addr=&apos;wss://hashserv.yoctoproject.org/ws&apos;, username=&apos;pokybuild&apos;, password=&apos;vcUTSfqr3bACI9JKRfgIxxK3Z_8c04sqwhmjjc5R8CVzpJ18TxmAkIE35QOI9Ago&apos;):
             c.close()
    &gt;        raise e
     
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-armhost/build/bitbake/lib/hashserv/__init__.py&quot;, line 80, in create_client(addr=&apos;wss://hashserv.yoctoproject.org/ws&apos;, username=&apos;pokybuild&apos;, password=&apos;vcUTSfqr3bACI9JKRfgIxxK3Z_8c04sqwhmjjc5R8CVzpJ18TxmAkIE35QOI9Ago&apos;):
             elif typ == ADDR_TYPE_WS:
    &gt;            c.connect_websocket(*a)
             else:
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-armhost/build/bitbake/lib/bb/asyncrpc/client.py&quot;, line 225, in wrapper:
             def wrapper(*args, **kwargs):
    &gt;            return self.loop.run_until_complete(downcall(*args, **kwargs))
     
  File &quot;/usr/lib/python3.10/asyncio/base_events.py&quot;, line 649, in _UnixSelectorEventLoop.run_until_complete(future=&lt;Task finished name=&apos;Task-1&apos; coro=&lt;AsyncClient.connect_websocket() done, defined at /home/pokybuild/yocto-worker/oe-selftest-armhost/build/bitbake/lib/bb/asyncrpc/client.py:92&gt; exception=ImportError(&apos;Websockets version 9.1 is less than minimum required version 10.0&apos;)&gt;):
     
    &gt;        return future.result()
     
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-armhost/build/bitbake/lib/bb/asyncrpc/client.py&quot;, line 109, in AsyncClient.connect_websocket(uri=&apos;wss://hashserv.yoctoproject.org/ws&apos;):
                 min_ver_str = &quot;.&quot;.join(str(v) for v in WEBSOCKETS_MIN_VERSION)
    &gt;            raise ImportError(
                     f&quot;Websockets version {websockets.__version__} is less than minimum required version {min_ver_str}&quot;
ImportError: Websockets version 9.1 is less than minimum required version 10.0
ERROR: Running idle function
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-armhost/build/bitbake/lib/hashserv/__init__.py&quot;, line 86, in create_client(addr=&apos;wss://hashserv.yoctoproject.org/ws&apos;, username=&apos;pokybuild&apos;, password=&apos;vcUTSfqr3bACI9JKRfgIxxK3Z_8c04sqwhmjjc5R8CVzpJ18TxmAkIE35QOI9Ago&apos;):
             c.close()
    &gt;        raise e
     
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-armhost/build/bitbake/lib/hashserv/__init__.py&quot;, line 80, in create_client(addr=&apos;wss://hashserv.yoctoproject.org/ws&apos;, username=&apos;pokybuild&apos;, password=&apos;vcUTSfqr3bACI9JKRfgIxxK3Z_8c04sqwhmjjc5R8CVzpJ18TxmAkIE35QOI9Ago&apos;):
             elif typ == ADDR_TYPE_WS:
    &gt;            c.connect_websocket(*a)
             else:
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-armhost/build/bitbake/lib/bb/asyncrpc/client.py&quot;, line 225, in wrapper:
             def wrapper(*args, **kwargs):
    &gt;            return self.loop.run_until_complete(downcall(*args, **kwargs))
     
  File &quot;/usr/lib/python3.10/asyncio/base_events.py&quot;, line 649, in _UnixSelectorEventLoop.run_until_complete(future=&lt;Task finished name=&apos;Task-1&apos; coro=&lt;AsyncClient.connect_websocket() done, defined at /home/pokybuild/yocto-worker/oe-selftest-armhost/build/bitbake/lib/bb/asyncrpc/client.py:92&gt; exception=ImportError(&apos;Websockets version 9.1 is less than minimum required version 10.0&apos;)&gt;):
     
    &gt;        return future.result()
     
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-armhost/build/bitbake/lib/bb/asyncrpc/client.py&quot;, line 109, in AsyncClient.connect_websocket(uri=&apos;wss://hashserv.yoctoproject.org/ws&apos;):
                 min_ver_str = &quot;.&quot;.join(str(v) for v in WEBSOCKETS_MIN_VERSION)
    &gt;            raise ImportError(
                     f&quot;Websockets version {websockets.__version__} is less than minimum required version {min_ver_str}&quot;
ImportError: Websockets version 9.1 is less than minimum required version 10.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99141</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-06-06 14:49:37 +0000</bug_when>
    <thetext>Some sort of environment escape that only happens on the ARM 22.04 worker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99164</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-06-11 09:53:39 +0000</bug_when>
    <thetext>Reliably failing on this worker when it runs the oe-selftest wic.Wic.test_permissions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99207</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-06-14 20:40:15 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/3445/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99252</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-06-25 08:53:56 +0000</bug_when>
    <thetext>I couldn&apos;t make this break outside of the AB itself, even when logged in as pokybuild. The worker then crashed and fell out of the cluster for a few days...

As this is limited to a single worker and it doesn&apos;t replicate on the same platform in the new cluster, I suspect the easiest way to resolve this would be to recreate the pokybuild venv to rule out subtle corruption.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99375</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-07-11 16:20:28 +0000</bug_when>
    <thetext>Regenerating the Python venv on this worker resolved the problem, so it appears this was a corrupted or otherwise broken environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99727</commentid>
    <comment_count>6</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-09-26 12:30:40 +0000</bug_when>
    <thetext>It seems this bug is back.

oe-selftest-debian debian11-ty-1
https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/7101/steps/14/logs/stdio
oe-selftest-armhost ubuntu2204-arm-1
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/3368/steps/14/logs/stdio
oe-selftest-armhost ubuntu2204-arm-1
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/3399/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99730</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-09-26 14:43:36 +0000</bug_when>
    <thetext>Fired https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/7130 to see if this reproduces reliably.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99742</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-09-26 19:47:14 +0000</bug_when>
    <thetext>It does not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100694</commentid>
    <comment_count>9</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-01-20 08:39:03 +0000</bug_when>
    <thetext>oe-selftest-ubuntu ubuntu2204-vk-2 mathieu/master-next completed at 2025-01-16T12:51:59Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/54/builds/770/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100714</commentid>
    <comment_count>10</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-01-22 12:10:15 +0000</bug_when>
    <thetext>oe-selftest-ubuntu ubuntu2204-vk-2 master-next completed at 2025-01-21T18:02:35Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/54/builds/803/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100910</commentid>
    <comment_count>11</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-02-12 18:16:10 +0000</bug_when>
    <thetext>&lt;shakes fist at Mathieu&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101716</commentid>
    <comment_count>12</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-04-23 09:09:31 +0000</bug_when>
    <thetext>Found this old one in untriaged entries. A bit different as this one says &quot;No module named &apos;websockets&apos;&quot;
oe-selftest-ubuntu ubuntu2204-vk-1 master completed at 2025-03-20T03:14:09Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/54/builds/1223/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102117</commentid>
    <comment_count>13</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2025-06-02 18:10:35 +0000</bug_when>
    <thetext>Setup scripts properly take care of installing websockets on all supported distros now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>