<?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>14469</bug_id>
          
          <creation_ts>2021-07-04 13:33:37 +0000</creation_ts>
          <short_desc>AB-INT PTEST: quilt faildiff.test ptest intermittent failure</short_desc>
          <delta_ts>2023-01-18 16:31:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Package Testing (ptest)</product>
          <component>ptest</component>
          <version>3.4</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>4.2</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>chee.yang.lee</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</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>90844</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-07-04 13:33:37 +0000</bug_when>
    <thetext>&apos;quilt&apos;: [&apos;faildiff.test&apos;]

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2244/steps/12/logs/stdio

qemux86-64-ptest centos8-ty-1

Note that this was with the update to glibc2.34 but wasn&apos;t seen on the other builds with the same update.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90976</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-07-22 12:44:30 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2291/steps/13/logs/stdio
qemux86-64-ptest debian9-ty-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91513</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-09-23 13:46:36 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2274/steps/12/logs/stdio
qemuarm64-ptest ubuntu2004-arm-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91937</commentid>
    <comment_count>3</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2021-11-10 01:49:04 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/2800/steps/12/logs/stdio
ubuntu2004-ty-1  qemux86-64-ptest
master-next</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92895</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-03-31 14:45:42 +0000</bug_when>
    <thetext>This hasn&apos;t happened in ~4 months.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94689</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-01-12 15:06:37 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/93/builds/1522/steps/12/logs/stdio
qemuarm64-ptest-fast ubuntu2004-arm-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94701</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-01-12 15:45:47 +0000</bug_when>
    <thetext>https://autobuilder.yocto.io/pub/non-release/20230112-2/testresults/qemuarm64-ptest-fast/quilt.log</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94707</commentid>
    <comment_count>7</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-01-12 16:07:54 +0000</bug_when>
    <thetext>[faildiff.test]
[1] $ mkdir patches -- ok
[3] $ quilt new test.diff -- ok
[6] $ cat &gt; test.txt -- ok
[8] $ quilt add test.txt -- ok
[13] $ chmod -r test.txt -- ok
[15] $ quilt refresh -- ok
[18] $ echo 1 -- ok
[21] $ chmod +r test.txt -- ok
[25] $ printf &quot;\\002\\000\\001&quot; &gt; test.bin -- ok
[26] $ quilt add test.bin -- ok
[29] $ printf &quot;\\003\\000\\001&quot; &gt; test.bin -- ok
[30] $ quilt diff -pab --no-index -- failed
Diff failed on file &apos;test.bin&apos;, aborting !~ (Files|Binary files) a/test\.bin and b/test\.bin differ
Binary files a/test.bin and b/test.bin differ != Diff failed on file &apos;test.bin&apos;, aborting
[33] $ echo 1 -- ok
[36] $ quilt refresh -- ok
[38] $ echo 1 -- ok
15 commands (14 passed, 1 failed)
make: *** [Makefile:10: check-faildiff] Error 1
FAIL: faildiff.test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94708</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-01-12 16:18:58 +0000</bug_when>
    <thetext>I could actually reproduce this on our build server:

$ quilt diff -pab --no-index
Diff failed on file &apos;test.bin&apos;, aborting
Binary files a/test.bin and b/test.bin differ

whereas the test expects:
Binary files a/test.bin and b/test.bin differ
Diff failed on file &apos;test.bin&apos;, aborting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94713</commentid>
    <comment_count>9</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-01-12 19:43:36 +0000</bug_when>
    <thetext>The issue is that tests/run is merging stderr and stdout, one of the string is coming from stderr, the other on from stdout and it seems the order is not guaranteed.

From a quick check, this seems to be the only test that is affected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94718</commentid>
    <comment_count>10</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-01-13 12:57:13 +0000</bug_when>
    <thetext>Filed https://savannah.nongnu.org/bugs/index.php?63651 upstream.

A proper fix would involve writing perl &lt;shudders&gt; and changing test/run to not merge stdout/stderr and check them specifically.

A hack would involve making both lines regex&apos;s and matching both strings in both lines...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94724</commentid>
    <comment_count>11</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-01-13 16:57:29 +0000</bug_when>
    <thetext>Workaround hack on the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94725</commentid>
    <comment_count>12</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-01-13 16:57:58 +0000</bug_when>
    <thetext>I&apos;m assuming that all the failures are in faildiff.test line 30.  All of the ones I&apos;ve seen have been, but older logs have been purged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94750</commentid>
    <comment_count>13</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-01-18 16:31:53 +0000</bug_when>
    <thetext>Fixed in oe-core 1ddbe4d2bd8d8da10dac8a054f130fcd1d242219.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>