Skip to contentSkip to conversation

buildhistory.bbclass: Warn when PRSERV_HOST is not enabled

PATCH New [email protected] 1 participant 2 messages Nov 17, 2025

lore
Share & tools
lore
#0 lore raw

v2 cover buildhistory.bbclass: Warn when PRSERV_HOST is not enabled

From: Robert Yang <[email protected]>

* V2:
- Only warn when version-going-backwards is enabled as RP suggested.

* V1:
- Initial version

// Robert

The following changes since commit e7dc42e30c76bf0fbb4d3cc019bbec675bac55fa:

oe-build-perf-report: relax metadata matching rules (2025-11-16 23:44:30 +0000)

are available in the Git repository at:

https://github.com/robertlinux/yocto rbt/warn
https://github.com/robertlinux/yocto/tree/rbt/warn

Robert Yang (1):
buildhistory.bbclass: Warn when PRSERV_HOST is not enabled

 meta/classes/buildhistory.bbclass | 7 +++++++
 1 file changed, 7 insertions(+)
Signature · 1 line
2.49.0
#1 lore raw

PATCH v2 1/1 buildhistory.bbclass: Warn when PRSERV_HOST is not enabled

From: Robert Yang <[email protected]>

The version-going-backwards check may fail without PRServer, and it's not easy to debug, so warn for that.

---
 meta/classes/buildhistory.bbclass | 7 +++++++
 1 file changed, 7 insertions(+)
meta/classes/buildhistory.bbclass +7 -0
index 4a380c10c6..831134f15f 100644
@@ -57,6 +57,13 @@ BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot"
 PATCH_GIT_USER_EMAIL ?= "buildhistory@oe"
 PATCH_GIT_USER_NAME ?= "OpenEmbedded"
 
+python() {
+    warn_qa = d.getVar('WARN_QA')
+    error_qa = d.getVar('ERROR_QA')
+    if ('version-going-backwards' in warn_qa + error_qa) and not d.getVar('PRSERV_HOST'):
+        bb.warn('PRServer is not enabled, version-going-backwards check may fail!')
+}
+
 #
 # Write out the contents of the sysroot
 #
Signature · 1 line
2.49.0