All of lore.kernel.org
 help / color / mirror / Atom feed
* [yocto-autobuilder-helper][PATCH] send_qa_email: add git-describe output if possible
@ 2026-01-26  8:52 Yoann Congal
  2026-01-26  9:24 ` [yocto-patches] " Mikko Rapeli
  0 siblings, 1 reply; 7+ messages in thread
From: Yoann Congal @ 2026-01-26  8:52 UTC (permalink / raw)
  To: yocto-patches; +Cc: Yoann Congal

From: Yoann Congal <yoann.congal@smile.fr>

This would allow to quickly identify commits that are not on the right
branch.

Partial example of output on my whinlatter-nut branch:
  bitbake: 74f8a927ca6a20342072e5579182aea917b6dc30 (yocto-5.3-3-g74f8a927c)
  meta-yocto: 6973ca663aaa9c3ab517ee960ab7985a5bf54c07 (yocto-5.3-1-g6973ca6)
  openembedded-core: b4e7819b99d9c1a8995eba87e6f466fd8c77e14a (yocto-5.3-73-gb4e7819b99)
(It shows that every commits are correctly after yocto-5.3)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 scripts/send_qa_email.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/scripts/send_qa_email.py b/scripts/send_qa_email.py
index e3de4b5..8d24af5 100755
--- a/scripts/send_qa_email.py
+++ b/scripts/send_qa_email.py
@@ -265,6 +265,15 @@ def send_qa_email():
         # Need the finalised revisions (not 'HEAD')
         targetrepodir = "%s/%s" % (repodir, repo)
         revision = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=targetrepodir).decode('utf-8').strip()
+
+        # Add git describe output if possible
+        try:
+            description = subprocess.check_output(["git", "describe", "--match", "yocto-*", "HEAD"],
+                                                  cwd=targetrepodir, stderr=subprocess.DEVNULL).decode('utf-8').strip()
+            revision += " (%s)" % description
+        except subprocess.CalledProcessError:
+            pass # ignore any error
+
         buildhashes += "%s: %s\n" % (repo, revision)
 
     web_root = utils.getconfig('WEBPUBLISH_DIR', ourconfig)


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-01-27 10:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-26  8:52 [yocto-autobuilder-helper][PATCH] send_qa_email: add git-describe output if possible Yoann Congal
2026-01-26  9:24 ` [yocto-patches] " Mikko Rapeli
2026-01-26 14:19   ` Yoann Congal
2026-01-27  9:40     ` Yoann Congal
2026-01-27  9:45       ` Mikko Rapeli
2026-01-27 10:46         ` Yoann Congal
2026-01-27 10:59           ` Mikko Rapeli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.