<?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>13605</bug_id>
          
          <creation_ts>2019-10-20 15:53:40 +0000</creation_ts>
          <short_desc>[master-next]  LockedSignatures.test_locked_signatures fails</short_desc>
          <delta_ts>2020-03-24 22:05:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>3.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc> https://errors.yoctoproject.org/Errors/Build/91473/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin Kuster">akuster</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85405</commentid>
    <comment_count>0</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-20 15:53:40 +0000</bug_when>
    <thetext>2019-10-19 10:10:56,740 - oe-selftest - INFO -  ... FAIL
2019-10-19 10:10:56,741 - oe-selftest - INFO - 2: 35/35 188/366 (51.74s) (signing.LockedSignatures.test_locked_signatures)
2019-10-19 10:10:56,741 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/lib/oeqa/selftest/cases/signing.py&quot;, line 219, in test_locked_signatures
    self.assertIsNotNone(found_warn, &quot;Didn&apos;t find the expected warning message. Output: %s&quot; % ret.output)
  File &quot;/usr/lib64/python3.6/unittest/case.py&quot;, line 1256, in assertIsNotNone
    self.fail(self._formatMessage(msg, standardMsg))
  File &quot;/usr/lib64/python3.6/unittest/case.py&quot;, line 687, in fail
    raise self.failureException(msg)
AssertionError: unexpectedly None : Didn&apos;t find the expected warning message. Output: Loading cache...done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85682</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-12-03 22:04:55 +0000</bug_when>
    <thetext>Happened again https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/526</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85696</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-12-04 13:04:22 +0000</bug_when>
    <thetext>Also seen in https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/844</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86676</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-03-06 08:51:53 +0000</bug_when>
    <thetext>I&apos;ve tried for months to try and debug this. I&apos;ve been unable to replicate locally.

What was really revealing was adding in debug code into siggen where the warnings are stored in a string. Those warnings are later printed by code in sstate.bbclass calling the checkhashes() method.

What was happening is that checkhashes() never appeared to run, hence the expected warnings were never shown, hence the test fails. The underlying locked sigs code appeared to be working correctly and it was a message logging issue.

Later log messages are shown so its unlikely to be a client disconnection issue.

The most likely way I believe that possible is that the checkhashes function was only called with one hash to check and there is an early return in there that could trigger. I was unable to figure out how to replicate such a scenario but its possible.

We now have the summary parameter, so I&apos;ve sent a patch to drop this other older piece of code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86804</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-03-24 22:05:23 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=67511eda71affb6a0c9bfab37f59a53d35ac30c0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>