<?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>15193</bug_id>
          
          <creation_ts>2023-08-17 13:26:05 +0000</creation_ts>
          <short_desc>AB-INT: yoctotestresultsquerytests.TestResultsQueryTests.test_get_sha1 failure</short_desc>
          <delta_ts>2024-01-24 09:33:21 +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.0 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Alexandre Belloni">alexandre.belloni</assigned_to>
          <cc>alexandre.belloni</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>96263</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-08-17 13:26:05 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/5586/steps/14/logs/stdio

ERROR: Can not find SHA-1 for yocto-4.0 in /home/pokybuild/yocto-worker/oe-selftest-debian/build
2023-08-11 03:05:43,954 - oe-selftest - INFO - 3: 45/46 370/529 (0.07s) (0 failed) (yoctotestresultsquerytests.TestResultsQueryTests.test_get_sha1)
2023-08-11 03:05:43,954 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/yoctotestresultsquerytests.py&quot;, line 27, in test_get_sha1
    self.assertEqual(
  File &quot;/usr/lib/python3.11/unittest/case.py&quot;, line 873, in assertEqual
    assertion_func(first, second, msg=msg)
  File &quot;/usr/lib/python3.11/unittest/case.py&quot;, line 866, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: None != &apos;00cfdde791a0176c134f31e5a09eff725e75b905&apos;


I doubt this is caused by something in my branch. My best guess is that because get_sha1 is using git rev-list, the tag may not be found when we do a shallow clone. We could use git ls-remote but in this case, we would get the sha1 of the tag instead of the sha1 of the commit pointed to by the tag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96264</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-08-17 13:46:17 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/5598/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/5621/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/5545/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/1895/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97971</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-01-24 09:33:21 +0000</bug_when>
    <thetext>Did not happen for a while, and code changed around.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>