diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-16 07:55:50 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-11-12 11:26:18 -1000 |
commit | 1506737eae894310bb98a82cf43c91f4b17d5878 (patch) | |
tree | 86d0da1390f7b88770dee17c2d85224d9a967d8c | |
parent | ae69823d9439ba1995ef48676a2d2236a50fe665 (diff) | |
download | openembedded-core-contrib-1506737eae894310bb98a82cf43c91f4b17d5878.tar.gz |
Revert "oeqa/utils/gitarchive: fix tag computation when creating archive"
This reverts commit 5a0a7da85a3acfd4a20a07478eabefdab60f313a.
This caused failres on the build performance tests on the autobuilder.
(cherry picked from commit cbfa57a982c0e633e41d3ea00543f87ad818c43a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/lib/oeqa/utils/gitarchive.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/lib/oeqa/utils/gitarchive.py b/meta/lib/oeqa/utils/gitarchive.py index 6046f183d5..cd60a605d4 100644 --- a/meta/lib/oeqa/utils/gitarchive.py +++ b/meta/lib/oeqa/utils/gitarchive.py @@ -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 |