<?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>15981</bug_id>
          
          <creation_ts>2025-09-25 14:58:16 +0000</creation_ts>
          <short_desc>[AB-INT] xorg.XorgTest.test_xorg_running wrongfully fails</short_desc>
          <delta_ts>2026-06-04 15:22:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>oeqa/runtime</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Mathieu Dubois-Briand">mathieu.dubois-briand</assigned_to>
          <cc>antonin.godard</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>102824</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-09-25 14:58:16 +0000</bug_when>
    <thetext>We have recently seen a test fail, complaining about xorg not being running, while actually it is.

Traceback (most recent call last):
  File &quot;/srv/pokybuild/yocto-worker/pkgman-non-rpm/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 35, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/srv/pokybuild/yocto-worker/pkgman-non-rpm/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 35, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/srv/pokybuild/yocto-worker/pkgman-non-rpm/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 35, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/srv/pokybuild/yocto-worker/pkgman-non-rpm/build/meta/lib/oeqa/runtime/cases/xorg.py&quot;, line 23, in test_xorg_running
    self.assertEqual(status, 0, msg=msg)
AssertionError: 255 != 0 : Xorg does not appear to be running UID        PID  PPID  C STIME TTY          TIME CMD
...
root       512     1  0 01:33 ?        00:00:00 xinit /etc/X11/Xsession -- /usr/bin/Xorg :0 -br -pn
root       527   512 14 01:33 ?        00:05:43 /usr/bin/Xorg :0 -br -pn


pkgman-non-rpm ubuntu2204-vk-2 master completed at 2025-09-20 02:50:34+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/67/builds/2443/steps/18/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102827</commentid>
    <comment_count>1</comment_count>
    <who name="Antonin Godard">antonin.godard</who>
    <bug_when>2025-09-25 15:03:24 +0000</bug_when>
    <thetext>Exit code is 255 which doesn&apos;t match grep&apos;s exit codes https://www.gnu.org/software/grep/manual/grep.html#Exit-Status-1

Maybe an SSH connection issue? https://www.man7.org/linux/man-pages/man1/ssh.1.html#EXIT_STATUS

&gt; ssh exits with the exit status of the remote command or with 255 if an error occurred.

Not sure how commands are sent to the target though, I just assumed SSH</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102837</commentid>
    <comment_count>2</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-09-26 13:55:13 +0000</bug_when>
    <thetext>Having a look at procps source code, I can&apos;t see any way it would have exited with value 255. So this seems to confirm an SSH failure.

It would be great if we knew why SSH is failing, but it runs with &quot;-o LogLevel=ERROR&quot;, so we probably miss some info.

I will try to run it with default loglevel, if it does not break all tests maybe we should do it that way.
Also, we should probably add an extra log line when the SSH exit code is 255.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102908</commentid>
    <comment_count>3</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-10-10 06:55:30 +0000</bug_when>
    <thetext>We merged some patch, failing test with SSH output when SSH does fail.

This will not fix the underlying issue of this ticket, as the root cause it still not known, but should help to investigate.

https://git.openembedded.org/openembedded-core/commit/?id=afe118d4f2de</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105719</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-06-04 15:22:51 +0000</bug_when>
    <thetext>Added some patches to help with debugging.
Open a new bug if the underlying issue happens again.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>