@@ -78,11 +78,12 @@ def store(args, logger):
if args.logfile_archive:
excludes = ['*.log', "*.log.zst"]
+ push_tag = args.logfile_archive
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)
+ excludes, [], push_tag, keywords, logger)
if args.logfile_archive:
logdir = args.logfile_archive + "/" + tagname
Resulttool creates a git tag in the yocto-testresults git and then copies log files to a newly created folder on the NFS share, whose name is controlled by the name of this git tag. As tags are unique, the folder name is also unique, preventing any clash between different builds. Today, the tag is pushed after the folder is copied, which can lead to some issues if for any reason the tag is not pushed. This might also lead to some race condition. Push the tag before coying data, in order to prevent these issues. Fixes [YOCTO #15696] Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> --- scripts/lib/resulttool/store.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)