All of lore.kernel.org
 help / color / mirror / Atom feed
* [error-report-web][PATCH] report-error.bbclass: Add layer and bitbake version info to error report
@ 2021-01-06 13:38 Milan Shah
  2021-01-11 13:15 ` Milan Shah
  0 siblings, 1 reply; 13+ messages in thread
From: Milan Shah @ 2021-01-06 13:38 UTC (permalink / raw)
  To: yocto

Instead of just providing local.conf info, add layer names and their
revisions with bitbake version information into error report
makes it easier to understand and reproduce failed build.

[YOCTO #9700]

Signed-off-by: Milan Shah <mshah@mvista.com>
---
 meta/classes/report-error.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass
index 1a12db1..9cb6b0b 100644
--- a/meta/classes/report-error.bbclass
+++ b/meta/classes/report-error.bbclass
@@ -6,6 +6,8 @@
 #
 # Licensed under the MIT license, see COPYING.MIT for details
 
+inherit base
+
 ERR_REPORT_DIR ?= "${LOG_DIR}/error-report"
 
 def errorreport_getdata(e):
@@ -64,6 +66,8 @@ python errorreport_handler () {
             data['failures'] = []
             data['component'] = " ".join(e.getPkgs())
             data['branch_commit'] = str(base_detect_branch(e.data)) + ": " + str(base_detect_revision(e.data))
+            data['bitbake_version'] = e.data.getVar("BB_VERSION")
+            data['layer_version'] = get_layers_branch_rev(e.data)
             data['local_conf'] = get_conf_data(e, 'local.conf')
             data['auto_conf'] = get_conf_data(e, 'auto.conf')
             lock = bb.utils.lockfile(datafile + '.lock')
-- 
2.7.4


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

end of thread, other threads:[~2021-07-09  8:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 13:38 [error-report-web][PATCH] report-error.bbclass: Add layer and bitbake version info to error report Milan Shah
2021-01-11 13:15 ` Milan Shah
2021-02-01  4:36   ` Milan Shah
2021-02-23  9:51     ` Milan Shah
2021-03-15 11:06       ` Milan Shah
2021-03-26 10:34         ` Milan Shah
2021-03-26 10:51           ` Richard Purdie
2021-03-26 11:45             ` Milan Shah
     [not found]             ` <166FE1E7B1DE5E9C.21604@lists.yoctoproject.org>
2021-07-09  5:21               ` [yocto] " Milan Shah
2021-07-09  8:33                 ` Richard Purdie
2021-07-09  8:37                   ` Milan Shah
2021-07-09  8:53                     ` Richard Purdie
2021-07-09  8:56                       ` Milan Shah

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.