diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-12 13:06:43 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-12 02:53:15 +0000 |
commit | 4e1966db9500c6834cbc0be70a745326b9257070 (patch) | |
tree | 4d51f99475447c7a502531c9e9ba600f10d8f12f /script | |
parent | f2dc72eb47c0a3217265784f1d76117279ca8c1c (diff) | |
download | samba-4e1966db9500c6834cbc0be70a745326b9257070.tar.gz samba-4e1966db9500c6834cbc0be70a745326b9257070.tar.bz2 samba-4e1966db9500c6834cbc0be70a745326b9257070.zip |
autobuild: send email failure if rebase fails
users need to know if the rebase on master fails
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Oct 12 02:53:15 UTC 2010 on sn-devel-104
Diffstat (limited to 'script')
-rwxr-xr-x | script/autobuild.py | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/script/autobuild.py b/script/autobuild.py index fe0c1e2b3a..6691437c23 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -341,15 +341,18 @@ Your autobuild failed when trying to test %s with the following error: the autobuild has been abandoned. Please fix the error and resubmit. +A summary of the autobuild process is here: + + http://git.samba.org/%s/samba-autobuild/autobuild.log +''' % (failed_task, errstr, user) + + if failed_task != 'rebase': + text += ''' You can see logs of the failed task here: http://git.samba.org/%s/samba-autobuild/%s.stdout http://git.samba.org/%s/samba-autobuild/%s.stderr -A summary of the autobuild process is here: - - http://git.samba.org/%s/samba-autobuild/autobuild.log - or you can get full logs of all tasks in this job here: http://git.samba.org/%s/samba-autobuild/logs.tar.gz @@ -358,7 +361,7 @@ The top commit for the tree that was built was: %s -''' % (failed_task, errstr, user, failed_tag, user, failed_tag, user, user, top_commit_msg) +''' % (user, failed_tag, user, failed_tag, user, top_commit_msg) msg = MIMEText(text) msg['Subject'] = 'autobuild failure for task %s during %s' % (failed_task, failed_stage) msg['From'] = 'autobuild@samba.org' @@ -442,10 +445,14 @@ while True: raise try: - if options.rebase is not None: - rebase_tree(options.rebase) - elif options.rebase_master: - rebase_tree(samba_master) + try: + if options.rebase is not None: + rebase_tree(options.rebase) + elif options.rebase_master: + rebase_tree(samba_master) + except: + email_failure(-1, 'rebase', 'rebase', 'rebase', 'rebase on master failed') + sys.exit(1) blist = buildlist(tasks, args) if options.tail: blist.start_tail() |