]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Revert "oeqa/utils/gitarchive: fix tag computation when creating archive"
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Aug 2023 06:55:50 +0000 (07:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Aug 2023 06:55:56 +0000 (07:55 +0100)
This reverts commit 5a0a7da85a3acfd4a20a07478eabefdab60f313a.

This caused failres on the build performance tests on the autobuilder.

meta/lib/oeqa/utils/gitarchive.py

index 73beafecb5fbd8665393ec61b8a6961e96a801f7..6e8040eb5c960d4f3a17a1acbcbd486fb6b8298b 100644 (file)
@@ -116,8 +116,7 @@ def expand_tag_strings(repo, name_pattern, msg_subj_pattern, msg_body_pattern,
         tag_re = tag_re.format(tag_number='(?P<tag_number>[0-9]{1,5})')
 
         keyws['tag_number'] = 0
-        tags_refs = repo.run_cmd(['ls-remote', '--refs', '--tags', '-q'])
-        for existing_tag in ["".join(d.split()[1].split('/', 2)[2:]) for d in tags_refs.splitlines()]:
+        for existing_tag in repo.run_cmd('tag').splitlines():
             match = re.match(tag_re, existing_tag)
 
             if match and int(match.group('tag_number')) >= keyws['tag_number']:
@@ -182,8 +181,7 @@ def get_test_runs(log, repo, tag_name, **kwargs):
 
     # Get a list of all matching tags
     tag_pattern = tag_name.format(**str_fields)
-    revs = repo.run_cmd(['ls-remote', '--refs', '--tags', 'origin', '-q', tag_pattern]).splitlines()
-    tags = ["".join(d.split()[1].split('/', 2)[2:]) for d in revs]
+    tags = repo.run_cmd(['tag', '-l', tag_pattern]).splitlines()
     log.debug("Found %d tags matching pattern '%s'", len(tags), tag_pattern)
 
     # Parse undefined fields from tag names