This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner, zach.ware
Date 2017-05-09.23:54:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494374070.07.0.955176493492.issue30325@psf.upfronthosting.co.za>
In-reply-to
Content
On the buildbot server, I see the following code in lib/python/buildbot/status/mail.py:

        # GB: NEW: add test logfile excerpts
        if "test" in t: # only if the test went wrong
            for log in build.getLogs():
                if "test" in log.getStep().getName():
                    text += "\n"
                    text += "Excerpt from the test logfile:"
                    text += interpret_test_logfile(log.getText().splitlines())
                    text += "\n"
                    break

But I'm unable to find this code in the upstream code:

https://github.com/buildbot/buildbot/blob/v0.8.12/master/buildbot/status/mail.py#L742

Do we have downstream changes on buildbot? I'm asking because it seems like emails cannot be send because of these lines. Extract of logs:

2017-05-05 11:55:42+0000 [-] Exception caught notifying <buildbot.status.mail.MailNotifier instance at 0x7f9512f3add0> of buildFinished event
2017-05-05 11:55:42+0000 [-] Unhandled Error
        Traceback (most recent call last):
          File "/data/buildbot/lib/python/buildbot/status/build.py", line 320, in buildFinished
        (...)  
          File "/data/buildbot/lib/python/buildbot/status/mail.py", line 792, in buildMessage
            if "test" in t: # only if the test went wrong
        exceptions.NameError: global name 't' is not defined

Note: It seems like 0.8.14 is deployed, but I don't see any v0.8.14 tag on GitHub, the last one of the 0.8 branch is v0.8.12. https://pypi.python.org/pypi/buildbot/0.8.14 wasn't tagged in Git?
History
Date User Action Args
2017-05-09 23:54:30vstinnersetrecipients: + vstinner, zach.ware
2017-05-09 23:54:30vstinnersetmessageid: <1494374070.07.0.955176493492.issue30325@psf.upfronthosting.co.za>
2017-05-09 23:54:30vstinnerlinkissue30325 messages
2017-05-09 23:54:30vstinnercreate