Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

T11529 bisection recipients #47

Merged
merged 3 commits into from
Nov 21, 2018
Merged

T11529 bisection recipients #47

merged 3 commits into from
Nov 21, 2018

Conversation

gctucker
Copy link
Contributor

This is to automatically determine the list of recipients for the bisection email reports. If any of the checks failed (verify, revert...) then the report will only be sent to the hard-coded list of recipients set in the Jenkins job like now.

This PR contains a STAGING commit intended to be used on staging to test this feature without actually sending the emails to all the recipients; they are instead only shown in the Jenkins log.

@gctucker
Copy link
Contributor Author

Here's a test job running this, with a made-up breaking commit:
https://staging-ci.kernelci.org/job/lava-bisect/7189/console

The important parts from the Jenkins log are:

    Good:      1aa6c685dbe0bf55ebb0a131c844c65d848fec1e
    Bad:       8f47e7bb88fbd9eece8414f708134684fdcb2598
    Tree:      gtucker
    URL:       https://gitlab.collabora.com/gtucker/linux.git
    Branch:    kernelci-test
    Kernel:    kernelci-test-084-7-g8f47e7bb88fb
    Target:    qemu
    Lab:       lab-mhart-dev
    Defconfig: defconfig
    Plan:      boot
7adfe82b4d769e04471d9a53ff3e8e1cf89a3f93 is the first bad commit
commit 7adfe82b4d769e04471d9a53ff3e8e1cf89a3f93
Author: Guillaume Tucker <guillaume.tucker@collabora.com>
Date:   Wed Aug 23 08:42:33 2017 +0100

    BREAK panic in initramfs
    
    Cause a panic on purpose when trying to boot with an initramfs.
    
    Tested-by: Bob Tester <guillaume.tucker@gmail.com>
    Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.co.uk>
    Reviewed-by: Some Reviewer <gtucker@collabora.com>
    Link: https://gtucker.io/
    Fixes: 1234567abcdef ("this isn't a real commit")
Sending bisection report email
*** recipients ***
to:
  guillaume.tucker@collabora.com
  Guillaume Tucker <guillaume.tucker@collabora.co.uk>
  Bob Tester <guillaume.tucker@gmail.com>
  Guillaume Tucker <guillaume.tucker@collabora.com>
  Some Reviewer <gtucker@collabora.com>
cc:
  Arnd Bergmann <arnd@arndb.de>
  Dominik Brodowski <linux@dominikbrodowski.net>
  Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
  "kernelci.org bot" <bot@kernelci.org>
  linux-kernel@vger.kernel.org
  Andrew Morton <akpm@linux-foundation.org>
Actually only sending emails to:
  guillaume.tucker@collabora.com

Note: The "bot@kernelci.org" recipient comes from the fact that the bisection job sets it as the git user. I'm not actually entirely sure why it was added here, maybe because the job created a temporary git tag on this commit - I'll try to find out. It's not really an issue, but it's a bit weird. Also we probably don't really want to be sending emails to that address...

@broonie
Copy link
Member

broonie commented Nov 15, 2018

LGTM.

Fix error propagation since the bisection code was moved to a separate
function as part of the move to run the job in a Docker container.
This is to avoid sending emails when the "verify" check fails.

Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Fixes: da83f4f ("bisect.jpl: use Docker")
Automatically add bisection email report recipients based on the
breaking commit found.  Also still send the report to the list of
recipients provided on the command line.

If any of the bisection checks failed (verify, revert...) then the
report will not be sent to the commit related recipients, only to
those provided on the command line.

Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Set the delay when sending the bisection report email to 60 seconds.
This removes the default delay of 1h 5s, so the report will be sent
sooner.  Keep it greater than 0 to leave the time for the backend to
asynchronously store the bisection meta-data before triggering the
email report which then uses this data.

Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
@gctucker gctucker merged commit 6e14a9e into kernelci:master Nov 21, 2018
@gctucker gctucker deleted the T11529-bisection-recipients branch November 21, 2018 12:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants