* [PATCH v2 0/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
@ 2025-11-17 1:23 liezhi.yang
2025-11-17 1:23 ` [PATCH v2 1/1] " liezhi.yang
0 siblings, 1 reply; 2+ messages in thread
From: liezhi.yang @ 2025-11-17 1:23 UTC (permalink / raw)
To: openembedded-core
From: Robert Yang <liezhi.yang@windriver.com>
* 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(+)
--
2.49.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH v2 1/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
2025-11-17 1:23 [PATCH v2 0/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled liezhi.yang
@ 2025-11-17 1:23 ` liezhi.yang
0 siblings, 0 replies; 2+ messages in thread
From: liezhi.yang @ 2025-11-17 1:23 UTC (permalink / raw)
To: openembedded-core
From: Robert Yang <liezhi.yang@windriver.com>
The version-going-backwards check may fail without PRServer, and it's not easy
to debug, so warn for that.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/classes/buildhistory.bbclass | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 4a380c10c6..831134f15f 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -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
#
--
2.49.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-17 1:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-17 1:23 [PATCH v2 0/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled liezhi.yang
2025-11-17 1:23 ` [PATCH v2 1/1] " liezhi.yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox