All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steve Sakoman" <steve@sakoman.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][dunfell 18/27] report-error.bbclass: Add layer and bitbake version info to error report
Date: Fri,  5 Mar 2021 04:46:27 -1000	[thread overview]
Message-ID: <b6d941126e92e26ae26cc4550c6849829eb88af9.1614955420.git.steve@sakoman.com> (raw)
In-Reply-To: <cover.1614955420.git.steve@sakoman.com>

From: Milan Shah <mshah@mvista.com>

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a5afd7b1857c0012ab6e3d8bbafa67a96ff9e9e0)
Signed-off-by: Steve Sakoman <steve@sakoman.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 1a12db1206..9cb6b0bd31 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.25.1


  parent reply	other threads:[~2021-03-05 14:48 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-05 14:46 [OE-core][dunfell 00/27] Patch review Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 01/27] openssl: upgrade 1.1.1i -> 1.1.1j Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 02/27] linux-firmware: upgrade 20201218 -> 20210208 Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 03/27] python3: fix CVE-2021-3177 Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 04/27] screen: fix CVE-2021-26937 Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 05/27] bind: fix CVE-2020-8625 Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 06/27] wpa-supplicant: fix CVE-2021-0326 Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 07/27] libsdl2: fix CVE-2020-14409 CVE-2020-14410 Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 08/27] librepo: fix CVE-2020-14352 Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 09/27] sstatesig.py: show an error instead of warning when sstate manifest isn't found Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 10/27] image: Add directories to PSEUDO_IGNORE_PATHS Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 11/27] populate_sdk: " Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 12/27] bitbake.conf/image: Move image specific PSEUDO_IGNORE_PATHS to image class Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 13/27] bitbake.conf: Split PSEUDO_IGNORE_PATHS to be more readable Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 14/27] maintainers: Update email address for Victor Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 15/27] libevdev: Update patch status to backport Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 16/27] ca-certificates: Clean up two patches and submit upstream Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 17/27] libpcre: Drop old/stale patch Steve Sakoman
2021-03-05 14:46 ` Steve Sakoman [this message]
2021-03-05 14:46 ` [OE-core][dunfell 19/27] reproducible_builds: SOURCE_DATE_EPOCH should not be 0 Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 20/27] reproducible: Improve SOURCE_DATE_EPOCH_FALLBACK handling Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 21/27] package/package_rpm: Disable font_provides configuration for reproducibilty Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 22/27] asciidoc: Switch to using the main branch Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 23/27] cups: Fix reproducibility issues Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 24/27] meta/recipes-bsp: Add HOMEPAGE / DESCRIPTION Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 25/27] meta/recipes-connectivity: " Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 26/27] meta/recipes-devtools: " Steve Sakoman
2021-03-05 14:46 ` [OE-core][dunfell 27/27] meta/recipes-core: " Steve Sakoman

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=b6d941126e92e26ae26cc4550c6849829eb88af9.1614955420.git.steve@sakoman.com \
    --to=steve@sakoman.com \
    --cc=openembedded-core@lists.openembedded.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.