All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Milan Shah" <mshah@mvista.com>
To: yocto@yoctoproject.org
Subject: [error-report-web][PATCH] report-error.bbclass: Add layer and bitbake version info to error report
Date: Wed,  6 Jan 2021 19:08:37 +0530	[thread overview]
Message-ID: <1609940317-21943-1-git-send-email-mshah@mvista.com> (raw)

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


             reply	other threads:[~2021-01-06 13:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06 13:38 Milan Shah [this message]
2021-01-11 13:15 ` [error-report-web][PATCH] report-error.bbclass: Add layer and bitbake version info to error report 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1609940317-21943-1-git-send-email-mshah@mvista.com \
    --to=mshah@mvista.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.