scripts/send_qa_email.py: Fix master branch comparision for regression report

This change only affects master builds. These were being compared with the last tag on
the master branch which is currently "uninative-5.0" and clearly not what we want to
compare to. The next tag back from that is "yocto-5.1" since the 5.2 and 5.3 releases
branched before release/tagging and also isn't correct.

Instead, list all the yocoto* tags and pick the last one which should be the most
recent numerically. That is currently "yocto-5.3". There should be test results
available for these and they don't need to be on the master branch history for the
regression report to work correctly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2026-01-20 15:12:09 +00:00
parent e47be6614f
commit ec17abb0b2

View File

@ -28,7 +28,7 @@ def get_previous_tag(targetrepodir, version, log):
previousmilestone = None
if version:
if not is_release_version(version):
return subprocess.check_output(["git", "describe", "--abbrev=0"], cwd=targetrepodir).decode('utf-8').strip()
return subprocess.check_output(["git", "tag", "-l", "yocto-*"], cwd=targetrepodir).decode('utf-8').split()[-1]
compareversion, comparemilestone, _ = utils.get_version_from_string(version)
compareversionminor = compareversion[-1]
# After ignoring rc part, if we get a minor to 0 on point release (e.g 4.0.0),