<?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>16101</bug_id>
          
          <creation_ts>2025-12-16 12:09:37 +0000</creation_ts>
          <short_desc>send_qa_email: tag already exists</short_desc>
          <delta_ts>2026-10-01 15:47:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>paul</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>103569</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-16 12:09:37 +0000</bug_when>
    <thetext>I never saw this kind of issue, but I believe we had not been updating this recently:

INFO: Storing test result into git repository /tmp/sendqaemail.5qxgjkum
INFO: Committing data into to branch master
INFO: Updating /tmp/sendqaemail.5qxgjkum HEAD to latest commit
INFO: Creating tag master/65490-g2e10e9a50f12d5de3d22fbed59b65461afa3fa84/0
Traceback (most recent call last):
  File &quot;/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/scripts/resulttool&quot;, line 83, in &lt;module&gt;
    sys.exit(main())
             ~~~~^^
  File &quot;/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/scripts/resulttool&quot;, line 77, in main
    ret = args.func(args, logger)
  File &quot;/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/scripts/lib/resulttool/store.py&quot;, line 81, in store
    tagname = gitarchive.gitarchive(tempdir, args.git_dir, False, False,
                          &quot;Results of {branch}:{commit}&quot;, &quot;branch: {branch}\ncommit: {commit}&quot;, &quot;{branch}&quot;,
                          False, &quot;{branch}/{commit_count}-g{commit}/{tag_number}&quot;,
                          &apos;Test run #{tag_number} of {branch}:{commit}&apos;, &apos;&apos;,
                          excludes, [], False, keywords, logger)
  File &quot;/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/meta/lib/oeqa/utils/gitarchive.py&quot;, line 191, in gitarchive
    data_repo.run_cmd([&apos;tag&apos;, &apos;-a&apos;, &apos;-m&apos;, tag_msg, tag_name, commit])
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/meta/lib/oeqa/utils/git.py&quot;, line 62, in run_cmd
    return self._run_git_cmd_at(git_args, self.top_dir, env=env)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/meta/lib/oeqa/utils/git.py&quot;, line 43, in _run_git_cmd_at
    raise GitError(&quot;&apos;{}&apos; failed with exit code {}: {}&quot;.format(
        cmd_str, ret.status, ret.output))
oeqa.utils.git.GitError: &apos;git tag -a -m Test run #0 of master:2e10e9a50f12d5de3d22fbed59b65461afa3fa84

 master/65490-g2e10e9a50f12d5de3d22fbed59b65461afa3fa84/0 8311e915e5ba2d20568e788c7cb07f92cc9e7eef&apos; failed with exit code 128: fatal: tag &apos;master/65490-g2e10e9a50f12d5de3d22fbed59b65461afa3fa84/0&apos; already exists
Traceback (most recent call last):
  File &quot;/srv/pokybuild/yocto-worker/a-full/yocto-autobuilder-helper/scripts/send_qa_email.py&quot;, line 283, in &lt;module&gt;
    send_qa_email()
    ~~~~~~~~~~~~~^^
  File &quot;/srv/pokybuild/yocto-worker/a-full/yocto-autobuilder-helper/scripts/send_qa_email.py&quot;, line 193, in send_qa_email
    subprocess.check_call([resulttool, &quot;store&quot;, &quot;--revision&quot;, revision, &quot;-l&quot;, args.results_dir + &quot;/../../testresult-logarchives&quot; , args.results_dir, tempdir])
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib64/python3.13/subprocess.py&quot;, line 419, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command &apos;[&apos;/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/scripts/resulttool&apos;, &apos;store&apos;, &apos;--revision&apos;, &apos;2e10e9a50f12d5de3d22fbed59b65461afa3fa84&apos;, &apos;-l&apos;, &apos;/srv/autobuilder/valkyrie.yocto.io/pub/non-release/20251216-8/testresults/../../testresult-logarchives&apos;, &apos;/srv/autobuilder/valkyrie.yocto.io/pub/non-release/20251216-8/testresults&apos;, &apos;/tmp/sendqaemail.5qxgjkum&apos;]&apos; returned non-zero exit status 1.
program finished with exit code 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103571</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-16 12:12:18 +0000</bug_when>
    <thetext>a-full fedora42-vk-1 master completed at 2025-12-16 04:10:43+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/2862/steps/37/logs/stdio</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>