Bug 16101 - send_qa_email: tag already exists
Summary: send_qa_email: tag already exists
Status: NEW
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 6.2 M2
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2025-12-16 12:09 UTC by Mathieu Dubois-Briand
Modified: 2026-10-01 15:47 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Dubois-Briand 2025-12-16 12:09:37 UTC
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 "/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/scripts/resulttool", line 83, in <module>
    sys.exit(main())
             ~~~~^^
  File "/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/scripts/resulttool", line 77, in main
    ret = args.func(args, logger)
  File "/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/scripts/lib/resulttool/store.py", line 81, in store
    tagname = gitarchive.gitarchive(tempdir, args.git_dir, False, False,
                          "Results of {branch}:{commit}", "branch: {branch}\ncommit: {commit}", "{branch}",
                          False, "{branch}/{commit_count}-g{commit}/{tag_number}",
                          'Test run #{tag_number} of {branch}:{commit}', '',
                          excludes, [], False, keywords, logger)
  File "/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/meta/lib/oeqa/utils/gitarchive.py", line 191, in gitarchive
    data_repo.run_cmd(['tag', '-a', '-m', tag_msg, tag_name, commit])
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/meta/lib/oeqa/utils/git.py", line 62, in run_cmd
    return self._run_git_cmd_at(git_args, self.top_dir, env=env)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/meta/lib/oeqa/utils/git.py", line 43, in _run_git_cmd_at
    raise GitError("'{}' failed with exit code {}: {}".format(
        cmd_str, ret.status, ret.output))
oeqa.utils.git.GitError: 'git tag -a -m Test run #0 of master:2e10e9a50f12d5de3d22fbed59b65461afa3fa84

 master/65490-g2e10e9a50f12d5de3d22fbed59b65461afa3fa84/0 8311e915e5ba2d20568e788c7cb07f92cc9e7eef' failed with exit code 128: fatal: tag 'master/65490-g2e10e9a50f12d5de3d22fbed59b65461afa3fa84/0' already exists
Traceback (most recent call last):
  File "/srv/pokybuild/yocto-worker/a-full/yocto-autobuilder-helper/scripts/send_qa_email.py", line 283, in <module>
    send_qa_email()
    ~~~~~~~~~~~~~^^
  File "/srv/pokybuild/yocto-worker/a-full/yocto-autobuilder-helper/scripts/send_qa_email.py", line 193, in send_qa_email
    subprocess.check_call([resulttool, "store", "--revision", revision, "-l", args.results_dir + "/../../testresult-logarchives" , args.results_dir, tempdir])
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/subprocess.py", line 419, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/srv/pokybuild/yocto-worker/a-full/build/layers/openembedded-core/scripts/resulttool', 'store', '--revision', '2e10e9a50f12d5de3d22fbed59b65461afa3fa84', '-l', '/srv/autobuilder/valkyrie.yocto.io/pub/non-release/20251216-8/testresults/../../testresult-logarchives', '/srv/autobuilder/valkyrie.yocto.io/pub/non-release/20251216-8/testresults', '/tmp/sendqaemail.5qxgjkum']' returned non-zero exit status 1.
program finished with exit code 1
Comment 1 Mathieu Dubois-Briand 2025-12-16 12:12:18 UTC
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